Class: OpenAI::Models::FileCreateParams::ExpiresAfter

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

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, 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::FileCreateParams::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.

Parameters:

  • seconds (Integer)

    The number of seconds after the anchor time that the file will expire. Must be b

  • anchor (Symbol, :created_at) (defaults to: :created_at)

    Anchor timestamp after which the expiration policy applies. Supported anchors: ‘



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
# File 'lib/openai/models/file_create_params.rb', line 44

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::FileCreateParams::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

#anchorSymbol, :created_at

Anchor timestamp after which the expiration policy applies. Supported anchors: ‘created_at`.

Returns:

  • (Symbol, :created_at)


50
# File 'lib/openai/models/file_create_params.rb', line 50

required :anchor, const: :created_at

#secondsInteger

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)


57
# File 'lib/openai/models/file_create_params.rb', line 57

required :seconds, Integer