Class: OpenAI::Models::UploadCreateParams::ExpiresAfter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::UploadCreateParams::ExpiresAfter
- Defined in:
- lib/openai/models/upload_create_params.rb
Instance Attribute Summary collapse
-
#anchor ⇒ Symbol, :created_at
Anchor timestamp after which the expiration policy applies.
-
#seconds ⇒ Integer
The number of seconds after the anchor time that the file will expire.
Instance Method Summary collapse
-
#initialize(seconds:, anchor: :created_at) ⇒ Object
constructor
Some parameter documentations has been truncated, see ExpiresAfter for more details.
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, meta_info, 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(seconds:, anchor: :created_at) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::UploadCreateParams::ExpiresAfter for more details.
The expiration policy for a file. By default, files with ‘purpose=batch` expire after 30 days and all other files are persisted until they are manually deleted.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/openai/models/upload_create_params.rb', line 63 class ExpiresAfter < OpenAI::Internal::Type::BaseModel # @!attribute anchor # Anchor timestamp after which the expiration policy applies. Supported anchors: # `created_at`. # # @return [Symbol, :created_at] required :anchor, const: :created_at # @!attribute seconds # The number of seconds after the anchor time that the file will expire. Must be # between 3600 (1 hour) and 2592000 (30 days). # # @return [Integer] required :seconds, Integer # @!method initialize(seconds:, anchor: :created_at) # Some parameter documentations has been truncated, see # {OpenAI::Models::UploadCreateParams::ExpiresAfter} for more details. # # The expiration policy for a file. By default, files with `purpose=batch` expire # after 30 days and all other files are persisted until they are manually deleted. # # @param seconds [Integer] The number of seconds after the anchor time that the file will expire. Must be b # # @param anchor [Symbol, :created_at] Anchor timestamp after which the expiration policy applies. Supported anchors: ` end |
Instance Attribute Details
#anchor ⇒ Symbol, :created_at
Anchor timestamp after which the expiration policy applies. Supported anchors: ‘created_at`.
69 |
# File 'lib/openai/models/upload_create_params.rb', line 69 required :anchor, const: :created_at |
#seconds ⇒ Integer
The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).
76 |
# File 'lib/openai/models/upload_create_params.rb', line 76 required :seconds, Integer |