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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerEncryptionKeyProtectedDisk

Returns a new instance of CustomerEncryptionKeyProtectedDisk.



6393
6394
6395
# File 'lib/google/apis/compute_v1/classes.rb', line 6393

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

Instance Attribute Details

#disk_encryption_keyGoogle::Apis::ComputeV1::CustomerEncryptionKey

Decrypts data associated with the disk with a customer-supplied encryption key. Corresponds to the JSON property diskEncryptionKey



6384
6385
6386
# File 'lib/google/apis/compute_v1/classes.rb', line 6384

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. For example: "source": "/ compute/v1/projects/project_id/zones/zone/disks/ disk_name Corresponds to the JSON property source

Returns:

  • (String)


6391
6392
6393
# File 'lib/google/apis/compute_v1/classes.rb', line 6391

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6398
6399
6400
6401
# File 'lib/google/apis/compute_v1/classes.rb', line 6398

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