APIKeys
import { APIKeys } from "https://googleapis.deno.dev/v1/apikeys:v2.ts";
Manages the API keys associated with developer projects.
§Methods
Find the parent project and resource name of the API key that matches the
key string in the request. If the API key has been purged, resource name
will not be set. The service account must have the apikeys.keys.lookup
permission on the parent project.
Creates a new API key. NOTE: Key is a global resource; hence the only
supported value for location is global
.
Required. The project in which the API key is created.
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
.
Required. The resource name of the API key to be deleted.
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
.
Required. The resource name of the API key to get.
Get the key string for an API key. NOTE: Key is a global resource; hence
the only supported value for location is global
.
Required. The resource name of the API key to be retrieved.
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
.
Required. Lists all API keys associated with this project.
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
.
Output only. The resource name of the key. The name
has the form: projects//locations/global/keys/
. For example: projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2
NOTE: Key is a global resource; hence the only supported value for location is global
.