Cloud KMS V1 Client - Class CreateCryptoKeyRequest (1.15.3)

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

Request message for KeyManagementService.CreateCryptoKey.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the KeyRing associated with the CryptoKeys.

↳ crypto_key_id string

Required. It must be unique within a KeyRing and match the regular expression [a-zA-Z0-9_-]{1,63}

↳ crypto_key Google\Cloud\Kms\V1\CryptoKey

Required. A CryptoKey with initial field values.

↳ skip_initial_version_creation bool

If set to true, the request will create a CryptoKey without any CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or ImportCryptoKeyVersion before you can use this CryptoKey.

getParent

Required. The name of the KeyRing associated with the CryptoKeys.

Returns
TypeDescription
string

setParent

Required. The name of the KeyRing associated with the CryptoKeys.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCryptoKeyId

Required. It must be unique within a KeyRing and match the regular expression [a-zA-Z0-9_-]{1,63}

Returns
TypeDescription
string

setCryptoKeyId

Required. It must be unique within a KeyRing and match the regular expression [a-zA-Z0-9_-]{1,63}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCryptoKey

Required. A CryptoKey with initial field values.

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

hasCryptoKey

clearCryptoKey

setCryptoKey

Required. A CryptoKey with initial field values.

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

getSkipInitialVersionCreation

If set to true, the request will create a CryptoKey without any CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or ImportCryptoKeyVersion before you can use this CryptoKey.

Returns
TypeDescription
bool

setSkipInitialVersionCreation

If set to true, the request will create a CryptoKey without any CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or ImportCryptoKeyVersion before you can use this CryptoKey.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this