Compute V1 Client - Class SourceDiskEncryptionKey (1.6.1)

Reference documentation and code samples for the Compute V1 Client class SourceDiskEncryptionKey.

Generated from protobuf message google.cloud.compute.v1.SourceDiskEncryptionKey

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ disk_encryption_key Google\Cloud\Compute\V1\CustomerEncryptionKey

The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.

↳ 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

getDiskEncryptionKey

The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.

Returns
TypeDescription
Google\Cloud\Compute\V1\CustomerEncryptionKey|null

hasDiskEncryptionKey

clearDiskEncryptionKey

setDiskEncryptionKey

The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.

Parameter
NameDescription
var Google\Cloud\Compute\V1\CustomerEncryptionKey
Returns
TypeDescription
$this

getSourceDisk

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

Returns
TypeDescription
string

hasSourceDisk

clearSourceDisk

setSourceDisk

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this