Cloud KMS V1 Client - Class CreateCryptoKeyVersionRequest (1.17.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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ crypto_key_version Google\Cloud\Kms\V1\CryptoKeyVersion

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
var string
Returns
TypeDescription
$this

getCryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Returns
TypeDescription
Google\Cloud\Kms\V1\CryptoKeyVersion|null

hasCryptoKeyVersion

clearCryptoKeyVersion

setCryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Parameter
NameDescription
var Google\Cloud\Kms\V1\CryptoKeyVersion
Returns
TypeDescription
$this