Class: Onlyfans::Models::Media::VaultUploadParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Onlyfans::Models::Media::VaultUploadParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/onlyfans/models/media/vault_upload_params.rb
Overview
Instance Attribute Summary collapse
- #account ⇒ String
-
#async ⇒ Boolean?
Set to ‘true` to process uploads in the background.
-
#file ⇒ Pathname, ...
The file to upload.
-
#file_url ⇒ String?
A URL to download the file from.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(account:, async: nil, file: nil, file_url: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see VaultUploadParams for more details.
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(account:, async: nil, file: nil, file_url: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Onlyfans::Models::Media::VaultUploadParams for more details.
|
|
# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 37
|
Instance Attribute Details
#account ⇒ String
14 |
# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 14 required :account, String |
#async ⇒ Boolean?
Set to ‘true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files.
21 |
# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 21 optional :async, Onlyfans::Internal::Type::Boolean |
#file ⇒ Pathname, ...
The file to upload. Required if ‘file_url` is not provided. Maximum file size: 100 MB (limited by Cloudflare).
28 |
# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 28 optional :file, Onlyfans::Internal::Type::FileInput |
#file_url ⇒ String?
A URL to download the file from. Required if ‘file` is not provided. Maximum file size depends on the subscription configuration.
35 |
# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 35 optional :file_url, String |