@maxim_mazurok/gapi.client.cloudfunctions-v2beta 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.
- package/index.d.ts +74 -3
- 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:
|
|
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. */
|
|
@@ -256,7 +261,7 @@ declare namespace gapi.client {
|
|
|
256
261
|
nextPageToken?: string;
|
|
257
262
|
/** A list of operations that matches the specified filter in the request. */
|
|
258
263
|
operations?: Operation[];
|
|
259
|
-
/** Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections
|
|
264
|
+
/** 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
265
|
unreachable?: string[];
|
|
261
266
|
}
|
|
262
267
|
interface ListRuntimesResponse {
|
|
@@ -421,6 +426,10 @@ declare namespace gapi.client {
|
|
|
421
426
|
/** The egress settings for the connector, controlling what traffic is diverted through it. */
|
|
422
427
|
vpcConnectorEgressSettings?: string;
|
|
423
428
|
}
|
|
429
|
+
interface ServiceConfigOverrides {
|
|
430
|
+
/** 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. */
|
|
431
|
+
maxInstanceCount?: number;
|
|
432
|
+
}
|
|
424
433
|
interface SetIamPolicyRequest {
|
|
425
434
|
/** 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. */
|
|
426
435
|
policy?: Policy;
|
|
@@ -428,6 +437,10 @@ declare namespace gapi.client {
|
|
|
428
437
|
updateMask?: string;
|
|
429
438
|
}
|
|
430
439
|
interface SetupFunctionUpgradeConfigRequest {
|
|
440
|
+
/** Optional. Specifies overrides for the build process. */
|
|
441
|
+
buildConfigOverrides?: BuildConfigOverrides;
|
|
442
|
+
/** Optional. Specifies overrides for the service configuration. */
|
|
443
|
+
serviceConfigOverrides?: ServiceConfigOverrides;
|
|
431
444
|
/** 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`. */
|
|
432
445
|
triggerServiceAccount?: string;
|
|
433
446
|
}
|
|
@@ -600,6 +613,64 @@ declare namespace gapi.client {
|
|
|
600
613
|
},
|
|
601
614
|
body: CommitFunctionUpgradeRequest,
|
|
602
615
|
): Request<Operation>;
|
|
616
|
+
/** 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. */
|
|
617
|
+
commitFunctionUpgradeAsGen2(request: {
|
|
618
|
+
/** V1 error format. */
|
|
619
|
+
'$.xgafv'?: string;
|
|
620
|
+
/** OAuth access token. */
|
|
621
|
+
access_token?: string;
|
|
622
|
+
/** Data format for response. */
|
|
623
|
+
alt?: string;
|
|
624
|
+
/** JSONP */
|
|
625
|
+
callback?: string;
|
|
626
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
627
|
+
fields?: string;
|
|
628
|
+
/** 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. */
|
|
629
|
+
key?: string;
|
|
630
|
+
/** Required. The name of the function for which upgrade should be committed to Gen2. */
|
|
631
|
+
name: string;
|
|
632
|
+
/** OAuth 2.0 token for the current user. */
|
|
633
|
+
oauth_token?: string;
|
|
634
|
+
/** Returns response with indentations and line breaks. */
|
|
635
|
+
prettyPrint?: boolean;
|
|
636
|
+
/** 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. */
|
|
637
|
+
quotaUser?: string;
|
|
638
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
639
|
+
upload_protocol?: string;
|
|
640
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
641
|
+
uploadType?: string;
|
|
642
|
+
/** Request body */
|
|
643
|
+
resource: CommitFunctionUpgradeAsGen2Request;
|
|
644
|
+
}): Request<Operation>;
|
|
645
|
+
commitFunctionUpgradeAsGen2(
|
|
646
|
+
request: {
|
|
647
|
+
/** V1 error format. */
|
|
648
|
+
'$.xgafv'?: string;
|
|
649
|
+
/** OAuth access token. */
|
|
650
|
+
access_token?: string;
|
|
651
|
+
/** Data format for response. */
|
|
652
|
+
alt?: string;
|
|
653
|
+
/** JSONP */
|
|
654
|
+
callback?: string;
|
|
655
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
656
|
+
fields?: string;
|
|
657
|
+
/** 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. */
|
|
658
|
+
key?: string;
|
|
659
|
+
/** Required. The name of the function for which upgrade should be committed to Gen2. */
|
|
660
|
+
name: string;
|
|
661
|
+
/** OAuth 2.0 token for the current user. */
|
|
662
|
+
oauth_token?: string;
|
|
663
|
+
/** Returns response with indentations and line breaks. */
|
|
664
|
+
prettyPrint?: boolean;
|
|
665
|
+
/** 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. */
|
|
666
|
+
quotaUser?: string;
|
|
667
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
668
|
+
upload_protocol?: string;
|
|
669
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
670
|
+
uploadType?: string;
|
|
671
|
+
},
|
|
672
|
+
body: CommitFunctionUpgradeAsGen2Request,
|
|
673
|
+
): Request<Operation>;
|
|
603
674
|
/** 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
675
|
create(request: {
|
|
605
676
|
/** V1 error format. */
|
|
@@ -1309,7 +1380,7 @@ declare namespace gapi.client {
|
|
|
1309
1380
|
prettyPrint?: boolean;
|
|
1310
1381
|
/** 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
1382
|
quotaUser?: string;
|
|
1312
|
-
/** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the
|
|
1383
|
+
/** 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
1384
|
returnPartialSuccess?: boolean;
|
|
1314
1385
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1315
1386
|
upload_protocol?: string;
|