Class: Google::Apis::ComputeV1::CustomerEncryptionKeyProtectedDisk
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::CustomerEncryptionKeyProtectedDisk
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#disk_encryption_key ⇒ Google::Apis::ComputeV1::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.
4662 4663 4664 |
# File 'generated/google/apis/compute_v1/classes.rb', line 4662 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_encryption_key ⇒ Google::Apis::ComputeV1::CustomerEncryptionKey
Decrypts data associated with the disk with a customer-supplied encryption key.
Corresponds to the JSON property diskEncryptionKey
4654 4655 4656 |
# File 'generated/google/apis/compute_v1/classes.rb', line 4654 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.
Corresponds to the JSON property source
4660 4661 4662 |
# File 'generated/google/apis/compute_v1/classes.rb', line 4660 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4667 4668 4669 4670 |
# File 'generated/google/apis/compute_v1/classes.rb', line 4667 def update!(**args) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @source = args[:source] if args.key?(:source) end |