Generated from protobuf message google.cloud.kms.v1.KeyAccessJustificationsPolicy
Namespace
Google \ Cloud \ Kms \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ allowed_access_reasons
array
The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail.
getAllowedAccessReasons
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
The list of allowed reasons for access to a
CryptoKey. Zero allowed access reasons
means all encrypt, decrypt, and sign operations for the
CryptoKey associated with this policy will
fail.
[[["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,["# Cloud KMS V1 Client - Class KeyAccessJustificationsPolicy (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-kms/latest/V1.KeyAccessJustificationsPolicy)\n- [2.3.0](/php/docs/reference/cloud-kms/2.3.0/V1.KeyAccessJustificationsPolicy)\n- [2.2.0](/php/docs/reference/cloud-kms/2.2.0/V1.KeyAccessJustificationsPolicy)\n- [2.1.6](/php/docs/reference/cloud-kms/2.1.6/V1.KeyAccessJustificationsPolicy)\n- [2.0.0](/php/docs/reference/cloud-kms/2.0.0/V1.KeyAccessJustificationsPolicy)\n- [1.23.0](/php/docs/reference/cloud-kms/1.23.0/V1.KeyAccessJustificationsPolicy)\n- [1.22.1](/php/docs/reference/cloud-kms/1.22.1/V1.KeyAccessJustificationsPolicy)\n- [1.21.4](/php/docs/reference/cloud-kms/1.21.4/V1.KeyAccessJustificationsPolicy)\n- [1.20.3](/php/docs/reference/cloud-kms/1.20.3/V1.KeyAccessJustificationsPolicy)\n- [1.19.0](/php/docs/reference/cloud-kms/1.19.0/V1.KeyAccessJustificationsPolicy)\n- [1.18.1](/php/docs/reference/cloud-kms/1.18.1/V1.KeyAccessJustificationsPolicy)\n- [1.17.0](/php/docs/reference/cloud-kms/1.17.0/V1.KeyAccessJustificationsPolicy)\n- [1.16.4](/php/docs/reference/cloud-kms/1.16.4/V1.KeyAccessJustificationsPolicy)\n- [1.15.3](/php/docs/reference/cloud-kms/1.15.3/V1.KeyAccessJustificationsPolicy) \nReference documentation and code samples for the Cloud KMS V1 Client class KeyAccessJustificationsPolicy.\n\nA\n[KeyAccessJustificationsPolicy](/php/docs/reference/cloud-kms/latest/V1.KeyAccessJustificationsPolicy)\nspecifies zero or more allowed\n[AccessReason](/php/docs/reference/cloud-kms/latest/V1.AccessReason) values for encrypt, decrypt,\nand sign operations on a [CryptoKey](/php/docs/reference/cloud-kms/latest/V1.CryptoKey).\n\nGenerated from protobuf message `google.cloud.kms.v1.KeyAccessJustificationsPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Kms \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAllowedAccessReasons\n\nThe list of allowed reasons for access to a\n[CryptoKey](/php/docs/reference/cloud-kms/latest/V1.CryptoKey). Zero allowed access reasons\nmeans all encrypt, decrypt, and sign operations for the\n[CryptoKey](/php/docs/reference/cloud-kms/latest/V1.CryptoKey) associated with this policy will\nfail.\n\n### setAllowedAccessReasons\n\nThe list of allowed reasons for access to a\n[CryptoKey](/php/docs/reference/cloud-kms/latest/V1.CryptoKey). Zero allowed access reasons\nmeans all encrypt, decrypt, and sign operations for the\n[CryptoKey](/php/docs/reference/cloud-kms/latest/V1.CryptoKey) associated with this policy will\nfail."]]