@maxim_mazurok/gapi.client.cloudtasks-v2beta2 0.0.20220903 → 0.0.20220907

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 +16 -15
  2. package/package.json +1 -1
  3. package/tests.ts +5 -5
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: 20220903
13
+ // Revision: 20220907
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -145,13 +145,15 @@ declare namespace gapi.client {
145
145
  /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
146
146
  role?: string;
147
147
  }
148
- interface BufferQueueRequest {
148
+ interface BufferTaskRequest {
149
149
  /** Body of the HTTP request. The body can take any generic value. The value will be written to the HttpRequest of the [Task]. */
150
150
  body?: HttpBody;
151
+ /** Optional. The user-specified ID for the task. */
152
+ taskId?: string;
151
153
  }
152
- interface BufferQueueResponse {
153
- /** The name of the created task. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. TASK_ID is randomly generated and is unique within the queue. */
154
- task?: string;
154
+ interface BufferTaskResponse {
155
+ /** The created task. */
156
+ task?: Task;
155
157
  }
156
158
  interface CancelLeaseRequest {
157
159
  /**
@@ -1149,9 +1151,8 @@ declare namespace gapi.client {
1149
1151
  }
1150
1152
  interface QueuesResource {
1151
1153
  /**
1152
- * Note: This feature is in its experimental stage. You must request access to the API through the [Cloud Tasks BufferQueues Experiment Signup
1153
- * form](https://forms.gle/X8Zr5hiXH5tTGFqh8). Creates and buffers a new task without the need to explicitly define a Task message. The queue must be an http queue (i.e., must have
1154
- * HTTP target). This method is used for a simplified application of Cloud Tasks queues in buffer and rate limitting HTTP requests.
1154
+ * 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
1155
+ * request access to the API through the [Cloud Tasks BufferTasks Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
1155
1156
  */
1156
1157
  buffer(request: {
1157
1158
  /** V1 error format. */
@@ -1166,12 +1167,12 @@ declare namespace gapi.client {
1166
1167
  fields?: string;
1167
1168
  /** 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. */
1168
1169
  key?: string;
1169
- /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1170
- name: string;
1171
1170
  /** OAuth 2.0 token for the current user. */
1172
1171
  oauth_token?: string;
1173
1172
  /** Returns response with indentations and line breaks. */
1174
1173
  prettyPrint?: boolean;
1174
+ /** Required. The parent queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1175
+ queue: string;
1175
1176
  /** 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. */
1176
1177
  quotaUser?: string;
1177
1178
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -1179,8 +1180,8 @@ declare namespace gapi.client {
1179
1180
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1180
1181
  uploadType?: string;
1181
1182
  /** Request body */
1182
- resource: BufferQueueRequest;
1183
- }): Request<BufferQueueResponse>;
1183
+ resource: BufferTaskRequest;
1184
+ }): Request<BufferTaskResponse>;
1184
1185
  buffer(request: {
1185
1186
  /** V1 error format. */
1186
1187
  "$.xgafv"?: string;
@@ -1194,12 +1195,12 @@ declare namespace gapi.client {
1194
1195
  fields?: string;
1195
1196
  /** 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. */
1196
1197
  key?: string;
1197
- /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1198
- name: string;
1199
1198
  /** OAuth 2.0 token for the current user. */
1200
1199
  oauth_token?: string;
1201
1200
  /** Returns response with indentations and line breaks. */
1202
1201
  prettyPrint?: boolean;
1202
+ /** Required. The parent queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1203
+ queue: string;
1203
1204
  /** 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. */
1204
1205
  quotaUser?: string;
1205
1206
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -1207,7 +1208,7 @@ declare namespace gapi.client {
1207
1208
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1208
1209
  uploadType?: string;
1209
1210
  },
1210
- body: BufferQueueRequest): Request<BufferQueueResponse>;
1211
+ body: BufferTaskRequest): Request<BufferTaskResponse>;
1211
1212
  /**
1212
1213
  * Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was
1213
1214
  * dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudtasks-v2beta2",
3
- "version": "0.0.20220903",
3
+ "version": "0.0.20220907",
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: 20220903
6
+ // Revision: 20220907
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -41,12 +41,11 @@ gapi.load('client', async () => {
41
41
  pageToken: "Test string",
42
42
  });
43
43
  /**
44
- * Note: This feature is in its experimental stage. You must request access to the API through the [Cloud Tasks BufferQueues Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
45
- * Creates and buffers a new task without the need to explicitly define a Task message. The queue must be an http queue (i.e., must have HTTP target). This method is used for a simplified
46
- * application of Cloud Tasks queues in buffer and rate limitting HTTP requests.
44
+ * 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
45
+ * access to the API through the [Cloud Tasks BufferTasks Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
47
46
  */
48
47
  await gapi.client.cloudtasks.projects.locations.queues.buffer({
49
- name: "Test string",
48
+ queue: "Test string",
50
49
  }, {
51
50
  body: {
52
51
  contentType: "Test string",
@@ -57,6 +56,7 @@ gapi.load('client', async () => {
57
56
  }
58
57
  ],
59
58
  },
59
+ taskId: "Test string",
60
60
  });
61
61
  /**
62
62
  * Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was