@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.0.20221110 → 0.0.20221129

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.
Files changed (3) hide show
  1. package/index.d.ts +10 -3
  2. package/package.json +1 -1
  3. package/tests.ts +5 -1
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: 20221110
12
+ // Revision: 20221129
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -516,6 +516,11 @@ declare namespace gapi.client {
516
516
  * any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.
517
517
  */
518
518
  allTrafficOnLatestRevision?: boolean;
519
+ /**
520
+ * 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
521
+ * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
522
+ */
523
+ availableCpu?: string;
519
524
  /**
520
525
  * The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See
521
526
  * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
@@ -531,6 +536,8 @@ declare namespace gapi.client {
531
536
  * instances value than your function can tolerate. See the [Max Instances](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
532
537
  */
533
538
  maxInstanceCount?: number;
539
+ /** Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1. */
540
+ maxInstanceRequestConcurrency?: number;
534
541
  /**
535
542
  * 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
536
543
  * the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always.
@@ -544,8 +551,8 @@ declare namespace gapi.client {
544
551
  /** Secret volumes configuration. */
545
552
  secretVolumes?: SecretVolume[];
546
553
  /**
547
- * Optional. Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is
548
- * optional for 1st Gen functions; 2nd Gen functions are https ONLY.
554
+ * Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st
555
+ * Gen functions; 2nd Gen functions are https ONLY.
549
556
  */
550
557
  securityLevel?: string;
551
558
  /** Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}` */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudfunctions-v2beta",
3
- "version": "0.0.20221110",
3
+ "version": "0.0.20221129",
4
4
  "description": "TypeScript typings for Cloud Functions API v2beta",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20221110
6
+ // Revision: 20221129
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -109,12 +109,14 @@ gapi.load('client', async () => {
109
109
  name: "Test string",
110
110
  serviceConfig: {
111
111
  allTrafficOnLatestRevision: true,
112
+ availableCpu: "Test string",
112
113
  availableMemory: "Test string",
113
114
  environmentVariables: {
114
115
  A: "Test string"
115
116
  },
116
117
  ingressSettings: "Test string",
117
118
  maxInstanceCount: 42,
119
+ maxInstanceRequestConcurrency: 42,
118
120
  minInstanceCount: 42,
119
121
  revision: "Test string",
120
122
  secretEnvironmentVariables: [
@@ -270,12 +272,14 @@ gapi.load('client', async () => {
270
272
  name: "Test string",
271
273
  serviceConfig: {
272
274
  allTrafficOnLatestRevision: true,
275
+ availableCpu: "Test string",
273
276
  availableMemory: "Test string",
274
277
  environmentVariables: {
275
278
  A: "Test string"
276
279
  },
277
280
  ingressSettings: "Test string",
278
281
  maxInstanceCount: 42,
282
+ maxInstanceRequestConcurrency: 42,
279
283
  minInstanceCount: 42,
280
284
  revision: "Test string",
281
285
  secretEnvironmentVariables: [