Class: Google::Apis::StorageV1::Bucket::Encryption

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/storage_v1/classes.rb,
generated/google/apis/storage_v1/representations.rb,
generated/google/apis/storage_v1/representations.rb

Overview

Encryption configuration used by default for newly inserted objects, when no encryption config is specified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Encryption

Returns a new instance of Encryption.



219
220
221
# File 'generated/google/apis/storage_v1/classes.rb', line 219

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#default_kms_key_nameString

Corresponds to the JSON property default_kms_key_name

Returns:

  • (String)


217
218
219
# File 'generated/google/apis/storage_v1/classes.rb', line 217

def default_kms_key_name
  @default_kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



224
225
226
# File 'generated/google/apis/storage_v1/classes.rb', line 224

def update!(**args)
  @default_kms_key_name = args[:default_kms_key_name] if args.key?(:default_kms_key_name)
end