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
Namespace
Google \ Cloud \ Kms \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
↳ crypto_key_id
string
Required. It must be unique within a KeyRing and match the regular expression [a-zA-Z0-9_-]{1,63}
↳ 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 .
string
setParent
Required. The name of the KeyRing associated with the CryptoKeys .
var
string
$this
getCryptoKeyId
Required. It must be unique within a KeyRing and match the regular
expression [a-zA-Z0-9_-]{1,63}
string
setCryptoKeyId
Required. It must be unique within a KeyRing and match the regular
expression [a-zA-Z0-9_-]{1,63}
var
string
$this
getCryptoKey
Required. A CryptoKey with initial field values.
hasCryptoKey
clearCryptoKey
setCryptoKey
Required. A CryptoKey with initial field values.
$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 .
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 .
var
bool
$this
static::build
parent
string
Required. The name of the KeyRing associated with the CryptoKeys . Please see KeyManagementServiceClient::keyRingName() for help formatting this field.
cryptoKeyId
string
Required. It must be unique within a KeyRing and match the regular
expression [a-zA-Z0-9_-]{1,63}