Class: Onlyfans::Models::Media::VaultUploadParams

Inherits:
Internal::Type::BaseModel show all
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

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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.

Parameters:

  • account (String)
  • async (Boolean) (defaults to: nil)

    Set to ‘true` to process uploads in the background. Returns a `polling_url` to c

  • file (Pathname, StringIO, IO, String, Onlyfans::FilePart) (defaults to: nil)

    The file to upload. Required if ‘file_url` is not provided. Maximum file size: 1

  • file_url (String) (defaults to: nil)

    A URL to download the file from. Required if ‘file` is not provided. Maximum fil

  • request_options (Onlyfans::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 37

Instance Attribute Details

#accountString

Returns:

  • (String)


14
# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 14

required :account, String

#asyncBoolean?

Set to ‘true` to process uploads in the background. Returns a `polling_url` to check status. Recommended for large files.

Returns:

  • (Boolean, nil)


21
# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 21

optional :async, Onlyfans::Internal::Type::Boolean

#filePathname, ...

The file to upload. Required if ‘file_url` is not provided. Maximum file size: 100 MB (limited by Cloudflare).

Returns:



28
# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 28

optional :file, Onlyfans::Internal::Type::FileInput

#file_urlString?

A URL to download the file from. Required if ‘file` is not provided. Maximum file size depends on the subscription configuration.

Returns:

  • (String, nil)


35
# File 'lib/onlyfans/models/media/vault_upload_params.rb', line 35

optional :file_url, String