Compute V1 Client - Class RegionSnapshotUpdateKmsKeyRequest (2.9.0)

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

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

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 snapshot. If empty, the snapshot will be re-encrypted using the primary version of the snapshot's current KMS key. The KMS key can be provided in the following formats: - projects/project_id/locations/region/keyRings/region/cryptoKeys/key

getKmsKeyName

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

The KMS key can be provided in the following formats:

  • projects/project_id/locations/region/keyRings/region/cryptoKeys/key
Returns
Type Description
string

hasKmsKeyName

clearKmsKeyName

setKmsKeyName

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

The KMS key can be provided in the following formats:

  • projects/project_id/locations/region/keyRings/region/cryptoKeys/key
Parameter
Name Description
var string
Returns
Type Description
$this