Class: Google::Apis::ComputeV1::CustomerEncryptionKeyProtectedDisk

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

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) ⇒ CustomerEncryptionKeyProtectedDisk

Returns a new instance of CustomerEncryptionKeyProtectedDisk.


1358
1359
1360
# File 'generated/google/apis/compute_v1/classes.rb', line 1358

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

Instance Attribute Details

#disk_encryption_keyGoogle::Apis::ComputeV1::CustomerEncryptionKey

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


1350
1351
1352
# File 'generated/google/apis/compute_v1/classes.rb', line 1350

def disk_encryption_key
  @disk_encryption_key
end

#sourceString

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

Returns:

  • (String)

1356
1357
1358
# File 'generated/google/apis/compute_v1/classes.rb', line 1356

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1363
1364
1365
1366
# File 'generated/google/apis/compute_v1/classes.rb', line 1363

def update!(**args)
  @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
  @source = args[:source] if args.key?(:source)
end