Reference documentation and code samples for the Compute V1 Client class SourceDiskEncryptionKey.
Generated from protobuf message google.cloud.compute.v1.SourceDiskEncryptionKey
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ disk_encryption_key |
Google\Cloud\Compute\V1\CustomerEncryptionKey
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. |
↳ source_disk |
string
URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk |
getDiskEncryptionKey
The customer-supplied encryption key of the source disk. Required if the source disk is protected by 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
The customer-supplied encryption key of the source disk. Required if the source disk is protected by 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 |
getSourceDisk
URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
Generated from protobuf field optional string source_disk = 451753793;
Returns | |
---|---|
Type | Description |
string |
hasSourceDisk
clearSourceDisk
setSourceDisk
URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
Generated from protobuf field optional string source_disk = 451753793;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |