@maxim_mazurok/gapi.client.cloudtasks-v2 0.3.20260831 → 0.3.20260916

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 (2) hide show
  1. package/index.d.ts +133 -1
  2. package/package.json +1 -1
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=v2
12
- // Revision: 20260831
12
+ // Revision: 20260916
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -64,6 +64,18 @@ declare namespace gapi.client {
64
64
  /** Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond. */
65
65
  scheduleTime?: string;
66
66
  }
67
+ interface BatchCreateTasksRequest {
68
+ /** Optional. This field will be used to identify the long running operation, avoiding duplication when user retries. If not provided, then a UUID will be generated at server side. */
69
+ requestId?: string;
70
+ /** Required. The list of requests to create tasks. The queue specified in parent field of each CreateTaskRequest will be the same. This validation happens on the client side as well as in the handler. BatchCreateTasksRequest.parent will also be the same value as the individual CreateTaskRequest.parent . The maximum number of requests is 100. */
71
+ requests?: CreateTaskRequest[];
72
+ }
73
+ interface BatchDeleteTasksRequest {
74
+ /** Required. The names of the tasks to delete. A maximum of 1000 tasks can be deleted in a batch. For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` */
75
+ names?: string[];
76
+ /** Optional. This field will be used to identify the long running operation, avoiding duplication when user retries. If not provided, then a UUID will be generated at server side. */
77
+ requestId?: string;
78
+ }
67
79
  interface Binding {
68
80
  /** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
69
81
  condition?: Expr;
@@ -87,6 +99,8 @@ declare namespace gapi.client {
87
99
  name?: string;
88
100
  }
89
101
  interface CreateTaskRequest {
102
+ /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
103
+ parent?: string;
90
104
  /** The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource. */
91
105
  responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
92
106
  /** Required. The task to add. Task names have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can optionally specify a task name. If a name is not specified then the system will generate a random unique task id, which will be set in the task returned in the response. If schedule_time is not set or is in the past then Cloud Tasks will set it to the current time. Task De-duplication: Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical to that of an existing task or a task that was deleted or executed recently then the call will fail with ALREADY_EXISTS. The IDs of deleted tasks are not immediately available for reuse. It can take up to 24 hours (or 9 days if the task's queue was created using a queue.yaml or queue.xml) for the task ID to be released and made available again. Because there is an extra lookup cost to identify duplicate task names, these CreateTask calls have significantly increased latency. Using hashed strings for the task id or for the prefix of the task id is recommended. Choosing task ids that are sequential or have sequential prefixes, for example using a timestamp, causes an increase in latency and error rates in all task commands. The infrastructure relies on an approximately uniform distribution of task ids to store and serve tasks efficiently. */
@@ -321,6 +335,8 @@ declare namespace gapi.client {
321
335
  name?: string;
322
336
  /** Output only. The number of attempts which have received a response. */
323
337
  responseCount?: number;
338
+ /** Optional. Specifies the task-level RetryConfig. If present, this overrides the Queue.retry_config for this task. */
339
+ retryConfig?: RetryConfig;
324
340
  /** The time when the task is scheduled to be attempted or retried. `schedule_time` will be truncated to the nearest microsecond. */
325
341
  scheduleTime?: string;
326
342
  /** Output only. The view specifies which subset of the Task has been returned. */
@@ -379,6 +395,122 @@ declare namespace gapi.client {
379
395
  }): Request<Operation>;
380
396
  }
