Class: Google::Apis::ComputeAlpha::SourceDiskEncryptionKey

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceDiskEncryptionKey

Returns a new instance of SourceDiskEncryptionKey.



38327
38328
38329
# File 'lib/google/apis/compute_alpha/classes.rb', line 38327

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

Instance Attribute Details

#disk_encryption_keyGoogle::Apis::ComputeAlpha::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



38317
38318
38319
# File 'lib/google/apis/compute_alpha/classes.rb', line 38317

def disk_encryption_key
  @disk_encryption_key
end

#source_diskString

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

Returns:

  • (String)


38325
38326
38327
# File 'lib/google/apis/compute_alpha/classes.rb', line 38325

def source_disk
  @source_disk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



38332
38333
38334
38335
# File 'lib/google/apis/compute_alpha/classes.rb', line 38332

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