Class: Google::Apis::ComputeAlpha::CustomerEncryptionKeyProtectedDisk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerEncryptionKeyProtectedDisk

Returns a new instance of CustomerEncryptionKeyProtectedDisk.



5897
5898
5899
# File 'generated/google/apis/compute_alpha/classes.rb', line 5897

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

Instance Attribute Details

#disk_encryption_keyGoogle::Apis::ComputeAlpha::CustomerEncryptionKey

Decrypts data associated with the disk with a customer-supplied encryption key. Corresponds to the JSON property diskEncryptionKey



5889
5890
5891
# File 'generated/google/apis/compute_alpha/classes.rb', line 5889

def disk_encryption_key
  @disk_encryption_key
end

#sourceString

Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. Corresponds to the JSON property source

Returns:

  • (String)


5895
5896
5897
# File 'generated/google/apis/compute_alpha/classes.rb', line 5895

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5902
5903
5904
5905
# File 'generated/google/apis/compute_alpha/classes.rb', line 5902

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