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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ disk_encryption_key |
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 | |
---|---|
Type | Description |
CustomerEncryptionKey|null |
hasDiskEncryptionKey
clearDiskEncryptionKey
setDiskEncryptionKey
Decrypts data associated with the disk with a customer-supplied encryption key.
Parameter | |
---|---|
Name | Description |
var |
CustomerEncryptionKey
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |