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

Traffic

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

Controls traffic configuration for the backend.

interface Traffic {
annotations?: {
[key: string]: string;
}
;
readonly createTime?: Date;
readonly current?: TrafficSet;
readonly etag?: string;
labels?: {
[key: string]: string;
}
;
name?: string;
readonly reconciling?: boolean;
rolloutPolicy?: RolloutPolicy;
target?: TrafficSet;
readonly uid?: string;
readonly updateTime?: Date;
}

§Properties

§
annotations?: {
[key: string]: string;
}
[src]

Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

§
readonly createTime?: Date
[src]

Output only. Time at which the backend was created.

§
readonly current?: TrafficSet
[src]

Output only. Current state of traffic allocation for the backend. When setting target, this field may differ for some time until the desired state is reached.

§
readonly etag?: string
[src]

Output only. Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.

§
labels?: {
[key: string]: string;
}
[src]

Optional. Unstructured key value map that can be used to organize and categorize objects.

§
name?: string
[src]

Identifier. The resource name of the backend's traffic. Format: projects/{project}/locations/{locationId}/backends/{backendId}/traffic.

§
readonly reconciling?: boolean
[src]

Output only. A field that, if true, indicates that the system is working to make the backend's current match the requested target list.

§
rolloutPolicy?: RolloutPolicy
[src]

A rollout policy specifies how new builds and automatic deployments are created.

§

Set to manually control the desired traffic for the backend. This will cause current to eventually match this value. The percentages must add up to 100%.

§
readonly uid?: string
[src]

Output only. System-assigned, unique identifier.

§
readonly updateTime?: Date
[src]

Output only. Time at which the backend was last updated.