class ProjectsHmacKeys extends Resource (View source)

The "hmacKeys" collection of methods.

Typical usage is:

 $storageService = new Google\Service\Storage(...);
 $hmacKeys = $storageService->projects_hmacKeys;

Methods

create(string $projectId, string $serviceAccountEmail, array $optParams = [])

Creates a new HMAC key for the specified service account. (hmacKeys.create)

delete(string $projectId, string $accessId, array $optParams = [])

Deletes an HMAC key. (hmacKeys.delete)

get(string $projectId, string $accessId, array $optParams = [])

Retrieves an HMAC key's metadata (hmacKeys.get)

listProjectsHmacKeys(string $projectId, array $optParams = [])

Retrieves a list of HMAC keys matching the criteria.

update(string $projectId, string $accessId, HmacKeyMetadata $postBody, array $optParams = [])

Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states. (hmacKeys.update)

Details

HmacKey create(string $projectId, string $serviceAccountEmail, array $optParams = [])

Creates a new HMAC key for the specified service account. (hmacKeys.create)

Parameters

string $projectId

Project ID owning the service account.

string $serviceAccountEmail

Email address of the service account.

array $optParams

Optional parameters.

Return Value

HmacKey

Exceptions

Exception

delete(string $projectId, string $accessId, array $optParams = [])

Deletes an HMAC key. (hmacKeys.delete)

Parameters

string $projectId

Project ID owning the requested key

string $accessId

Name of the HMAC key to be deleted.

array $optParams

Optional parameters.

Exceptions

Exception

HmacKeyMetadata get(string $projectId, string $accessId, array $optParams = [])

Retrieves an HMAC key's metadata (hmacKeys.get)

Parameters

string $projectId

Project ID owning the service account of the requested key.

string $accessId

Name of the HMAC key.

array $optParams

Optional parameters.

Return Value

HmacKeyMetadata

Exceptions

Exception

HmacKeysMetadata listProjectsHmacKeys(string $projectId, array $optParams = [])

Retrieves a list of HMAC keys matching the criteria.

(hmacKeys.listProjectsHmacKeys)

Parameters

string $projectId

Name of the project in which to look for HMAC keys.

array $optParams

Optional parameters.

Return Value

HmacKeysMetadata

Exceptions

Exception

HmacKeyMetadata update(string $projectId, string $accessId, HmacKeyMetadata $postBody, array $optParams = [])

Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states. (hmacKeys.update)

Parameters

string $projectId

Project ID owning the service account of the updated key.

string $accessId

Name of the HMAC key being updated.

HmacKeyMetadata $postBody
array $optParams

Optional parameters.

Return Value

HmacKeyMetadata

Exceptions

Exception