@maxim_mazurok/gapi.client.cloudtasks-v2beta3 0.0.20250103 → 0.0.20250124
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 +16 -16
- package/package.json +1 -1
- package/readme.md +2 -2
package/index.d.ts
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
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: 20250124
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
17
|
/** Load Cloud Tasks API v2beta3 */
|
|
18
18
|
function load(
|
|
19
|
-
urlOrObject: 'https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta3'
|
|
19
|
+
urlOrObject: 'https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta3',
|
|
20
20
|
): Promise<void>;
|
|
21
21
|
/** @deprecated Please load APIs with discovery documents. */
|
|
22
22
|
function load(name: 'cloudtasks', version: 'v2beta3'): Promise<void>;
|
|
@@ -24,7 +24,7 @@ declare namespace gapi.client {
|
|
|
24
24
|
function load(
|
|
25
25
|
name: 'cloudtasks',
|
|
26
26
|
version: 'v2beta3',
|
|
27
|
-
callback: () => any
|
|
27
|
+
callback: () => any,
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
namespace cloudtasks {
|
|
@@ -269,7 +269,7 @@ declare namespace gapi.client {
|
|
|
269
269
|
}
|
|
270
270
|
interface ResumeQueueRequest {}
|
|
271
271
|
interface RetryConfig {
|
|
272
|
-
/** Number of attempts per task. Cloud Tasks will attempt the task `max_attempts` times (that is, if the first attempt fails, then there will be `max_attempts - 1` retries). Must be >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). */
|
|
272
|
+
/** Number of attempts per task. Cloud Tasks will attempt the task `max_attempts` times (that is, if the first attempt fails, then there will be `max_attempts - 1` retries). Must be >= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). Note: Cloud Tasks stops retrying only when `max_attempts` and `max_retry_duration` are both satisfied. When the task has been attempted `max_attempts` times and when the `max_retry_duration` time has passed, no further attempts are made, and the task is deleted. If you want your task to retry infinitely, you must set `max_attempts` to -1 and `max_retry_duration` to 0. */
|
|
273
273
|
maxAttempts?: number;
|
|
274
274
|
/** A task will be scheduled for retry between min_backoff and max_backoff duration after it fails, if the queue's RetryConfig specifies that the task should be retried. If unspecified when the queue is created, Cloud Tasks will pick the default. The value must be given as a string that indicates the length of time (in seconds) followed by `s` (for "seconds"). For more information on the format, see the documentation for [Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration). `max_backoff` will be truncated to the nearest second. This field has the same meaning as [max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). */
|
|
275
275
|
maxBackoff?: string;
|
|
@@ -409,7 +409,7 @@ declare namespace gapi.client {
|
|
|
409
409
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
410
410
|
uploadType?: string;
|
|
411
411
|
},
|
|
412
|
-
body: BufferTaskRequest
|
|
412
|
+
body: BufferTaskRequest,
|
|
413
413
|
): Request<BufferTaskResponse>;
|
|
414
414
|
/** Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * The maximum task size is 100KB. */
|
|
415
415
|
create(request: {
|
|
@@ -467,7 +467,7 @@ declare namespace gapi.client {
|
|
|
467
467
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
468
468
|
uploadType?: string;
|
|
469
469
|
},
|
|
470
|
-
body: CreateTaskRequest
|
|
470
|
+
body: CreateTaskRequest,
|
|
471
471
|
): Request<Task>;
|
|
472
472
|
/** Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has executed successfully or permanently failed. */
|
|
473
473
|
delete(request?: {
|
|
@@ -614,7 +614,7 @@ declare namespace gapi.client {
|
|
|
614
614
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
615
615
|
uploadType?: string;
|
|
616
616
|
},
|
|
617
|
-
body: RunTaskRequest
|
|
617
|
+
body: RunTaskRequest,
|
|
618
618
|
): Request<Task>;
|
|
619
619
|
}
|
|
620
620
|
interface QueuesResource {
|
|
@@ -674,7 +674,7 @@ declare namespace gapi.client {
|
|
|
674
674
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
675
675
|
uploadType?: string;
|
|
676
676
|
},
|
|
677
|
-
body: Queue
|
|
677
|
+
body: Queue,
|
|
678
678
|
): Request<Queue>;
|
|
679
679
|
/** 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 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 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 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 effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. */
|
|
680
680
|
delete(request?: {
|
|
@@ -760,7 +760,7 @@ declare namespace gapi.client {
|
|
|
760
760
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
761
761
|
uploadType?: string;
|
|
762
762
|
},
|
|
763
|
-
body: GetIamPolicyRequest
|
|
763
|
+
body: GetIamPolicyRequest,
|
|
764
764
|
): Request<Policy>;
|
|
765
765
|
/** Lists queues. Queues are returned in lexicographical order. */
|
|
766
766
|
list(request?: {
|
|
@@ -857,7 +857,7 @@ declare namespace gapi.client {
|
|
|
857
857
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
858
858
|
uploadType?: string;
|
|
859
859
|
},
|
|
860
|
-
body: Queue
|
|
860
|
+
body: Queue,
|
|
861
861
|
): Request<Queue>;
|
|
862
862
|
/** Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via ResumeQueue. Tasks can still be added when the queue is paused. A queue is paused if its state is PAUSED. */
|
|
863
863
|
pause(request: {
|
|
@@ -915,7 +915,7 @@ declare namespace gapi.client {
|
|
|
915
915
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
916
916
|
uploadType?: string;
|
|
917
917
|
},
|
|
918
|
-
body: PauseQueueRequest
|
|
918
|
+
body: PauseQueueRequest,
|
|
919
919
|
): Request<Queue>;
|
|
920
920
|
/** Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible. */
|
|
921
921
|
purge(request: {
|
|
@@ -973,7 +973,7 @@ declare namespace gapi.client {
|
|
|
973
973
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
974
974
|
uploadType?: string;
|
|
975
975
|
},
|
|
976
|
-
body: PurgeQueueRequest
|
|
976
|
+
body: PurgeQueueRequest,
|
|
977
977
|
): Request<Queue>;
|
|
978
978
|
/** Resume a queue. This method resumes a queue after it has been PAUSED or DISABLED. The state of a queue is stored in the queue's state; after calling this method it will be set to RUNNING. WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). */
|
|
979
979
|
resume(request: {
|
|
@@ -1031,7 +1031,7 @@ declare namespace gapi.client {
|
|
|
1031
1031
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1032
1032
|
uploadType?: string;
|
|
1033
1033
|
},
|
|
1034
|
-
body: ResumeQueueRequest
|
|
1034
|
+
body: ResumeQueueRequest,
|
|
1035
1035
|
): Request<Queue>;
|
|
1036
1036
|
/** Sets the access control policy for a Queue. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.setIamPolicy` */
|
|
1037
1037
|
setIamPolicy(
|
|
@@ -1061,7 +1061,7 @@ declare namespace gapi.client {
|
|
|
1061
1061
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1062
1062
|
uploadType?: string;
|
|
1063
1063
|
},
|
|
1064
|
-
body: SetIamPolicyRequest
|
|
1064
|
+
body: SetIamPolicyRequest,
|
|
1065
1065
|
): Request<Policy>;
|
|
1066
1066
|
/** Returns permissions that a caller has on a Queue. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
|
|
1067
1067
|
testIamPermissions(
|
|
@@ -1091,7 +1091,7 @@ declare namespace gapi.client {
|
|
|
1091
1091
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1092
1092
|
uploadType?: string;
|
|
1093
1093
|
},
|
|
1094
|
-
body: TestIamPermissionsRequest
|
|
1094
|
+
body: TestIamPermissionsRequest,
|
|
1095
1095
|
): Request<TestIamPermissionsResponse>;
|
|
1096
1096
|
tasks: TasksResource;
|
|
1097
1097
|
}
|
|
@@ -1243,7 +1243,7 @@ declare namespace gapi.client {
|
|
|
1243
1243
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1244
1244
|
uploadType?: string;
|
|
1245
1245
|
},
|
|
1246
|
-
body: CmekConfig
|
|
1246
|
+
body: CmekConfig,
|
|
1247
1247
|
): Request<CmekConfig>;
|
|
1248
1248
|
queues: QueuesResource;
|
|
1249
1249
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED