UNPKG

1.94 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.MAX_NUMBER_USER_LABELS = exports.DEFAULT_FAILURE_POLICY = exports.INGRESS_SETTINGS_OPTIONS = exports.VPC_EGRESS_SETTINGS_OPTIONS = exports.VALID_MEMORY_OPTIONS = exports.MAX_TIMEOUT_SECONDS = exports.MIN_TIMEOUT_SECONDS = exports.SUPPORTED_REGIONS = exports.RESET_VALUE = void 0;
4var options_1 = require("../common/options");
5Object.defineProperty(exports, "RESET_VALUE", { enumerable: true, get: function () { return options_1.RESET_VALUE; } });
6/**
7 * List of all regions supported by Cloud Functions.
8 */
9exports.SUPPORTED_REGIONS = [
10 "us-central1",
11 "us-east1",
12 "us-east4",
13 "us-west2",
14 "us-west3",
15 "us-west4",
16 "europe-central2",
17 "europe-west1",
18 "europe-west2",
19 "europe-west3",
20 "europe-west6",
21 "asia-east1",
22 "asia-east2",
23 "asia-northeast1",
24 "asia-northeast2",
25 "asia-northeast3",
26 "asia-south1",
27 "asia-southeast1",
28 "asia-southeast2",
29 "northamerica-northeast1",
30 "southamerica-east1",
31 "australia-southeast1",
32];
33/**
34 * Cloud Functions min timeout value.
35 */
36exports.MIN_TIMEOUT_SECONDS = 0;
37/**
38 * Cloud Functions max timeout value.
39 */
40exports.MAX_TIMEOUT_SECONDS = 540;
41/**
42 * List of available memory options supported by Cloud Functions.
43 */
44exports.VALID_MEMORY_OPTIONS = [
45 "128MB",
46 "256MB",
47 "512MB",
48 "1GB",
49 "2GB",
50 "4GB",
51 "8GB",
52];
53/**
54 * List of available options for VpcConnectorEgressSettings.
55 */
56exports.VPC_EGRESS_SETTINGS_OPTIONS = [
57 "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED",
58 "PRIVATE_RANGES_ONLY",
59 "ALL_TRAFFIC",
60];
61/**
62 * List of available options for IngressSettings.
63 */
64exports.INGRESS_SETTINGS_OPTIONS = [
65 "INGRESS_SETTINGS_UNSPECIFIED",
66 "ALLOW_ALL",
67 "ALLOW_INTERNAL_ONLY",
68 "ALLOW_INTERNAL_AND_GCLB",
69];
70exports.DEFAULT_FAILURE_POLICY = {
71 retry: {},
72};
73exports.MAX_NUMBER_USER_LABELS = 58;