@causa/workspace-google 0.18.0-beta.4 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configurations/generated.d.ts +594 -425
- package/dist/configurations/generated.js +1097 -751
- package/dist/configurations/schemas/events.yaml +2 -0
- package/dist/configurations/schemas/infrastructure.yaml +9 -1
- package/dist/configurations/schemas/secrets.yaml +8 -1
- package/dist/configurations/schemas/serverless-functions.yaml +2 -0
- package/dist/configurations/schemas/service-container.yaml +6 -1
- package/dist/functions/google-firestore/generate-typescript-decorators.js +2 -2
- package/dist/functions/google-spanner/generate-typescript-decorators.js +4 -4
- package/package.json +9 -9
|
@@ -9,31 +9,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
import { AllowMissing } from '@causa/workspace/validation';
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
AllowMissing(),
|
|
21
|
-
IsString(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], Events.prototype, "broker", void 0);
|
|
12
|
+
import { Type } from 'class-transformer';
|
|
13
|
+
import { Allow, IsArray, IsBoolean, IsDefined, IsIn, IsNumber, IsObject, IsString, ValidateNested, } from 'class-validator';
|
|
14
|
+
export var GoogleAccessTokenSecretConfigurationBackend;
|
|
15
|
+
(function (GoogleAccessTokenSecretConfigurationBackend) {
|
|
16
|
+
GoogleAccessTokenSecretConfigurationBackend["GoogleAccessToken"] = "google.accessToken";
|
|
17
|
+
})(GoogleAccessTokenSecretConfigurationBackend || (GoogleAccessTokenSecretConfigurationBackend = {}));
|
|
24
18
|
/**
|
|
25
|
-
* Google
|
|
19
|
+
* A secret that returns a Google access token for the current user or service account.
|
|
20
|
+
* This backend does not require any additional configuration.
|
|
26
21
|
*/
|
|
27
|
-
export class
|
|
22
|
+
export class GoogleAccessTokenSecretConfiguration {
|
|
28
23
|
constructor(init) {
|
|
29
24
|
Object.assign(this, init);
|
|
30
25
|
}
|
|
31
|
-
|
|
26
|
+
backend;
|
|
32
27
|
}
|
|
33
28
|
__decorate([
|
|
34
29
|
AllowMissing(),
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
IsIn(['google.accessToken']),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GoogleAccessTokenSecretConfiguration.prototype, "backend", void 0);
|
|
37
33
|
/**
|
|
38
34
|
* The Cloud Storage configuration where Cloud Functions archives should be uploaded.
|
|
39
35
|
*/
|
|
@@ -74,8 +70,18 @@ export class GoogleCloudFunctions {
|
|
|
74
70
|
}
|
|
75
71
|
__decorate([
|
|
76
72
|
AllowMissing(),
|
|
73
|
+
IsObject(),
|
|
74
|
+
Type(() => GoogleCloudFunctionsArtefactStorage),
|
|
75
|
+
ValidateNested(),
|
|
77
76
|
__metadata("design:type", GoogleCloudFunctionsArtefactStorage)
|
|
78
77
|
], GoogleCloudFunctions.prototype, "artefactStorage", void 0);
|
|
78
|
+
/**
|
|
79
|
+
* Google Cloud Functions platform.
|
|
80
|
+
*/
|
|
81
|
+
export var GoogleCloudFunctionsPlatform;
|
|
82
|
+
(function (GoogleCloudFunctionsPlatform) {
|
|
83
|
+
GoogleCloudFunctionsPlatform["GoogleCloudFunctions"] = "google.cloudFunctions";
|
|
84
|
+
})(GoogleCloudFunctionsPlatform || (GoogleCloudFunctionsPlatform = {}));
|
|
79
85
|
/**
|
|
80
86
|
* When set, project-scoped backfill triggers do not send events to the live Cloud Run service. Instead, a
|
|
81
87
|
* temporary copy of the service is deployed for each trigger, isolating the backfill load (in particular its
|
|
@@ -87,14 +93,14 @@ export class GoogleCloudRunEventBackfillServiceCloneConfig {
|
|
|
87
93
|
constructor(init) {
|
|
88
94
|
Object.assign(this, init);
|
|
89
95
|
}
|
|
90
|
-
/**
|
|
91
|
-
* The maximum number of instances for the temporary service copy.
|
|
92
|
-
*/
|
|
93
|
-
maxInstanceCount;
|
|
94
96
|
/**
|
|
95
97
|
* The minimum number of instances for the temporary service copy.
|
|
96
98
|
*/
|
|
97
99
|
minInstanceCount;
|
|
100
|
+
/**
|
|
101
|
+
* The maximum number of instances for the temporary service copy.
|
|
102
|
+
*/
|
|
103
|
+
maxInstanceCount;
|
|
98
104
|
/**
|
|
99
105
|
* The maximum number of concurrent requests per instance for the temporary service copy.
|
|
100
106
|
*/
|
|
@@ -104,12 +110,12 @@ __decorate([
|
|
|
104
110
|
AllowMissing(),
|
|
105
111
|
IsNumber(),
|
|
106
112
|
__metadata("design:type", Number)
|
|
107
|
-
], GoogleCloudRunEventBackfillServiceCloneConfig.prototype, "
|
|
113
|
+
], GoogleCloudRunEventBackfillServiceCloneConfig.prototype, "minInstanceCount", void 0);
|
|
108
114
|
__decorate([
|
|
109
115
|
AllowMissing(),
|
|
110
116
|
IsNumber(),
|
|
111
117
|
__metadata("design:type", Number)
|
|
112
|
-
], GoogleCloudRunEventBackfillServiceCloneConfig.prototype, "
|
|
118
|
+
], GoogleCloudRunEventBackfillServiceCloneConfig.prototype, "maxInstanceCount", void 0);
|
|
113
119
|
__decorate([
|
|
114
120
|
AllowMissing(),
|
|
115
121
|
IsNumber(),
|
|
@@ -125,6 +131,13 @@ export var GoogleCloudRunIngress;
|
|
|
125
131
|
GoogleCloudRunIngress["Internal"] = "internal";
|
|
126
132
|
GoogleCloudRunIngress["InternalAndCloudLoadBalancing"] = "internal-and-cloud-load-balancing";
|
|
127
133
|
})(GoogleCloudRunIngress || (GoogleCloudRunIngress = {}));
|
|
134
|
+
/**
|
|
135
|
+
* Google Cloud Run platform.
|
|
136
|
+
*/
|
|
137
|
+
export var GoogleCloudRunPlatform;
|
|
138
|
+
(function (GoogleCloudRunPlatform) {
|
|
139
|
+
GoogleCloudRunPlatform["GoogleCloudRun"] = "google.cloudRun";
|
|
140
|
+
})(GoogleCloudRunPlatform || (GoogleCloudRunPlatform = {}));
|
|
128
141
|
/**
|
|
129
142
|
* The setting for egress traffic that goes through the VPC access connector.
|
|
130
143
|
* See https://cloud.google.com/run/docs/configuring/connecting-vpc#manage for more details.
|
|
@@ -135,129 +148,88 @@ export var GoogleCloudRunVpcAccessConnectorEgressSettings;
|
|
|
135
148
|
GoogleCloudRunVpcAccessConnectorEgressSettings["PrivateRangesOnly"] = "PRIVATE_RANGES_ONLY";
|
|
136
149
|
})(GoogleCloudRunVpcAccessConnectorEgressSettings || (GoogleCloudRunVpcAccessConnectorEgressSettings = {}));
|
|
137
150
|
/**
|
|
138
|
-
* Configuration for
|
|
151
|
+
* Configuration for the emulator.
|
|
139
152
|
*/
|
|
140
|
-
export class
|
|
153
|
+
export class GoogleFirebaseStorageEmulator {
|
|
141
154
|
constructor(init) {
|
|
142
155
|
Object.assign(this, init);
|
|
143
156
|
}
|
|
144
157
|
/**
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
|
-
cpuAlwaysAllocated;
|
|
148
|
-
/**
|
|
149
|
-
* The Docker repository where Cloud Run containers should be uploaded.
|
|
150
|
-
*/
|
|
151
|
-
dockerRepository;
|
|
152
|
-
/**
|
|
153
|
-
* When set, project-scoped backfill triggers do not send events to the live Cloud Run service. Instead, a
|
|
154
|
-
* temporary copy of the service is deployed for each trigger, isolating the backfill load (in particular its
|
|
155
|
-
* scaling) from production. The copy is deleted once the backfill is cleaned up. Ingress is always
|
|
156
|
-
* restricted to internal traffic for the copy. The properties of this object override the scaling settings
|
|
157
|
-
* of the copied service. Unset properties are inherited from the live service.
|
|
158
|
-
*/
|
|
159
|
-
eventBackfillServiceCloneConfig;
|
|
160
|
-
/**
|
|
161
|
-
* For `serviceContainer` projects deployed on Cloud Run, the name of the Cloud Run service that receives
|
|
162
|
-
* events during a backfill targeting a project-scoped trigger. Defaults to the project's name
|
|
163
|
-
* (`project.name`) when unset.
|
|
164
|
-
*/
|
|
165
|
-
eventBackfillServiceName;
|
|
166
|
-
/**
|
|
167
|
-
* The type of allowed ingress that can reach the container.
|
|
168
|
-
* See https://cloud.google.com/run/docs/securing/ingress#settings for more details.
|
|
169
|
-
*/
|
|
170
|
-
ingress;
|
|
171
|
-
/**
|
|
172
|
-
* The location where Cloud Run services should be deployed.
|
|
173
|
-
*/
|
|
174
|
-
location;
|
|
175
|
-
/**
|
|
176
|
-
* The maximum allowed in-flight (concurrent) requests per container.
|
|
177
|
-
*/
|
|
178
|
-
requestConcurrency;
|
|
179
|
-
/**
|
|
180
|
-
* A map where keys are the name of environment variables, and values are secret versions IDs (e.g.
|
|
181
|
-
* `projects/my-project/secrets/my-secret/versions/1`).
|
|
182
|
-
*/
|
|
183
|
-
secretEnvironmentVariables;
|
|
184
|
-
/**
|
|
185
|
-
* Whether to enable CPU boost during instance startup.
|
|
186
|
-
*/
|
|
187
|
-
startupCpuBoost;
|
|
188
|
-
/**
|
|
189
|
-
* The max duration the instance is allowed for responding to a request, in seconds.
|
|
190
|
-
*/
|
|
191
|
-
timeout;
|
|
192
|
-
/**
|
|
193
|
-
* The name of the VPC access connector through which egress traffic should be routed.
|
|
158
|
+
* The name of the local Docker container running the emulator.
|
|
194
159
|
*/
|
|
195
|
-
|
|
160
|
+
containerName;
|
|
196
161
|
/**
|
|
197
|
-
* The
|
|
198
|
-
*
|
|
162
|
+
* The host port to which the Firebase Storage emulator is bound.
|
|
163
|
+
* Override this to run several workspaces in parallel on the same machine. Defaults to `9199`.
|
|
199
164
|
*/
|
|
200
|
-
|
|
165
|
+
port;
|
|
201
166
|
}
|
|
202
|
-
__decorate([
|
|
203
|
-
AllowMissing(),
|
|
204
|
-
IsBoolean(),
|
|
205
|
-
__metadata("design:type", Boolean)
|
|
206
|
-
], GoogleCloudRun.prototype, "cpuAlwaysAllocated", void 0);
|
|
207
|
-
__decorate([
|
|
208
|
-
AllowMissing(),
|
|
209
|
-
IsString(),
|
|
210
|
-
__metadata("design:type", String)
|
|
211
|
-
], GoogleCloudRun.prototype, "dockerRepository", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
AllowMissing(),
|
|
214
|
-
__metadata("design:type", GoogleCloudRunEventBackfillServiceCloneConfig)
|
|
215
|
-
], GoogleCloudRun.prototype, "eventBackfillServiceCloneConfig", void 0);
|
|
216
|
-
__decorate([
|
|
217
|
-
AllowMissing(),
|
|
218
|
-
IsString(),
|
|
219
|
-
__metadata("design:type", String)
|
|
220
|
-
], GoogleCloudRun.prototype, "eventBackfillServiceName", void 0);
|
|
221
|
-
__decorate([
|
|
222
|
-
AllowMissing(),
|
|
223
|
-
IsIn(['all', 'internal', 'internal-and-cloud-load-balancing']),
|
|
224
|
-
__metadata("design:type", String)
|
|
225
|
-
], GoogleCloudRun.prototype, "ingress", void 0);
|
|
226
167
|
__decorate([
|
|
227
168
|
AllowMissing(),
|
|
228
169
|
IsString(),
|
|
229
170
|
__metadata("design:type", String)
|
|
230
|
-
],
|
|
171
|
+
], GoogleFirebaseStorageEmulator.prototype, "containerName", void 0);
|
|
231
172
|
__decorate([
|
|
232
173
|
AllowMissing(),
|
|
233
174
|
IsNumber(),
|
|
234
175
|
__metadata("design:type", Number)
|
|
235
|
-
],
|
|
176
|
+
], GoogleFirebaseStorageEmulator.prototype, "port", void 0);
|
|
177
|
+
/**
|
|
178
|
+
* Configuration for the Firebase Storage service.
|
|
179
|
+
*/
|
|
180
|
+
export class GoogleFirebaseStorage {
|
|
181
|
+
constructor(init) {
|
|
182
|
+
Object.assign(this, init);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Configuration for the emulator.
|
|
186
|
+
*/
|
|
187
|
+
emulator;
|
|
188
|
+
/**
|
|
189
|
+
* A list of glob patterns to find files in the workspace defining Firebase Storage security rules.
|
|
190
|
+
*/
|
|
191
|
+
securityRuleFiles;
|
|
192
|
+
/**
|
|
193
|
+
* The file path, relative to the workspace root, where the merged security rules file is written.
|
|
194
|
+
*/
|
|
195
|
+
securityRuleFile;
|
|
196
|
+
}
|
|
236
197
|
__decorate([
|
|
237
198
|
AllowMissing(),
|
|
238
199
|
IsObject(),
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
IsBoolean(),
|
|
244
|
-
__metadata("design:type", Boolean)
|
|
245
|
-
], GoogleCloudRun.prototype, "startupCpuBoost", void 0);
|
|
200
|
+
Type(() => GoogleFirebaseStorageEmulator),
|
|
201
|
+
ValidateNested(),
|
|
202
|
+
__metadata("design:type", GoogleFirebaseStorageEmulator)
|
|
203
|
+
], GoogleFirebaseStorage.prototype, "emulator", void 0);
|
|
246
204
|
__decorate([
|
|
247
205
|
AllowMissing(),
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
206
|
+
IsArray(),
|
|
207
|
+
IsString({ each: true }),
|
|
208
|
+
__metadata("design:type", Array)
|
|
209
|
+
], GoogleFirebaseStorage.prototype, "securityRuleFiles", void 0);
|
|
251
210
|
__decorate([
|
|
252
211
|
AllowMissing(),
|
|
253
212
|
IsString(),
|
|
254
213
|
__metadata("design:type", String)
|
|
255
|
-
],
|
|
214
|
+
], GoogleFirebaseStorage.prototype, "securityRuleFile", void 0);
|
|
215
|
+
export var GoogleFirebaseStorageMergeRulesProcessorName;
|
|
216
|
+
(function (GoogleFirebaseStorageMergeRulesProcessorName) {
|
|
217
|
+
GoogleFirebaseStorageMergeRulesProcessorName["GoogleFirebaseStorageMergeRules"] = "GoogleFirebaseStorageMergeRules";
|
|
218
|
+
})(GoogleFirebaseStorageMergeRulesProcessorName || (GoogleFirebaseStorageMergeRulesProcessorName = {}));
|
|
219
|
+
/**
|
|
220
|
+
* Merges all Firebase Storage security rules from the workspace.
|
|
221
|
+
* Sets the `google.firebaseStorage.securityRuleFile` configuration value.
|
|
222
|
+
*/
|
|
223
|
+
export class GoogleFirebaseStorageMergeRulesProcessor {
|
|
224
|
+
constructor(init) {
|
|
225
|
+
Object.assign(this, init);
|
|
226
|
+
}
|
|
227
|
+
name;
|
|
228
|
+
}
|
|
256
229
|
__decorate([
|
|
257
|
-
|
|
258
|
-
IsIn(['ALL_TRAFFIC', 'PRIVATE_RANGES_ONLY']),
|
|
230
|
+
IsIn(['GoogleFirebaseStorageMergeRules']),
|
|
259
231
|
__metadata("design:type", String)
|
|
260
|
-
],
|
|
232
|
+
], GoogleFirebaseStorageMergeRulesProcessor.prototype, "name", void 0);
|
|
261
233
|
/**
|
|
262
234
|
* Configuration for Firebase tools (the CLI).
|
|
263
235
|
* This applies to Dockerized calls to the `firebase` CLI.
|
|
@@ -339,12 +311,15 @@ __decorate([
|
|
|
339
311
|
], GoogleFirebase.prototype, "authDomain", void 0);
|
|
340
312
|
__decorate([
|
|
341
313
|
AllowMissing(),
|
|
314
|
+
IsObject(),
|
|
315
|
+
Type(() => GoogleFirebaseTools),
|
|
316
|
+
ValidateNested(),
|
|
342
317
|
__metadata("design:type", GoogleFirebaseTools)
|
|
343
318
|
], GoogleFirebase.prototype, "tools", void 0);
|
|
344
319
|
/**
|
|
345
320
|
* Configuration for the emulator.
|
|
346
321
|
*/
|
|
347
|
-
export class
|
|
322
|
+
export class GoogleFirestoreEmulator {
|
|
348
323
|
constructor(init) {
|
|
349
324
|
Object.assign(this, init);
|
|
350
325
|
}
|
|
@@ -353,8 +328,8 @@ export class GoogleFirebaseStorageEmulator {
|
|
|
353
328
|
*/
|
|
354
329
|
containerName;
|
|
355
330
|
/**
|
|
356
|
-
* The host port to which the
|
|
357
|
-
* Override this to run several workspaces in parallel on the same machine. Defaults to `
|
|
331
|
+
* The host port to which the Firestore emulator is bound.
|
|
332
|
+
* Override this to run several workspaces in parallel on the same machine. Defaults to `8080`.
|
|
358
333
|
*/
|
|
359
334
|
port;
|
|
360
335
|
}
|
|
@@ -362,16 +337,16 @@ __decorate([
|
|
|
362
337
|
AllowMissing(),
|
|
363
338
|
IsString(),
|
|
364
339
|
__metadata("design:type", String)
|
|
365
|
-
],
|
|
340
|
+
], GoogleFirestoreEmulator.prototype, "containerName", void 0);
|
|
366
341
|
__decorate([
|
|
367
342
|
AllowMissing(),
|
|
368
343
|
IsNumber(),
|
|
369
344
|
__metadata("design:type", Number)
|
|
370
|
-
],
|
|
345
|
+
], GoogleFirestoreEmulator.prototype, "port", void 0);
|
|
371
346
|
/**
|
|
372
|
-
* Configuration for the
|
|
347
|
+
* Configuration for the Firestore service.
|
|
373
348
|
*/
|
|
374
|
-
export class
|
|
349
|
+
export class GoogleFirestore {
|
|
375
350
|
constructor(init) {
|
|
376
351
|
Object.assign(this, init);
|
|
377
352
|
}
|
|
@@ -380,109 +355,89 @@ export class GoogleFirebaseStorage {
|
|
|
380
355
|
*/
|
|
381
356
|
emulator;
|
|
382
357
|
/**
|
|
383
|
-
*
|
|
358
|
+
* A list of glob patterns to find files in the workspace defining Firestore security rules.
|
|
384
359
|
*/
|
|
385
|
-
|
|
360
|
+
securityRuleFiles;
|
|
386
361
|
/**
|
|
387
|
-
*
|
|
362
|
+
* The file path, relative to the workspace root, where the merged security rules file is written.
|
|
388
363
|
*/
|
|
389
|
-
|
|
364
|
+
securityRuleFile;
|
|
390
365
|
}
|
|
391
366
|
__decorate([
|
|
392
367
|
AllowMissing(),
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
__metadata("design:type", String)
|
|
399
|
-
], GoogleFirebaseStorage.prototype, "securityRuleFile", void 0);
|
|
368
|
+
IsObject(),
|
|
369
|
+
Type(() => GoogleFirestoreEmulator),
|
|
370
|
+
ValidateNested(),
|
|
371
|
+
__metadata("design:type", GoogleFirestoreEmulator)
|
|
372
|
+
], GoogleFirestore.prototype, "emulator", void 0);
|
|
400
373
|
__decorate([
|
|
401
374
|
AllowMissing(),
|
|
402
375
|
IsArray(),
|
|
403
376
|
IsString({ each: true }),
|
|
404
377
|
__metadata("design:type", Array)
|
|
405
|
-
],
|
|
378
|
+
], GoogleFirestore.prototype, "securityRuleFiles", void 0);
|
|
379
|
+
__decorate([
|
|
380
|
+
AllowMissing(),
|
|
381
|
+
IsString(),
|
|
382
|
+
__metadata("design:type", String)
|
|
383
|
+
], GoogleFirestore.prototype, "securityRuleFile", void 0);
|
|
384
|
+
export var GoogleFirestoreMergeRulesProcessorName;
|
|
385
|
+
(function (GoogleFirestoreMergeRulesProcessorName) {
|
|
386
|
+
GoogleFirestoreMergeRulesProcessorName["GoogleFirestoreMergeRules"] = "GoogleFirestoreMergeRules";
|
|
387
|
+
})(GoogleFirestoreMergeRulesProcessorName || (GoogleFirestoreMergeRulesProcessorName = {}));
|
|
406
388
|
/**
|
|
407
|
-
*
|
|
389
|
+
* Merges all Firestore security rules from the workspace.
|
|
390
|
+
* Sets the `google.firestore.securityRuleFile` configuration value.
|
|
408
391
|
*/
|
|
409
|
-
export class
|
|
392
|
+
export class GoogleFirestoreMergeRulesProcessor {
|
|
410
393
|
constructor(init) {
|
|
411
394
|
Object.assign(this, init);
|
|
412
395
|
}
|
|
413
|
-
|
|
414
|
-
* The name of the local Docker container running the emulator.
|
|
415
|
-
*/
|
|
416
|
-
containerName;
|
|
417
|
-
/**
|
|
418
|
-
* The host port to which the Firestore emulator is bound.
|
|
419
|
-
* Override this to run several workspaces in parallel on the same machine. Defaults to `8080`.
|
|
420
|
-
*/
|
|
421
|
-
port;
|
|
396
|
+
name;
|
|
422
397
|
}
|
|
423
398
|
__decorate([
|
|
424
|
-
|
|
425
|
-
IsString(),
|
|
399
|
+
IsIn(['GoogleFirestoreMergeRules']),
|
|
426
400
|
__metadata("design:type", String)
|
|
427
|
-
],
|
|
428
|
-
__decorate([
|
|
429
|
-
AllowMissing(),
|
|
430
|
-
IsNumber(),
|
|
431
|
-
__metadata("design:type", Number)
|
|
432
|
-
], GoogleFirestoreEmulator.prototype, "port", void 0);
|
|
401
|
+
], GoogleFirestoreMergeRulesProcessor.prototype, "name", void 0);
|
|
433
402
|
/**
|
|
434
|
-
* Configuration for the
|
|
403
|
+
* Configuration for the `gcloud` command.
|
|
404
|
+
* This applies to Dockerized calls to `gcloud` using the official `gcloud` Docker image.
|
|
435
405
|
*/
|
|
436
|
-
export class
|
|
406
|
+
export class GoogleGcloud {
|
|
437
407
|
constructor(init) {
|
|
438
408
|
Object.assign(this, init);
|
|
439
409
|
}
|
|
440
410
|
/**
|
|
441
|
-
*
|
|
442
|
-
*/
|
|
443
|
-
emulator;
|
|
444
|
-
/**
|
|
445
|
-
* The file path, relative to the workspace root, where the merged security rules file is written.
|
|
446
|
-
*/
|
|
447
|
-
securityRuleFile;
|
|
448
|
-
/**
|
|
449
|
-
* A list of glob patterns to find files in the workspace defining Firestore security rules.
|
|
411
|
+
* The version of the `gcloud` command.
|
|
450
412
|
*/
|
|
451
|
-
|
|
413
|
+
version;
|
|
452
414
|
}
|
|
453
|
-
__decorate([
|
|
454
|
-
AllowMissing(),
|
|
455
|
-
__metadata("design:type", GoogleFirestoreEmulator)
|
|
456
|
-
], GoogleFirestore.prototype, "emulator", void 0);
|
|
457
415
|
__decorate([
|
|
458
416
|
AllowMissing(),
|
|
459
417
|
IsString(),
|
|
460
418
|
__metadata("design:type", String)
|
|
461
|
-
],
|
|
419
|
+
], GoogleGcloud.prototype, "version", void 0);
|
|
420
|
+
export class GoogleGenericProcessor {
|
|
421
|
+
constructor(init) {
|
|
422
|
+
Object.assign(this, init);
|
|
423
|
+
}
|
|
424
|
+
name;
|
|
425
|
+
}
|
|
462
426
|
__decorate([
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
], GoogleFirestore.prototype, "securityRuleFiles", void 0);
|
|
468
|
-
/**
|
|
469
|
-
* Configuration for the `gcloud` command.
|
|
470
|
-
* This applies to Dockerized calls to `gcloud` using the official `gcloud` Docker image.
|
|
471
|
-
*/
|
|
472
|
-
export class GoogleGcloud {
|
|
427
|
+
IsString(),
|
|
428
|
+
__metadata("design:type", String)
|
|
429
|
+
], GoogleGenericProcessor.prototype, "name", void 0);
|
|
430
|
+
export class GoogleGenericSecretConfiguration {
|
|
473
431
|
constructor(init) {
|
|
474
432
|
Object.assign(this, init);
|
|
475
433
|
}
|
|
476
|
-
|
|
477
|
-
* The version of the `gcloud` command.
|
|
478
|
-
*/
|
|
479
|
-
version;
|
|
434
|
+
backend;
|
|
480
435
|
}
|
|
481
436
|
__decorate([
|
|
482
437
|
AllowMissing(),
|
|
483
438
|
IsString(),
|
|
484
439
|
__metadata("design:type", String)
|
|
485
|
-
],
|
|
440
|
+
], GoogleGenericSecretConfiguration.prototype, "backend", void 0);
|
|
486
441
|
/**
|
|
487
442
|
* Configuration for the emulator.
|
|
488
443
|
*/
|
|
@@ -524,6 +479,9 @@ export class GoogleIdentityPlatform {
|
|
|
524
479
|
}
|
|
525
480
|
__decorate([
|
|
526
481
|
AllowMissing(),
|
|
482
|
+
IsObject(),
|
|
483
|
+
Type(() => GoogleIdentityPlatformEmulator),
|
|
484
|
+
ValidateNested(),
|
|
527
485
|
__metadata("design:type", GoogleIdentityPlatformEmulator)
|
|
528
486
|
], GoogleIdentityPlatform.prototype, "emulator", void 0);
|
|
529
487
|
/**
|
|
@@ -551,6 +509,14 @@ export class GooglePubSubBackfillPublishOptions {
|
|
|
551
509
|
constructor(init) {
|
|
552
510
|
Object.assign(this, init);
|
|
553
511
|
}
|
|
512
|
+
/**
|
|
513
|
+
* The maximum number of bytes allowed in outstanding (in-flight) publish requests before applying flow control.
|
|
514
|
+
*/
|
|
515
|
+
maxOutstandingBytes;
|
|
516
|
+
/**
|
|
517
|
+
* The maximum number of outstanding (in-flight) messages allowed before applying flow control.
|
|
518
|
+
*/
|
|
519
|
+
maxOutstandingMessages;
|
|
554
520
|
/**
|
|
555
521
|
* The maximum number of bytes to buffer before publishing a batch.
|
|
556
522
|
*/
|
|
@@ -563,40 +529,32 @@ export class GooglePubSubBackfillPublishOptions {
|
|
|
563
529
|
* The maximum duration to wait, in milliseconds, before publishing a batch.
|
|
564
530
|
*/
|
|
565
531
|
maxMilliseconds;
|
|
566
|
-
/**
|
|
567
|
-
* The maximum number of bytes allowed in outstanding (in-flight) publish requests before applying flow control.
|
|
568
|
-
*/
|
|
569
|
-
maxOutstandingBytes;
|
|
570
|
-
/**
|
|
571
|
-
* The maximum number of outstanding (in-flight) messages allowed before applying flow control.
|
|
572
|
-
*/
|
|
573
|
-
maxOutstandingMessages;
|
|
574
532
|
}
|
|
575
533
|
__decorate([
|
|
576
534
|
AllowMissing(),
|
|
577
535
|
IsNumber(),
|
|
578
536
|
__metadata("design:type", Number)
|
|
579
|
-
], GooglePubSubBackfillPublishOptions.prototype, "
|
|
537
|
+
], GooglePubSubBackfillPublishOptions.prototype, "maxOutstandingBytes", void 0);
|
|
580
538
|
__decorate([
|
|
581
539
|
AllowMissing(),
|
|
582
540
|
IsNumber(),
|
|
583
541
|
__metadata("design:type", Number)
|
|
584
|
-
], GooglePubSubBackfillPublishOptions.prototype, "
|
|
542
|
+
], GooglePubSubBackfillPublishOptions.prototype, "maxOutstandingMessages", void 0);
|
|
585
543
|
__decorate([
|
|
586
544
|
AllowMissing(),
|
|
587
545
|
IsNumber(),
|
|
588
546
|
__metadata("design:type", Number)
|
|
589
|
-
], GooglePubSubBackfillPublishOptions.prototype, "
|
|
547
|
+
], GooglePubSubBackfillPublishOptions.prototype, "maxBytes", void 0);
|
|
590
548
|
__decorate([
|
|
591
549
|
AllowMissing(),
|
|
592
550
|
IsNumber(),
|
|
593
551
|
__metadata("design:type", Number)
|
|
594
|
-
], GooglePubSubBackfillPublishOptions.prototype, "
|
|
552
|
+
], GooglePubSubBackfillPublishOptions.prototype, "maxMessages", void 0);
|
|
595
553
|
__decorate([
|
|
596
554
|
AllowMissing(),
|
|
597
555
|
IsNumber(),
|
|
598
556
|
__metadata("design:type", Number)
|
|
599
|
-
], GooglePubSubBackfillPublishOptions.prototype, "
|
|
557
|
+
], GooglePubSubBackfillPublishOptions.prototype, "maxMilliseconds", void 0);
|
|
600
558
|
/**
|
|
601
559
|
* Configuration for the storage of Pub/Sub events in BigQuery.
|
|
602
560
|
*/
|
|
@@ -604,26 +562,59 @@ export class GooglePubSubBigQueryStorage {
|
|
|
604
562
|
constructor(init) {
|
|
605
563
|
Object.assign(this, init);
|
|
606
564
|
}
|
|
565
|
+
/**
|
|
566
|
+
* The ID of the BigQuery dataset where raw Pub/Sub events should be stored.
|
|
567
|
+
*/
|
|
568
|
+
rawEventsDatasetId;
|
|
607
569
|
/**
|
|
608
570
|
* The BigQuery location for the datasets.
|
|
609
571
|
* See https://cloud.google.com/bigquery/docs/locations for more details.
|
|
610
572
|
*/
|
|
611
573
|
location;
|
|
612
|
-
/**
|
|
613
|
-
* The ID of the BigQuery dataset where raw Pub/Sub events should be stored.
|
|
614
|
-
*/
|
|
615
|
-
rawEventsDatasetId;
|
|
616
574
|
}
|
|
617
575
|
__decorate([
|
|
618
576
|
AllowMissing(),
|
|
619
577
|
IsString(),
|
|
620
578
|
__metadata("design:type", String)
|
|
621
|
-
], GooglePubSubBigQueryStorage.prototype, "
|
|
579
|
+
], GooglePubSubBigQueryStorage.prototype, "rawEventsDatasetId", void 0);
|
|
622
580
|
__decorate([
|
|
623
581
|
AllowMissing(),
|
|
624
582
|
IsString(),
|
|
625
583
|
__metadata("design:type", String)
|
|
626
|
-
], GooglePubSubBigQueryStorage.prototype, "
|
|
584
|
+
], GooglePubSubBigQueryStorage.prototype, "location", void 0);
|
|
585
|
+
/**
|
|
586
|
+
* Google Pub/Sub message broker.
|
|
587
|
+
*/
|
|
588
|
+
export var GooglePubSubBroker;
|
|
589
|
+
(function (GooglePubSubBroker) {
|
|
590
|
+
GooglePubSubBroker["GooglePubSub"] = "google.pubSub";
|
|
591
|
+
})(GooglePubSubBroker || (GooglePubSubBroker = {}));
|
|
592
|
+
export class GoogleEvents {
|
|
593
|
+
constructor(init) {
|
|
594
|
+
Object.assign(this, init);
|
|
595
|
+
}
|
|
596
|
+
broker;
|
|
597
|
+
}
|
|
598
|
+
__decorate([
|
|
599
|
+
AllowMissing(),
|
|
600
|
+
__metadata("design:type", String)
|
|
601
|
+
], GoogleEvents.prototype, "broker", void 0);
|
|
602
|
+
/**
|
|
603
|
+
* Google-specific refinement of the events configuration.
|
|
604
|
+
*/
|
|
605
|
+
export class GoogleEventsConfiguration {
|
|
606
|
+
constructor(init) {
|
|
607
|
+
Object.assign(this, init);
|
|
608
|
+
}
|
|
609
|
+
events;
|
|
610
|
+
}
|
|
611
|
+
__decorate([
|
|
612
|
+
AllowMissing(),
|
|
613
|
+
IsObject(),
|
|
614
|
+
Type(() => GoogleEvents),
|
|
615
|
+
ValidateNested(),
|
|
616
|
+
__metadata("design:type", GoogleEvents)
|
|
617
|
+
], GoogleEventsConfiguration.prototype, "events", void 0);
|
|
627
618
|
/**
|
|
628
619
|
* Configuration for the emulator.
|
|
629
620
|
*/
|
|
@@ -659,47 +650,42 @@ export class GooglePubSub {
|
|
|
659
650
|
Object.assign(this, init);
|
|
660
651
|
}
|
|
661
652
|
/**
|
|
662
|
-
*
|
|
653
|
+
* Configuration for the emulator.
|
|
663
654
|
*/
|
|
664
|
-
|
|
655
|
+
emulator;
|
|
665
656
|
/**
|
|
666
|
-
*
|
|
657
|
+
* The directory where the topic configuration files are written by the `GooglePubSubWriteTopics` processor.
|
|
667
658
|
*/
|
|
668
|
-
|
|
659
|
+
topicConfigurationsDirectory;
|
|
669
660
|
/**
|
|
670
|
-
*
|
|
661
|
+
* The default minimum backoff for Pub/Sub push subscription retry policy.
|
|
671
662
|
*/
|
|
672
|
-
|
|
663
|
+
minimumBackoff;
|
|
673
664
|
/**
|
|
674
665
|
* The default maximum backoff for Pub/Sub push subscription retry policy.
|
|
675
666
|
*/
|
|
676
667
|
maximumBackoff;
|
|
677
668
|
/**
|
|
678
|
-
*
|
|
669
|
+
* Configuration for the storage of Pub/Sub events in BigQuery.
|
|
679
670
|
*/
|
|
680
|
-
|
|
671
|
+
bigQueryStorage;
|
|
681
672
|
/**
|
|
682
|
-
*
|
|
673
|
+
* Options when publishing events in batches to Pub/Sub during a backfill.
|
|
683
674
|
*/
|
|
684
|
-
|
|
675
|
+
backfillPublishOptions;
|
|
685
676
|
}
|
|
686
677
|
__decorate([
|
|
687
678
|
AllowMissing(),
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
AllowMissing(),
|
|
692
|
-
__metadata("design:type", GooglePubSubBigQueryStorage)
|
|
693
|
-
], GooglePubSub.prototype, "bigQueryStorage", void 0);
|
|
694
|
-
__decorate([
|
|
695
|
-
AllowMissing(),
|
|
679
|
+
IsObject(),
|
|
680
|
+
Type(() => GooglePubSubEmulator),
|
|
681
|
+
ValidateNested(),
|
|
696
682
|
__metadata("design:type", GooglePubSubEmulator)
|
|
697
683
|
], GooglePubSub.prototype, "emulator", void 0);
|
|
698
684
|
__decorate([
|
|
699
685
|
AllowMissing(),
|
|
700
686
|
IsString(),
|
|
701
687
|
__metadata("design:type", String)
|
|
702
|
-
], GooglePubSub.prototype, "
|
|
688
|
+
], GooglePubSub.prototype, "topicConfigurationsDirectory", void 0);
|
|
703
689
|
__decorate([
|
|
704
690
|
AllowMissing(),
|
|
705
691
|
IsString(),
|
|
@@ -709,7 +695,39 @@ __decorate([
|
|
|
709
695
|
AllowMissing(),
|
|
710
696
|
IsString(),
|
|
711
697
|
__metadata("design:type", String)
|
|
712
|
-
], GooglePubSub.prototype, "
|
|
698
|
+
], GooglePubSub.prototype, "maximumBackoff", void 0);
|
|
699
|
+
__decorate([
|
|
700
|
+
AllowMissing(),
|
|
701
|
+
IsObject(),
|
|
702
|
+
Type(() => GooglePubSubBigQueryStorage),
|
|
703
|
+
ValidateNested(),
|
|
704
|
+
__metadata("design:type", GooglePubSubBigQueryStorage)
|
|
705
|
+
], GooglePubSub.prototype, "bigQueryStorage", void 0);
|
|
706
|
+
__decorate([
|
|
707
|
+
AllowMissing(),
|
|
708
|
+
IsObject(),
|
|
709
|
+
Type(() => GooglePubSubBackfillPublishOptions),
|
|
710
|
+
ValidateNested(),
|
|
711
|
+
__metadata("design:type", GooglePubSubBackfillPublishOptions)
|
|
712
|
+
], GooglePubSub.prototype, "backfillPublishOptions", void 0);
|
|
713
|
+
export var GooglePubSubWriteTopicsProcessorName;
|
|
714
|
+
(function (GooglePubSubWriteTopicsProcessorName) {
|
|
715
|
+
GooglePubSubWriteTopicsProcessorName["GooglePubSubWriteTopics"] = "GooglePubSubWriteTopics";
|
|
716
|
+
})(GooglePubSubWriteTopicsProcessorName || (GooglePubSubWriteTopicsProcessorName = {}));
|
|
717
|
+
/**
|
|
718
|
+
* Writes Pub/Sub topic configurations to JSON files.
|
|
719
|
+
* Sets the `google.pubSub.topicConfigurationsDirectory` configuration value.
|
|
720
|
+
*/
|
|
721
|
+
export class GooglePubSubWriteTopicsProcessor {
|
|
722
|
+
constructor(init) {
|
|
723
|
+
Object.assign(this, init);
|
|
724
|
+
}
|
|
725
|
+
name;
|
|
726
|
+
}
|
|
727
|
+
__decorate([
|
|
728
|
+
IsIn(['GooglePubSubWriteTopics']),
|
|
729
|
+
__metadata("design:type", String)
|
|
730
|
+
], GooglePubSubWriteTopicsProcessor.prototype, "name", void 0);
|
|
713
731
|
/**
|
|
714
732
|
* Default configuration for Cloud Scheduler jobs.
|
|
715
733
|
*/
|
|
@@ -718,17 +736,9 @@ export class GoogleScheduler {
|
|
|
718
736
|
Object.assign(this, init);
|
|
719
737
|
}
|
|
720
738
|
/**
|
|
721
|
-
* The default
|
|
722
|
-
*/
|
|
723
|
-
attemptDeadline;
|
|
724
|
-
/**
|
|
725
|
-
* The default maximum backoff duration for Cloud Scheduler job retries.
|
|
726
|
-
*/
|
|
727
|
-
maxBackoffDuration;
|
|
728
|
-
/**
|
|
729
|
-
* The default maximum number of times the backoff duration is doubled for Cloud Scheduler job retries.
|
|
739
|
+
* The default number of retry attempts for Cloud Scheduler jobs.
|
|
730
740
|
*/
|
|
731
|
-
|
|
741
|
+
retryCount;
|
|
732
742
|
/**
|
|
733
743
|
* The default maximum duration for retrying a failed Cloud Scheduler job.
|
|
734
744
|
*/
|
|
@@ -738,25 +748,23 @@ export class GoogleScheduler {
|
|
|
738
748
|
*/
|
|
739
749
|
minBackoffDuration;
|
|
740
750
|
/**
|
|
741
|
-
* The default
|
|
751
|
+
* The default maximum backoff duration for Cloud Scheduler job retries.
|
|
742
752
|
*/
|
|
743
|
-
|
|
753
|
+
maxBackoffDuration;
|
|
754
|
+
/**
|
|
755
|
+
* The default maximum number of times the backoff duration is doubled for Cloud Scheduler job retries.
|
|
756
|
+
*/
|
|
757
|
+
maxDoublings;
|
|
758
|
+
/**
|
|
759
|
+
* The default deadline for Cloud Scheduler job attempts.
|
|
760
|
+
*/
|
|
761
|
+
attemptDeadline;
|
|
744
762
|
}
|
|
745
|
-
__decorate([
|
|
746
|
-
AllowMissing(),
|
|
747
|
-
IsString(),
|
|
748
|
-
__metadata("design:type", String)
|
|
749
|
-
], GoogleScheduler.prototype, "attemptDeadline", void 0);
|
|
750
|
-
__decorate([
|
|
751
|
-
AllowMissing(),
|
|
752
|
-
IsString(),
|
|
753
|
-
__metadata("design:type", String)
|
|
754
|
-
], GoogleScheduler.prototype, "maxBackoffDuration", void 0);
|
|
755
763
|
__decorate([
|
|
756
764
|
AllowMissing(),
|
|
757
765
|
IsNumber(),
|
|
758
766
|
__metadata("design:type", Number)
|
|
759
|
-
], GoogleScheduler.prototype, "
|
|
767
|
+
], GoogleScheduler.prototype, "retryCount", void 0);
|
|
760
768
|
__decorate([
|
|
761
769
|
AllowMissing(),
|
|
762
770
|
IsString(),
|
|
@@ -767,11 +775,21 @@ __decorate([
|
|
|
767
775
|
IsString(),
|
|
768
776
|
__metadata("design:type", String)
|
|
769
777
|
], GoogleScheduler.prototype, "minBackoffDuration", void 0);
|
|
778
|
+
__decorate([
|
|
779
|
+
AllowMissing(),
|
|
780
|
+
IsString(),
|
|
781
|
+
__metadata("design:type", String)
|
|
782
|
+
], GoogleScheduler.prototype, "maxBackoffDuration", void 0);
|
|
770
783
|
__decorate([
|
|
771
784
|
AllowMissing(),
|
|
772
785
|
IsNumber(),
|
|
773
786
|
__metadata("design:type", Number)
|
|
774
|
-
], GoogleScheduler.prototype, "
|
|
787
|
+
], GoogleScheduler.prototype, "maxDoublings", void 0);
|
|
788
|
+
__decorate([
|
|
789
|
+
AllowMissing(),
|
|
790
|
+
IsString(),
|
|
791
|
+
__metadata("design:type", String)
|
|
792
|
+
], GoogleScheduler.prototype, "attemptDeadline", void 0);
|
|
775
793
|
/**
|
|
776
794
|
* Configuration for the Secret Manager service.
|
|
777
795
|
*/
|
|
@@ -790,96 +808,221 @@ __decorate([
|
|
|
790
808
|
__metadata("design:type", String)
|
|
791
809
|
], GoogleSecretManager.prototype, "project", void 0);
|
|
792
810
|
/**
|
|
793
|
-
*
|
|
811
|
+
* Google Secret Manager backend.
|
|
794
812
|
*/
|
|
795
|
-
export
|
|
813
|
+
export var GoogleSecretManagerBackend;
|
|
814
|
+
(function (GoogleSecretManagerBackend) {
|
|
815
|
+
GoogleSecretManagerBackend["GoogleSecretManager"] = "google.secretManager";
|
|
816
|
+
})(GoogleSecretManagerBackend || (GoogleSecretManagerBackend = {}));
|
|
817
|
+
export var GoogleSecretManagerSecretConfigurationBackend;
|
|
818
|
+
(function (GoogleSecretManagerSecretConfigurationBackend) {
|
|
819
|
+
GoogleSecretManagerSecretConfigurationBackend["GoogleSecretManager"] = "google.secretManager";
|
|
820
|
+
})(GoogleSecretManagerSecretConfigurationBackend || (GoogleSecretManagerSecretConfigurationBackend = {}));
|
|
821
|
+
/**
|
|
822
|
+
* A secret stored in Google Secret Manager.
|
|
823
|
+
*/
|
|
824
|
+
export class GoogleSecretManagerSecretConfiguration {
|
|
796
825
|
constructor(init) {
|
|
797
826
|
Object.assign(this, init);
|
|
798
827
|
}
|
|
828
|
+
backend;
|
|
799
829
|
/**
|
|
800
|
-
* The
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
* A list of glob patterns used to find SQL files containing DDL statements for the Spanner databases.
|
|
805
|
-
*/
|
|
806
|
-
globs;
|
|
807
|
-
/**
|
|
808
|
-
* The regular expression used to extract groups from the SQL file paths.
|
|
830
|
+
* The reference to the secret in Google Secret Manager.
|
|
831
|
+
* Supported formats: `<secret-name>`, `projects/<project>/secrets/<secret-name>`, `projects/<project>/secrets/<secret-name>/versions/<version>`.
|
|
832
|
+
* If the project is not specified, `google.secretManager.project` or `google.project` will be used.
|
|
833
|
+
* If the version is not specified, `latest` will be used.
|
|
809
834
|
*/
|
|
810
|
-
|
|
835
|
+
id;
|
|
811
836
|
}
|
|
812
837
|
__decorate([
|
|
813
838
|
AllowMissing(),
|
|
814
|
-
|
|
839
|
+
IsIn(['google.secretManager']),
|
|
815
840
|
__metadata("design:type", String)
|
|
816
|
-
],
|
|
817
|
-
__decorate([
|
|
818
|
-
AllowMissing(),
|
|
819
|
-
IsArray(),
|
|
820
|
-
IsString({ each: true }),
|
|
821
|
-
__metadata("design:type", Array)
|
|
822
|
-
], GoogleSpannerDdls.prototype, "globs", void 0);
|
|
841
|
+
], GoogleSecretManagerSecretConfiguration.prototype, "backend", void 0);
|
|
823
842
|
__decorate([
|
|
824
843
|
AllowMissing(),
|
|
825
844
|
IsString(),
|
|
826
845
|
__metadata("design:type", String)
|
|
827
|
-
],
|
|
828
|
-
|
|
829
|
-
* Configuration for the emulator.
|
|
830
|
-
*/
|
|
831
|
-
export class GoogleSpannerEmulator {
|
|
846
|
+
], GoogleSecretManagerSecretConfiguration.prototype, "id", void 0);
|
|
847
|
+
export class GoogleSecretsCausaSecrets {
|
|
832
848
|
constructor(init) {
|
|
833
849
|
Object.assign(this, init);
|
|
834
850
|
}
|
|
835
|
-
|
|
836
|
-
* The name of the local Docker container running the emulator.
|
|
837
|
-
*/
|
|
838
|
-
containerName;
|
|
839
|
-
/**
|
|
840
|
-
* The host port to which the Spanner emulator gRPC API is bound.
|
|
841
|
-
* Override this to run several workspaces in parallel on the same machine. Defaults to `9010`.
|
|
842
|
-
*/
|
|
843
|
-
grpcPort;
|
|
844
|
-
/**
|
|
845
|
-
* The host port to which the Spanner emulator HTTP API is bound.
|
|
846
|
-
* Override this to run several workspaces in parallel on the same machine. Defaults to `9020`.
|
|
847
|
-
*/
|
|
848
|
-
httpPort;
|
|
849
|
-
/**
|
|
850
|
-
* The name of the Spanner instance that will automatically be created in the emulator.
|
|
851
|
-
*/
|
|
852
|
-
instanceName;
|
|
853
|
-
/**
|
|
854
|
-
* The version of the Spanner emulator Docker image to use.
|
|
855
|
-
*/
|
|
856
|
-
version;
|
|
851
|
+
defaultBackend;
|
|
857
852
|
}
|
|
858
853
|
__decorate([
|
|
859
854
|
AllowMissing(),
|
|
860
|
-
IsString(),
|
|
861
855
|
__metadata("design:type", String)
|
|
862
|
-
],
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
856
|
+
], GoogleSecretsCausaSecrets.prototype, "defaultBackend", void 0);
|
|
857
|
+
export class GoogleSecretsCausa {
|
|
858
|
+
constructor(init) {
|
|
859
|
+
Object.assign(this, init);
|
|
860
|
+
}
|
|
861
|
+
secrets;
|
|
862
|
+
}
|
|
868
863
|
__decorate([
|
|
869
864
|
AllowMissing(),
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
865
|
+
IsObject(),
|
|
866
|
+
Type(() => GoogleSecretsCausaSecrets),
|
|
867
|
+
ValidateNested(),
|
|
868
|
+
__metadata("design:type", GoogleSecretsCausaSecrets)
|
|
869
|
+
], GoogleSecretsCausa.prototype, "secrets", void 0);
|
|
870
|
+
/**
|
|
871
|
+
* Google-specific refinement of the secrets configuration.
|
|
872
|
+
*/
|
|
873
|
+
export class GoogleSecretsConfiguration {
|
|
874
|
+
constructor(init) {
|
|
875
|
+
Object.assign(this, init);
|
|
876
|
+
}
|
|
877
|
+
causa;
|
|
878
|
+
secrets;
|
|
879
|
+
}
|
|
880
|
+
__decorate([
|
|
881
|
+
AllowMissing(),
|
|
882
|
+
IsObject(),
|
|
883
|
+
Type(() => GoogleSecretsCausa),
|
|
884
|
+
ValidateNested(),
|
|
885
|
+
__metadata("design:type", GoogleSecretsCausa)
|
|
886
|
+
], GoogleSecretsConfiguration.prototype, "causa", void 0);
|
|
887
|
+
__decorate([
|
|
888
|
+
AllowMissing(),
|
|
889
|
+
IsObject(),
|
|
890
|
+
__metadata("design:type", Object)
|
|
891
|
+
], GoogleSecretsConfiguration.prototype, "secrets", void 0);
|
|
892
|
+
export class GoogleServerlessFunctions {
|
|
893
|
+
constructor(init) {
|
|
894
|
+
Object.assign(this, init);
|
|
895
|
+
}
|
|
896
|
+
platform;
|
|
897
|
+
}
|
|
898
|
+
__decorate([
|
|
899
|
+
AllowMissing(),
|
|
900
|
+
__metadata("design:type", String)
|
|
901
|
+
], GoogleServerlessFunctions.prototype, "platform", void 0);
|
|
902
|
+
/**
|
|
903
|
+
* Google-specific refinement of the serverless functions configuration.
|
|
904
|
+
*/
|
|
905
|
+
export class GoogleServerlessFunctionsConfiguration {
|
|
906
|
+
constructor(init) {
|
|
907
|
+
Object.assign(this, init);
|
|
908
|
+
}
|
|
909
|
+
serverlessFunctions;
|
|
910
|
+
}
|
|
911
|
+
__decorate([
|
|
912
|
+
AllowMissing(),
|
|
913
|
+
IsObject(),
|
|
914
|
+
Type(() => GoogleServerlessFunctions),
|
|
915
|
+
ValidateNested(),
|
|
916
|
+
__metadata("design:type", GoogleServerlessFunctions)
|
|
917
|
+
], GoogleServerlessFunctionsConfiguration.prototype, "serverlessFunctions", void 0);
|
|
918
|
+
export var GoogleServicesEnableProcessorName;
|
|
919
|
+
(function (GoogleServicesEnableProcessorName) {
|
|
920
|
+
GoogleServicesEnableProcessorName["GoogleServicesEnable"] = "GoogleServicesEnable";
|
|
921
|
+
})(GoogleServicesEnableProcessorName || (GoogleServicesEnableProcessorName = {}));
|
|
922
|
+
/**
|
|
923
|
+
* Enables GCP services defined in the `google.services` configuration.
|
|
924
|
+
*/
|
|
925
|
+
export class GoogleServicesEnableProcessor {
|
|
926
|
+
constructor(init) {
|
|
927
|
+
Object.assign(this, init);
|
|
928
|
+
}
|
|
929
|
+
name;
|
|
930
|
+
}
|
|
931
|
+
__decorate([
|
|
932
|
+
IsIn(['GoogleServicesEnable']),
|
|
933
|
+
__metadata("design:type", String)
|
|
934
|
+
], GoogleServicesEnableProcessor.prototype, "name", void 0);
|
|
935
|
+
/**
|
|
936
|
+
* Defines how DDLs are found for the Spanner databases in the workspace.
|
|
937
|
+
*/
|
|
938
|
+
export class GoogleSpannerDdls {
|
|
939
|
+
constructor(init) {
|
|
940
|
+
Object.assign(this, init);
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* The format string using groups from the regular expression used to make the database names.
|
|
944
|
+
*/
|
|
945
|
+
format;
|
|
946
|
+
/**
|
|
947
|
+
* A list of glob patterns used to find SQL files containing DDL statements for the Spanner databases.
|
|
948
|
+
*/
|
|
949
|
+
globs;
|
|
950
|
+
/**
|
|
951
|
+
* The regular expression used to extract groups from the SQL file paths.
|
|
952
|
+
*/
|
|
953
|
+
regularExpression;
|
|
954
|
+
}
|
|
873
955
|
__decorate([
|
|
874
956
|
AllowMissing(),
|
|
875
957
|
IsString(),
|
|
876
958
|
__metadata("design:type", String)
|
|
877
|
-
],
|
|
959
|
+
], GoogleSpannerDdls.prototype, "format", void 0);
|
|
960
|
+
__decorate([
|
|
961
|
+
AllowMissing(),
|
|
962
|
+
IsArray(),
|
|
963
|
+
IsString({ each: true }),
|
|
964
|
+
__metadata("design:type", Array)
|
|
965
|
+
], GoogleSpannerDdls.prototype, "globs", void 0);
|
|
966
|
+
__decorate([
|
|
967
|
+
AllowMissing(),
|
|
968
|
+
IsString(),
|
|
969
|
+
__metadata("design:type", String)
|
|
970
|
+
], GoogleSpannerDdls.prototype, "regularExpression", void 0);
|
|
971
|
+
/**
|
|
972
|
+
* Configuration for the emulator.
|
|
973
|
+
*/
|
|
974
|
+
export class GoogleSpannerEmulator {
|
|
975
|
+
constructor(init) {
|
|
976
|
+
Object.assign(this, init);
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* The name of the local Docker container running the emulator.
|
|
980
|
+
*/
|
|
981
|
+
containerName;
|
|
982
|
+
/**
|
|
983
|
+
* The version of the Spanner emulator Docker image to use.
|
|
984
|
+
*/
|
|
985
|
+
version;
|
|
986
|
+
/**
|
|
987
|
+
* The name of the Spanner instance that will automatically be created in the emulator.
|
|
988
|
+
*/
|
|
989
|
+
instanceName;
|
|
990
|
+
/**
|
|
991
|
+
* The host port to which the Spanner emulator gRPC API is bound.
|
|
992
|
+
* Override this to run several workspaces in parallel on the same machine. Defaults to `9010`.
|
|
993
|
+
*/
|
|
994
|
+
grpcPort;
|
|
995
|
+
/**
|
|
996
|
+
* The host port to which the Spanner emulator HTTP API is bound.
|
|
997
|
+
* Override this to run several workspaces in parallel on the same machine. Defaults to `9020`.
|
|
998
|
+
*/
|
|
999
|
+
httpPort;
|
|
1000
|
+
}
|
|
1001
|
+
__decorate([
|
|
1002
|
+
AllowMissing(),
|
|
1003
|
+
IsString(),
|
|
1004
|
+
__metadata("design:type", String)
|
|
1005
|
+
], GoogleSpannerEmulator.prototype, "containerName", void 0);
|
|
878
1006
|
__decorate([
|
|
879
1007
|
AllowMissing(),
|
|
880
1008
|
IsString(),
|
|
881
1009
|
__metadata("design:type", String)
|
|
882
1010
|
], GoogleSpannerEmulator.prototype, "version", void 0);
|
|
1011
|
+
__decorate([
|
|
1012
|
+
AllowMissing(),
|
|
1013
|
+
IsString(),
|
|
1014
|
+
__metadata("design:type", String)
|
|
1015
|
+
], GoogleSpannerEmulator.prototype, "instanceName", void 0);
|
|
1016
|
+
__decorate([
|
|
1017
|
+
AllowMissing(),
|
|
1018
|
+
IsNumber(),
|
|
1019
|
+
__metadata("design:type", Number)
|
|
1020
|
+
], GoogleSpannerEmulator.prototype, "grpcPort", void 0);
|
|
1021
|
+
__decorate([
|
|
1022
|
+
AllowMissing(),
|
|
1023
|
+
IsNumber(),
|
|
1024
|
+
__metadata("design:type", Number)
|
|
1025
|
+
], GoogleSpannerEmulator.prototype, "httpPort", void 0);
|
|
883
1026
|
/**
|
|
884
1027
|
* Autoscaling configuration for the Spanner instance.
|
|
885
1028
|
*/
|
|
@@ -887,10 +1030,6 @@ export class GoogleSpannerInstanceAutoscaling {
|
|
|
887
1030
|
constructor(init) {
|
|
888
1031
|
Object.assign(this, init);
|
|
889
1032
|
}
|
|
890
|
-
/**
|
|
891
|
-
* The target high-priority CPU utilization percentage for autoscaling.
|
|
892
|
-
*/
|
|
893
|
-
highPriorityCpuUtilizationTarget;
|
|
894
1033
|
/**
|
|
895
1034
|
* The maximum number of processing units for autoscaling.
|
|
896
1035
|
*/
|
|
@@ -899,6 +1038,10 @@ export class GoogleSpannerInstanceAutoscaling {
|
|
|
899
1038
|
* The minimum number of processing units for autoscaling.
|
|
900
1039
|
*/
|
|
901
1040
|
minProcessingUnits;
|
|
1041
|
+
/**
|
|
1042
|
+
* The target high-priority CPU utilization percentage for autoscaling.
|
|
1043
|
+
*/
|
|
1044
|
+
highPriorityCpuUtilizationTarget;
|
|
902
1045
|
/**
|
|
903
1046
|
* The target storage utilization percentage for autoscaling.
|
|
904
1047
|
*/
|
|
@@ -908,17 +1051,17 @@ __decorate([
|
|
|
908
1051
|
AllowMissing(),
|
|
909
1052
|
IsNumber(),
|
|
910
1053
|
__metadata("design:type", Number)
|
|
911
|
-
], GoogleSpannerInstanceAutoscaling.prototype, "
|
|
1054
|
+
], GoogleSpannerInstanceAutoscaling.prototype, "maxProcessingUnits", void 0);
|
|
912
1055
|
__decorate([
|
|
913
1056
|
AllowMissing(),
|
|
914
1057
|
IsNumber(),
|
|
915
1058
|
__metadata("design:type", Number)
|
|
916
|
-
], GoogleSpannerInstanceAutoscaling.prototype, "
|
|
1059
|
+
], GoogleSpannerInstanceAutoscaling.prototype, "minProcessingUnits", void 0);
|
|
917
1060
|
__decorate([
|
|
918
1061
|
AllowMissing(),
|
|
919
1062
|
IsNumber(),
|
|
920
1063
|
__metadata("design:type", Number)
|
|
921
|
-
], GoogleSpannerInstanceAutoscaling.prototype, "
|
|
1064
|
+
], GoogleSpannerInstanceAutoscaling.prototype, "highPriorityCpuUtilizationTarget", void 0);
|
|
922
1065
|
__decorate([
|
|
923
1066
|
AllowMissing(),
|
|
924
1067
|
IsNumber(),
|
|
@@ -932,52 +1075,55 @@ export class GoogleSpannerInstance {
|
|
|
932
1075
|
Object.assign(this, init);
|
|
933
1076
|
}
|
|
934
1077
|
/**
|
|
935
|
-
*
|
|
1078
|
+
* The name of the Spanner instance.
|
|
936
1079
|
*/
|
|
937
|
-
|
|
1080
|
+
name;
|
|
938
1081
|
/**
|
|
939
1082
|
* The instance geographic configuration.
|
|
940
1083
|
* See https://cloud.google.com/spanner/docs/instance-configurations for more details.
|
|
941
1084
|
*/
|
|
942
1085
|
configuration;
|
|
943
1086
|
/**
|
|
944
|
-
* The
|
|
1087
|
+
* The compute capacity of the instance.
|
|
1088
|
+
* See https://cloud.google.com/spanner/docs/compute-capacity for more details.
|
|
945
1089
|
*/
|
|
946
|
-
|
|
1090
|
+
processingUnits;
|
|
947
1091
|
/**
|
|
948
|
-
*
|
|
1092
|
+
* Autoscaling configuration for the Spanner instance.
|
|
949
1093
|
*/
|
|
950
|
-
|
|
1094
|
+
autoscaling;
|
|
951
1095
|
/**
|
|
952
|
-
* The
|
|
953
|
-
* See https://cloud.google.com/spanner/docs/compute-capacity for more details.
|
|
1096
|
+
* The edition of the Spanner instance (e.g. STANDARD, ENTERPRISE).
|
|
954
1097
|
*/
|
|
955
|
-
|
|
1098
|
+
edition;
|
|
956
1099
|
}
|
|
957
|
-
__decorate([
|
|
958
|
-
AllowMissing(),
|
|
959
|
-
__metadata("design:type", GoogleSpannerInstanceAutoscaling)
|
|
960
|
-
], GoogleSpannerInstance.prototype, "autoscaling", void 0);
|
|
961
|
-
__decorate([
|
|
962
|
-
AllowMissing(),
|
|
963
|
-
IsString(),
|
|
964
|
-
__metadata("design:type", String)
|
|
965
|
-
], GoogleSpannerInstance.prototype, "configuration", void 0);
|
|
966
1100
|
__decorate([
|
|
967
1101
|
AllowMissing(),
|
|
968
1102
|
IsString(),
|
|
969
1103
|
__metadata("design:type", String)
|
|
970
|
-
], GoogleSpannerInstance.prototype, "
|
|
1104
|
+
], GoogleSpannerInstance.prototype, "name", void 0);
|
|
971
1105
|
__decorate([
|
|
972
1106
|
AllowMissing(),
|
|
973
1107
|
IsString(),
|
|
974
1108
|
__metadata("design:type", String)
|
|
975
|
-
], GoogleSpannerInstance.prototype, "
|
|
1109
|
+
], GoogleSpannerInstance.prototype, "configuration", void 0);
|
|
976
1110
|
__decorate([
|
|
977
1111
|
AllowMissing(),
|
|
978
1112
|
IsNumber(),
|
|
979
1113
|
__metadata("design:type", Number)
|
|
980
1114
|
], GoogleSpannerInstance.prototype, "processingUnits", void 0);
|
|
1115
|
+
__decorate([
|
|
1116
|
+
AllowMissing(),
|
|
1117
|
+
IsObject(),
|
|
1118
|
+
Type(() => GoogleSpannerInstanceAutoscaling),
|
|
1119
|
+
ValidateNested(),
|
|
1120
|
+
__metadata("design:type", GoogleSpannerInstanceAutoscaling)
|
|
1121
|
+
], GoogleSpannerInstance.prototype, "autoscaling", void 0);
|
|
1122
|
+
__decorate([
|
|
1123
|
+
AllowMissing(),
|
|
1124
|
+
IsString(),
|
|
1125
|
+
__metadata("design:type", String)
|
|
1126
|
+
], GoogleSpannerInstance.prototype, "edition", void 0);
|
|
981
1127
|
/**
|
|
982
1128
|
* Configuration for the Spanner service.
|
|
983
1129
|
*/
|
|
@@ -986,347 +1132,420 @@ export class GoogleSpanner {
|
|
|
986
1132
|
Object.assign(this, init);
|
|
987
1133
|
}
|
|
988
1134
|
/**
|
|
989
|
-
*
|
|
1135
|
+
* Configuration for the emulator.
|
|
990
1136
|
*/
|
|
991
|
-
|
|
1137
|
+
emulator;
|
|
992
1138
|
/**
|
|
993
|
-
*
|
|
1139
|
+
* Configuration for the Spanner instance.
|
|
994
1140
|
*/
|
|
995
|
-
|
|
1141
|
+
instance;
|
|
996
1142
|
/**
|
|
997
1143
|
* Defines how DDLs are found for the Spanner databases in the workspace.
|
|
998
1144
|
*/
|
|
999
1145
|
ddls;
|
|
1000
1146
|
/**
|
|
1001
|
-
*
|
|
1002
|
-
*/
|
|
1003
|
-
emulator;
|
|
1004
|
-
/**
|
|
1005
|
-
* Configuration for the Spanner instance.
|
|
1147
|
+
* The directory where the database configuration files are written by the `GoogleSpannerWriteDatabases` processor.
|
|
1006
1148
|
*/
|
|
1007
|
-
|
|
1149
|
+
databaseConfigurationsDirectory;
|
|
1008
1150
|
/**
|
|
1009
1151
|
* The default version retention period for Spanner databases.
|
|
1010
1152
|
*/
|
|
1011
1153
|
versionRetentionPeriod;
|
|
1154
|
+
/**
|
|
1155
|
+
* The timeout for Spanner database DDL operations.
|
|
1156
|
+
*/
|
|
1157
|
+
databaseDdlTimeout;
|
|
1012
1158
|
}
|
|
1013
1159
|
__decorate([
|
|
1014
1160
|
AllowMissing(),
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1161
|
+
IsObject(),
|
|
1162
|
+
Type(() => GoogleSpannerEmulator),
|
|
1163
|
+
ValidateNested(),
|
|
1164
|
+
__metadata("design:type", GoogleSpannerEmulator)
|
|
1165
|
+
], GoogleSpanner.prototype, "emulator", void 0);
|
|
1018
1166
|
__decorate([
|
|
1019
1167
|
AllowMissing(),
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1168
|
+
IsObject(),
|
|
1169
|
+
Type(() => GoogleSpannerInstance),
|
|
1170
|
+
ValidateNested(),
|
|
1171
|
+
__metadata("design:type", GoogleSpannerInstance)
|
|
1172
|
+
], GoogleSpanner.prototype, "instance", void 0);
|
|
1023
1173
|
__decorate([
|
|
1024
1174
|
AllowMissing(),
|
|
1175
|
+
IsObject(),
|
|
1176
|
+
Type(() => GoogleSpannerDdls),
|
|
1177
|
+
ValidateNested(),
|
|
1025
1178
|
__metadata("design:type", GoogleSpannerDdls)
|
|
1026
1179
|
], GoogleSpanner.prototype, "ddls", void 0);
|
|
1027
1180
|
__decorate([
|
|
1028
1181
|
AllowMissing(),
|
|
1029
|
-
|
|
1030
|
-
|
|
1182
|
+
IsString(),
|
|
1183
|
+
__metadata("design:type", String)
|
|
1184
|
+
], GoogleSpanner.prototype, "databaseConfigurationsDirectory", void 0);
|
|
1031
1185
|
__decorate([
|
|
1032
1186
|
AllowMissing(),
|
|
1033
|
-
|
|
1034
|
-
|
|
1187
|
+
IsString(),
|
|
1188
|
+
__metadata("design:type", String)
|
|
1189
|
+
], GoogleSpanner.prototype, "versionRetentionPeriod", void 0);
|
|
1035
1190
|
__decorate([
|
|
1036
1191
|
AllowMissing(),
|
|
1037
1192
|
IsString(),
|
|
1038
1193
|
__metadata("design:type", String)
|
|
1039
|
-
], GoogleSpanner.prototype, "
|
|
1194
|
+
], GoogleSpanner.prototype, "databaseDdlTimeout", void 0);
|
|
1195
|
+
export var GoogleSpannerWriteDatabasesProcessorName;
|
|
1196
|
+
(function (GoogleSpannerWriteDatabasesProcessorName) {
|
|
1197
|
+
GoogleSpannerWriteDatabasesProcessorName["GoogleSpannerWriteDatabases"] = "GoogleSpannerWriteDatabases";
|
|
1198
|
+
})(GoogleSpannerWriteDatabasesProcessorName || (GoogleSpannerWriteDatabasesProcessorName = {}));
|
|
1040
1199
|
/**
|
|
1041
|
-
*
|
|
1200
|
+
* Writes Spanner database configurations to JSON files.
|
|
1201
|
+
* Sets the `google.spanner.databaseConfigurationsDirectory` configuration value.
|
|
1042
1202
|
*/
|
|
1043
|
-
export class
|
|
1203
|
+
export class GoogleSpannerWriteDatabasesProcessor {
|
|
1204
|
+
constructor(init) {
|
|
1205
|
+
Object.assign(this, init);
|
|
1206
|
+
}
|
|
1207
|
+
name;
|
|
1208
|
+
}
|
|
1209
|
+
__decorate([
|
|
1210
|
+
IsIn(['GoogleSpannerWriteDatabases']),
|
|
1211
|
+
__metadata("design:type", String)
|
|
1212
|
+
], GoogleSpannerWriteDatabasesProcessor.prototype, "name", void 0);
|
|
1213
|
+
export class GoogleInfrastructure {
|
|
1214
|
+
constructor(init) {
|
|
1215
|
+
Object.assign(this, init);
|
|
1216
|
+
}
|
|
1217
|
+
processors;
|
|
1218
|
+
}
|
|
1219
|
+
__decorate([
|
|
1220
|
+
AllowMissing(),
|
|
1221
|
+
IsArray(),
|
|
1222
|
+
__metadata("design:type", Array)
|
|
1223
|
+
], GoogleInfrastructure.prototype, "processors", void 0);
|
|
1224
|
+
/**
|
|
1225
|
+
* Google-specific refinement of the infrastructure configuration with known processors.
|
|
1226
|
+
*/
|
|
1227
|
+
export class GoogleInfrastructureConfiguration {
|
|
1228
|
+
constructor(init) {
|
|
1229
|
+
Object.assign(this, init);
|
|
1230
|
+
}
|
|
1231
|
+
infrastructure;
|
|
1232
|
+
}
|
|
1233
|
+
__decorate([
|
|
1234
|
+
AllowMissing(),
|
|
1235
|
+
IsObject(),
|
|
1236
|
+
Type(() => GoogleInfrastructure),
|
|
1237
|
+
ValidateNested(),
|
|
1238
|
+
__metadata("design:type", GoogleInfrastructure)
|
|
1239
|
+
], GoogleInfrastructureConfiguration.prototype, "infrastructure", void 0);
|
|
1240
|
+
export class ServiceContainerGenericTrigger {
|
|
1044
1241
|
constructor(init) {
|
|
1045
1242
|
Object.assign(this, init);
|
|
1046
1243
|
}
|
|
1047
1244
|
/**
|
|
1048
|
-
*
|
|
1049
|
-
*/
|
|
1050
|
-
cloudFunctions;
|
|
1051
|
-
/**
|
|
1052
|
-
* Configuration for Cloud Run containers.
|
|
1053
|
-
*/
|
|
1054
|
-
cloudRun;
|
|
1055
|
-
/**
|
|
1056
|
-
* Configuration for the Firebase project.
|
|
1057
|
-
*/
|
|
1058
|
-
firebase;
|
|
1059
|
-
/**
|
|
1060
|
-
* Configuration for the Firebase Storage service.
|
|
1061
|
-
*/
|
|
1062
|
-
firebaseStorage;
|
|
1063
|
-
/**
|
|
1064
|
-
* Configuration for the Firestore service.
|
|
1065
|
-
*/
|
|
1066
|
-
firestore;
|
|
1067
|
-
/**
|
|
1068
|
-
* Configuration for the `gcloud` command.
|
|
1069
|
-
* This applies to Dockerized calls to `gcloud` using the official `gcloud` Docker image.
|
|
1245
|
+
* The type of trigger.
|
|
1070
1246
|
*/
|
|
1071
|
-
|
|
1247
|
+
type;
|
|
1248
|
+
}
|
|
1249
|
+
__decorate([
|
|
1250
|
+
IsString(),
|
|
1251
|
+
__metadata("design:type", String)
|
|
1252
|
+
], ServiceContainerGenericTrigger.prototype, "type", void 0);
|
|
1253
|
+
/**
|
|
1254
|
+
* The type of trigger.
|
|
1255
|
+
*/
|
|
1256
|
+
export var ServiceContainerGoogleEventarcTriggerType;
|
|
1257
|
+
(function (ServiceContainerGoogleEventarcTriggerType) {
|
|
1258
|
+
ServiceContainerGoogleEventarcTriggerType["GoogleEventarc"] = "google.eventarc";
|
|
1259
|
+
})(ServiceContainerGoogleEventarcTriggerType || (ServiceContainerGoogleEventarcTriggerType = {}));
|
|
1260
|
+
/**
|
|
1261
|
+
* Google Pub/Sub-specific options for the trigger.
|
|
1262
|
+
*/
|
|
1263
|
+
export class ServiceContainerGooglePubSubTriggerOptions {
|
|
1264
|
+
constructor(init) {
|
|
1265
|
+
Object.assign(this, init);
|
|
1266
|
+
}
|
|
1072
1267
|
/**
|
|
1073
|
-
*
|
|
1268
|
+
* The minimum backoff for the Pub/Sub push subscription retry policy.
|
|
1074
1269
|
*/
|
|
1075
|
-
|
|
1270
|
+
minimumBackoff;
|
|
1076
1271
|
/**
|
|
1077
|
-
*
|
|
1272
|
+
* The maximum backoff for the Pub/Sub push subscription retry policy.
|
|
1078
1273
|
*/
|
|
1079
|
-
|
|
1274
|
+
maximumBackoff;
|
|
1080
1275
|
/**
|
|
1081
|
-
*
|
|
1082
|
-
* This is for example used by emulators. It should usually start with `demo-` to be compatible with some emulators.
|
|
1276
|
+
* A Pub/Sub filter expression for the subscription.
|
|
1083
1277
|
*/
|
|
1084
|
-
|
|
1278
|
+
filter;
|
|
1279
|
+
}
|
|
1280
|
+
__decorate([
|
|
1281
|
+
AllowMissing(),
|
|
1282
|
+
IsString(),
|
|
1283
|
+
__metadata("design:type", String)
|
|
1284
|
+
], ServiceContainerGooglePubSubTriggerOptions.prototype, "minimumBackoff", void 0);
|
|
1285
|
+
__decorate([
|
|
1286
|
+
AllowMissing(),
|
|
1287
|
+
IsString(),
|
|
1288
|
+
__metadata("design:type", String)
|
|
1289
|
+
], ServiceContainerGooglePubSubTriggerOptions.prototype, "maximumBackoff", void 0);
|
|
1290
|
+
__decorate([
|
|
1291
|
+
AllowMissing(),
|
|
1292
|
+
IsString(),
|
|
1293
|
+
__metadata("design:type", String)
|
|
1294
|
+
], ServiceContainerGooglePubSubTriggerOptions.prototype, "filter", void 0);
|
|
1295
|
+
/**
|
|
1296
|
+
* The type of trigger.
|
|
1297
|
+
*/
|
|
1298
|
+
export var ServiceContainerGooglePubSubTriggerType;
|
|
1299
|
+
(function (ServiceContainerGooglePubSubTriggerType) {
|
|
1300
|
+
ServiceContainerGooglePubSubTriggerType["GooglePubSub"] = "google.pubSub";
|
|
1301
|
+
ServiceContainerGooglePubSubTriggerType["Event"] = "event";
|
|
1302
|
+
})(ServiceContainerGooglePubSubTriggerType || (ServiceContainerGooglePubSubTriggerType = {}));
|
|
1303
|
+
/**
|
|
1304
|
+
* A trigger backed by a Google Pub/Sub subscription.
|
|
1305
|
+
*/
|
|
1306
|
+
export class ServiceContainerGooglePubSubTrigger {
|
|
1307
|
+
constructor(init) {
|
|
1308
|
+
Object.assign(this, init);
|
|
1309
|
+
}
|
|
1085
1310
|
/**
|
|
1086
|
-
* The
|
|
1311
|
+
* The type of trigger.
|
|
1087
1312
|
*/
|
|
1088
|
-
|
|
1313
|
+
type;
|
|
1089
1314
|
/**
|
|
1090
|
-
*
|
|
1315
|
+
* The ID of the topic triggering the endpoint.
|
|
1091
1316
|
*/
|
|
1092
|
-
|
|
1317
|
+
topic;
|
|
1093
1318
|
/**
|
|
1094
|
-
*
|
|
1319
|
+
* Google Pub/Sub-specific options for the trigger.
|
|
1095
1320
|
*/
|
|
1096
|
-
|
|
1321
|
+
'google.pubSub';
|
|
1322
|
+
}
|
|
1323
|
+
__decorate([
|
|
1324
|
+
IsIn(['google.pubSub', 'event']),
|
|
1325
|
+
__metadata("design:type", String)
|
|
1326
|
+
], ServiceContainerGooglePubSubTrigger.prototype, "type", void 0);
|
|
1327
|
+
__decorate([
|
|
1328
|
+
IsString(),
|
|
1329
|
+
__metadata("design:type", String)
|
|
1330
|
+
], ServiceContainerGooglePubSubTrigger.prototype, "topic", void 0);
|
|
1331
|
+
__decorate([
|
|
1332
|
+
AllowMissing(),
|
|
1333
|
+
IsObject(),
|
|
1334
|
+
Type(() => ServiceContainerGooglePubSubTriggerOptions),
|
|
1335
|
+
ValidateNested(),
|
|
1336
|
+
__metadata("design:type", ServiceContainerGooglePubSubTriggerOptions)
|
|
1337
|
+
], ServiceContainerGooglePubSubTrigger.prototype, "google.pubSub", void 0);
|
|
1338
|
+
/**
|
|
1339
|
+
* Google Cloud Scheduler-specific options for the trigger.
|
|
1340
|
+
*/
|
|
1341
|
+
export class ServiceContainerGoogleSchedulerTriggerOptions {
|
|
1342
|
+
constructor(init) {
|
|
1343
|
+
Object.assign(this, init);
|
|
1344
|
+
}
|
|
1097
1345
|
/**
|
|
1098
|
-
*
|
|
1346
|
+
* The number of retry attempts for the Cloud Scheduler job.
|
|
1099
1347
|
*/
|
|
1100
|
-
|
|
1348
|
+
retryCount;
|
|
1101
1349
|
/**
|
|
1102
|
-
*
|
|
1350
|
+
* The maximum duration for retrying a failed job.
|
|
1103
1351
|
*/
|
|
1104
|
-
|
|
1352
|
+
maxRetryDuration;
|
|
1105
1353
|
/**
|
|
1106
|
-
* The
|
|
1107
|
-
* This is useful to automatically enable those services in the GCP project.
|
|
1354
|
+
* The minimum backoff duration for job retries.
|
|
1108
1355
|
*/
|
|
1109
|
-
|
|
1356
|
+
minBackoffDuration;
|
|
1110
1357
|
/**
|
|
1111
|
-
*
|
|
1358
|
+
* The maximum backoff duration for job retries.
|
|
1112
1359
|
*/
|
|
1113
|
-
|
|
1360
|
+
maxBackoffDuration;
|
|
1361
|
+
/**
|
|
1362
|
+
* The maximum number of times the backoff duration is doubled.
|
|
1363
|
+
*/
|
|
1364
|
+
maxDoublings;
|
|
1365
|
+
/**
|
|
1366
|
+
* The deadline for job attempts.
|
|
1367
|
+
*/
|
|
1368
|
+
attemptDeadline;
|
|
1114
1369
|
}
|
|
1115
1370
|
__decorate([
|
|
1116
1371
|
AllowMissing(),
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
AllowMissing(),
|
|
1121
|
-
__metadata("design:type", GoogleCloudRun)
|
|
1122
|
-
], Google.prototype, "cloudRun", void 0);
|
|
1123
|
-
__decorate([
|
|
1124
|
-
AllowMissing(),
|
|
1125
|
-
__metadata("design:type", GoogleFirebase)
|
|
1126
|
-
], Google.prototype, "firebase", void 0);
|
|
1127
|
-
__decorate([
|
|
1128
|
-
AllowMissing(),
|
|
1129
|
-
__metadata("design:type", GoogleFirebaseStorage)
|
|
1130
|
-
], Google.prototype, "firebaseStorage", void 0);
|
|
1131
|
-
__decorate([
|
|
1132
|
-
AllowMissing(),
|
|
1133
|
-
__metadata("design:type", GoogleFirestore)
|
|
1134
|
-
], Google.prototype, "firestore", void 0);
|
|
1135
|
-
__decorate([
|
|
1136
|
-
AllowMissing(),
|
|
1137
|
-
__metadata("design:type", GoogleGcloud)
|
|
1138
|
-
], Google.prototype, "gcloud", void 0);
|
|
1139
|
-
__decorate([
|
|
1140
|
-
AllowMissing(),
|
|
1141
|
-
__metadata("design:type", GoogleIdentityPlatform)
|
|
1142
|
-
], Google.prototype, "identityPlatform", void 0);
|
|
1143
|
-
__decorate([
|
|
1144
|
-
AllowMissing(),
|
|
1145
|
-
__metadata("design:type", GoogleLoadBalancing)
|
|
1146
|
-
], Google.prototype, "loadBalancing", void 0);
|
|
1372
|
+
IsNumber(),
|
|
1373
|
+
__metadata("design:type", Number)
|
|
1374
|
+
], ServiceContainerGoogleSchedulerTriggerOptions.prototype, "retryCount", void 0);
|
|
1147
1375
|
__decorate([
|
|
1148
1376
|
AllowMissing(),
|
|
1149
1377
|
IsString(),
|
|
1150
1378
|
__metadata("design:type", String)
|
|
1151
|
-
],
|
|
1379
|
+
], ServiceContainerGoogleSchedulerTriggerOptions.prototype, "maxRetryDuration", void 0);
|
|
1152
1380
|
__decorate([
|
|
1153
1381
|
AllowMissing(),
|
|
1154
1382
|
IsString(),
|
|
1155
1383
|
__metadata("design:type", String)
|
|
1156
|
-
],
|
|
1157
|
-
__decorate([
|
|
1158
|
-
AllowMissing(),
|
|
1159
|
-
__metadata("design:type", GooglePubSub)
|
|
1160
|
-
], Google.prototype, "pubSub", void 0);
|
|
1384
|
+
], ServiceContainerGoogleSchedulerTriggerOptions.prototype, "minBackoffDuration", void 0);
|
|
1161
1385
|
__decorate([
|
|
1162
1386
|
AllowMissing(),
|
|
1163
1387
|
IsString(),
|
|
1164
1388
|
__metadata("design:type", String)
|
|
1165
|
-
],
|
|
1166
|
-
__decorate([
|
|
1167
|
-
AllowMissing(),
|
|
1168
|
-
__metadata("design:type", GoogleScheduler)
|
|
1169
|
-
], Google.prototype, "scheduler", void 0);
|
|
1170
|
-
__decorate([
|
|
1171
|
-
AllowMissing(),
|
|
1172
|
-
__metadata("design:type", GoogleSecretManager)
|
|
1173
|
-
], Google.prototype, "secretManager", void 0);
|
|
1389
|
+
], ServiceContainerGoogleSchedulerTriggerOptions.prototype, "maxBackoffDuration", void 0);
|
|
1174
1390
|
__decorate([
|
|
1175
1391
|
AllowMissing(),
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
], Google.prototype, "services", void 0);
|
|
1392
|
+
IsNumber(),
|
|
1393
|
+
__metadata("design:type", Number)
|
|
1394
|
+
], ServiceContainerGoogleSchedulerTriggerOptions.prototype, "maxDoublings", void 0);
|
|
1180
1395
|
__decorate([
|
|
1181
1396
|
AllowMissing(),
|
|
1182
|
-
|
|
1183
|
-
|
|
1397
|
+
IsString(),
|
|
1398
|
+
__metadata("design:type", String)
|
|
1399
|
+
], ServiceContainerGoogleSchedulerTriggerOptions.prototype, "attemptDeadline", void 0);
|
|
1184
1400
|
/**
|
|
1185
|
-
* The
|
|
1401
|
+
* The type of trigger.
|
|
1186
1402
|
*/
|
|
1187
|
-
export
|
|
1403
|
+
export var ServiceContainerGoogleSchedulerTriggerType;
|
|
1404
|
+
(function (ServiceContainerGoogleSchedulerTriggerType) {
|
|
1405
|
+
ServiceContainerGoogleSchedulerTriggerType["GoogleScheduler"] = "google.scheduler";
|
|
1406
|
+
ServiceContainerGoogleSchedulerTriggerType["Cron"] = "cron";
|
|
1407
|
+
})(ServiceContainerGoogleSchedulerTriggerType || (ServiceContainerGoogleSchedulerTriggerType = {}));
|
|
1408
|
+
/**
|
|
1409
|
+
* A trigger backed by a Google Cloud Scheduler job.
|
|
1410
|
+
*/
|
|
1411
|
+
export class ServiceContainerGoogleSchedulerTrigger {
|
|
1188
1412
|
constructor(init) {
|
|
1189
1413
|
Object.assign(this, init);
|
|
1190
1414
|
}
|
|
1191
1415
|
/**
|
|
1192
|
-
*
|
|
1416
|
+
* The type of trigger.
|
|
1193
1417
|
*/
|
|
1194
|
-
|
|
1418
|
+
type;
|
|
1419
|
+
/**
|
|
1420
|
+
* The cron schedule expression for cron triggers.
|
|
1421
|
+
*/
|
|
1422
|
+
schedule;
|
|
1423
|
+
/**
|
|
1424
|
+
* The timezone for the cron schedule.
|
|
1425
|
+
*/
|
|
1426
|
+
timezone;
|
|
1427
|
+
/**
|
|
1428
|
+
* Google Cloud Scheduler-specific options for the trigger.
|
|
1429
|
+
*/
|
|
1430
|
+
'google.scheduler';
|
|
1195
1431
|
}
|
|
1196
1432
|
__decorate([
|
|
1197
|
-
|
|
1198
|
-
__metadata("design:type",
|
|
1199
|
-
],
|
|
1200
|
-
/**
|
|
1201
|
-
* Merges all Firebase Storage security rules from the workspace.
|
|
1202
|
-
* Sets the `google.firebaseStorage.securityRuleFile` configuration value.
|
|
1203
|
-
*/
|
|
1204
|
-
export class GoogleProcessor {
|
|
1205
|
-
constructor(init) {
|
|
1206
|
-
Object.assign(this, init);
|
|
1207
|
-
}
|
|
1208
|
-
name;
|
|
1209
|
-
}
|
|
1433
|
+
IsIn(['google.scheduler', 'cron']),
|
|
1434
|
+
__metadata("design:type", String)
|
|
1435
|
+
], ServiceContainerGoogleSchedulerTrigger.prototype, "type", void 0);
|
|
1210
1436
|
__decorate([
|
|
1211
1437
|
IsString(),
|
|
1212
1438
|
__metadata("design:type", String)
|
|
1213
|
-
],
|
|
1214
|
-
export class Infrastructure {
|
|
1215
|
-
constructor(init) {
|
|
1216
|
-
Object.assign(this, init);
|
|
1217
|
-
}
|
|
1218
|
-
processors;
|
|
1219
|
-
}
|
|
1220
|
-
__decorate([
|
|
1221
|
-
AllowMissing(),
|
|
1222
|
-
IsArray(),
|
|
1223
|
-
__metadata("design:type", Array)
|
|
1224
|
-
], Infrastructure.prototype, "processors", void 0);
|
|
1225
|
-
/**
|
|
1226
|
-
* Google-specific refinement of the infrastructure configuration with known processors.
|
|
1227
|
-
*/
|
|
1228
|
-
export class GoogleInfrastructureConfiguration {
|
|
1229
|
-
constructor(init) {
|
|
1230
|
-
Object.assign(this, init);
|
|
1231
|
-
}
|
|
1232
|
-
infrastructure;
|
|
1233
|
-
}
|
|
1234
|
-
__decorate([
|
|
1235
|
-
AllowMissing(),
|
|
1236
|
-
__metadata("design:type", Infrastructure)
|
|
1237
|
-
], GoogleInfrastructureConfiguration.prototype, "infrastructure", void 0);
|
|
1238
|
-
export class Secrets {
|
|
1239
|
-
constructor(init) {
|
|
1240
|
-
Object.assign(this, init);
|
|
1241
|
-
}
|
|
1242
|
-
defaultBackend;
|
|
1243
|
-
}
|
|
1439
|
+
], ServiceContainerGoogleSchedulerTrigger.prototype, "schedule", void 0);
|
|
1244
1440
|
__decorate([
|
|
1245
1441
|
AllowMissing(),
|
|
1246
1442
|
IsString(),
|
|
1247
1443
|
__metadata("design:type", String)
|
|
1248
|
-
],
|
|
1249
|
-
export class Causa {
|
|
1250
|
-
constructor(init) {
|
|
1251
|
-
Object.assign(this, init);
|
|
1252
|
-
}
|
|
1253
|
-
secrets;
|
|
1254
|
-
}
|
|
1444
|
+
], ServiceContainerGoogleSchedulerTrigger.prototype, "timezone", void 0);
|
|
1255
1445
|
__decorate([
|
|
1256
1446
|
AllowMissing(),
|
|
1257
|
-
|
|
1258
|
-
|
|
1447
|
+
IsObject(),
|
|
1448
|
+
Type(() => ServiceContainerGoogleSchedulerTriggerOptions),
|
|
1449
|
+
ValidateNested(),
|
|
1450
|
+
__metadata("design:type", ServiceContainerGoogleSchedulerTriggerOptions)
|
|
1451
|
+
], ServiceContainerGoogleSchedulerTrigger.prototype, "google.scheduler", void 0);
|
|
1259
1452
|
/**
|
|
1260
|
-
*
|
|
1261
|
-
* This backend does not require any additional configuration.
|
|
1453
|
+
* The retry policy for the Cloud Tasks queue.
|
|
1262
1454
|
*/
|
|
1263
|
-
export class
|
|
1455
|
+
export class ServiceContainerGoogleTaskTriggerRetryPolicy {
|
|
1264
1456
|
constructor(init) {
|
|
1265
1457
|
Object.assign(this, init);
|
|
1266
1458
|
}
|
|
1267
|
-
backend;
|
|
1268
1459
|
/**
|
|
1269
|
-
* The
|
|
1270
|
-
* Supported formats: `<secret-name>`, `projects/<project>/secrets/<secret-name>`, `projects/<project>/secrets/<secret-name>/versions/<version>`.
|
|
1271
|
-
* If the project is not specified, `google.secretManager.project` or `google.project` will be used.
|
|
1272
|
-
* If the version is not specified, `latest` will be used.
|
|
1460
|
+
* The maximum number of attempts for a task.
|
|
1273
1461
|
*/
|
|
1274
|
-
|
|
1462
|
+
maxAttempts;
|
|
1463
|
+
/**
|
|
1464
|
+
* The maximum duration for retrying a failed task.
|
|
1465
|
+
*/
|
|
1466
|
+
maxRetryDuration;
|
|
1467
|
+
/**
|
|
1468
|
+
* The minimum backoff duration for task retries.
|
|
1469
|
+
*/
|
|
1470
|
+
minBackoff;
|
|
1471
|
+
/**
|
|
1472
|
+
* The maximum backoff duration for task retries.
|
|
1473
|
+
*/
|
|
1474
|
+
maxBackoff;
|
|
1475
|
+
/**
|
|
1476
|
+
* The maximum number of times the backoff duration is doubled.
|
|
1477
|
+
*/
|
|
1478
|
+
maxDoublings;
|
|
1275
1479
|
}
|
|
1480
|
+
__decorate([
|
|
1481
|
+
AllowMissing(),
|
|
1482
|
+
IsNumber(),
|
|
1483
|
+
__metadata("design:type", Number)
|
|
1484
|
+
], ServiceContainerGoogleTaskTriggerRetryPolicy.prototype, "maxAttempts", void 0);
|
|
1276
1485
|
__decorate([
|
|
1277
1486
|
AllowMissing(),
|
|
1278
1487
|
IsString(),
|
|
1279
1488
|
__metadata("design:type", String)
|
|
1280
|
-
],
|
|
1489
|
+
], ServiceContainerGoogleTaskTriggerRetryPolicy.prototype, "maxRetryDuration", void 0);
|
|
1281
1490
|
__decorate([
|
|
1282
1491
|
AllowMissing(),
|
|
1283
1492
|
IsString(),
|
|
1284
1493
|
__metadata("design:type", String)
|
|
1285
|
-
],
|
|
1286
|
-
/**
|
|
1287
|
-
* Google-specific refinement of the secrets configuration.
|
|
1288
|
-
*/
|
|
1289
|
-
export class GoogleSecretsConfiguration {
|
|
1290
|
-
constructor(init) {
|
|
1291
|
-
Object.assign(this, init);
|
|
1292
|
-
}
|
|
1293
|
-
causa;
|
|
1294
|
-
secrets;
|
|
1295
|
-
}
|
|
1494
|
+
], ServiceContainerGoogleTaskTriggerRetryPolicy.prototype, "minBackoff", void 0);
|
|
1296
1495
|
__decorate([
|
|
1297
1496
|
AllowMissing(),
|
|
1298
|
-
|
|
1299
|
-
|
|
1497
|
+
IsString(),
|
|
1498
|
+
__metadata("design:type", String)
|
|
1499
|
+
], ServiceContainerGoogleTaskTriggerRetryPolicy.prototype, "maxBackoff", void 0);
|
|
1300
1500
|
__decorate([
|
|
1301
1501
|
AllowMissing(),
|
|
1302
|
-
|
|
1303
|
-
__metadata("design:type",
|
|
1304
|
-
],
|
|
1305
|
-
|
|
1502
|
+
IsNumber(),
|
|
1503
|
+
__metadata("design:type", Number)
|
|
1504
|
+
], ServiceContainerGoogleTaskTriggerRetryPolicy.prototype, "maxDoublings", void 0);
|
|
1505
|
+
/**
|
|
1506
|
+
* The type of trigger.
|
|
1507
|
+
*/
|
|
1508
|
+
export var ServiceContainerGoogleTaskTriggerType;
|
|
1509
|
+
(function (ServiceContainerGoogleTaskTriggerType) {
|
|
1510
|
+
ServiceContainerGoogleTaskTriggerType["GoogleTasks"] = "google.tasks";
|
|
1511
|
+
ServiceContainerGoogleTaskTriggerType["Task"] = "task";
|
|
1512
|
+
})(ServiceContainerGoogleTaskTriggerType || (ServiceContainerGoogleTaskTriggerType = {}));
|
|
1513
|
+
/**
|
|
1514
|
+
* A trigger backed by a Google Cloud Tasks queue.
|
|
1515
|
+
*/
|
|
1516
|
+
export class ServiceContainerGoogleTaskTrigger {
|
|
1306
1517
|
constructor(init) {
|
|
1307
1518
|
Object.assign(this, init);
|
|
1308
1519
|
}
|
|
1309
|
-
|
|
1520
|
+
/**
|
|
1521
|
+
* The type of trigger.
|
|
1522
|
+
*/
|
|
1523
|
+
type;
|
|
1524
|
+
/**
|
|
1525
|
+
* The name of the queue for task triggers.
|
|
1526
|
+
*/
|
|
1527
|
+
queue;
|
|
1528
|
+
/**
|
|
1529
|
+
* The retry policy for the Cloud Tasks queue.
|
|
1530
|
+
*/
|
|
1531
|
+
retryPolicy;
|
|
1310
1532
|
}
|
|
1311
1533
|
__decorate([
|
|
1312
|
-
|
|
1534
|
+
IsIn(['google.tasks', 'task']),
|
|
1535
|
+
__metadata("design:type", String)
|
|
1536
|
+
], ServiceContainerGoogleTaskTrigger.prototype, "type", void 0);
|
|
1537
|
+
__decorate([
|
|
1313
1538
|
IsString(),
|
|
1314
1539
|
__metadata("design:type", String)
|
|
1315
|
-
],
|
|
1316
|
-
/**
|
|
1317
|
-
* Google-specific refinement of the serverless functions configuration.
|
|
1318
|
-
*/
|
|
1319
|
-
export class GoogleServerlessFunctionsConfiguration {
|
|
1320
|
-
constructor(init) {
|
|
1321
|
-
Object.assign(this, init);
|
|
1322
|
-
}
|
|
1323
|
-
serverlessFunctions;
|
|
1324
|
-
}
|
|
1540
|
+
], ServiceContainerGoogleTaskTrigger.prototype, "queue", void 0);
|
|
1325
1541
|
__decorate([
|
|
1326
1542
|
AllowMissing(),
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1543
|
+
IsObject(),
|
|
1544
|
+
Type(() => ServiceContainerGoogleTaskTriggerRetryPolicy),
|
|
1545
|
+
ValidateNested(),
|
|
1546
|
+
__metadata("design:type", ServiceContainerGoogleTaskTriggerRetryPolicy)
|
|
1547
|
+
], ServiceContainerGoogleTaskTrigger.prototype, "retryPolicy", void 0);
|
|
1548
|
+
export class ServiceContainerOutputs {
|
|
1330
1549
|
constructor(init) {
|
|
1331
1550
|
Object.assign(this, init);
|
|
1332
1551
|
}
|
|
@@ -1345,230 +1564,409 @@ __decorate([
|
|
|
1345
1564
|
IsArray(),
|
|
1346
1565
|
IsString({ each: true }),
|
|
1347
1566
|
__metadata("design:type", Array)
|
|
1348
|
-
],
|
|
1567
|
+
], ServiceContainerOutputs.prototype, "google.firestore", void 0);
|
|
1349
1568
|
__decorate([
|
|
1350
1569
|
AllowMissing(),
|
|
1351
1570
|
IsArray(),
|
|
1352
1571
|
IsString({ each: true }),
|
|
1353
1572
|
__metadata("design:type", Array)
|
|
1354
|
-
],
|
|
1355
|
-
|
|
1573
|
+
], ServiceContainerOutputs.prototype, "google.spanner", void 0);
|
|
1574
|
+
/**
|
|
1575
|
+
* Configuration for Cloud Run containers.
|
|
1576
|
+
*/
|
|
1577
|
+
export class GoogleCloudRun {
|
|
1356
1578
|
constructor(init) {
|
|
1357
1579
|
Object.assign(this, init);
|
|
1358
1580
|
}
|
|
1359
1581
|
/**
|
|
1360
|
-
* The
|
|
1582
|
+
* The Docker repository where Cloud Run containers should be uploaded.
|
|
1361
1583
|
*/
|
|
1362
|
-
|
|
1584
|
+
dockerRepository;
|
|
1363
1585
|
/**
|
|
1364
|
-
* The
|
|
1586
|
+
* The location where Cloud Run services should be deployed.
|
|
1365
1587
|
*/
|
|
1366
|
-
|
|
1588
|
+
location;
|
|
1367
1589
|
/**
|
|
1368
|
-
*
|
|
1590
|
+
* For `serviceContainer` projects deployed on Cloud Run, the name of the Cloud Run service that receives
|
|
1591
|
+
* events during a backfill targeting a project-scoped trigger. Defaults to the project's name
|
|
1592
|
+
* (`project.name`) when unset.
|
|
1369
1593
|
*/
|
|
1370
|
-
|
|
1594
|
+
eventBackfillServiceName;
|
|
1595
|
+
/**
|
|
1596
|
+
* When set, project-scoped backfill triggers do not send events to the live Cloud Run service. Instead, a
|
|
1597
|
+
* temporary copy of the service is deployed for each trigger, isolating the backfill load (in particular its
|
|
1598
|
+
* scaling) from production. The copy is deleted once the backfill is cleaned up. Ingress is always
|
|
1599
|
+
* restricted to internal traffic for the copy. The properties of this object override the scaling settings
|
|
1600
|
+
* of the copied service. Unset properties are inherited from the live service.
|
|
1601
|
+
*/
|
|
1602
|
+
eventBackfillServiceCloneConfig;
|
|
1603
|
+
/**
|
|
1604
|
+
* A map where keys are the name of environment variables, and values are secret versions IDs (e.g.
|
|
1605
|
+
* `projects/my-project/secrets/my-secret/versions/1`).
|
|
1606
|
+
*/
|
|
1607
|
+
secretEnvironmentVariables;
|
|
1608
|
+
/**
|
|
1609
|
+
* Whether the container is running between requests and can perform background operations.
|
|
1610
|
+
*/
|
|
1611
|
+
cpuAlwaysAllocated;
|
|
1612
|
+
/**
|
|
1613
|
+
* Whether to enable CPU boost during instance startup.
|
|
1614
|
+
*/
|
|
1615
|
+
startupCpuBoost;
|
|
1616
|
+
/**
|
|
1617
|
+
* The max duration the instance is allowed for responding to a request, in seconds.
|
|
1618
|
+
*/
|
|
1619
|
+
timeout;
|
|
1620
|
+
/**
|
|
1621
|
+
* The maximum allowed in-flight (concurrent) requests per container.
|
|
1622
|
+
*/
|
|
1623
|
+
requestConcurrency;
|
|
1624
|
+
/**
|
|
1625
|
+
* The type of allowed ingress that can reach the container.
|
|
1626
|
+
* See https://cloud.google.com/run/docs/securing/ingress#settings for more details.
|
|
1627
|
+
*/
|
|
1628
|
+
ingress;
|
|
1629
|
+
/**
|
|
1630
|
+
* The name of the VPC access connector through which egress traffic should be routed.
|
|
1631
|
+
*/
|
|
1632
|
+
vpcAccessConnector;
|
|
1633
|
+
/**
|
|
1634
|
+
* The setting for egress traffic that goes through the VPC access connector.
|
|
1635
|
+
* See https://cloud.google.com/run/docs/configuring/connecting-vpc#manage for more details.
|
|
1636
|
+
*/
|
|
1637
|
+
vpcAccessConnectorEgressSettings;
|
|
1371
1638
|
}
|
|
1372
1639
|
__decorate([
|
|
1640
|
+
AllowMissing(),
|
|
1373
1641
|
IsString(),
|
|
1374
1642
|
__metadata("design:type", String)
|
|
1375
|
-
],
|
|
1643
|
+
], GoogleCloudRun.prototype, "dockerRepository", void 0);
|
|
1376
1644
|
__decorate([
|
|
1377
1645
|
AllowMissing(),
|
|
1378
1646
|
IsString(),
|
|
1379
1647
|
__metadata("design:type", String)
|
|
1380
|
-
],
|
|
1648
|
+
], GoogleCloudRun.prototype, "location", void 0);
|
|
1649
|
+
__decorate([
|
|
1650
|
+
AllowMissing(),
|
|
1651
|
+
IsString(),
|
|
1652
|
+
__metadata("design:type", String)
|
|
1653
|
+
], GoogleCloudRun.prototype, "eventBackfillServiceName", void 0);
|
|
1654
|
+
__decorate([
|
|
1655
|
+
AllowMissing(),
|
|
1656
|
+
IsObject(),
|
|
1657
|
+
Type(() => GoogleCloudRunEventBackfillServiceCloneConfig),
|
|
1658
|
+
ValidateNested(),
|
|
1659
|
+
__metadata("design:type", GoogleCloudRunEventBackfillServiceCloneConfig)
|
|
1660
|
+
], GoogleCloudRun.prototype, "eventBackfillServiceCloneConfig", void 0);
|
|
1661
|
+
__decorate([
|
|
1662
|
+
AllowMissing(),
|
|
1663
|
+
IsObject(),
|
|
1664
|
+
__metadata("design:type", Object)
|
|
1665
|
+
], GoogleCloudRun.prototype, "secretEnvironmentVariables", void 0);
|
|
1666
|
+
__decorate([
|
|
1667
|
+
AllowMissing(),
|
|
1668
|
+
IsBoolean(),
|
|
1669
|
+
__metadata("design:type", Boolean)
|
|
1670
|
+
], GoogleCloudRun.prototype, "cpuAlwaysAllocated", void 0);
|
|
1671
|
+
__decorate([
|
|
1672
|
+
AllowMissing(),
|
|
1673
|
+
IsBoolean(),
|
|
1674
|
+
__metadata("design:type", Boolean)
|
|
1675
|
+
], GoogleCloudRun.prototype, "startupCpuBoost", void 0);
|
|
1676
|
+
__decorate([
|
|
1677
|
+
AllowMissing(),
|
|
1678
|
+
IsNumber(),
|
|
1679
|
+
__metadata("design:type", Number)
|
|
1680
|
+
], GoogleCloudRun.prototype, "timeout", void 0);
|
|
1681
|
+
__decorate([
|
|
1682
|
+
AllowMissing(),
|
|
1683
|
+
IsNumber(),
|
|
1684
|
+
__metadata("design:type", Number)
|
|
1685
|
+
], GoogleCloudRun.prototype, "requestConcurrency", void 0);
|
|
1686
|
+
__decorate([
|
|
1687
|
+
AllowMissing(),
|
|
1688
|
+
IsIn(['all', 'internal', 'internal-and-cloud-load-balancing']),
|
|
1689
|
+
__metadata("design:type", String)
|
|
1690
|
+
], GoogleCloudRun.prototype, "ingress", void 0);
|
|
1381
1691
|
__decorate([
|
|
1692
|
+
AllowMissing(),
|
|
1382
1693
|
IsString(),
|
|
1383
1694
|
__metadata("design:type", String)
|
|
1384
|
-
],
|
|
1695
|
+
], GoogleCloudRun.prototype, "vpcAccessConnector", void 0);
|
|
1696
|
+
__decorate([
|
|
1697
|
+
AllowMissing(),
|
|
1698
|
+
IsIn(['ALL_TRAFFIC', 'PRIVATE_RANGES_ONLY']),
|
|
1699
|
+
__metadata("design:type", String)
|
|
1700
|
+
], GoogleCloudRun.prototype, "vpcAccessConnectorEgressSettings", void 0);
|
|
1385
1701
|
/**
|
|
1386
|
-
*
|
|
1702
|
+
* Configuration for everything Google / GCP-related.
|
|
1387
1703
|
*/
|
|
1388
|
-
export class
|
|
1704
|
+
export class Google {
|
|
1389
1705
|
constructor(init) {
|
|
1390
1706
|
Object.assign(this, init);
|
|
1391
1707
|
}
|
|
1392
1708
|
/**
|
|
1393
|
-
* The
|
|
1709
|
+
* The ID of the default GCP project used when performing operations.
|
|
1394
1710
|
*/
|
|
1395
|
-
|
|
1711
|
+
project;
|
|
1396
1712
|
/**
|
|
1397
|
-
* The
|
|
1713
|
+
* The GCP region in which resource should be created and managed.
|
|
1398
1714
|
*/
|
|
1399
|
-
|
|
1715
|
+
region;
|
|
1400
1716
|
/**
|
|
1401
|
-
* The
|
|
1717
|
+
* The ID of a local GCP project (which does not exist on GCP).
|
|
1718
|
+
* This is for example used by emulators. It should usually start with `demo-` to be compatible with some emulators.
|
|
1402
1719
|
*/
|
|
1403
|
-
|
|
1404
|
-
}
|
|
1405
|
-
__decorate([
|
|
1406
|
-
IsString(),
|
|
1407
|
-
__metadata("design:type", String)
|
|
1408
|
-
], ServiceContainerGoogleEventarcTriggerOptions.prototype, "contentType", void 0);
|
|
1409
|
-
__decorate([
|
|
1410
|
-
IsArray(),
|
|
1411
|
-
__metadata("design:type", Array)
|
|
1412
|
-
], ServiceContainerGoogleEventarcTriggerOptions.prototype, "filters", void 0);
|
|
1413
|
-
__decorate([
|
|
1414
|
-
AllowMissing(),
|
|
1415
|
-
IsString(),
|
|
1416
|
-
__metadata("design:type", String)
|
|
1417
|
-
], ServiceContainerGoogleEventarcTriggerOptions.prototype, "location", void 0);
|
|
1418
|
-
/**
|
|
1419
|
-
* Google Pub/Sub-specific options for the trigger.
|
|
1420
|
-
*/
|
|
1421
|
-
export class ServiceContainerGooglePubSubTriggerOptions {
|
|
1422
|
-
constructor(init) {
|
|
1423
|
-
Object.assign(this, init);
|
|
1424
|
-
}
|
|
1720
|
+
localProject;
|
|
1425
1721
|
/**
|
|
1426
|
-
*
|
|
1722
|
+
* The list of GCP services on which the project depends.
|
|
1723
|
+
* This is useful to automatically enable those services in the GCP project.
|
|
1724
|
+
*/
|
|
1725
|
+
services;
|
|
1726
|
+
/**
|
|
1727
|
+
* Configuration for the `gcloud` command.
|
|
1728
|
+
* This applies to Dockerized calls to `gcloud` using the official `gcloud` Docker image.
|
|
1729
|
+
*/
|
|
1730
|
+
gcloud;
|
|
1731
|
+
/**
|
|
1732
|
+
* Configuration for the Firebase project.
|
|
1733
|
+
*/
|
|
1734
|
+
firebase;
|
|
1735
|
+
/**
|
|
1736
|
+
* Configuration for the Secret Manager service.
|
|
1737
|
+
*/
|
|
1738
|
+
secretManager;
|
|
1739
|
+
/**
|
|
1740
|
+
* Configuration for the Firebase Storage service.
|
|
1741
|
+
*/
|
|
1742
|
+
firebaseStorage;
|
|
1743
|
+
/**
|
|
1744
|
+
* Configuration for the Identity Platform (formerly Firebase Auth) service.
|
|
1745
|
+
*/
|
|
1746
|
+
identityPlatform;
|
|
1747
|
+
/**
|
|
1748
|
+
* Configuration for the Firestore service.
|
|
1749
|
+
*/
|
|
1750
|
+
firestore;
|
|
1751
|
+
/**
|
|
1752
|
+
* Configuration for the Pub/Sub service.
|
|
1753
|
+
*/
|
|
1754
|
+
pubSub;
|
|
1755
|
+
/**
|
|
1756
|
+
* Configuration for the Spanner service.
|
|
1757
|
+
*/
|
|
1758
|
+
spanner;
|
|
1759
|
+
/**
|
|
1760
|
+
* Configuration for Cloud Functions.
|
|
1761
|
+
*/
|
|
1762
|
+
cloudFunctions;
|
|
1763
|
+
/**
|
|
1764
|
+
* Configuration for Cloud Run containers.
|
|
1427
1765
|
*/
|
|
1428
|
-
|
|
1766
|
+
cloudRun;
|
|
1429
1767
|
/**
|
|
1430
|
-
*
|
|
1768
|
+
* Default configuration for Cloud Scheduler jobs.
|
|
1431
1769
|
*/
|
|
1432
|
-
|
|
1770
|
+
scheduler;
|
|
1433
1771
|
/**
|
|
1434
|
-
*
|
|
1772
|
+
* Configuration for Google Cloud load balancing.
|
|
1435
1773
|
*/
|
|
1436
|
-
|
|
1774
|
+
loadBalancing;
|
|
1437
1775
|
}
|
|
1438
1776
|
__decorate([
|
|
1439
1777
|
AllowMissing(),
|
|
1440
1778
|
IsString(),
|
|
1441
1779
|
__metadata("design:type", String)
|
|
1442
|
-
],
|
|
1780
|
+
], Google.prototype, "project", void 0);
|
|
1443
1781
|
__decorate([
|
|
1444
1782
|
AllowMissing(),
|
|
1445
1783
|
IsString(),
|
|
1446
1784
|
__metadata("design:type", String)
|
|
1447
|
-
],
|
|
1785
|
+
], Google.prototype, "region", void 0);
|
|
1448
1786
|
__decorate([
|
|
1449
1787
|
AllowMissing(),
|
|
1450
1788
|
IsString(),
|
|
1451
1789
|
__metadata("design:type", String)
|
|
1452
|
-
],
|
|
1790
|
+
], Google.prototype, "localProject", void 0);
|
|
1791
|
+
__decorate([
|
|
1792
|
+
AllowMissing(),
|
|
1793
|
+
IsArray(),
|
|
1794
|
+
IsString({ each: true }),
|
|
1795
|
+
__metadata("design:type", Array)
|
|
1796
|
+
], Google.prototype, "services", void 0);
|
|
1797
|
+
__decorate([
|
|
1798
|
+
AllowMissing(),
|
|
1799
|
+
IsObject(),
|
|
1800
|
+
Type(() => GoogleGcloud),
|
|
1801
|
+
ValidateNested(),
|
|
1802
|
+
__metadata("design:type", GoogleGcloud)
|
|
1803
|
+
], Google.prototype, "gcloud", void 0);
|
|
1804
|
+
__decorate([
|
|
1805
|
+
AllowMissing(),
|
|
1806
|
+
IsObject(),
|
|
1807
|
+
Type(() => GoogleFirebase),
|
|
1808
|
+
ValidateNested(),
|
|
1809
|
+
__metadata("design:type", GoogleFirebase)
|
|
1810
|
+
], Google.prototype, "firebase", void 0);
|
|
1811
|
+
__decorate([
|
|
1812
|
+
AllowMissing(),
|
|
1813
|
+
IsObject(),
|
|
1814
|
+
Type(() => GoogleSecretManager),
|
|
1815
|
+
ValidateNested(),
|
|
1816
|
+
__metadata("design:type", GoogleSecretManager)
|
|
1817
|
+
], Google.prototype, "secretManager", void 0);
|
|
1818
|
+
__decorate([
|
|
1819
|
+
AllowMissing(),
|
|
1820
|
+
IsObject(),
|
|
1821
|
+
Type(() => GoogleFirebaseStorage),
|
|
1822
|
+
ValidateNested(),
|
|
1823
|
+
__metadata("design:type", GoogleFirebaseStorage)
|
|
1824
|
+
], Google.prototype, "firebaseStorage", void 0);
|
|
1825
|
+
__decorate([
|
|
1826
|
+
AllowMissing(),
|
|
1827
|
+
IsObject(),
|
|
1828
|
+
Type(() => GoogleIdentityPlatform),
|
|
1829
|
+
ValidateNested(),
|
|
1830
|
+
__metadata("design:type", GoogleIdentityPlatform)
|
|
1831
|
+
], Google.prototype, "identityPlatform", void 0);
|
|
1832
|
+
__decorate([
|
|
1833
|
+
AllowMissing(),
|
|
1834
|
+
IsObject(),
|
|
1835
|
+
Type(() => GoogleFirestore),
|
|
1836
|
+
ValidateNested(),
|
|
1837
|
+
__metadata("design:type", GoogleFirestore)
|
|
1838
|
+
], Google.prototype, "firestore", void 0);
|
|
1839
|
+
__decorate([
|
|
1840
|
+
AllowMissing(),
|
|
1841
|
+
IsObject(),
|
|
1842
|
+
Type(() => GooglePubSub),
|
|
1843
|
+
ValidateNested(),
|
|
1844
|
+
__metadata("design:type", GooglePubSub)
|
|
1845
|
+
], Google.prototype, "pubSub", void 0);
|
|
1846
|
+
__decorate([
|
|
1847
|
+
AllowMissing(),
|
|
1848
|
+
IsObject(),
|
|
1849
|
+
Type(() => GoogleSpanner),
|
|
1850
|
+
ValidateNested(),
|
|
1851
|
+
__metadata("design:type", GoogleSpanner)
|
|
1852
|
+
], Google.prototype, "spanner", void 0);
|
|
1853
|
+
__decorate([
|
|
1854
|
+
AllowMissing(),
|
|
1855
|
+
IsObject(),
|
|
1856
|
+
Type(() => GoogleCloudFunctions),
|
|
1857
|
+
ValidateNested(),
|
|
1858
|
+
__metadata("design:type", GoogleCloudFunctions)
|
|
1859
|
+
], Google.prototype, "cloudFunctions", void 0);
|
|
1860
|
+
__decorate([
|
|
1861
|
+
AllowMissing(),
|
|
1862
|
+
IsObject(),
|
|
1863
|
+
Type(() => GoogleCloudRun),
|
|
1864
|
+
ValidateNested(),
|
|
1865
|
+
__metadata("design:type", GoogleCloudRun)
|
|
1866
|
+
], Google.prototype, "cloudRun", void 0);
|
|
1867
|
+
__decorate([
|
|
1868
|
+
AllowMissing(),
|
|
1869
|
+
IsObject(),
|
|
1870
|
+
Type(() => GoogleScheduler),
|
|
1871
|
+
ValidateNested(),
|
|
1872
|
+
__metadata("design:type", GoogleScheduler)
|
|
1873
|
+
], Google.prototype, "scheduler", void 0);
|
|
1874
|
+
__decorate([
|
|
1875
|
+
AllowMissing(),
|
|
1876
|
+
IsObject(),
|
|
1877
|
+
Type(() => GoogleLoadBalancing),
|
|
1878
|
+
ValidateNested(),
|
|
1879
|
+
__metadata("design:type", GoogleLoadBalancing)
|
|
1880
|
+
], Google.prototype, "loadBalancing", void 0);
|
|
1453
1881
|
/**
|
|
1454
|
-
*
|
|
1882
|
+
* The schema for Google / GCP configuration.
|
|
1455
1883
|
*/
|
|
1456
|
-
export class
|
|
1884
|
+
export class GoogleConfiguration {
|
|
1457
1885
|
constructor(init) {
|
|
1458
1886
|
Object.assign(this, init);
|
|
1459
1887
|
}
|
|
1460
1888
|
/**
|
|
1461
|
-
*
|
|
1462
|
-
*/
|
|
1463
|
-
attemptDeadline;
|
|
1464
|
-
/**
|
|
1465
|
-
* The maximum backoff duration for job retries.
|
|
1466
|
-
*/
|
|
1467
|
-
maxBackoffDuration;
|
|
1468
|
-
/**
|
|
1469
|
-
* The maximum number of times the backoff duration is doubled.
|
|
1889
|
+
* Configuration for everything Google / GCP-related.
|
|
1470
1890
|
*/
|
|
1471
|
-
|
|
1891
|
+
google;
|
|
1892
|
+
}
|
|
1893
|
+
__decorate([
|
|
1894
|
+
AllowMissing(),
|
|
1895
|
+
IsObject(),
|
|
1896
|
+
Type(() => Google),
|
|
1897
|
+
ValidateNested(),
|
|
1898
|
+
__metadata("design:type", Google)
|
|
1899
|
+
], GoogleConfiguration.prototype, "google", void 0);
|
|
1900
|
+
export class ServiceContainerGoogleEventarcTriggerFilter {
|
|
1901
|
+
constructor(init) {
|
|
1902
|
+
Object.assign(this, init);
|
|
1903
|
+
}
|
|
1472
1904
|
/**
|
|
1473
|
-
* The
|
|
1905
|
+
* The event attribute to filter on.
|
|
1474
1906
|
*/
|
|
1475
|
-
|
|
1907
|
+
attribute;
|
|
1476
1908
|
/**
|
|
1477
|
-
* The
|
|
1909
|
+
* The value to match for the attribute.
|
|
1478
1910
|
*/
|
|
1479
|
-
|
|
1911
|
+
value;
|
|
1480
1912
|
/**
|
|
1481
|
-
* The
|
|
1913
|
+
* The operator for matching the filter.
|
|
1482
1914
|
*/
|
|
1483
|
-
|
|
1915
|
+
operator;
|
|
1484
1916
|
}
|
|
1485
1917
|
__decorate([
|
|
1486
|
-
AllowMissing(),
|
|
1487
|
-
IsString(),
|
|
1488
|
-
__metadata("design:type", String)
|
|
1489
|
-
], ServiceContainerGoogleSchedulerTriggerOptions.prototype, "attemptDeadline", void 0);
|
|
1490
|
-
__decorate([
|
|
1491
|
-
AllowMissing(),
|
|
1492
1918
|
IsString(),
|
|
1493
1919
|
__metadata("design:type", String)
|
|
1494
|
-
],
|
|
1495
|
-
__decorate([
|
|
1496
|
-
AllowMissing(),
|
|
1497
|
-
IsNumber(),
|
|
1498
|
-
__metadata("design:type", Number)
|
|
1499
|
-
], ServiceContainerGoogleSchedulerTriggerOptions.prototype, "maxDoublings", void 0);
|
|
1920
|
+
], ServiceContainerGoogleEventarcTriggerFilter.prototype, "attribute", void 0);
|
|
1500
1921
|
__decorate([
|
|
1501
|
-
|
|
1502
|
-
IsString(),
|
|
1922
|
+
Allow(),
|
|
1503
1923
|
__metadata("design:type", String)
|
|
1504
|
-
],
|
|
1924
|
+
], ServiceContainerGoogleEventarcTriggerFilter.prototype, "value", void 0);
|
|
1505
1925
|
__decorate([
|
|
1506
1926
|
AllowMissing(),
|
|
1507
1927
|
IsString(),
|
|
1508
1928
|
__metadata("design:type", String)
|
|
1509
|
-
],
|
|
1510
|
-
__decorate([
|
|
1511
|
-
AllowMissing(),
|
|
1512
|
-
IsNumber(),
|
|
1513
|
-
__metadata("design:type", Number)
|
|
1514
|
-
], ServiceContainerGoogleSchedulerTriggerOptions.prototype, "retryCount", void 0);
|
|
1929
|
+
], ServiceContainerGoogleEventarcTriggerFilter.prototype, "operator", void 0);
|
|
1515
1930
|
/**
|
|
1516
|
-
*
|
|
1931
|
+
* Google Eventarc-specific options for the trigger.
|
|
1517
1932
|
*/
|
|
1518
|
-
export class
|
|
1933
|
+
export class ServiceContainerGoogleEventarcTriggerOptions {
|
|
1519
1934
|
constructor(init) {
|
|
1520
1935
|
Object.assign(this, init);
|
|
1521
1936
|
}
|
|
1522
1937
|
/**
|
|
1523
|
-
* The
|
|
1524
|
-
*/
|
|
1525
|
-
maxAttempts;
|
|
1526
|
-
/**
|
|
1527
|
-
* The maximum backoff duration for task retries.
|
|
1528
|
-
*/
|
|
1529
|
-
maxBackoff;
|
|
1530
|
-
/**
|
|
1531
|
-
* The maximum number of times the backoff duration is doubled.
|
|
1938
|
+
* The content type of event data.
|
|
1532
1939
|
*/
|
|
1533
|
-
|
|
1940
|
+
contentType;
|
|
1534
1941
|
/**
|
|
1535
|
-
* The
|
|
1942
|
+
* The location of the Eventarc trigger.
|
|
1536
1943
|
*/
|
|
1537
|
-
|
|
1944
|
+
location;
|
|
1538
1945
|
/**
|
|
1539
|
-
* The
|
|
1946
|
+
* The list of matching criteria for the Eventarc trigger.
|
|
1540
1947
|
*/
|
|
1541
|
-
|
|
1948
|
+
filters;
|
|
1542
1949
|
}
|
|
1543
1950
|
__decorate([
|
|
1544
|
-
AllowMissing(),
|
|
1545
|
-
IsNumber(),
|
|
1546
|
-
__metadata("design:type", Number)
|
|
1547
|
-
], ServiceContainerGoogleTaskTriggerRetryPolicy.prototype, "maxAttempts", void 0);
|
|
1548
|
-
__decorate([
|
|
1549
|
-
AllowMissing(),
|
|
1550
1951
|
IsString(),
|
|
1551
1952
|
__metadata("design:type", String)
|
|
1552
|
-
],
|
|
1553
|
-
__decorate([
|
|
1554
|
-
AllowMissing(),
|
|
1555
|
-
IsNumber(),
|
|
1556
|
-
__metadata("design:type", Number)
|
|
1557
|
-
], ServiceContainerGoogleTaskTriggerRetryPolicy.prototype, "maxDoublings", void 0);
|
|
1953
|
+
], ServiceContainerGoogleEventarcTriggerOptions.prototype, "contentType", void 0);
|
|
1558
1954
|
__decorate([
|
|
1559
1955
|
AllowMissing(),
|
|
1560
|
-
IsString(),
|
|
1561
1956
|
__metadata("design:type", String)
|
|
1562
|
-
],
|
|
1957
|
+
], ServiceContainerGoogleEventarcTriggerOptions.prototype, "location", void 0);
|
|
1563
1958
|
__decorate([
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1959
|
+
IsArray(),
|
|
1960
|
+
IsDefined(),
|
|
1961
|
+
IsObject({ each: true }),
|
|
1962
|
+
Type(() => ServiceContainerGoogleEventarcTriggerFilter),
|
|
1963
|
+
ValidateNested(),
|
|
1964
|
+
__metadata("design:type", Array)
|
|
1965
|
+
], ServiceContainerGoogleEventarcTriggerOptions.prototype, "filters", void 0);
|
|
1568
1966
|
/**
|
|
1569
1967
|
* A trigger backed by a Google Eventarc trigger.
|
|
1570
1968
|
*/
|
|
1571
|
-
export class
|
|
1969
|
+
export class ServiceContainerGoogleEventarcTrigger {
|
|
1572
1970
|
constructor(init) {
|
|
1573
1971
|
Object.assign(this, init);
|
|
1574
1972
|
}
|
|
@@ -1576,104 +1974,49 @@ export class ServiceContainerGoogleTrigger {
|
|
|
1576
1974
|
* The type of trigger.
|
|
1577
1975
|
*/
|
|
1578
1976
|
type;
|
|
1579
|
-
/**
|
|
1580
|
-
* Google Pub/Sub-specific options for the trigger.
|
|
1581
|
-
*/
|
|
1582
|
-
'google.pubSub';
|
|
1583
|
-
/**
|
|
1584
|
-
* The ID of the topic triggering the endpoint.
|
|
1585
|
-
*/
|
|
1586
|
-
topic;
|
|
1587
|
-
/**
|
|
1588
|
-
* Google Cloud Scheduler-specific options for the trigger.
|
|
1589
|
-
*/
|
|
1590
|
-
'google.scheduler';
|
|
1591
|
-
/**
|
|
1592
|
-
* The cron schedule expression for cron triggers.
|
|
1593
|
-
*/
|
|
1594
|
-
schedule;
|
|
1595
|
-
/**
|
|
1596
|
-
* The timezone for the cron schedule.
|
|
1597
|
-
*/
|
|
1598
|
-
timezone;
|
|
1599
|
-
/**
|
|
1600
|
-
* The name of the queue for task triggers.
|
|
1601
|
-
*/
|
|
1602
|
-
queue;
|
|
1603
|
-
/**
|
|
1604
|
-
* The retry policy for the Cloud Tasks queue.
|
|
1605
|
-
*/
|
|
1606
|
-
retryPolicy;
|
|
1607
1977
|
/**
|
|
1608
1978
|
* Google Eventarc-specific options for the trigger.
|
|
1609
1979
|
*/
|
|
1610
1980
|
'google.eventarc';
|
|
1611
1981
|
}
|
|
1612
1982
|
__decorate([
|
|
1613
|
-
|
|
1614
|
-
__metadata("design:type", String)
|
|
1615
|
-
], ServiceContainerGoogleTrigger.prototype, "type", void 0);
|
|
1616
|
-
__decorate([
|
|
1617
|
-
AllowMissing(),
|
|
1618
|
-
__metadata("design:type", ServiceContainerGooglePubSubTriggerOptions)
|
|
1619
|
-
], ServiceContainerGoogleTrigger.prototype, "google.pubSub", void 0);
|
|
1620
|
-
__decorate([
|
|
1621
|
-
AllowMissing(),
|
|
1622
|
-
IsString(),
|
|
1623
|
-
__metadata("design:type", String)
|
|
1624
|
-
], ServiceContainerGoogleTrigger.prototype, "topic", void 0);
|
|
1625
|
-
__decorate([
|
|
1626
|
-
AllowMissing(),
|
|
1627
|
-
__metadata("design:type", ServiceContainerGoogleSchedulerTriggerOptions)
|
|
1628
|
-
], ServiceContainerGoogleTrigger.prototype, "google.scheduler", void 0);
|
|
1629
|
-
__decorate([
|
|
1630
|
-
AllowMissing(),
|
|
1631
|
-
IsString(),
|
|
1632
|
-
__metadata("design:type", String)
|
|
1633
|
-
], ServiceContainerGoogleTrigger.prototype, "schedule", void 0);
|
|
1634
|
-
__decorate([
|
|
1635
|
-
AllowMissing(),
|
|
1636
|
-
IsString(),
|
|
1637
|
-
__metadata("design:type", String)
|
|
1638
|
-
], ServiceContainerGoogleTrigger.prototype, "timezone", void 0);
|
|
1639
|
-
__decorate([
|
|
1640
|
-
AllowMissing(),
|
|
1641
|
-
IsString(),
|
|
1983
|
+
IsIn(['google.eventarc']),
|
|
1642
1984
|
__metadata("design:type", String)
|
|
1643
|
-
],
|
|
1644
|
-
__decorate([
|
|
1645
|
-
AllowMissing(),
|
|
1646
|
-
__metadata("design:type", ServiceContainerGoogleTaskTriggerRetryPolicy)
|
|
1647
|
-
], ServiceContainerGoogleTrigger.prototype, "retryPolicy", void 0);
|
|
1985
|
+
], ServiceContainerGoogleEventarcTrigger.prototype, "type", void 0);
|
|
1648
1986
|
__decorate([
|
|
1649
1987
|
AllowMissing(),
|
|
1988
|
+
IsObject(),
|
|
1989
|
+
Type(() => ServiceContainerGoogleEventarcTriggerOptions),
|
|
1990
|
+
ValidateNested(),
|
|
1650
1991
|
__metadata("design:type", ServiceContainerGoogleEventarcTriggerOptions)
|
|
1651
|
-
],
|
|
1652
|
-
export class
|
|
1992
|
+
], ServiceContainerGoogleEventarcTrigger.prototype, "google.eventarc", void 0);
|
|
1993
|
+
export class GoogleServiceContainer {
|
|
1653
1994
|
constructor(init) {
|
|
1654
1995
|
Object.assign(this, init);
|
|
1655
1996
|
}
|
|
1656
|
-
outputs;
|
|
1657
1997
|
platform;
|
|
1658
1998
|
/**
|
|
1659
1999
|
* A map of triggers that call the service's endpoints when they occur.
|
|
1660
2000
|
*/
|
|
1661
2001
|
triggers;
|
|
2002
|
+
outputs;
|
|
1662
2003
|
}
|
|
1663
2004
|
__decorate([
|
|
1664
2005
|
AllowMissing(),
|
|
1665
|
-
__metadata("design:type", Outputs)
|
|
1666
|
-
], ServiceContainer.prototype, "outputs", void 0);
|
|
1667
|
-
__decorate([
|
|
1668
|
-
AllowMissing(),
|
|
1669
|
-
IsString(),
|
|
1670
2006
|
__metadata("design:type", String)
|
|
1671
|
-
],
|
|
2007
|
+
], GoogleServiceContainer.prototype, "platform", void 0);
|
|
1672
2008
|
__decorate([
|
|
1673
2009
|
AllowMissing(),
|
|
1674
2010
|
IsObject(),
|
|
1675
2011
|
__metadata("design:type", Object)
|
|
1676
|
-
],
|
|
2012
|
+
], GoogleServiceContainer.prototype, "triggers", void 0);
|
|
2013
|
+
__decorate([
|
|
2014
|
+
AllowMissing(),
|
|
2015
|
+
IsObject(),
|
|
2016
|
+
Type(() => ServiceContainerOutputs),
|
|
2017
|
+
ValidateNested(),
|
|
2018
|
+
__metadata("design:type", ServiceContainerOutputs)
|
|
2019
|
+
], GoogleServiceContainer.prototype, "outputs", void 0);
|
|
1677
2020
|
/**
|
|
1678
2021
|
* Google-specific extensions to the service container configuration.
|
|
1679
2022
|
*/
|
|
@@ -1685,5 +2028,8 @@ export class GoogleServiceContainerConfiguration {
|
|
|
1685
2028
|
}
|
|
1686
2029
|
__decorate([
|
|
1687
2030
|
AllowMissing(),
|
|
1688
|
-
|
|
2031
|
+
IsObject(),
|
|
2032
|
+
Type(() => GoogleServiceContainer),
|
|
2033
|
+
ValidateNested(),
|
|
2034
|
+
__metadata("design:type", GoogleServiceContainer)
|
|
1689
2035
|
], GoogleServiceContainerConfiguration.prototype, "serviceContainer", void 0);
|