Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class KeyManager.
Manage KMS keys used for system tests.
Methods
__construct
Parameters
Name
Description
keyFile
array
serviceAccountEmail
mixed
projectId
mixed
location
mixed
setServiceAccountEmail
Set the service account email used for IAM management.
Parameter
Name
Description
serviceAccountEmail
string
setLocation
Set keyring location.
Location name may be in upper or lower case.
Parameter
Name
Description
location
string
getProject
Get the project data.
Parameter
Name
Description
projectId
string
[optional] If not provided, uses ID given in
constructor or keyfile.
Returns
Type
Description
array
getKeyNames
A helper to get KMS keys and set correct permissions.
[[["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,[]]