@maxim_mazurok/gapi.client.cloudtasks-v2beta2 0.0.20220908 → 0.0.20220912

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 +10 -4
  2. package/package.json +1 -1
  3. package/tests.ts +6 -3
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
11
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
12
  // Generated from: https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta2
13
- // Revision: 20220908
13
+ // Revision: 20220912
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -146,7 +146,7 @@ declare namespace gapi.client {
146
146
  role?: string;
147
147
  }
148
148
  interface BufferTaskRequest {
149
- /** Optional. Body of the HTTP request. The body can take any generic value. The value will be written to the HttpRequest of the [Task]. */
149
+ /** Optional. Body of the HTTP request. The body can take any generic value. The value is written to the HttpRequest of the [Task]. */
150
150
  body?: HttpBody;
151
151
  }
152
152
  interface BufferTaskResponse {
@@ -740,8 +740,10 @@ declare namespace gapi.client {
740
740
  },
741
741
  body: AcknowledgeTaskRequest): Request<{}>;
742
742
  /**
743
- * Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. Note: This feature is in its experimental stage. You must
744
- * request access to the API through the [Cloud Tasks BufferTasks Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
743
+ * Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. To create the task with a custom ID, use the following format
744
+ * and set TASK_ID to your desired ID: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the task with an automatically generated ID, use the
745
+ * following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is in its experimental stage. You must request access to the API through
746
+ * the [Cloud Tasks BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
745
747
  */
746
748
  buffer(request: {
747
749
  /** V1 error format. */
@@ -764,6 +766,8 @@ declare namespace gapi.client {
764
766
  prettyPrint?: boolean;
765
767
  /** 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. */
766
768
  quotaUser?: string;
769
+ /** Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task. */
770
+ taskId: string;
767
771
  /** Upload protocol for media (e.g. "raw", "multipart"). */
768
772
  upload_protocol?: string;
769
773
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -792,6 +796,8 @@ declare namespace gapi.client {
792
796
  prettyPrint?: boolean;
793
797
  /** 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. */
794
798
  quotaUser?: string;
799
+ /** Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task. */
800
+ taskId: string;
795
801
  /** Upload protocol for media (e.g. "raw", "multipart"). */
796
802
  upload_protocol?: string;
797
803
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudtasks-v2beta2",
3
- "version": "0.0.20220908",
3
+ "version": "0.0.20220912",
4
4
  "description": "TypeScript typings for Cloud Tasks API v2beta2",
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: 20220908
6
+ // Revision: 20220912
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -287,11 +287,14 @@ gapi.load('client', async () => {
287
287
  scheduleTime: "Test string",
288
288
  });
289
289
  /**
290
- * Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. Note: This feature is in its experimental stage. You must request
291
- * access to the API through the [Cloud Tasks BufferTasks Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
290
+ * Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. To create the task with a custom ID, use the following format and
291
+ * set TASK_ID to your desired ID: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the task with an automatically generated ID, use the following
292
+ * format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is in its experimental stage. You must request access to the API through the [Cloud
293
+ * Tasks BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
292
294
  */
293
295
  await gapi.client.cloudtasks.projects.locations.queues.tasks.buffer({
294
296
  parent: "Test string",
297
+ taskId: "Test string",
295
298
  }, {
296
299
  body: {
297
300
  contentType: "Test string",