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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\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
Generated from protobuf field optional string source = 177235995;
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
Generated from protobuf field optional string source = 177235995;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |