@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.0.20230206 → 0.0.20230221
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 +14 -2
- package/package.json +1 -1
- package/tests.ts +4 -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: 20230221
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -166,6 +166,11 @@ declare namespace gapi.client {
|
|
|
166
166
|
environment?: string;
|
|
167
167
|
/** An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. */
|
|
168
168
|
eventTrigger?: EventTrigger;
|
|
169
|
+
/**
|
|
170
|
+
* Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern
|
|
171
|
+
* `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
|
|
172
|
+
*/
|
|
173
|
+
kmsKeyName?: string;
|
|
169
174
|
/** Labels associated with this Cloud Function. */
|
|
170
175
|
labels?: { [P in string]: string };
|
|
171
176
|
/** A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*` */
|
|
@@ -186,8 +191,15 @@ declare namespace gapi.client {
|
|
|
186
191
|
/** The generated Google Cloud Storage signed URL that should be used for function source code download. */
|
|
187
192
|
downloadUrl?: string;
|
|
188
193
|
}
|
|
189
|
-
// tslint:disable-next-line:no-empty-interface
|
|
190
194
|
interface GenerateUploadUrlRequest {
|
|
195
|
+
/**
|
|
196
|
+
* Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url
|
|
197
|
+
* and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer
|
|
198
|
+
* project during the function deployment. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. The Google Cloud Functions
|
|
199
|
+
* service account (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
|
|
200
|
+
* (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the Key/KeyRing/Project/Organization (least access preferred).
|
|
201
|
+
*/
|
|
202
|
+
kmsKeyName?: string;
|
|
191
203
|
}
|
|
192
204
|
interface GenerateUploadUrlResponse {
|
|
193
205
|
/**
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230221
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -103,6 +103,7 @@ gapi.load('client', async () => {
|
|
|
103
103
|
trigger: "Test string",
|
|
104
104
|
triggerRegion: "Test string",
|
|
105
105
|
},
|
|
106
|
+
kmsKeyName: "Test string",
|
|
106
107
|
labels: {
|
|
107
108
|
A: "Test string"
|
|
108
109
|
},
|
|
@@ -181,6 +182,7 @@ gapi.load('client', async () => {
|
|
|
181
182
|
await gapi.client.cloudfunctions.projects.locations.functions.generateUploadUrl({
|
|
182
183
|
parent: "Test string",
|
|
183
184
|
}, {
|
|
185
|
+
kmsKeyName: "Test string",
|
|
184
186
|
});
|
|
185
187
|
/** Returns a function with the given name from the requested project. */
|
|
186
188
|
await gapi.client.cloudfunctions.projects.locations.functions.get({
|
|
@@ -266,6 +268,7 @@ gapi.load('client', async () => {
|
|
|
266
268
|
trigger: "Test string",
|
|
267
269
|
triggerRegion: "Test string",
|
|
268
270
|
},
|
|
271
|
+
kmsKeyName: "Test string",
|
|
269
272
|
labels: {
|
|
270
273
|
A: "Test string"
|
|
271
274
|
},
|