@maxim_mazurok/gapi.client.cloudtasks-v2beta3 0.0.20230927 → 0.0.20231018
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 +11 -11
- package/package.json +1 -1
- package/tests.ts +8 -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://cloudtasks.googleapis.com/$discovery/rest?version=v2beta3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231018
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -765,8 +765,7 @@ declare namespace gapi.client {
|
|
|
765
765
|
/**
|
|
766
766
|
* 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
|
|
767
767
|
* 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
|
|
768
|
-
* following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
|
|
769
|
-
* the [Cloud Tasks BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
|
|
768
|
+
* following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
|
|
770
769
|
*/
|
|
771
770
|
buffer(request: {
|
|
772
771
|
/** V1 error format. */
|
|
@@ -1262,8 +1261,11 @@ declare namespace gapi.client {
|
|
|
1262
1261
|
},
|
|
1263
1262
|
body: Queue): Request<Queue>;
|
|
1264
1263
|
/**
|
|
1265
|
-
* Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue,
|
|
1266
|
-
*
|
|
1264
|
+
* Deletes a queue. This command will delete the queue even if it has tasks in it. Note : If you delete a queue, you may be prevented from creating a new queue with the same name as
|
|
1265
|
+
* the deleted queue for a tombstone window of up to 3 days. During this window, the CreateQueue operation may appear to recreate the queue, but this can be misleading. If you attempt
|
|
1266
|
+
* to create a queue with the same name as one that is in the tombstone window, run GetQueue to confirm that the queue creation was successful. If GetQueue returns 200 response code,
|
|
1267
|
+
* your queue was successfully created with the name of the previously deleted queue. Otherwise, your queue did not successfully recreate. WARNING: Using this method may have
|
|
1268
|
+
* unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and
|
|
1267
1269
|
* queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.
|
|
1268
1270
|
*/
|
|
1269
1271
|
delete(request?: {
|
|
@@ -2065,7 +2067,8 @@ declare namespace gapi.client {
|
|
|
2065
2067
|
/** 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. */
|
|
2066
2068
|
key?:
|
|
2067
2069
|
string;
|
|
2068
|
-
|
|
2070
|
+
/** Output only. The config resource name which includes the project and location and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` */
|
|
2071
|
+
name:
|
|
2069
2072
|
string;
|
|
2070
2073
|
/** OAuth 2.0 token for the current user. */
|
|
2071
2074
|
oauth_token?:
|
|
@@ -2073,8 +2076,6 @@ declare namespace gapi.client {
|
|
|
2073
2076
|
/** Returns response with indentations and line breaks. */
|
|
2074
2077
|
prettyPrint?:
|
|
2075
2078
|
boolean;
|
|
2076
|
-
projectsId:
|
|
2077
|
-
string;
|
|
2078
2079
|
/** 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. */
|
|
2079
2080
|
quotaUser?:
|
|
2080
2081
|
string;
|
|
@@ -2110,7 +2111,8 @@ declare namespace gapi.client {
|
|
|
2110
2111
|
/** 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. */
|
|
2111
2112
|
key?:
|
|
2112
2113
|
string;
|
|
2113
|
-
|
|
2114
|
+
/** Output only. The config resource name which includes the project and location and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` */
|
|
2115
|
+
name:
|
|
2114
2116
|
string;
|
|
2115
2117
|
/** OAuth 2.0 token for the current user. */
|
|
2116
2118
|
oauth_token?:
|
|
@@ -2118,8 +2120,6 @@ declare namespace gapi.client {
|
|
|
2118
2120
|
/** Returns response with indentations and line breaks. */
|
|
2119
2121
|
prettyPrint?:
|
|
2120
2122
|
boolean;
|
|
2121
|
-
projectsId:
|
|
2122
|
-
string;
|
|
2123
2123
|
/** 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. */
|
|
2124
2124
|
quotaUser?:
|
|
2125
2125
|
string;
|
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: 20231018
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -49,8 +49,7 @@ gapi.load('client', async () => {
|
|
|
49
49
|
* in the location will be encrypted at-rest with the KMS-key provided in the config.
|
|
50
50
|
*/
|
|
51
51
|
await gapi.client.cloudtasks.projects.locations.updateCmekConfig({
|
|
52
|
-
|
|
53
|
-
projectsId: "Test string",
|
|
52
|
+
name: "Test string",
|
|
54
53
|
updateMask: "Test string",
|
|
55
54
|
}, {
|
|
56
55
|
kmsKey: "Test string",
|
|
@@ -133,8 +132,11 @@ gapi.load('client', async () => {
|
|
|
133
132
|
type: "Test string",
|
|
134
133
|
});
|
|
135
134
|
/**
|
|
136
|
-
* Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue,
|
|
137
|
-
*
|
|
135
|
+
* Deletes a queue. This command will delete the queue even if it has tasks in it. Note : If you delete a queue, you may be prevented from creating a new queue with the same name as the
|
|
136
|
+
* deleted queue for a tombstone window of up to 3 days. During this window, the CreateQueue operation may appear to recreate the queue, but this can be misleading. If you attempt to
|
|
137
|
+
* create a queue with the same name as one that is in the tombstone window, run GetQueue to confirm that the queue creation was successful. If GetQueue returns 200 response code, your
|
|
138
|
+
* queue was successfully created with the name of the previously deleted queue. Otherwise, your queue did not successfully recreate. WARNING: Using this method may have unintended side
|
|
139
|
+
* effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and
|
|
138
140
|
* queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.
|
|
139
141
|
*/
|
|
140
142
|
await gapi.client.cloudtasks.projects.locations.queues.delete({
|
|
@@ -307,8 +309,7 @@ gapi.load('client', async () => {
|
|
|
307
309
|
/**
|
|
308
310
|
* 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
|
|
309
311
|
* 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
|
|
310
|
-
* format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
|
|
311
|
-
* Tasks BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
|
|
312
|
+
* format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
|
|
312
313
|
*/
|
|
313
314
|
await gapi.client.cloudtasks.projects.locations.queues.tasks.buffer({
|
|
314
315
|
queue: "Test string",
|