Class: Anthropic::Models::Beta::FileMetadata
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::FileMetadata
- Defined in:
- lib/anthropic/models/beta/file_metadata.rb
Overview
Instance Attribute Summary collapse
-
#created_at ⇒ Time
RFC 3339 datetime string representing when the file was created.
-
#downloadable ⇒ Boolean?
Whether the file can be downloaded.
-
#filename ⇒ String
Original filename of the uploaded file.
-
#id ⇒ String
Unique object identifier.
-
#mime_type ⇒ String
MIME type of the file.
-
#size_bytes ⇒ Integer
Size of the file in bytes.
-
#type ⇒ Symbol, :file
Object type.
Instance Method Summary collapse
-
#initialize(id: , created_at: , filename: , mime_type: , size_bytes: , downloadable: nil, type: :file) ⇒ void
constructor
Some parameter documentations has been truncated, see FileMetadata for more details.
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: , filename: , mime_type: , size_bytes: , downloadable: nil, type: :file) ⇒ void
Some parameter documentations has been truncated, see Anthropic::Models::Beta::FileMetadata for more details.
|
|
# File 'lib/anthropic/models/beta/file_metadata.rb', line 54
|
Instance Attribute Details
#created_at ⇒ Time
RFC 3339 datetime string representing when the file was created.
20 |
# File 'lib/anthropic/models/beta/file_metadata.rb', line 20 required :created_at, Time |
#downloadable ⇒ Boolean?
Whether the file can be downloaded.
52 |
# File 'lib/anthropic/models/beta/file_metadata.rb', line 52 optional :downloadable, Anthropic::Internal::Type::Boolean |
#filename ⇒ String
Original filename of the uploaded file.
26 |
# File 'lib/anthropic/models/beta/file_metadata.rb', line 26 required :filename, String |
#id ⇒ String
Unique object identifier.
The format and length of IDs may change over time.
14 |
# File 'lib/anthropic/models/beta/file_metadata.rb', line 14 required :id, String |
#mime_type ⇒ String
MIME type of the file.
32 |
# File 'lib/anthropic/models/beta/file_metadata.rb', line 32 required :mime_type, String |
#size_bytes ⇒ Integer
Size of the file in bytes.
38 |
# File 'lib/anthropic/models/beta/file_metadata.rb', line 38 required :size_bytes, Integer |
#type ⇒ Symbol, :file
Object type.
For files, this is always "file".
46 |
# File 'lib/anthropic/models/beta/file_metadata.rb', line 46 required :type, const: :file |