Class: Google::Apis::StorageV1::Bucket::Encryption
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::StorageV1::Bucket::Encryption
 
 
- 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 for a bucket.
Instance Attribute Summary collapse
- 
  
    
      #default_kms_key_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Encryption 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Encryption.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Encryption
Returns a new instance of Encryption
      284 285 286  | 
    
      # File 'generated/google/apis/storage_v1/classes.rb', line 284 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#default_kms_key_name ⇒ String
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
      282 283 284  | 
    
      # File 'generated/google/apis/storage_v1/classes.rb', line 282 def default_kms_key_name @default_kms_key_name end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      289 290 291  | 
    
      # File 'generated/google/apis/storage_v1/classes.rb', line 289 def update!(**args) @default_kms_key_name = args[:default_kms_key_name] if args.key?(:default_kms_key_name) end  |