Class: OpenAI::Models::BatchCreateParams::OutputExpiresAfter

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/batch_create_params.rb,
sig/openai/models/batch_create_params.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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(seconds:, anchor: :created_at) ⇒ OutputExpiresAfter

Returns a new instance of OutputExpiresAfter.

Parameters:

  • seconds —

    The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).

  • anchor (defaults to: :created_at) —

    Anchor timestamp after which the expiration policy applies. Supported anchors: created_at. Note that the anchor is the file creation time, not the time the batch is created.

  • seconds: (Integer)
  • anchor: (:created_at) (defaults to: :created_at)


# File 'lib/openai/models/batch_create_params.rb', line 134

Instance Attribute Details

#anchor ⇒ :created_at

Anchor timestamp after which the expiration policy applies. Supported anchors: created_at. Note that the anchor is the file creation time, not the time the batch is created.

Returns:

  • (:created_at)


125
# File 'lib/openai/models/batch_create_params.rb', line 125

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).

Returns:

  • (Integer)


132
# File 'lib/openai/models/batch_create_params.rb', line 132

required :seconds, Integer

Instance Method Details

#to_hash ⇒ { ?anchor: :created_at, seconds: Integer }

Returns:

  • ({ ?anchor: :created_at, seconds: Integer })


152
# File 'sig/openai/models/batch_create_params.rbs', line 152

def to_hash: -> { ?anchor: :created_at, seconds: Integer }