Google Certificate Authority Service V1beta1 Client - Class KeyVersionSpec (1.1.0)

Reference documentation and code samples for the Google Certificate Authority Service V1beta1 Client class KeyVersionSpec.

A Cloud KMS key configuration that a CertificateAuthority will use.

Generated from protobuf message google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ cloud_kms_key_version string

Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*. This option enables full flexibility in the key's capabilities and properties.

↳ algorithm int

Required. The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as HSM.

getCloudKmsKeyVersion

Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.

This option enables full flexibility in the key's capabilities and properties.

Returns
TypeDescription
string

hasCloudKmsKeyVersion

setCloudKmsKeyVersion

Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the format projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*.

This option enables full flexibility in the key's capabilities and properties.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAlgorithm

Required. The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as HSM.

Returns
TypeDescription
int

hasAlgorithm

setAlgorithm

Required. The algorithm to use for creating a managed Cloud KMS key for a for a simplified experience. All managed keys will be have their ProtectionLevel as HSM.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getKeyVersion

Returns
TypeDescription
string