@maxim_mazurok/gapi.client.cloudfunctions-v2 0.2.20251106 → 0.2.20260101

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 +74 -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=v2
12
- // Revision: 20251106
12
+ // Revision: 20260101
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -76,6 +76,11 @@ 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 BuildConfigOverrides {
80
+ /** Optional. Specifies the desired runtime for the new Cloud Run function. (e.g., `"nodejs20"`, `"python312"`). Constraints: 1. This field CANNOT be used to change the runtime language (e.g., from `NODEJS` to `PYTHON`). The backend will enforce this. 2. This field can ONLY be used to upgrade the runtime version (e.g., `nodejs18` to `nodejs20`). Downgrading the version is not permitted. The backend will validate the version change. If provided and valid, this overrides the runtime of the Gen1 function. */
81
+ runtime?: string;
82
+ }
83
+ interface CommitFunctionUpgradeAsGen2Request {}
79
84
  interface CommitFunctionUpgradeRequest {}
80
85
  interface Date {
81
86
  /** 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. */
@@ -248,7 +253,7 @@ declare namespace gapi.client {
248
253
  nextPageToken?: string;
249
254
  /** A list of operations that matches the specified filter in the request. */
250
255
  operations?: Operation[];
251
- /** 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. */
256
+ /** 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. */
252
257
  unreachable?: string[];
253
258
  }
254
259
  interface ListRuntimesResponse {
@@ -409,6 +414,10 @@ declare namespace gapi.client {
409
414
  /** The egress settings for the connector, controlling what traffic is diverted through it. */
410
415
  vpcConnectorEgressSettings?: string;
411
416
  }
417
+ interface ServiceConfigOverrides {
418
+ /** Optional. Specifies the maximum number of instances for the new Cloud Run function. If provided, this overrides the max_instance_count setting of the Gen1 function. */
419
+ maxInstanceCount?: number;
420
+ }
412
421
  interface SetIamPolicyRequest {
413
422
  /** REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them. */
414
423
  policy?: Policy;
@@ -416,6 +425,10 @@ declare namespace gapi.client {
416
425
  updateMask?: string;
417
426
  }
418
427
  interface SetupFunctionUpgradeConfigRequest {
428
+ /** Optional. Specifies overrides for the build process. */
429
+ buildConfigOverrides?: BuildConfigOverrides;
430
+ /** Optional. Specifies overrides for the service configuration. */
431
+ serviceConfigOverrides?: ServiceConfigOverrides;
419
432
  /** Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`. */
420
433
  triggerServiceAccount?: string;
421
434
  }
@@ -588,6 +601,64 @@ declare namespace gapi.client {
588
601
  },
589
602
  body: CommitFunctionUpgradeRequest,
590
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>;
591
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. */
592
663
  create(request: {
593
664
  /** V1 error format. */
@@ -1297,7 +1368,7 @@ declare namespace gapi.client {
1297
1368
  prettyPrint?: boolean;
1298
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. */
1299
1370
  quotaUser?: string;
1300
- /** 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. */
1301
1372
  returnPartialSuccess?: boolean;
1302
1373
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1303
1374
  upload_protocol?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudfunctions-v2",
3
- "version": "0.2.20251106",
3
+ "version": "0.2.20260101",
4
4
  "description": "TypeScript typings for Cloud Functions API v2",
5
5
  "repository": {
6
6
  "type": "git",