@maxim_mazurok/gapi.client.cloudfunctions-v2beta 0.0.20230206 → 0.0.20230307

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 (3) hide show
  1. package/index.d.ts +15 -8
  2. package/package.json +1 -1
  3. package/tests.ts +5 -7
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: 20230206
12
+ // Revision: 20230307
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
  /**
@@ -1102,12 +1114,7 @@ declare namespace gapi.client {
1102
1114
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1103
1115
  uploadType?: string;
1104
1116
  }): Request<Operation>;
1105
- /**
1106
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1107
- * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1108
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1109
- * ensure the name binding is the parent resource, without the operations collection id.
1110
- */
1117
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1111
1118
  list(request?: {
1112
1119
  /** V1 error format. */
1113
1120
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudfunctions-v2beta",
3
- "version": "0.0.20230206",
3
+ "version": "0.0.20230307",
4
4
  "description": "TypeScript typings for Cloud Functions API v2beta",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230206
6
+ // Revision: 20230307
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
  },
@@ -373,12 +376,7 @@ gapi.load('client', async () => {
373
376
  await gapi.client.cloudfunctions.projects.locations.operations.get({
374
377
  name: "Test string",
375
378
  });
376
- /**
377
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
378
- * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
379
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
380
- * ensure the name binding is the parent resource, without the operations collection id.
381
- */
379
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
382
380
  await gapi.client.cloudfunctions.projects.locations.operations.list({
383
381
  filter: "Test string",
384
382
  name: "Test string",