Cloud KMS V1 Client - Class CreateCryptoKeyVersionRequest (2.1.2)

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 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
CryptoKeyVersion|null

hasCryptoKeyVersion

clearCryptoKeyVersion

setCryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Parameter
Name Description
var CryptoKeyVersion
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

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

cryptoKeyVersion CryptoKeyVersion

Required. A CryptoKeyVersion with initial field values.

Returns
Type Description
CreateCryptoKeyVersionRequest