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

V2Restrictions

import type { V2Restrictions } from "https://googleapis.deno.dev/v1/apikeys:v2.ts";

Describes the restrictions on the key.

interface V2Restrictions {
androidKeyRestrictions?: V2AndroidKeyRestrictions;
apiTargets?: V2ApiTarget[];
browserKeyRestrictions?: V2BrowserKeyRestrictions;
iosKeyRestrictions?: V2IosKeyRestrictions;
serverKeyRestrictions?: V2ServerKeyRestrictions;
}

§Properties

§
androidKeyRestrictions?: V2AndroidKeyRestrictions
[src]

The Android apps that are allowed to use the key.

§
apiTargets?: V2ApiTarget[]
[src]

A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.

§
browserKeyRestrictions?: V2BrowserKeyRestrictions
[src]

The HTTP referrers (websites) that are allowed to use the key.

§
iosKeyRestrictions?: V2IosKeyRestrictions
[src]

The iOS apps that are allowed to use the key.

§
serverKeyRestrictions?: V2ServerKeyRestrictions
[src]

The IP addresses of callers that are allowed to use the key.