@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.0.20230330 → 0.0.20230415
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/index.d.ts +33 -23
- package/package.json +1 -1
- package/tests.ts +1 -3
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://cloudfunctions.googleapis.com/$discovery/rest?version=v2beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230415
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -67,12 +67,10 @@ declare namespace gapi.client {
|
|
|
67
67
|
interface BuildConfig {
|
|
68
68
|
/** Output only. The Cloud Build name of the latest successful deployment of the function. */
|
|
69
69
|
build?: string;
|
|
70
|
-
/** Specifies one of the Google provided buildpack stacks. */
|
|
71
|
-
buildpackStack?: string;
|
|
72
70
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
71
|
+
* Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If `docker_repository`
|
|
72
|
+
* field is specified, this field will be automatically set as `ARTIFACT_REGISTRY`. If unspecified, it currently defaults to `CONTAINER_REGISTRY`. This field may be overridden by the
|
|
73
|
+
* backend for eligible deployments.
|
|
76
74
|
*/
|
|
77
75
|
dockerRegistry?: string;
|
|
78
76
|
/**
|
|
@@ -210,6 +208,10 @@ declare namespace gapi.client {
|
|
|
210
208
|
/** The generated Google Cloud Storage signed URL that should be used for a function source code upload. The uploaded file should be a zip archive which contains a function. */
|
|
211
209
|
uploadUrl?: string;
|
|
212
210
|
}
|
|
211
|
+
interface GoogleCloudFunctionsV2alphaLocationMetadata {
|
|
212
|
+
/** The Cloud Function environments this location supports. */
|
|
213
|
+
environments?: string[];
|
|
214
|
+
}
|
|
213
215
|
interface GoogleCloudFunctionsV2alphaOperationMetadata {
|
|
214
216
|
/** API version used to start the operation. */
|
|
215
217
|
apiVersion?: string;
|
|
@@ -225,7 +227,7 @@ declare namespace gapi.client {
|
|
|
225
227
|
/** The original request that started the operation. */
|
|
226
228
|
requestResource?: { [P in string]: any };
|
|
227
229
|
/** Mechanism for reporting in-progress stages */
|
|
228
|
-
stages?:
|
|
230
|
+
stages?: Stage[];
|
|
229
231
|
/** Human-readable status of the operation, if any. */
|
|
230
232
|
statusDetail?: string;
|
|
231
233
|
/** Server-defined resource path for the target of the operation. */
|
|
@@ -233,20 +235,6 @@ declare namespace gapi.client {
|
|
|
233
235
|
/** Name of the verb executed by the operation. */
|
|
234
236
|
verb?: string;
|
|
235
237
|
}
|
|
236
|
-
interface GoogleCloudFunctionsV2alphaStage {
|
|
237
|
-
/** Message describing the Stage */
|
|
238
|
-
message?: string;
|
|
239
|
-
/** Name of the Stage. This will be unique for each Stage. */
|
|
240
|
-
name?: string;
|
|
241
|
-
/** Resource of the Stage */
|
|
242
|
-
resource?: string;
|
|
243
|
-
/** Link to the current Stage resource */
|
|
244
|
-
resourceUri?: string;
|
|
245
|
-
/** Current state of the Stage */
|
|
246
|
-
state?: string;
|
|
247
|
-
/** State messages from the current Stage. */
|
|
248
|
-
stateMessages?: GoogleCloudFunctionsV2alphaStateMessage[];
|
|
249
|
-
}
|
|
250
238
|
interface GoogleCloudFunctionsV2alphaStateMessage {
|
|
251
239
|
/** The message. */
|
|
252
240
|
message?: string;
|
|
@@ -255,6 +243,10 @@ declare namespace gapi.client {
|
|
|
255
243
|
/** One-word CamelCase type of the state message. */
|
|
256
244
|
type?: string;
|
|
257
245
|
}
|
|
246
|
+
interface GoogleCloudFunctionsV2betaLocationMetadata {
|
|
247
|
+
/** The Cloud Function environments this location supports. */
|
|
248
|
+
environments?: string[];
|
|
249
|
+
}
|
|
258
250
|
interface GoogleCloudFunctionsV2betaOperationMetadata {
|
|
259
251
|
/** API version used to start the operation. */
|
|
260
252
|
apiVersion?: string;
|
|
@@ -382,6 +374,10 @@ declare namespace gapi.client {
|
|
|
382
374
|
/** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
|
|
383
375
|
name?: string;
|
|
384
376
|
}
|
|
377
|
+
interface LocationMetadata {
|
|
378
|
+
/** The Cloud Function environments this location supports. */
|
|
379
|
+
environments?: string[];
|
|
380
|
+
}
|
|
385
381
|
interface Operation {
|
|
386
382
|
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
387
383
|
done?: boolean;
|
|
@@ -529,7 +525,7 @@ declare namespace gapi.client {
|
|
|
529
525
|
*/
|
|
530
526
|
allTrafficOnLatestRevision?: boolean;
|
|
531
527
|
/**
|
|
532
|
-
* The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see
|
|
528
|
+
* [Preview] The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see
|
|
533
529
|
* https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
|
|
534
530
|
*/
|
|
535
531
|
availableCpu?: string;
|
|
@@ -548,7 +544,7 @@ declare namespace gapi.client {
|
|
|
548
544
|
* instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
|
|
549
545
|
*/
|
|
550
546
|
maxInstanceCount?: number;
|
|
551
|
-
/** Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1. */
|
|
547
|
+
/** [Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1. */
|
|
552
548
|
maxInstanceRequestConcurrency?: number;
|
|
553
549
|
/**
|
|
554
550
|
* The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing
|
|
@@ -604,6 +600,20 @@ declare namespace gapi.client {
|
|
|
604
600
|
/** A copy of the build's `source.storage_source`, if exists, with any generations resolved. */
|
|
605
601
|
resolvedStorageSource?: StorageSource;
|
|
606
602
|
}
|
|
603
|
+
interface Stage {
|
|
604
|
+
/** Message describing the Stage */
|
|
605
|
+
message?: string;
|
|
606
|
+
/** Name of the Stage. This will be unique for each Stage. */
|
|
607
|
+
name?: string;
|
|
608
|
+
/** Resource of the Stage */
|
|
609
|
+
resource?: string;
|
|
610
|
+
/** Link to the current Stage resource */
|
|
611
|
+
resourceUri?: string;
|
|
612
|
+
/** Current state of the Stage */
|
|
613
|
+
state?: string;
|
|
614
|
+
/** State messages from the current Stage. */
|
|
615
|
+
stateMessages?: GoogleCloudFunctionsV2alphaStateMessage[];
|
|
616
|
+
}
|
|
607
617
|
interface Status {
|
|
608
618
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
609
619
|
code?: number;
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230415
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -43,7 +43,6 @@ gapi.load('client', async () => {
|
|
|
43
43
|
}, {
|
|
44
44
|
buildConfig: {
|
|
45
45
|
build: "Test string",
|
|
46
|
-
buildpackStack: "Test string",
|
|
47
46
|
dockerRegistry: "Test string",
|
|
48
47
|
dockerRepository: "Test string",
|
|
49
48
|
entryPoint: "Test string",
|
|
@@ -208,7 +207,6 @@ gapi.load('client', async () => {
|
|
|
208
207
|
}, {
|
|
209
208
|
buildConfig: {
|
|
210
209
|
build: "Test string",
|
|
211
|
-
buildpackStack: "Test string",
|
|
212
210
|
dockerRegistry: "Test string",
|
|
213
211
|
dockerRepository: "Test string",
|
|
214
212
|
entryPoint: "Test string",
|