Class: Google::Apis::ComputeBeta::SourceDiskEncryptionKey

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceDiskEncryptionKey

Returns a new instance of SourceDiskEncryptionKey.



27853
27854
27855
# File 'generated/google/apis/compute_beta/classes.rb', line 27853

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

Instance Attribute Details

#disk_encryption_keyGoogle::Apis::ComputeBeta::CustomerEncryptionKey

Represents a customer-supplied encryption key Corresponds to the JSON property diskEncryptionKey



27842
27843
27844
# File 'generated/google/apis/compute_beta/classes.rb', line 27842

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:

Returns:

  • (String)


27851
27852
27853
# File 'generated/google/apis/compute_beta/classes.rb', line 27851

def source_disk
  @source_disk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27858
27859
27860
27861
# File 'generated/google/apis/compute_beta/classes.rb', line 27858

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