Class: Imagekitio::Models::Accounts::OriginRequest::CloudinaryBackup

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/imagekitio/models/accounts/origin_request.rb,
sig/imagekitio/models/accounts/origin_request.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeObject



192
# File 'sig/imagekitio/models/accounts/origin_request.rbs', line 192

def initialize: (

Instance Attribute Details

#access_keyString

Access key for the bucket. When useIAMRole is true, send an empty string.

Parameters:

  • value (String)

Returns:

  • (String)


197
# File 'lib/imagekitio/models/accounts/origin_request.rb', line 197

required :access_key, String, api_name: :accessKey

#base_url_for_canonical_headerString?

URL used in the Canonical header (if enabled).

Parameters:

  • (String)

Returns:

  • (String, nil)


226
# File 'lib/imagekitio/models/accounts/origin_request.rb', line 226

optional :base_url_for_canonical_header, String, api_name: :baseUrlForCanonicalHeader

#bucketString

S3 bucket name.

Parameters:

  • value (String)

Returns:

  • (String)


203
# File 'lib/imagekitio/models/accounts/origin_request.rb', line 203

required :bucket, String

#include_canonical_headerBoolean?

Whether to send a Canonical header.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


232
233
234
# File 'lib/imagekitio/models/accounts/origin_request.rb', line 232

optional :include_canonical_header,
Imagekitio::Internal::Type::Boolean,
api_name: :includeCanonicalHeader

#nameString

Display name of the origin.

Parameters:

  • value (String)

Returns:

  • (String)


209
# File 'lib/imagekitio/models/accounts/origin_request.rb', line 209

required :name, String

#prefixString?

Path prefix inside the bucket.

Parameters:

  • (String)

Returns:

  • (String, nil)


240
# File 'lib/imagekitio/models/accounts/origin_request.rb', line 240

optional :prefix, String

#secret_keyString

Secret key for the bucket. When useIAMRole is true, send an empty string.

Parameters:

  • value (String)

Returns:

  • (String)


215
# File 'lib/imagekitio/models/accounts/origin_request.rb', line 215

required :secret_key, String, api_name: :secretKey

#typeSymbol, :CLOUDINARY_BACKUP

Parameters:

  • value (:CLOUDINARY_BACKUP)

Returns:

  • (Symbol, :CLOUDINARY_BACKUP)


220
# File 'lib/imagekitio/models/accounts/origin_request.rb', line 220

required :type, const: :CLOUDINARY_BACKUP

#use_iam_roleBoolean?

Use IAM role for authentication instead of access/secret keys. When set to true, send an empty string for both accessKey and secretKey.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


247
# File 'lib/imagekitio/models/accounts/origin_request.rb', line 247

optional :use_iam_role, Imagekitio::Internal::Type::Boolean, api_name: :useIAMRole

Instance Method Details

#to_hash{

Returns:

  • ({)


204
# File 'sig/imagekitio/models/accounts/origin_request.rbs', line 204

def to_hash: -> {