@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.2.20251106 → 0.2.20251204

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 (2) hide show
  1. package/index.d.ts +62 -3
  2. package/package.json +1 -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: 20251106
12
+ // Revision: 20251204
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -76,6 +76,7 @@ declare namespace gapi.client {
76
76
  /** Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project. */
77
77
  workerPool?: string;
78
78
  }
79
+ interface CommitFunctionUpgradeAsGen2Request {}
79
80
  interface CommitFunctionUpgradeRequest {}
80
81
  interface Date {
81
82
  /** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
@@ -256,7 +257,7 @@ declare namespace gapi.client {
256
257
  nextPageToken?: string;
257
258
  /** A list of operations that matches the specified filter in the request. */
258
259
  operations?: Operation[];
259
- /** Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations. */
260
+ /** Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations. */
260
261
  unreachable?: string[];
261
262
  }
262
263
  interface ListRuntimesResponse {
@@ -600,6 +601,64 @@ declare namespace gapi.client {
600
601
  },
601
602
  body: CommitFunctionUpgradeRequest,
602
603
  ): Request<Operation>;
604
+ /** Commits a function upgrade from GCF Gen1 to GCF Gen2. This action deletes the Gen1 function, leaving the Gen2 function active and manageable by the GCFv2 API. */
605
+ commitFunctionUpgradeAsGen2(request: {
606
+ /** V1 error format. */
607
+ '$.xgafv'?: string;
608
+ /** OAuth access token. */
609
+ access_token?: string;
610
+ /** Data format for response. */
611
+ alt?: string;
612
+ /** JSONP */
613
+ callback?: string;
614
+ /** Selector specifying which fields to include in a partial response. */
615
+ fields?: string;
616
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
617
+ key?: string;
618
+ /** Required. The name of the function for which upgrade should be committed to Gen2. */
619
+ name: string;
620
+ /** OAuth 2.0 token for the current user. */
621
+ oauth_token?: string;
622
+ /** Returns response with indentations and line breaks. */
623
+ prettyPrint?: boolean;
624
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
625
+ quotaUser?: string;
626
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
627
+ upload_protocol?: string;
628
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
629
+ uploadType?: string;
630
+ /** Request body */
631
+ resource: CommitFunctionUpgradeAsGen2Request;
632
+ }): Request<Operation>;
633
+ commitFunctionUpgradeAsGen2(
634
+ request: {
635
+ /** V1 error format. */
636
+ '$.xgafv'?: string;
637
+ /** OAuth access token. */
638
+ access_token?: string;
639
+ /** Data format for response. */
640
+ alt?: string;
641
+ /** JSONP */
642
+ callback?: string;
643
+ /** Selector specifying which fields to include in a partial response. */
644
+ fields?: string;
645
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
646
+ key?: string;
647
+ /** Required. The name of the function for which upgrade should be committed to Gen2. */
648
+ name: string;
649
+ /** OAuth 2.0 token for the current user. */
650
+ oauth_token?: string;
651
+ /** Returns response with indentations and line breaks. */
652
+ prettyPrint?: boolean;
653
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
654
+ quotaUser?: string;
655
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
656
+ upload_protocol?: string;
657
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
658
+ uploadType?: string;
659
+ },
660
+ body: CommitFunctionUpgradeAsGen2Request,
661
+ ): Request<Operation>;
603
662
  /** Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error. */
604
663
  create(request: {
605
664
  /** V1 error format. */
@@ -1309,7 +1368,7 @@ declare namespace gapi.client {
1309
1368
  prettyPrint?: boolean;
1310
1369
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1311
1370
  quotaUser?: string;
1312
- /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
1371
+ /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
1313
1372
  returnPartialSuccess?: boolean;
1314
1373
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1315
1374
  upload_protocol?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudfunctions-v2beta",
3
- "version": "0.2.20251106",
3
+ "version": "0.2.20251204",
4
4
  "description": "TypeScript typings for Cloud Functions API v2beta",
5
5
  "repository": {
6
6
  "type": "git",