Class: OpenAI::Models::ContainerCreateParams::ExpiresAfter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/container_create_params.rb

Defined Under Namespace

Modules: Anchor

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(anchor: , minutes: ) ⇒ void

Some parameter documentations has been truncated, see OpenAI::Models::ContainerCreateParams::ExpiresAfter for more details.

Container expiration time in seconds relative to the 'anchor' time.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/openai/models/container_create_params.rb', line 37

class ExpiresAfter < OpenAI::Internal::Type::BaseModel
  # @!attribute anchor
  #   Time anchor for the expiration time. Currently only 'last_active_at' is
  #   supported.
  #
  #   @return [Symbol, OpenAI::Models::ContainerCreateParams::ExpiresAfter::Anchor]
  required :anchor, enum: -> { OpenAI::ContainerCreateParams::ExpiresAfter::Anchor }

  # @!attribute minutes
  #
  #   @return [Integer]
  required :minutes, Integer

  # @!method initialize(anchor:, minutes:)
  #   Some parameter documentations has been truncated, see
  #   {OpenAI::Models::ContainerCreateParams::ExpiresAfter} for more details.
  #
  #   Container expiration time in seconds relative to the 'anchor' time.
  #
  #   @param anchor [Symbol, OpenAI::Models::ContainerCreateParams::ExpiresAfter::Anchor] Time anchor for the expiration time. Currently only 'last_active_at' is supporte
  #
  #   @param minutes [Integer]

  # Time anchor for the expiration time. Currently only 'last_active_at' is
  # supported.
  #
  # @see OpenAI::Models::ContainerCreateParams::ExpiresAfter#anchor
  module Anchor
    extend OpenAI::Internal::Type::Enum

    LAST_ACTIVE_AT = :last_active_at

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#anchorSymbol, OpenAI::Models::ContainerCreateParams::ExpiresAfter::Anchor

Time anchor for the expiration time. Currently only 'last_active_at' is supported.



43
# File 'lib/openai/models/container_create_params.rb', line 43

required :anchor, enum: -> { OpenAI::ContainerCreateParams::ExpiresAfter::Anchor }

#minutesInteger



48
# File 'lib/openai/models/container_create_params.rb', line 48

required :minutes, Integer