-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathindex.d.ts
189 lines (187 loc) · 4.62 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export type ErrorCode = string;
export type CloudFunctionRuntime =
| 'nodejs6'
| 'nodejs8'
| 'nodejs10'
| 'nodejs12'
| 'nodejs14'
| 'nodejs16'
| 'python37'
| 'python38'
| 'python39'
| 'go111'
| 'go113'
| 'go116'
| 'java11'
| 'dotnet3'
| 'ruby26'
| 'ruby27';
export type CloudFunctionMemory = 128 | 256 | 512 | 1024 | 2048 | 4096;
export type CloudFunctionVpcEgress = 'ALL' | 'ALL_TRAFFIC' | 'PRIVATE' | 'PRIVATE_RANGES_ONLY';
export type CloudFunctionRegion =
| 'us-central1'
| 'us-east1'
| 'us-east4'
| 'europe-west1'
| 'europe-west2'
| 'asia-east1'
| 'asia-east2'
| 'asia-northeast1'
| 'asia-northeast2'
| 'us-west2'
| 'us-west3'
| 'us-west4'
| 'northamerica-northeast1'
| 'southamerica-east1'
| 'europe-west3'
| 'europe-west6'
| 'europe-central2'
| 'australia-southeast1'
| 'asia-south1'
| 'asia-southeast1'
| 'asia-southeast2'
| 'asia-northeast3';
export type ServiceName = string;
export interface GCP {
configValidationMode?: 'error' | 'warn' | 'off';
console?:
| boolean
| {
monitoring?: {
logs?: {
disabled?: boolean;
};
request?: {
disabled?: boolean;
};
response?: {
disabled?: boolean;
};
};
org?: string;
};
custom?: {
[k: string]: unknown;
};
dashboard?: {
disableMonitoring?: boolean;
};
deprecationNotificationMode?: 'error' | 'warn' | 'warn:summary';
disabledDeprecations?: '*' | ErrorCode[];
frameworkVersion?: string;
functions?: {
/**
* This interface was referenced by `undefined`'s JSON-Schema definition
* via the `patternProperty` "^[a-zA-Z0-9-_]+$".
*/
[k: string]: {
name?: string;
events?: (
| {
__schemaWorkaround__: null;
}
| {
http: string;
}
| {
event: {
eventType: string;
path?: string;
resource: string;
failurePolicy?: {
retry?: {
[k: string]: unknown;
};
};
};
}
)[];
handler?: string;
runtime?: CloudFunctionRuntime;
serviceAccountEmail?: string;
memorySize?: CloudFunctionMemory;
timeout?: string;
minInstances?: number;
environment?: CloudFunctionEnvironmentVariables;
secrets?: CloudFunctionSecretEnvironmentVariables;
vpc?: string;
vpcEgress?: CloudFunctionVpcEgress;
labels?: ResourceManagerLabels;
};
};
package?: {
artifact?: string;
exclude?: string[];
excludeDevDependencies?: boolean;
include?: string[];
individually?: boolean;
path?: string;
patterns?: string[];
};
params?: {
/**
* This interface was referenced by `undefined`'s JSON-Schema definition
* via the `patternProperty` "^[a-zA-Z0-9-]+$".
*/
[k: string]: {
[k: string]: unknown;
};
};
plugins?:
| {
localPath?: string;
modules: string[];
}
| string[];
projectDir?: string;
provider: {
name: 'google';
credentials?: string;
project?: string;
region?: CloudFunctionRegion;
runtime?: CloudFunctionRuntime;
serviceAccountEmail?: string;
memorySize?: CloudFunctionMemory;
timeout?: string;
environment?: CloudFunctionEnvironmentVariables;
secrets?: CloudFunctionSecretEnvironmentVariables;
vpc?: string;
vpcEgress?: CloudFunctionVpcEgress;
labels?: ResourceManagerLabels;
stage?: string;
};
service: ServiceName;
useDotenv?: true;
variablesResolutionMode?: '20210219' | '20210326';
}
export interface CloudFunctionEnvironmentVariables {
/**
* This interface was referenced by `CloudFunctionEnvironmentVariables`'s JSON-Schema definition
* via the `patternProperty` "^.*$".
*/
[k: string]: string;
}
export interface CloudFunctionSecretEnvironmentVariables {
/**
* This interface was referenced by `CloudFunctionSecretEnvironmentVariables`'s JSON-Schema definition
* via the `patternProperty` "^[a-zA-Z0-9_]+$".
*/
[k: string]: {
projectId?: string;
secret: string;
version: string;
[k: string]: unknown;
};
}
export interface ResourceManagerLabels {
/**
* This interface was referenced by `ResourceManagerLabels`'s JSON-Schema definition
* via the `patternProperty` "^[a-z][a-z0-9_.]*$".
*/
[k: string]: string;
}