Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudApihubV1ApiKeyConfig

import type { GoogleCloudApihubV1ApiKeyConfig } from "https://googleapis.deno.dev/v1/apihub:v1.ts";

Config for authentication with API key.

interface GoogleCloudApihubV1ApiKeyConfig {
httpElementLocation?:
| "HTTP_ELEMENT_LOCATION_UNSPECIFIED"
| "QUERY"
| "HEADER"
| "PATH"
| "BODY"
| "COOKIE";
name?: string;
}

§Properties

§

Required. The name of the SecretManager secret version resource storing the API key. Format: projects/{project}/secrets/{secrete}/versions/{version}. The secretmanager.versions.access permission should be granted to the service account accessing the secret.

§
httpElementLocation?: "HTTP_ELEMENT_LOCATION_UNSPECIFIED" | "QUERY" | "HEADER" | "PATH" | "BODY" | "COOKIE"
[src]

Required. The location of the API key. The default value is QUERY.

§
name?: string
[src]

Required. The parameter name of the API key. E.g. If the API request is "https://example.com/act?api_key=", "api_key" would be the parameter name.