Cloud KMS V1 Client - Class UpgradeKeyTrust (2.11.0)

Reference documentation and code samples for the Cloud KMS V1 Client class UpgradeKeyTrust.

Promotes a key with the AES_WRAPPING purpose to a trusted wrapping key.

The key must be in the ACTIVE state to perform this operation.

Generated from protobuf message google.cloud.kms.v1.SingleTenantHsmInstanceProposal.UpgradeKeyTrust

Namespace

Google \ Cloud \ Kms \ V1 \ SingleTenantHsmInstanceProposal

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the CryptoKeyVersion to promote.

↳ two_factor_public_key_pem string

Required. The public key associated with the 2FA key that will sign the login nonce for this operation.

getName

Required. The name of the CryptoKeyVersion to promote.

Returns
Type Description
string

setName

Required. The name of the CryptoKeyVersion to promote.

Parameter
Name Description
var string
Returns
Type Description
$this

getTwoFactorPublicKeyPem

Required. The public key associated with the 2FA key that will sign the login nonce for this operation.

Returns
Type Description
string

setTwoFactorPublicKeyPem

Required. The public key associated with the 2FA key that will sign the login nonce for this operation.

Parameter
Name Description
var string
Returns
Type Description
$this