Class: Google::Apis::ComputeV1::SourceDiskEncryptionKey
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::SourceDiskEncryptionKey
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#disk_encryption_key ⇒ Google::Apis::ComputeV1::CustomerEncryptionKey
The customer-supplied encryption key of the source disk.
-
#source_disk ⇒ String
URL of the disk attached to the source instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceDiskEncryptionKey
constructor
A new instance of SourceDiskEncryptionKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SourceDiskEncryptionKey
Returns a new instance of SourceDiskEncryptionKey.
39787 39788 39789 |
# File 'lib/google/apis/compute_v1/classes.rb', line 39787 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_encryption_key ⇒ Google::Apis::ComputeV1::CustomerEncryptionKey
The customer-supplied encryption key of the source disk. Required if the
source disk is protected by a customer-supplied encryption key.
Corresponds to the JSON property diskEncryptionKey
39777 39778 39779 |
# File 'lib/google/apis/compute_v1/classes.rb', line 39777 def disk_encryption_key @disk_encryption_key end |
#source_disk ⇒ String
URL of the disk attached to the source instance. This can be a full or valid
partial URL. For example, the following are valid values: - https://www.
googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/
project/zones/zone/disks/disk - zones/zone/disks/disk
Corresponds to the JSON property sourceDisk
39785 39786 39787 |
# File 'lib/google/apis/compute_v1/classes.rb', line 39785 def source_disk @source_disk end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
39792 39793 39794 39795 |
# File 'lib/google/apis/compute_v1/classes.rb', line 39792 def update!(**args) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @source_disk = args[:source_disk] if args.key?(:source_disk) end |