Class: Autorender::Models::UploadCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Autorender::Models::UploadCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/autorender/models/upload_create_params.rb
Overview
Instance Attribute Summary collapse
-
#custom_id ⇒ String?
Custom identifier.
-
#file ⇒ Pathname, ...
File to upload.
-
#file_name ⇒ String
File name (e.g. product.jpg).
-
#folder ⇒ String?
Optional folder path.
-
#metadata ⇒ String?
JSON string of metadata.
-
#random_prefix ⇒ String?
true/false to append random suffix.
-
#tags ⇒ String?
Comma-separated tags.
-
#transform ⇒ String?
Transform string (w_300,h_300,c_crop,…).
-
#webhook_url ⇒ String?
URL to notify on success.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(file:, file_name:, custom_id: nil, folder: nil, metadata: nil, random_prefix: nil, tags: nil, transform: nil, webhook_url: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/autorender/models/upload_create_params.rb', line 64
|
Instance Attribute Details
#custom_id ⇒ String?
Custom identifier
26 |
# File 'lib/autorender/models/upload_create_params.rb', line 26 optional :custom_id, String |
#file ⇒ Pathname, ...
File to upload.
14 |
# File 'lib/autorender/models/upload_create_params.rb', line 14 required :file, Autorender::Internal::Type::FileInput |
#file_name ⇒ String
File name (e.g. product.jpg)
20 |
# File 'lib/autorender/models/upload_create_params.rb', line 20 required :file_name, String |
#folder ⇒ String?
Optional folder path
32 |
# File 'lib/autorender/models/upload_create_params.rb', line 32 optional :folder, String |
#metadata ⇒ String?
JSON string of metadata
38 |
# File 'lib/autorender/models/upload_create_params.rb', line 38 optional :metadata, String |
#random_prefix ⇒ String?
true/false to append random suffix
44 |
# File 'lib/autorender/models/upload_create_params.rb', line 44 optional :random_prefix, String |
#tags ⇒ String?
Comma-separated tags
50 |
# File 'lib/autorender/models/upload_create_params.rb', line 50 optional :tags, String |
#transform ⇒ String?
Transform string (w_300,h_300,c_crop,…)
56 |
# File 'lib/autorender/models/upload_create_params.rb', line 56 optional :transform, String |
#webhook_url ⇒ String?
URL to notify on success
62 |
# File 'lib/autorender/models/upload_create_params.rb', line 62 optional :webhook_url, String |