@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.0.20250116 → 0.0.20250124
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 +18 -16
- package/package.json +1 -1
- package/readme.md +2 -2
package/index.d.ts
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
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: 20250124
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
17
|
/** Load Cloud Functions API v2beta */
|
|
18
18
|
function load(
|
|
19
|
-
urlOrObject: 'https://cloudfunctions.googleapis.com/$discovery/rest?version=v2beta'
|
|
19
|
+
urlOrObject: 'https://cloudfunctions.googleapis.com/$discovery/rest?version=v2beta',
|
|
20
20
|
): Promise<void>;
|
|
21
21
|
/** @deprecated Please load APIs with discovery documents. */
|
|
22
22
|
function load(name: 'cloudfunctions', version: 'v2beta'): Promise<void>;
|
|
@@ -24,7 +24,7 @@ declare namespace gapi.client {
|
|
|
24
24
|
function load(
|
|
25
25
|
name: 'cloudfunctions',
|
|
26
26
|
version: 'v2beta',
|
|
27
|
-
callback: () => any
|
|
27
|
+
callback: () => any,
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
namespace cloudfunctions {
|
|
@@ -142,6 +142,8 @@ declare namespace gapi.client {
|
|
|
142
142
|
/** A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*` */
|
|
143
143
|
name?: string;
|
|
144
144
|
/** Output only. Reserved for future use. */
|
|
145
|
+
satisfiesPzi?: boolean;
|
|
146
|
+
/** Output only. Reserved for future use. */
|
|
145
147
|
satisfiesPzs?: boolean;
|
|
146
148
|
/** Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed). */
|
|
147
149
|
serviceConfig?: ServiceConfig;
|
|
@@ -520,7 +522,7 @@ declare namespace gapi.client {
|
|
|
520
522
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
521
523
|
uploadType?: string;
|
|
522
524
|
},
|
|
523
|
-
body: AbortFunctionUpgradeRequest
|
|
525
|
+
body: AbortFunctionUpgradeRequest,
|
|
524
526
|
): Request<Operation>;
|
|
525
527
|
/** Finalizes the upgrade after which function upgrade can not be rolled back. This is the last step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Deletes all original 1st Gen related configuration and resources. */
|
|
526
528
|
commitFunctionUpgrade(request: {
|
|
@@ -578,7 +580,7 @@ declare namespace gapi.client {
|
|
|
578
580
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
579
581
|
uploadType?: string;
|
|
580
582
|
},
|
|
581
|
-
body: CommitFunctionUpgradeRequest
|
|
583
|
+
body: CommitFunctionUpgradeRequest,
|
|
582
584
|
): Request<Operation>;
|
|
583
585
|
/** 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. */
|
|
584
586
|
create(request: {
|
|
@@ -642,7 +644,7 @@ declare namespace gapi.client {
|
|
|
642
644
|
uploadType?: string;
|
|
643
645
|
},
|
|
644
646
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
645
|
-
body: Function
|
|
647
|
+
body: Function,
|
|
646
648
|
): Request<Operation>;
|
|
647
649
|
/** Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function. */
|
|
648
650
|
delete(request?: {
|
|
@@ -727,7 +729,7 @@ declare namespace gapi.client {
|
|
|
727
729
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
728
730
|
uploadType?: string;
|
|
729
731
|
},
|
|
730
|
-
body: DetachFunctionRequest
|
|
732
|
+
body: DetachFunctionRequest,
|
|
731
733
|
): Request<Operation>;
|
|
732
734
|
/** Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls */
|
|
733
735
|
generateDownloadUrl(request: {
|
|
@@ -785,7 +787,7 @@ declare namespace gapi.client {
|
|
|
785
787
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
786
788
|
uploadType?: string;
|
|
787
789
|
},
|
|
788
|
-
body: GenerateDownloadUrlRequest
|
|
790
|
+
body: GenerateDownloadUrlRequest,
|
|
789
791
|
): Request<GenerateDownloadUrlResponse>;
|
|
790
792
|
/** Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, specify this header: * `content-type: application/zip` Do not specify this header: * `Authorization: Bearer YOUR_TOKEN` */
|
|
791
793
|
generateUploadUrl(request: {
|
|
@@ -843,7 +845,7 @@ declare namespace gapi.client {
|
|
|
843
845
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
844
846
|
uploadType?: string;
|
|
845
847
|
},
|
|
846
|
-
body: GenerateUploadUrlRequest
|
|
848
|
+
body: GenerateUploadUrlRequest,
|
|
847
849
|
): Request<GenerateUploadUrlResponse>;
|
|
848
850
|
/** Returns a function with the given name from the requested project. */
|
|
849
851
|
get(
|
|
@@ -874,7 +876,7 @@ declare namespace gapi.client {
|
|
|
874
876
|
upload_protocol?: string;
|
|
875
877
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
876
878
|
uploadType?: string;
|
|
877
|
-
}
|
|
879
|
+
},
|
|
878
880
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
879
881
|
): Request<Function>;
|
|
880
882
|
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
@@ -1003,7 +1005,7 @@ declare namespace gapi.client {
|
|
|
1003
1005
|
uploadType?: string;
|
|
1004
1006
|
},
|
|
1005
1007
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1006
|
-
body: Function
|
|
1008
|
+
body: Function,
|
|
1007
1009
|
): Request<Operation>;
|
|
1008
1010
|
/** Changes the traffic target of a function from the original 1st Gen function to the 2nd Gen copy. This is the second step of the multi step process to upgrade 1st Gen functions to 2nd Gen. After this operation, all new traffic will be served by 2nd Gen copy. */
|
|
1009
1011
|
redirectFunctionUpgradeTraffic(request: {
|
|
@@ -1061,7 +1063,7 @@ declare namespace gapi.client {
|
|
|
1061
1063
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1062
1064
|
uploadType?: string;
|
|
1063
1065
|
},
|
|
1064
|
-
body: RedirectFunctionUpgradeTrafficRequest
|
|
1066
|
+
body: RedirectFunctionUpgradeTrafficRequest,
|
|
1065
1067
|
): Request<Operation>;
|
|
1066
1068
|
/** Reverts the traffic target of a function from the 2nd Gen copy to the original 1st Gen function. After this operation, all new traffic would be served by the 1st Gen. */
|
|
1067
1069
|
rollbackFunctionUpgradeTraffic(request: {
|
|
@@ -1119,7 +1121,7 @@ declare namespace gapi.client {
|
|
|
1119
1121
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1120
1122
|
uploadType?: string;
|
|
1121
1123
|
},
|
|
1122
|
-
body: RollbackFunctionUpgradeTrafficRequest
|
|
1124
|
+
body: RollbackFunctionUpgradeTrafficRequest,
|
|
1123
1125
|
): Request<Operation>;
|
|
1124
1126
|
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
1125
1127
|
setIamPolicy(
|
|
@@ -1149,7 +1151,7 @@ declare namespace gapi.client {
|
|
|
1149
1151
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1150
1152
|
uploadType?: string;
|
|
1151
1153
|
},
|
|
1152
|
-
body: SetIamPolicyRequest
|
|
1154
|
+
body: SetIamPolicyRequest,
|
|
1153
1155
|
): Request<Policy>;
|
|
1154
1156
|
/** Creates a 2nd Gen copy of the function configuration based on the 1st Gen function with the given name. This is the first step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Only 2nd Gen configuration is setup as part of this request and traffic continues to be served by 1st Gen. */
|
|
1155
1157
|
setupFunctionUpgradeConfig(request: {
|
|
@@ -1207,7 +1209,7 @@ declare namespace gapi.client {
|
|
|
1207
1209
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1208
1210
|
uploadType?: string;
|
|
1209
1211
|
},
|
|
1210
|
-
body: SetupFunctionUpgradeConfigRequest
|
|
1212
|
+
body: SetupFunctionUpgradeConfigRequest,
|
|
1211
1213
|
): Request<Operation>;
|
|
1212
1214
|
/** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
|
|
1213
1215
|
testIamPermissions(
|
|
@@ -1237,7 +1239,7 @@ declare namespace gapi.client {
|
|
|
1237
1239
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1238
1240
|
uploadType?: string;
|
|
1239
1241
|
},
|
|
1240
|
-
body: TestIamPermissionsRequest
|
|
1242
|
+
body: TestIamPermissionsRequest,
|
|
1241
1243
|
): Request<TestIamPermissionsResponse>;
|
|
1242
1244
|
}
|
|
1243
1245
|
interface OperationsResource {
|
package/package.json
CHANGED
package/readme.md
CHANGED