Class: OpenAI::Models::ContainerRetrieveResponse

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

Overview

Defined Under Namespace

Modules: MemoryLimit Classes: ExpiresAfter

Instance Attribute Summary collapse

Class Method 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(id:, created_at:, name:, object:, status:, expires_after: nil, last_active_at: nil, memory_limit: nil) ⇒ Object

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

Parameters:

  • id (String)

    Unique identifier for the container.

  • created_at (Integer)

    Unix timestamp (in seconds) when the container was created.

  • name (String)

    Name of the container.

  • object (String)

    The type of this object.

  • status (String)

    Status of the container (e.g., active, deleted).

  • expires_after (OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter) (defaults to: nil)

    The container will expire after this time period.

  • last_active_at (Integer) (defaults to: nil)

    Unix timestamp (in seconds) when the container was last active.

  • memory_limit (Symbol, OpenAI::Models::ContainerRetrieveResponse::MemoryLimit) (defaults to: nil)

    The memory limit configured for the container.



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

Instance Attribute Details

#created_atInteger

Unix timestamp (in seconds) when the container was created.

Returns:

  • (Integer)


17
# File 'lib/openai/models/container_retrieve_response.rb', line 17

required :created_at, Integer

#expires_afterOpenAI::Models::ContainerRetrieveResponse::ExpiresAfter?

The container will expire after this time period. The anchor is the reference point for the expiration. The minutes is the number of minutes after the anchor before the container expires.



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

optional :expires_after, -> { OpenAI::Models::ContainerRetrieveResponse::ExpiresAfter }

#idString

Unique identifier for the container.

Returns:

  • (String)


11
# File 'lib/openai/models/container_retrieve_response.rb', line 11

required :id, String

#last_active_atInteger?

Unix timestamp (in seconds) when the container was last active.

Returns:

  • (Integer, nil)


49
# File 'lib/openai/models/container_retrieve_response.rb', line 49

optional :last_active_at, Integer

#memory_limitSymbol, ...

The memory limit configured for the container.



55
# File 'lib/openai/models/container_retrieve_response.rb', line 55

optional :memory_limit, enum: -> { OpenAI::Models::ContainerRetrieveResponse::MemoryLimit }

#nameString

Name of the container.

Returns:

  • (String)


23
# File 'lib/openai/models/container_retrieve_response.rb', line 23

required :name, String

#objectString

The type of this object.

Returns:

  • (String)


29
# File 'lib/openai/models/container_retrieve_response.rb', line 29

required :object, String

#statusString

Status of the container (e.g., active, deleted).

Returns:

  • (String)


35
# File 'lib/openai/models/container_retrieve_response.rb', line 35

required :status, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/container_retrieve_response.rb', line 108