Cloud KMS V1 Client - Class CreateCryptoKeyVersionRequest (1.22.1)

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
Name Description
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
Type Description
string

setParent

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

Parameter
Name Description
var string
Returns
Type Description
$this

getCryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Returns
Type Description
Google\Cloud\Kms\V1\CryptoKeyVersion|null

hasCryptoKeyVersion

clearCryptoKeyVersion

setCryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Parameter
Name Description
var Google\Cloud\Kms\V1\CryptoKeyVersion
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

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

cryptoKeyVersion Google\Cloud\Kms\V1\CryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Returns
Type Description
Google\Cloud\Kms\V1\CreateCryptoKeyVersionRequest