381
397
  interface TasksResource {
398
+ /** Creates a batch of tasks and adds them to a queue. All tasks must be for the same queue. A maximum of 100 tasks can be created in a single batch. */
399
+ batchCreate(request: {
400
+ /** V1 error format. */
401
+ '$.xgafv'?: '1' | '2';
402
+ /** OAuth access token. */
403
+ access_token?: string;
404
+ /** Data format for response. */
405
+ alt?: 'json' | 'media' | 'proto';
406
+ /** JSONP */
407
+ callback?: string;
408
+ /** Selector specifying which fields to include in a partial response. */
409
+ fields?: string;
410
+ /** 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. */
411
+ key?: string;
412
+ /** OAuth 2.0 token for the current user. */
413
+ oauth_token?: string;
414
+ /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
415
+ parent: string;
416
+ /** Returns response with indentations and line breaks. */
417
+ prettyPrint?: boolean;
418
+ /** 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. */
419
+ quotaUser?: string;
420
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
421
+ upload_protocol?: string;
422
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
423
+ uploadType?: string;
424
+ /** Request body */
425
+ resource: BatchCreateTasksRequest;
426
+ }): Request<Operation>;
427
+ batchCreate(
428
+ request: {
429
+ /** V1 error format. */
430
+ '$.xgafv'?: '1' | '2';
431
+ /** OAuth access token. */
432
+ access_token?: string;
433
+ /** Data format for response. */
434
+ alt?: 'json' | 'media' | 'proto';
435
+ /** JSONP */
436
+ callback?: string;
437
+ /** Selector specifying which fields to include in a partial response. */
438
+ fields?: string;
439
+ /** 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. */
440
+ key?: string;
441
+ /** OAuth 2.0 token for the current user. */
442
+ oauth_token?: string;
443
+ /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
444
+ parent: string;
445
+ /** Returns response with indentations and line breaks. */
446
+ prettyPrint?: boolean;
447
+ /** 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. */
448
+ quotaUser?: string;
449
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
450
+ upload_protocol?: string;
451
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
452
+ uploadType?: string;
453
+ },
454
+ body: BatchCreateTasksRequest,
455
+ ): Request<Operation>;
456
+ /** Deletes a batch of tasks. This is a non-atomic operation: if deletion fails for some tasks, it can still succeed for others. The metadata field of google.longrunning.Operation contains details of failed deletions. A maximum of 1000 tasks can be deleted in a batch. */
457
+ batchDelete(request: {
458
+ /** V1 error format. */
459
+ '$.xgafv'?: '1' | '2';
460
+ /** OAuth access token. */
461
+ access_token?: string;
462
+ /** Data format for response. */
463
+ alt?: 'json' | 'media' | 'proto';
464
+ /** JSONP */
465
+ callback?: string;
466
+ /** Selector specifying which fields to include in a partial response. */
467
+ fields?: string;
468
+ /** 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. */
469
+ key?: string;
470
+ /** OAuth 2.0 token for the current user. */
471
+ oauth_token?: string;
472
+ /** Required. The queue name. For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
473
+ parent: string;
474
+ /** Returns response with indentations and line breaks. */
475
+ prettyPrint?: boolean;
476
+ /** 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. */
477
+ quotaUser?: string;
478
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
479
+ upload_protocol?: string;
480
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
481
+ uploadType?: string;
482
+ /** Request body */
483
+ resource: BatchDeleteTasksRequest;
484
+ }): Request<Operation>;
485
+ batchDelete(
486
+ request: {
487
+ /** V1 error format. */
488
+ '$.xgafv'?: '1' | '2';
489
+ /** OAuth access token. */
490
+ access_token?: string;
491
+ /** Data format for response. */
492
+ alt?: 'json' | 'media' | 'proto';
493
+ /** JSONP */
494
+ callback?: string;
495
+ /** Selector specifying which fields to include in a partial response. */
496
+ fields?: string;
497
+ /** 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. */
498
+ key?: string;
499
+ /** OAuth 2.0 token for the current user. */
500
+ oauth_token?: string;
501
+ /** Required. The queue name. For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
502
+ parent: string;
503
+ /** Returns response with indentations and line breaks. */
504
+ prettyPrint?: boolean;
505
+ /** 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. */
506
+ quotaUser?: string;
507
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
508
+ upload_protocol?: string;
509
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
510
+ uploadType?: string;
511
+ },
512
+ body: BatchDeleteTasksRequest,
513
+ ): Request<Operation>;
382
514
  /** 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 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 format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. */
383
515
  buffer(request: {
384
516
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudtasks-v2",
3
- "version": "0.3.20260831",
3
+ "version": "0.3.20260916",
4
4
  "description": "TypeScript typings for Cloud Tasks API v2",
5
5
  "repository": {
6
6
  "type": "git",