@maxim_mazurok/gapi.client.cloudtasks-v2beta2 0.0.20220907 → 0.0.20220908
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 +61 -63
- package/package.json +1 -1
- package/tests.ts +18 -19
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:
|
|
13
|
+
// Revision: 20220908
|
|
14
14
|
|
|
15
15
|
/// <reference types="gapi.client" />
|
|
16
16
|
|
|
@@ -146,10 +146,8 @@ declare namespace gapi.client {
|
|
|
146
146
|
role?: string;
|
|
147
147
|
}
|
|
148
148
|
interface BufferTaskRequest {
|
|
149
|
-
/** 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 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;
|
|
153
151
|
}
|
|
154
152
|
interface BufferTaskResponse {
|
|
155
153
|
/** The created task. */
|
|
@@ -741,6 +739,65 @@ declare namespace gapi.client {
|
|
|
741
739
|
uploadType?: string;
|
|
742
740
|
},
|
|
743
741
|
body: AcknowledgeTaskRequest): Request<{}>;
|
|
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).
|
|
745
|
+
*/
|
|
746
|
+
buffer(request: {
|
|
747
|
+
/** V1 error format. */
|
|
748
|
+
"$.xgafv"?: string;
|
|
749
|
+
/** OAuth access token. */
|
|
750
|
+
access_token?: string;
|
|
751
|
+
/** Data format for response. */
|
|
752
|
+
alt?: string;
|
|
753
|
+
/** JSONP */
|
|
754
|
+
callback?: string;
|
|
755
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
756
|
+
fields?: string;
|
|
757
|
+
/** 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. */
|
|
758
|
+
key?: string;
|
|
759
|
+
/** OAuth 2.0 token for the current user. */
|
|
760
|
+
oauth_token?: string;
|
|
761
|
+
/** Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
|
|
762
|
+
parent: string;
|
|
763
|
+
/** Returns response with indentations and line breaks. */
|
|
764
|
+
prettyPrint?: boolean;
|
|
765
|
+
/** 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
|
+
quotaUser?: string;
|
|
767
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
768
|
+
upload_protocol?: string;
|
|
769
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
770
|
+
uploadType?: string;
|
|
771
|
+
/** Request body */
|
|
772
|
+
resource: BufferTaskRequest;
|
|
773
|
+
}): Request<BufferTaskResponse>;
|
|
774
|
+
buffer(request: {
|
|
775
|
+
/** V1 error format. */
|
|
776
|
+
"$.xgafv"?: string;
|
|
777
|
+
/** OAuth access token. */
|
|
778
|
+
access_token?: string;
|
|
779
|
+
/** Data format for response. */
|
|
780
|
+
alt?: string;
|
|
781
|
+
/** JSONP */
|
|
782
|
+
callback?: string;
|
|
783
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
784
|
+
fields?: string;
|
|
785
|
+
/** 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. */
|
|
786
|
+
key?: string;
|
|
787
|
+
/** OAuth 2.0 token for the current user. */
|
|
788
|
+
oauth_token?: string;
|
|
789
|
+
/** Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
|
|
790
|
+
parent: string;
|
|
791
|
+
/** Returns response with indentations and line breaks. */
|
|
792
|
+
prettyPrint?: boolean;
|
|
793
|
+
/** 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
|
+
quotaUser?: string;
|
|
795
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
796
|
+
upload_protocol?: string;
|
|
797
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
798
|
+
uploadType?: string;
|
|
799
|
+
},
|
|
800
|
+
body: BufferTaskRequest): Request<BufferTaskResponse>;
|
|
744
801
|
/**
|
|
745
802
|
* Cancel a pull task's lease. The worker can use this method to cancel a task's lease by setting its schedule_time to now. This will make the task available to be leased to the next
|
|
746
803
|
* caller of LeaseTasks.
|
|
@@ -1150,65 +1207,6 @@ declare namespace gapi.client {
|
|
|
1150
1207
|
body: RunTaskRequest): Request<Task>;
|
|
1151
1208
|
}
|
|
1152
1209
|
interface QueuesResource {
|
|
1153
|
-
/**
|
|
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).
|
|
1156
|
-
*/
|
|
1157
|
-
buffer(request: {
|
|
1158
|
-
/** V1 error format. */
|
|
1159
|
-
"$.xgafv"?: string;
|
|
1160
|
-
/** OAuth access token. */
|
|
1161
|
-
access_token?: string;
|
|
1162
|
-
/** Data format for response. */
|
|
1163
|
-
alt?: string;
|
|
1164
|
-
/** JSONP */
|
|
1165
|
-
callback?: string;
|
|
1166
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1167
|
-
fields?: string;
|
|
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. */
|
|
1169
|
-
key?: string;
|
|
1170
|
-
/** OAuth 2.0 token for the current user. */
|
|
1171
|
-
oauth_token?: string;
|
|
1172
|
-
/** Returns response with indentations and line breaks. */
|
|
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;
|
|
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. */
|
|
1177
|
-
quotaUser?: string;
|
|
1178
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1179
|
-
upload_protocol?: string;
|
|
1180
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1181
|
-
uploadType?: string;
|
|
1182
|
-
/** Request body */
|
|
1183
|
-
resource: BufferTaskRequest;
|
|
1184
|
-
}): Request<BufferTaskResponse>;
|
|
1185
|
-
buffer(request: {
|
|
1186
|
-
/** V1 error format. */
|
|
1187
|
-
"$.xgafv"?: string;
|
|
1188
|
-
/** OAuth access token. */
|
|
1189
|
-
access_token?: string;
|
|
1190
|
-
/** Data format for response. */
|
|
1191
|
-
alt?: string;
|
|
1192
|
-
/** JSONP */
|
|
1193
|
-
callback?: string;
|
|
1194
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1195
|
-
fields?: string;
|
|
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. */
|
|
1197
|
-
key?: string;
|
|
1198
|
-
/** OAuth 2.0 token for the current user. */
|
|
1199
|
-
oauth_token?: string;
|
|
1200
|
-
/** Returns response with indentations and line breaks. */
|
|
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;
|
|
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. */
|
|
1205
|
-
quotaUser?: string;
|
|
1206
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1207
|
-
upload_protocol?: string;
|
|
1208
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1209
|
-
uploadType?: string;
|
|
1210
|
-
},
|
|
1211
|
-
body: BufferTaskRequest): Request<BufferTaskResponse>;
|
|
1212
1210
|
/**
|
|
1213
1211
|
* 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
|
|
1214
1212
|
* 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
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: 20220908
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -40,24 +40,6 @@ gapi.load('client', async () => {
|
|
|
40
40
|
pageSize: 42,
|
|
41
41
|
pageToken: "Test string",
|
|
42
42
|
});
|
|
43
|
-
/**
|
|
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).
|
|
46
|
-
*/
|
|
47
|
-
await gapi.client.cloudtasks.projects.locations.queues.buffer({
|
|
48
|
-
queue: "Test string",
|
|
49
|
-
}, {
|
|
50
|
-
body: {
|
|
51
|
-
contentType: "Test string",
|
|
52
|
-
data: "Test string",
|
|
53
|
-
extensions: [
|
|
54
|
-
{
|
|
55
|
-
A: 42
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
taskId: "Test string",
|
|
60
|
-
});
|
|
61
43
|
/**
|
|
62
44
|
* 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
|
|
63
45
|
* 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 of
|
|
@@ -304,6 +286,23 @@ gapi.load('client', async () => {
|
|
|
304
286
|
}, {
|
|
305
287
|
scheduleTime: "Test string",
|
|
306
288
|
});
|
|
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).
|
|
292
|
+
*/
|
|
293
|
+
await gapi.client.cloudtasks.projects.locations.queues.tasks.buffer({
|
|
294
|
+
parent: "Test string",
|
|
295
|
+
}, {
|
|
296
|
+
body: {
|
|
297
|
+
contentType: "Test string",
|
|
298
|
+
data: "Test string",
|
|
299
|
+
extensions: [
|
|
300
|
+
{
|
|
301
|
+
A: 42
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
},
|
|
305
|
+
});
|
|
307
306
|
/**
|
|
308
307
|
* Cancel a pull task's lease. The worker can use this method to cancel a task's lease by setting its schedule_time to now. This will make the task available to be leased to the next
|
|
309
308
|
* caller of LeaseTasks.
|