Class: Google::Apis::ComputeBeta::SourceDiskEncryptionKey
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::SourceDiskEncryptionKey
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Instance Attribute Summary collapse
-
#disk_encryption_key ⇒ Google::Apis::ComputeBeta::CustomerEncryptionKey
Represents a customer-supplied encryption key Corresponds to the JSON property
diskEncryptionKey
. -
#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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SourceDiskEncryptionKey
Returns a new instance of SourceDiskEncryptionKey.
27927 27928 27929 |
# File 'generated/google/apis/compute_beta/classes.rb', line 27927 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_encryption_key ⇒ Google::Apis::ComputeBeta::CustomerEncryptionKey
Represents a customer-supplied encryption key
Corresponds to the JSON property diskEncryptionKey
27916 27917 27918 |
# File 'generated/google/apis/compute_beta/classes.rb', line 27916 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
27925 27926 27927 |
# File 'generated/google/apis/compute_beta/classes.rb', line 27925 def source_disk @source_disk end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
27932 27933 27934 27935 |
# File 'generated/google/apis/compute_beta/classes.rb', line 27932 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 |