Class: OpenAI::Models::ContainerCreateParams::ExpiresAfter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::ContainerCreateParams::ExpiresAfter
- Defined in:
- lib/openai/models/container_create_params.rb,
sig/openai/models/container_create_params.rbs
Defined Under Namespace
Modules: Anchor
Instance Attribute Summary collapse
-
#anchor ⇒ OpenAI::Models::ContainerCreateParams::ExpiresAfter::anchor
Time anchor for the expiration time.
- #minutes ⇒ Integer
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(anchor:, minutes:) ⇒ ExpiresAfter
constructor
A new instance of ExpiresAfter.
- #to_hash ⇒ { anchor: OpenAI::Models::ContainerCreateParams::ExpiresAfter::anchor, minutes: Integer }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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:) ⇒ ExpiresAfter
Returns a new instance of ExpiresAfter.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/openai/models/container_create_params.rb', line 67 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:) # 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 # supported. # # @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
#anchor ⇒ OpenAI::Models::ContainerCreateParams::ExpiresAfter::anchor
Time anchor for the expiration time. Currently only 'last_active_at' is supported.
73 |
# File 'lib/openai/models/container_create_params.rb', line 73 required :anchor, enum: -> { OpenAI::ContainerCreateParams::ExpiresAfter::Anchor } |
#minutes ⇒ Integer
78 |
# File 'lib/openai/models/container_create_params.rb', line 78 required :minutes, Integer |
Instance Method Details
#to_hash ⇒ { anchor: OpenAI::Models::ContainerCreateParams::ExpiresAfter::anchor, minutes: Integer }
112 113 114 115 |
# File 'sig/openai/models/container_create_params.rbs', line 112
def to_hash: -> {
anchor: OpenAI::Models::ContainerCreateParams::ExpiresAfter::anchor,
minutes: Integer
}
|