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

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

Overview

Encryption configuration for a bucket.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Encryption

Returns a new instance of Encryption.



344
345
346
# File 'lib/google/apis/storage_v1/classes.rb', line 344

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

Instance Attribute Details

#default_kms_key_nameString

A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified. Corresponds to the JSON property defaultKmsKeyName

Returns:

  • (String)


342
343
344
# File 'lib/google/apis/storage_v1/classes.rb', line 342

def default_kms_key_name
  @default_kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



349
350
351
# File 'lib/google/apis/storage_v1/classes.rb', line 349

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