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
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
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
Type
Description
string
hasCloudKmsKeyVersion
setCloudKmsKeyVersion
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
Name
Description
var
string
Returns
Type
Description
$this
getAlgorithm
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
Type
Description
int
hasAlgorithm
setAlgorithm
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Certificate Authority Service V1 Client - Class KeyVersionSpec (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority.KeyVersionSpec)\n- [2.1.0](/php/docs/reference/cloud-security-private-ca/2.1.0/V1.CertificateAuthority.KeyVersionSpec)\n- [2.0.3](/php/docs/reference/cloud-security-private-ca/2.0.3/V1.CertificateAuthority.KeyVersionSpec)\n- [1.7.3](/php/docs/reference/cloud-security-private-ca/1.7.3/V1.CertificateAuthority.KeyVersionSpec)\n- [1.5.0](/php/docs/reference/cloud-security-private-ca/1.5.0/V1.CertificateAuthority.KeyVersionSpec)\n- [1.4.2](/php/docs/reference/cloud-security-private-ca/1.4.2/V1.CertificateAuthority.KeyVersionSpec)\n- [1.3.1](/php/docs/reference/cloud-security-private-ca/1.3.1/V1.CertificateAuthority.KeyVersionSpec)\n- [1.2.2](/php/docs/reference/cloud-security-private-ca/1.2.2/V1.CertificateAuthority.KeyVersionSpec)\n- [1.1.0](/php/docs/reference/cloud-security-private-ca/1.1.0/V1.CertificateAuthority.KeyVersionSpec)\n- [1.0.3](/php/docs/reference/cloud-security-private-ca/1.0.3/V1.CertificateAuthority.KeyVersionSpec) \nReference documentation and code samples for the Google Certificate Authority Service V1 Client class KeyVersionSpec.\n\nA Cloud KMS key configuration that a\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nwill use.\n\nGenerated from protobuf message `google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Security \\\\ PrivateCA \\\\ V1 \\\\ CertificateAuthority\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCloudKmsKeyVersion\n\nThe resource name for an existing Cloud KMS CryptoKeyVersion in the\nformat\n`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.\n\nThis option enables full flexibility in the key's capabilities and\nproperties.\n\n### hasCloudKmsKeyVersion\n\n### setCloudKmsKeyVersion\n\nThe resource name for an existing Cloud KMS CryptoKeyVersion in the\nformat\n`projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.\n\nThis option enables full flexibility in the key's capabilities and\nproperties.\n\n### getAlgorithm\n\nThe algorithm to use for creating a managed Cloud KMS key for a for a\nsimplified experience. All managed keys will be have their\nProtectionLevel as `HSM`.\n\n### hasAlgorithm\n\n### setAlgorithm\n\nThe algorithm to use for creating a managed Cloud KMS key for a for a\nsimplified experience. All managed keys will be have their\nProtectionLevel as `HSM`.\n\n### getKeyVersion"]]