Class: Imagekitio::Models::Accounts::OriginResponse::CloudinaryBackup

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/imagekitio/models/accounts/origin_response.rb,
sig/imagekitio/models/accounts/origin_response.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



165
# File 'sig/imagekitio/models/accounts/origin_response.rbs', line 165

def initialize: (

Instance Attribute Details

#base_url_for_canonical_headerString?

URL used in the Canonical header (if enabled).

Parameters:

  • (String)

Returns:

  • (String, nil)


223
# File 'lib/imagekitio/models/accounts/origin_response.rb', line 223

optional :base_url_for_canonical_header, String, api_name: :baseUrlForCanonicalHeader

#bucketString

S3 bucket name.

Parameters:

  • value (String)

Returns:

  • (String)


192
# File 'lib/imagekitio/models/accounts/origin_response.rb', line 192

required :bucket, String

#idString

Returns the value of attribute id.

Returns:

  • (String)


163
164
165
# File 'sig/imagekitio/models/accounts/origin_response.rbs', line 163

def id
  @id
end

#include_canonical_headerBoolean

Whether to send a Canonical header.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


198
199
200
# File 'lib/imagekitio/models/accounts/origin_response.rb', line 198

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

#nameString

Display name of the origin.

Parameters:

  • value (String)

Returns:

  • (String)


206
# File 'lib/imagekitio/models/accounts/origin_response.rb', line 206

required :name, String

#prefixString

Path prefix inside the bucket.

Parameters:

  • value (String)

Returns:

  • (String)


212
# File 'lib/imagekitio/models/accounts/origin_response.rb', line 212

required :prefix, String

#typeSymbol, :CLOUDINARY_BACKUP

Parameters:

  • value (:CLOUDINARY_BACKUP)

Returns:

  • (Symbol, :CLOUDINARY_BACKUP)


217
# File 'lib/imagekitio/models/accounts/origin_response.rb', line 217

required :type, const: :CLOUDINARY_BACKUP

#use_iam_roleBoolean?

Whether the origin authenticates using an IAM role instead of access/secret keys.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


230
# File 'lib/imagekitio/models/accounts/origin_response.rb', line 230

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

Instance Method Details

#to_hash{

Returns:

  • ({)


176
# File 'sig/imagekitio/models/accounts/origin_response.rbs', line 176

def to_hash: -> {