class ProjectsLocations extends Resource (View source)

The "locations" collection of methods.

Typical usage is:

 $cloudkmsService = new Google\Service\CloudKMS(...);
 $locations = $cloudkmsService->projects_locations;

Methods

generateRandomBytes(string $location, GenerateRandomBytesRequest $postBody, array $optParams = [])

Generate random bytes using the Cloud KMS randomness source in the provided location. (locations.generateRandomBytes)

get(string $name, array $optParams = [])

Gets information about a location. (locations.get)

getEkmConfig(string $name, array $optParams = [])

Returns the EkmConfig singleton resource for a given project and location.

listProjectsLocations(string $name, array $optParams = [])

Lists information about the supported locations for this service.

updateEkmConfig(string $name, EkmConfig $postBody, array $optParams = [])

Updates the EkmConfig singleton resource for a given project and location.

Details

GenerateRandomBytesResponse generateRandomBytes(string $location, GenerateRandomBytesRequest $postBody, array $optParams = [])

Generate random bytes using the Cloud KMS randomness source in the provided location. (locations.generateRandomBytes)

Parameters

string $location

The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".

GenerateRandomBytesRequest $postBody
array $optParams

Optional parameters.

Return Value

GenerateRandomBytesResponse

Exceptions

Exception

Location get(string $name, array $optParams = [])

Gets information about a location. (locations.get)

Parameters

string $name

Resource name for the location.

array $optParams

Optional parameters.

Return Value

Location

Exceptions

Exception

EkmConfig getEkmConfig(string $name, array $optParams = [])

Returns the EkmConfig singleton resource for a given project and location.

(locations.getEkmConfig)

Parameters

string $name

Required. The name of the EkmConfig to get.

array $optParams

Optional parameters.

Return Value

EkmConfig

Exceptions

Exception

ListLocationsResponse listProjectsLocations(string $name, array $optParams = [])

Lists information about the supported locations for this service.

(locations.listProjectsLocations)

Parameters

string $name

The resource that owns the locations collection, if applicable.

array $optParams

Optional parameters.

Return Value

ListLocationsResponse

Exceptions

Exception

EkmConfig updateEkmConfig(string $name, EkmConfig $postBody, array $optParams = [])

Updates the EkmConfig singleton resource for a given project and location.

(locations.updateEkmConfig)

Parameters

string $name

Output only. The resource name for the EkmConfig in the format projects/locations/ekmConfig.

EkmConfig $postBody
array $optParams

Optional parameters.

Return Value

EkmConfig

Exceptions

Exception