Compute V1 Client - Class CustomerEncryptionKeyProtectedDisk (1.5.0)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ disk_encryption_key Google\Cloud\Compute\V1\CustomerEncryptionKey

Decrypts data associated with the disk with a customer-supplied encryption key.

↳ source string

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

getDiskEncryptionKey

Decrypts data associated with the disk with a customer-supplied encryption key.

Generated from protobuf field optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

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

hasDiskEncryptionKey

clearDiskEncryptionKey

setDiskEncryptionKey

Decrypts data associated with the disk with a customer-supplied encryption key.

Generated from protobuf field optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

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

getSource

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

Generated from protobuf field optional string source = 177235995;

Returns
TypeDescription
string

hasSource

clearSource

setSource

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

Generated from protobuf field optional string source = 177235995;

Parameter
NameDescription
var string
Returns
TypeDescription
$this