Class: OpenAI::Models::Containers::FileCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Containers::FileCreateResponse
- Defined in:
- lib/openai/models/containers/file_create_response.rb,
sig/openai/models/containers/file_create_response.rbs
Overview
Instance Attribute Summary collapse
-
#bytes ⇒ Integer
Size of the file in bytes.
-
#container_id ⇒ String
The container this file belongs to.
-
#created_at ⇒ Integer
Unix timestamp (in seconds) when the file was created.
-
#id ⇒ String
Unique identifier for the file.
-
#object ⇒ :"container.file"
The type of this object (
container.file). -
#path ⇒ String
Path of the file in the container.
-
#source ⇒ String
Source of the file (e.g.,
user,assistant).
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, bytes:, container_id:, created_at:, path:, source:, object: :"container.file") ⇒ FileCreateResponse
constructor
A new instance of FileCreateResponse.
- #to_hash ⇒ { id: String, bytes: Integer, container_id: String, created_at: Integer, ?object: :"container.file", path: String, source: String }
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(id:, bytes:, container_id:, created_at:, path:, source:, object: :"container.file") ⇒ FileCreateResponse
Returns a new instance of FileCreateResponse.
|
|
# File 'lib/openai/models/containers/file_create_response.rb', line 50
|
Instance Attribute Details
#bytes ⇒ Integer
Size of the file in bytes.
18 |
# File 'lib/openai/models/containers/file_create_response.rb', line 18 required :bytes, Integer |
#container_id ⇒ String
The container this file belongs to.
24 |
# File 'lib/openai/models/containers/file_create_response.rb', line 24 required :container_id, String |
#created_at ⇒ Integer
Unix timestamp (in seconds) when the file was created.
30 |
# File 'lib/openai/models/containers/file_create_response.rb', line 30 required :created_at, Integer |
#id ⇒ String
Unique identifier for the file.
12 |
# File 'lib/openai/models/containers/file_create_response.rb', line 12 required :id, String |
#object ⇒ :"container.file"
The type of this object (container.file).
36 |
# File 'lib/openai/models/containers/file_create_response.rb', line 36 required :object, const: :"container.file" |
#path ⇒ String
Path of the file in the container.
42 |
# File 'lib/openai/models/containers/file_create_response.rb', line 42 required :path, String |
#source ⇒ String
Source of the file (e.g., user, assistant).
48 |
# File 'lib/openai/models/containers/file_create_response.rb', line 48 required :source, String |
Instance Method Details
#to_hash ⇒ { id: String, bytes: Integer, container_id: String, created_at: Integer, ?object: :"container.file", path: String, source: String }
61 62 63 64 65 66 67 68 69 |
# File 'sig/openai/models/containers/file_create_response.rbs', line 61
def to_hash: -> {
id: String,
bytes: Integer,
container_id: String,
created_at: Integer,
?object: :"container.file",
path: String,
source: String
}
|