Compute V1 Client - Class RegionDiskUpdateKmsKeyRequest (2.9.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ kms_key_name string

Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be re-encrypted using the primary version of the disk's current KMS key. The KMS key can be provided in the following formats: - projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key Where project is the project ID or project number.

getKmsKeyName

Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be re-encrypted using the primary version of the disk's current KMS key.

The KMS key can be provided in the following formats:

  • projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key Where project is the project ID or project number.
Returns
Type Description
string

hasKmsKeyName

clearKmsKeyName

setKmsKeyName

Optional. The new KMS key to replace the current one on the disk. If empty, the disk will be re-encrypted using the primary version of the disk's current KMS key.

The KMS key can be provided in the following formats:

  • projects/project_id/locations/location/keyRings/key_ring/cryptoKeys/key Where project is the project ID or project number.
Parameter
Name Description
var string
Returns
Type Description
$this