Class: Cadenya::Models::UploadSpec
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::UploadSpec
- Defined in:
- lib/cadenya/models/upload_spec.rb
Instance Attribute Summary collapse
-
#content_type ⇒ String
MIME type the client will send.
-
#filename ⇒ String
Client-supplied filename.
-
#size_bytes ⇒ String
Expected size of the upload in bytes.
Instance Method Summary collapse
-
#initialize(content_type:, filename:, size_bytes:) ⇒ Object
constructor
Some parameter documentations has been truncated, see UploadSpec 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(content_type:, filename:, size_bytes:) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::UploadSpec for more details.
|
|
# File 'lib/cadenya/models/upload_spec.rb', line 27
|
Instance Attribute Details
#content_type ⇒ String
MIME type the client will send. Baked into the presigned URL’s signature — the PUT must match exactly or object storage will reject it.
11 |
# File 'lib/cadenya/models/upload_spec.rb', line 11 required :content_type, String, api_name: :contentType |
#filename ⇒ String
Client-supplied filename. Used for audit and display only; does not control the object’s storage path.
18 |
# File 'lib/cadenya/models/upload_spec.rb', line 18 required :filename, String |
#size_bytes ⇒ String
Expected size of the upload in bytes. Baked into the presigned URL as a Content-Length constraint.
25 |
# File 'lib/cadenya/models/upload_spec.rb', line 25 required :size_bytes, String, api_name: :sizeBytes |