Class: Google::Apis::ComputeAlpha::CustomerEncryptionKeyProtectedDisk
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CustomerEncryptionKeyProtectedDisk
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#disk_encryption_key ⇒ Google::Apis::ComputeAlpha::CustomerEncryptionKey
Decrypts data associated with the disk with a customer-supplied encryption key.
-
#source ⇒ String
Specifies a valid partial or full URL to an existing Persistent Disk resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomerEncryptionKeyProtectedDisk
constructor
A new instance of CustomerEncryptionKeyProtectedDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomerEncryptionKeyProtectedDisk
Returns a new instance of CustomerEncryptionKeyProtectedDisk.
6445 6446 6447 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6445 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_encryption_key ⇒ Google::Apis::ComputeAlpha::CustomerEncryptionKey
Decrypts data associated with the disk with a customer-supplied encryption key.
Corresponds to the JSON property diskEncryptionKey
6436 6437 6438 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6436 def disk_encryption_key @disk_encryption_key end |
#source ⇒ String
Specifies a valid partial or full URL to an existing Persistent Disk resource.
This field is only applicable for persistent disks. For example: "source": "/
compute/v1/projects/project_id/zones/zone/disks/ disk_name
Corresponds to the JSON property source
6443 6444 6445 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6443 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6450 6451 6452 6453 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 6450 def update!(**args) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @source = args[:source] if args.key?(:source) end |