Compute V1 Client - Class CustomerEncryptionKeyProtectedDisk (1.12.1)

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
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.

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

hasDiskEncryptionKey

clearDiskEncryptionKey

setDiskEncryptionKey

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

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

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
var string
Returns
TypeDescription
$this