Compute V1 Client - Class CustomerEncryptionKeyProtectedDisk (1.23.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ disk_encryption_keyCustomerEncryptionKey

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

↳ 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

getDiskEncryptionKey

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

Returns
TypeDescription
CustomerEncryptionKey|null

hasDiskEncryptionKey

clearDiskEncryptionKey

setDiskEncryptionKey

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

Parameter
NameDescription
varCustomerEncryptionKey
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

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this