Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class KeyManager (1.60.1)

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 \ System

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.

Parameters
Name
Description
keyRingId
string
keyIds
string[]
Returns
Type
Description
array

Constants

DEFAULT_LOCATION

  Value: 'us-west1' 
 
Design a Mobile Site
View Site in Mobile | Classic
Share by: