class ProjectsLocationsKeyHandles extends Resource (View source)

The "keyHandles" collection of methods.

Typical usage is:

 $cloudkmsService = new Google\Service\CloudKMS(...);
 $keyHandles = $cloudkmsService->projects_locations_keyHandles;

Methods

create(string $parent, KeyHandle $postBody, array $optParams = [])

Creates a new KeyHandle, triggering the provisioning of a new CryptoKey for CMEK use with the given resource type in the configured key project and the same location. GetOperation should be used to resolve the resulting long- running operation and get the resulting KeyHandle and CryptoKey.

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

Returns the KeyHandle. (keyHandles.get)

listProjectsLocationsKeyHandles(string $parent, array $optParams = [])

Lists KeyHandles. (keyHandles.listProjectsLocationsKeyHandles)

Details

Operation create(string $parent, KeyHandle $postBody, array $optParams = [])

Creates a new KeyHandle, triggering the provisioning of a new CryptoKey for CMEK use with the given resource type in the configured key project and the same location. GetOperation should be used to resolve the resulting long- running operation and get the resulting KeyHandle and CryptoKey.

(keyHandles.create)

Parameters

string $parent

Required. Name of the resource project and location to create the KeyHandle in, e.g. projects/{PROJECT_ID}/locations/{LOCATION}.

KeyHandle $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns the KeyHandle. (keyHandles.get)

Parameters

string $name

Required. Name of the KeyHandle resource, e.g. projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}.

array $optParams

Optional parameters.

Return Value

KeyHandle

Exceptions

Exception

ListKeyHandlesResponse listProjectsLocationsKeyHandles(string $parent, array $optParams = [])

Lists KeyHandles. (keyHandles.listProjectsLocationsKeyHandles)

Parameters

string $parent

Required. Name of the resource project and location from which to list KeyHandles, e.g. projects/{PROJECT_ID}/locations/{LOCATION}.

array $optParams

Optional parameters.

Return Value

ListKeyHandlesResponse

Exceptions

Exception