Class: Imagekitio::Models::Accounts::OriginResponse::S3

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



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

def initialize: (

Instance Attribute Details

#base_url_for_canonical_headerString?

URL used in the Canonical header (if enabled).

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :base_url_for_canonical_header, String, api_name: :baseUrlForCanonicalHeader

#bucketString

S3 bucket name.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :bucket, String

#idString

Returns the value of attribute id.

Returns:

  • (String)


48
49
50
# File 'sig/imagekitio/models/accounts/origin_response.rbs', line 48

def id
  @id
end

#include_canonical_headerBoolean

Whether to send a Canonical header.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


41
42
43
# File 'lib/imagekitio/models/accounts/origin_response.rb', line 41

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

#nameString

Display name of the origin.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

#prefixString

Path prefix inside the bucket.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :prefix, String

#typeSymbol, :S3

Parameters:

  • value (:S3)

Returns:

  • (Symbol, :S3)


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

required :type, const: :S3

#use_iam_roleBoolean?

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

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {