Class: OpenAI::Models::Containers::FileListResponse

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

Overview

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, 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: , bytes: , container_id: , created_at: , path: , source: , object: :"container.file") ⇒ Object

Parameters:

  • id (String) (defaults to: )

    Unique identifier for the file.

  • bytes (Integer) (defaults to: )

    Size of the file in bytes.

  • container_id (String) (defaults to: )

    The container this file belongs to.

  • created_at (Integer) (defaults to: )

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

  • path (String) (defaults to: )

    Path of the file in the container.

  • source (String) (defaults to: )

    Source of the file (e.g., ‘user`, `assistant`).

  • object (Symbol, :"container.file") (defaults to: :"container.file")

    The type of this object (‘container.file`).



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

Instance Attribute Details

#bytesInteger

Size of the file in bytes.

Returns:

  • (Integer)


18
# File 'lib/openai/models/containers/file_list_response.rb', line 18

required :bytes, Integer

#container_idString

The container this file belongs to.

Returns:

  • (String)


24
# File 'lib/openai/models/containers/file_list_response.rb', line 24

required :container_id, String

#created_atInteger

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

Returns:

  • (Integer)


30
# File 'lib/openai/models/containers/file_list_response.rb', line 30

required :created_at, Integer

#idString

Unique identifier for the file.

Returns:

  • (String)


12
# File 'lib/openai/models/containers/file_list_response.rb', line 12

required :id, String

#objectSymbol, :"container.file"

The type of this object (‘container.file`).

Returns:

  • (Symbol, :"container.file")


36
# File 'lib/openai/models/containers/file_list_response.rb', line 36

required :object, const: :"container.file"

#pathString

Path of the file in the container.

Returns:

  • (String)


42
# File 'lib/openai/models/containers/file_list_response.rb', line 42

required :path, String

#sourceString

Source of the file (e.g., ‘user`, `assistant`).

Returns:

  • (String)


48
# File 'lib/openai/models/containers/file_list_response.rb', line 48

required :source, String