ProjectsLocationsKeys
class ProjectsLocationsKeys extends Resource (View source)
The "keys" collection of methods.
Typical usage is:
$apikeysService = new Google\Service\ApiKeysService(...);
$keys = $apikeysService->projects_locations_keys;
Methods
Deletes an API key. Deleted key can be retrieved within 30 days of deletion.
Gets the metadata for an API key. The key string of the API key isn't
included in the response. NOTE: Key is a global resource; hence the only
supported value for location is global
. (keys.get)
Get the key string for an API key. NOTE: Key is a global resource; hence the
only supported value for location is global
. (keys.getKeyString)
Lists the API keys owned by a project. The key string of the API key isn't
included in the response. NOTE: Key is a global resource; hence the only
supported value for location is global
. (keys.listProjectsLocationsKeys)
Undeletes an API key which was deleted within 30 days. NOTE: Key is a global
resource; hence the only supported value for location is global
.
Details
Operation
create(string $parent, V2Key $postBody, array $optParams = [])
Creates a new API key. NOTE: Key is a global resource; hence the only
supported value for location is global
. (keys.create)
Operation
delete(string $name, array $optParams = [])
Deletes an API key. Deleted key can be retrieved within 30 days of deletion.
Afterward, key will be purged from the project. NOTE: Key is a global
resource; hence the only supported value for location is global
.
(keys.delete)
V2Key
get(string $name, array $optParams = [])
Gets the metadata for an API key. The key string of the API key isn't
included in the response. NOTE: Key is a global resource; hence the only
supported value for location is global
. (keys.get)
V2GetKeyStringResponse
getKeyString(string $name, array $optParams = [])
Get the key string for an API key. NOTE: Key is a global resource; hence the
only supported value for location is global
. (keys.getKeyString)
V2ListKeysResponse
listProjectsLocationsKeys(string $parent, array $optParams = [])
Lists the API keys owned by a project. The key string of the API key isn't
included in the response. NOTE: Key is a global resource; hence the only
supported value for location is global
. (keys.listProjectsLocationsKeys)
Operation
patch(string $name, V2Key $postBody, array $optParams = [])
Patches the modifiable fields of an API key. The key string of the API key
isn't included in the response. NOTE: Key is a global resource; hence the
only supported value for location is global
. (keys.patch)
Operation
undelete(string $name, V2UndeleteKeyRequest $postBody, array $optParams = [])
Undeletes an API key which was deleted within 30 days. NOTE: Key is a global
resource; hence the only supported value for location is global
.
(keys.undelete)