Class: Autorender::Models::UploadCreateFromURLParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/autorender/models/upload_create_from_url_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(remote_url:, custom_id: nil, file_name: nil, folder: nil, metadata: nil, random_prefix: nil, tags: nil, webhook_url: nil, request_options: {}) ⇒ Object

Parameters:

  • remote_url (String)

    HTTP/HTTPS URL to fetch

  • custom_id (String) (defaults to: nil)
  • file_name (String) (defaults to: nil)

    Override file name

  • folder (String) (defaults to: nil)

    Destination folder path

  • metadata (String) (defaults to: nil)

    JSON string of metadata object

  • random_prefix (String) (defaults to: nil)

    true/false to append random suffix

  • tags (String) (defaults to: nil)

    Comma-separated tags

  • webhook_url (String) (defaults to: nil)
  • request_options (Autorender::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/autorender/models/upload_create_from_url_params.rb', line 56

Instance Attribute Details

#custom_idString?

Returns:

  • (String, nil)


19
# File 'lib/autorender/models/upload_create_from_url_params.rb', line 19

optional :custom_id, String

#file_nameString?

Override file name

Returns:

  • (String, nil)


25
# File 'lib/autorender/models/upload_create_from_url_params.rb', line 25

optional :file_name, String

#folderString?

Destination folder path

Returns:

  • (String, nil)


31
# File 'lib/autorender/models/upload_create_from_url_params.rb', line 31

optional :folder, String

#metadataString?

JSON string of metadata object

Returns:

  • (String, nil)


37
# File 'lib/autorender/models/upload_create_from_url_params.rb', line 37

optional :metadata, String

#random_prefixString?

true/false to append random suffix

Returns:

  • (String, nil)


43
# File 'lib/autorender/models/upload_create_from_url_params.rb', line 43

optional :random_prefix, String

#remote_urlString

HTTP/HTTPS URL to fetch

Returns:

  • (String)


14
# File 'lib/autorender/models/upload_create_from_url_params.rb', line 14

required :remote_url, String

#tagsString?

Comma-separated tags

Returns:

  • (String, nil)


49
# File 'lib/autorender/models/upload_create_from_url_params.rb', line 49

optional :tags, String

#webhook_urlString?

Returns:

  • (String, nil)


54
# File 'lib/autorender/models/upload_create_from_url_params.rb', line 54

optional :webhook_url, String