@maxim_mazurok/gapi.client.cloudtasks-v2 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.
Files changed (3) hide show
  1. package/index.d.ts +15 -15
  2. package/package.json +1 -1
  3. 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=v2
12
- // Revision: 20250103
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 v2 */
18
18
  function load(
19
- urlOrObject: 'https://cloudtasks.googleapis.com/$discovery/rest?version=v2'
19
+ urlOrObject: 'https://cloudtasks.googleapis.com/$discovery/rest?version=v2',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'cloudtasks', version: 'v2'): Promise<void>;
@@ -235,7 +235,7 @@ declare namespace gapi.client {
235
235
  }
236
236
  interface ResumeQueueRequest {}
237
237
  interface RetryConfig {
238
- /** 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). */
238
+ /** 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. */
239
239
  maxAttempts?: number;
240
240
  /** 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). */
241
241
  maxBackoff?: string;
@@ -373,7 +373,7 @@ declare namespace gapi.client {
373
373
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
374
374
  uploadType?: string;
375
375
  },
376
- body: BufferTaskRequest
376
+ body: BufferTaskRequest,
377
377
  ): Request<BufferTaskResponse>;
378
378
  /** 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. */
379
379
  create(request: {
@@ -431,7 +431,7 @@ declare namespace gapi.client {
431
431
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
432
432
  uploadType?: string;
433
433
  },
434
- body: CreateTaskRequest
434
+ body: CreateTaskRequest,
435
435
  ): Request<Task>;
436
436
  /** 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. */
437
437
  delete(request?: {
@@ -578,7 +578,7 @@ declare namespace gapi.client {
578
578
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
579
579
  uploadType?: string;
580
580
  },
581
- body: RunTaskRequest
581
+ body: RunTaskRequest,
582
582
  ): Request<Task>;
583
583
  }
584
584
  interface QueuesResource {
@@ -638,7 +638,7 @@ declare namespace gapi.client {
638
638
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
639
639
  uploadType?: string;
640
640
  },
641
- body: Queue
641
+ body: Queue,
642
642
  ): Request<Queue>;
643
643
  /** 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. */
644
644
  delete(request?: {
@@ -722,7 +722,7 @@ declare namespace gapi.client {
722
722
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
723
723
  uploadType?: string;
724
724
  },
725
- body: GetIamPolicyRequest
725
+ body: GetIamPolicyRequest,
726
726
  ): Request<Policy>;
727
727
  /** Lists queues. Queues are returned in lexicographical order. */
728
728
  list(request?: {
@@ -817,7 +817,7 @@ declare namespace gapi.client {
817
817
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
818
818
  uploadType?: string;
819
819
  },
820
- body: Queue
820
+ body: Queue,
821
821
  ): Request<Queue>;
822
822
  /** 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. */
823
823
  pause(request: {
@@ -875,7 +875,7 @@ declare namespace gapi.client {
875
875
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
876
876
  uploadType?: string;
877
877
  },
878
- body: PauseQueueRequest
878
+ body: PauseQueueRequest,
879
879
  ): Request<Queue>;
880
880
  /** 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. */
881
881
  purge(request: {
@@ -933,7 +933,7 @@ declare namespace gapi.client {
933
933
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
934
934
  uploadType?: string;
935
935
  },
936
- body: PurgeQueueRequest
936
+ body: PurgeQueueRequest,
937
937
  ): Request<Queue>;
938
938
  /** 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). */
939
939
  resume(request: {
@@ -991,7 +991,7 @@ declare namespace gapi.client {
991
991
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
992
992
  uploadType?: string;
993
993
  },
994
- body: ResumeQueueRequest
994
+ body: ResumeQueueRequest,
995
995
  ): Request<Queue>;
996
996
  /** 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` */
997
997
  setIamPolicy(
@@ -1021,7 +1021,7 @@ declare namespace gapi.client {
1021
1021
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1022
1022
  uploadType?: string;
1023
1023
  },
1024
- body: SetIamPolicyRequest
1024
+ body: SetIamPolicyRequest,
1025
1025
  ): Request<Policy>;
1026
1026
  /** 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. */
1027
1027
  testIamPermissions(
@@ -1051,7 +1051,7 @@ declare namespace gapi.client {
1051
1051
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1052
1052
  uploadType?: string;
1053
1053
  },
1054
- body: TestIamPermissionsRequest
1054
+ body: TestIamPermissionsRequest,
1055
1055
  ): Request<TestIamPermissionsResponse>;
1056
1056
  tasks: TasksResource;
1057
1057
  }
@@ -1203,7 +1203,7 @@ declare namespace gapi.client {
1203
1203
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1204
1204
  uploadType?: string;
1205
1205
  },
1206
- body: CmekConfig
1206
+ body: CmekConfig,
1207
1207
  ): Request<CmekConfig>;
1208
1208
  queues: QueuesResource;
1209
1209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudtasks-v2",
3
- "version": "0.0.20250103",
3
+ "version": "0.0.20250124",
4
4
  "description": "TypeScript typings for Cloud Tasks API v2",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.cloudtasks
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -62,7 +62,7 @@ gapi.auth.authorize(
62
62
  } else {
63
63
  /* handle authorization error */
64
64
  }
65
- }
65
+ },
66
66
  );
67
67
  ```
68
68