Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class KeyManager (1.69.0)
Stay organized with collections
Save and categorize content based on your preferences.
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
| 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'