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.
Namespace
Google \ Cloud \ Core \ Testing \ SystemMethods
__construct
keyFile
array
serviceAccountEmail
mixed
projectId
mixed
location
mixed
setServiceAccountEmail
Set the service account email used for IAM management.
serviceAccountEmail
string
setLocation
Set keyring location.
Location name may be in upper or lower case.
location
string
getProject
Get the project data.
projectId
string
[optional] If not provided, uses ID given in constructor or keyfile.
array
getKeyNames
A helper to get KMS keys and set correct permissions.
keyRingId
string
keyIds
string[]
array
Constants
DEFAULT_LOCATION
Value: 'us-west1'