Cloud KMS V1 Client - Class CreateCryptoKeyVersionRequest (2.3.0)

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

Request message for KeyManagementService.CreateCryptoKeyVersion.

Generated from protobuf message google.cloud.kms.v1.CreateCryptoKeyVersionRequest

Namespace

Google \ Cloud \ Kms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

Required. The name of the CryptoKey associated with the CryptoKeyVersions.

↳ crypto_key_versionCryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

getParent

Required. The name of the CryptoKey associated with the CryptoKeyVersions.

Returns
TypeDescription
string

setParent

Required. The name of the CryptoKey associated with the CryptoKeyVersions.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Returns
TypeDescription
CryptoKeyVersion|null

hasCryptoKeyVersion

clearCryptoKeyVersion

setCryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Parameter
NameDescription
varCryptoKeyVersion
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parentstring

Required. The name of the CryptoKey associated with the CryptoKeyVersions. Please see KeyManagementServiceClient::cryptoKeyName() for help formatting this field.

cryptoKeyVersionCryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Returns
TypeDescription
CreateCryptoKeyVersionRequest