@maxim_mazurok/gapi.client.cloudtasks-v2beta3 0.3.20261106 → 0.4.20261110

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 +953 -958
  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=v2beta3
12
- // Revision: 20261106
12
+ // Revision: 20261110
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -401,693 +401,11 @@ declare namespace gapi.client {
401
401
  uriOverrideEnforceMode?:
402
402
  'URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED' | 'IF_NOT_EXISTS' | 'ALWAYS';
403
403
  }
404
- interface OperationsResource {
405
- /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
406
- get(request?: {
407
- /** V1 error format. */
408
- '$.xgafv'?: '1' | '2';
409
- /** OAuth access token. */
410
- access_token?: string;
411
- /** Data format for response. */
412
- alt?: 'json' | 'media' | 'proto';
413
- /** JSONP */
414
- callback?: string;
415
- /** Selector specifying which fields to include in a partial response. */
416
- fields?: string;
417
- /** 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. */
418
- key?: string;
419
- /** The name of the operation resource. */
420
- name: string;
421
- /** OAuth 2.0 token for the current user. */
422
- oauth_token?: string;
423
- /** Returns response with indentations and line breaks. */
424
- prettyPrint?: boolean;
425
- /** 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. */
426
- quotaUser?: string;
427
- /** Upload protocol for media (e.g. "raw", "multipart"). */
428
- upload_protocol?: string;
429
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
430
- uploadType?: string;
431
- }): Request<Operation>;
432
- }
433
- interface TasksResource {
434
- /** Creates a batch of tasks and adds them to a queue. This call is not atomic. All tasks must be for the same queue. A maximum of 100 tasks can be created in a single batch. */
435
- batchCreate(request: {
436
- /** V1 error format. */
437
- '$.xgafv'?: '1' | '2';
438
- /** OAuth access token. */
439
- access_token?: string;
440
- /** Data format for response. */
441
- alt?: 'json' | 'media' | 'proto';
442
- /** JSONP */
443
- callback?: string;
444
- /** Selector specifying which fields to include in a partial response. */
445
- fields?: string;
446
- /** 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. */
447
- key?: string;
448
- /** OAuth 2.0 token for the current user. */
449
- oauth_token?: string;
450
- /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
451
- parent: string;
452
- /** Returns response with indentations and line breaks. */
453
- prettyPrint?: boolean;
454
- /** 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. */
455
- quotaUser?: string;
456
- /** Upload protocol for media (e.g. "raw", "multipart"). */
457
- upload_protocol?: string;
458
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
459
- uploadType?: string;
460
- /** Request body */
461
- resource: BatchCreateTasksRequest;
462
- }): Request<Operation>;
463
- batchCreate(
464
- request: {
465
- /** V1 error format. */
466
- '$.xgafv'?: '1' | '2';
467
- /** OAuth access token. */
468
- access_token?: string;
469
- /** Data format for response. */
470
- alt?: 'json' | 'media' | 'proto';
471
- /** JSONP */
472
- callback?: string;
473
- /** Selector specifying which fields to include in a partial response. */
474
- fields?: string;
475
- /** 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. */
476
- key?: string;
477
- /** OAuth 2.0 token for the current user. */
478
- oauth_token?: string;
479
- /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
480
- parent: string;
481
- /** Returns response with indentations and line breaks. */
482
- prettyPrint?: boolean;
483
- /** 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. */
484
- quotaUser?: string;
485
- /** Upload protocol for media (e.g. "raw", "multipart"). */
486
- upload_protocol?: string;
487
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
488
- uploadType?: string;
489
- },
490
- body: BatchCreateTasksRequest,
491
- ): Request<Operation>;
492
- /** 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. */
493
- batchDelete(request: {
494
- /** V1 error format. */
495
- '$.xgafv'?: '1' | '2';
496
- /** OAuth access token. */
497
- access_token?: string;
498
- /** Data format for response. */
499
- alt?: 'json' | 'media' | 'proto';
500
- /** JSONP */
501
- callback?: string;
502
- /** Selector specifying which fields to include in a partial response. */
503
- fields?: string;
504
- /** 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. */
505
- key?: string;
506
- /** OAuth 2.0 token for the current user. */
507
- oauth_token?: string;
508
- /** Required. The queue name. For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
509
- parent: string;
510
- /** Returns response with indentations and line breaks. */
511
- prettyPrint?: boolean;
512
- /** 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. */
513
- quotaUser?: string;
514
- /** Upload protocol for media (e.g. "raw", "multipart"). */
515
- upload_protocol?: string;
516
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
517
- uploadType?: string;
518
- /** Request body */
519
- resource: BatchDeleteTasksRequest;
520
- }): Request<Operation>;
521
- batchDelete(
522
- request: {
523
- /** V1 error format. */
524
- '$.xgafv'?: '1' | '2';
525
- /** OAuth access token. */
526
- access_token?: string;
527
- /** Data format for response. */
528
- alt?: 'json' | 'media' | 'proto';
529
- /** JSONP */
530
- callback?: string;
531
- /** Selector specifying which fields to include in a partial response. */
532
- fields?: string;
533
- /** 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. */
534
- key?: string;
535
- /** OAuth 2.0 token for the current user. */
536
- oauth_token?: string;
537
- /** Required. The queue name. For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
538
- parent: string;
539
- /** Returns response with indentations and line breaks. */
540
- prettyPrint?: boolean;
541
- /** 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. */
542
- quotaUser?: string;
543
- /** Upload protocol for media (e.g. "raw", "multipart"). */
544
- upload_protocol?: string;
545
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
546
- uploadType?: string;
547
- },
548
- body: BatchDeleteTasksRequest,
549
- ): Request<Operation>;
550
- /** 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. */
551
- buffer(request: {
552
- /** V1 error format. */
553
- '$.xgafv'?: '1' | '2';
554
- /** OAuth access token. */
555
- access_token?: string;
556
- /** Data format for response. */
557
- alt?: 'json' | 'media' | 'proto';
558
- /** JSONP */
559
- callback?: string;
560
- /** Selector specifying which fields to include in a partial response. */
561
- fields?: string;
562
- /** 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. */
563
- key?: string;
564
- /** OAuth 2.0 token for the current user. */
565
- oauth_token?: string;
566
- /** Returns response with indentations and line breaks. */
567
- prettyPrint?: boolean;
568
- /** Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
569
- queue: string;
570
- /** 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. */
571
- quotaUser?: string;
572
- /** Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task. */
573
- taskId: string;
574
- /** Upload protocol for media (e.g. "raw", "multipart"). */
575
- upload_protocol?: string;
576
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
577
- uploadType?: string;
578
- /** Request body */
579
- resource: BufferTaskRequest;
580
- }): Request<BufferTaskResponse>;
581
- buffer(
582
- request: {
583
- /** V1 error format. */
584
- '$.xgafv'?: '1' | '2';
585
- /** OAuth access token. */
586
- access_token?: string;
587
- /** Data format for response. */
588
- alt?: 'json' | 'media' | 'proto';
589
- /** JSONP */
590
- callback?: string;
591
- /** Selector specifying which fields to include in a partial response. */
592
- fields?: string;
593
- /** 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. */
594
- key?: string;
595
- /** OAuth 2.0 token for the current user. */
596
- oauth_token?: string;
597
- /** Returns response with indentations and line breaks. */
598
- prettyPrint?: boolean;
599
- /** Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
600
- queue: string;
601
- /** 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. */
602
- quotaUser?: string;
603
- /** Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task. */
604
- taskId: string;
605
- /** Upload protocol for media (e.g. "raw", "multipart"). */
606
- upload_protocol?: string;
607
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
608
- uploadType?: string;
609
- },
610
- body: BufferTaskRequest,
611
- ): Request<BufferTaskResponse>;
612
- /** 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. */
613
- create(request: {
614
- /** V1 error format. */
615
- '$.xgafv'?: '1' | '2';
616
- /** OAuth access token. */
617
- access_token?: string;
618
- /** Data format for response. */
619
- alt?: 'json' | 'media' | 'proto';
620
- /** JSONP */
621
- callback?: string;
622
- /** Selector specifying which fields to include in a partial response. */
623
- fields?: string;
624
- /** 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. */
625
- key?: string;
626
- /** OAuth 2.0 token for the current user. */
627
- oauth_token?: string;
628
- /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
629
- parent: string;
630
- /** Returns response with indentations and line breaks. */
631
- prettyPrint?: boolean;
632
- /** 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. */
633
- quotaUser?: string;
634
- /** Upload protocol for media (e.g. "raw", "multipart"). */
635
- upload_protocol?: string;
636
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
637
- uploadType?: string;
638
- /** Request body */
639
- resource: CreateTaskRequest;
640
- }): Request<Task>;
641
- create(
642
- request: {
643
- /** V1 error format. */
644
- '$.xgafv'?: '1' | '2';
645
- /** OAuth access token. */
646
- access_token?: string;
647
- /** Data format for response. */
648
- alt?: 'json' | 'media' | 'proto';
649
- /** JSONP */
650
- callback?: string;
651
- /** Selector specifying which fields to include in a partial response. */
652
- fields?: string;
653
- /** 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. */
654
- key?: string;
655
- /** OAuth 2.0 token for the current user. */
656
- oauth_token?: string;
657
- /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
658
- parent: string;
659
- /** Returns response with indentations and line breaks. */
660
- prettyPrint?: boolean;
661
- /** 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. */
662
- quotaUser?: string;
663
- /** Upload protocol for media (e.g. "raw", "multipart"). */
664
- upload_protocol?: string;
665
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
666
- uploadType?: string;
667
- },
668
- body: CreateTaskRequest,
669
- ): Request<Task>;
670
- /** 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. */
671
- delete(request?: {
672
- /** V1 error format. */
673
- '$.xgafv'?: '1' | '2';
674
- /** OAuth access token. */
675
- access_token?: string;
676
- /** Data format for response. */
677
- alt?: 'json' | 'media' | 'proto';
678
- /** JSONP */
679
- callback?: string;
680
- /** Selector specifying which fields to include in a partial response. */
681
- fields?: string;
682
- /** 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. */
683
- key?: string;
684
- /** Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` */
685
- name: string;
686
- /** OAuth 2.0 token for the current user. */
687
- oauth_token?: string;
688
- /** Returns response with indentations and line breaks. */
689
- prettyPrint?: boolean;
690
- /** 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. */
691
- quotaUser?: string;
692
- /** Upload protocol for media (e.g. "raw", "multipart"). */
693
- upload_protocol?: string;
694
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
695
- uploadType?: string;
696
- }): Request<{}>;
697
- /** Gets a task. After a task is successfully executed or has exhausted its retry attempts, the task is deleted. A `GetTask` request for a deleted task returns a `NOT_FOUND` error. */
698
- get(request?: {
699
- /** V1 error format. */
700
- '$.xgafv'?: '1' | '2';
701
- /** OAuth access token. */
702
- access_token?: string;
703
- /** Data format for response. */
704
- alt?: 'json' | 'media' | 'proto';
705
- /** JSONP */
706
- callback?: string;
707
- /** Selector specifying which fields to include in a partial response. */
708
- fields?: string;
709
- /** 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. */
710
- key?: string;
711
- /** Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` */
712
- name: string;
713
- /** OAuth 2.0 token for the current user. */
714
- oauth_token?: string;
715
- /** Returns response with indentations and line breaks. */
716
- prettyPrint?: boolean;
717
- /** 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. */
718
- quotaUser?: string;
719
- /** 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. */
720
- responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
721
- /** Upload protocol for media (e.g. "raw", "multipart"). */
722
- upload_protocol?: string;
723
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
724
- uploadType?: string;
725
- }): Request<Task>;
726
- /** Lists the tasks in a queue. By default, only the BASIC view is retrieved due to performance considerations; response_view controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time. */
727
- list(request?: {
728
- /** V1 error format. */
729
- '$.xgafv'?: '1' | '2';
730
- /** OAuth access token. */
731
- access_token?: string;
732
- /** Data format for response. */
733
- alt?: 'json' | 'media' | 'proto';
734
- /** JSONP */
735
- callback?: string;
736
- /** Selector specifying which fields to include in a partial response. */
737
- fields?: string;
738
- /** 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. */
739
- key?: string;
740
- /** OAuth 2.0 token for the current user. */
741
- oauth_token?: string;
742
- /** Maximum page size. Fewer tasks than requested might be returned, even if more tasks exist; use next_page_token in the response to determine if more tasks exist. The maximum page size is 1000. If unspecified, the page size will be the maximum. */
743
- pageSize?: number;
744
- /** A token identifying the page of results to return. To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of next_page_token returned from the previous call to ListTasks method. The page token is valid for only 2 hours. */
745
- pageToken?: string;
746
- /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
747
- parent: string;
748
- /** Returns response with indentations and line breaks. */
749
- prettyPrint?: boolean;
750
- /** 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. */
751
- quotaUser?: string;
752
- /** 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. */
753
- responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
754
- /** Upload protocol for media (e.g. "raw", "multipart"). */
755
- upload_protocol?: string;
756
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
757
- uploadType?: string;
758
- }): Request<ListTasksResponse>;
759
- /** Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its RateLimits or is PAUSED. This command is meant to be used for manual debugging. For example, RunTask can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the status after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's schedule_time will be reset to the time that RunTask was called plus the retry delay specified in the queue's RetryConfig. RunTask returns NOT_FOUND when it is called on a task that has already succeeded or permanently failed. */
760
- run(request: {
761
- /** V1 error format. */
762
- '$.xgafv'?: '1' | '2';
763
- /** OAuth access token. */
764
- access_token?: string;
765
- /** Data format for response. */
766
- alt?: 'json' | 'media' | 'proto';
767
- /** JSONP */
768
- callback?: string;
769
- /** Selector specifying which fields to include in a partial response. */
770
- fields?: string;
771
- /** 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. */
772
- key?: string;
773
- /** Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` */
774
- name: string;
775
- /** OAuth 2.0 token for the current user. */
776
- oauth_token?: string;
777
- /** Returns response with indentations and line breaks. */
778
- prettyPrint?: boolean;
779
- /** 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. */
780
- quotaUser?: string;
781
- /** Upload protocol for media (e.g. "raw", "multipart"). */
782
- upload_protocol?: string;
783
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
784
- uploadType?: string;
785
- /** Request body */
786
- resource: RunTaskRequest;
787
- }): Request<Task>;
788
- run(
789
- request: {
790
- /** V1 error format. */
791
- '$.xgafv'?: '1' | '2';
792
- /** OAuth access token. */
793
- access_token?: string;
794
- /** Data format for response. */
795
- alt?: 'json' | 'media' | 'proto';
796
- /** JSONP */
797
- callback?: string;
798
- /** Selector specifying which fields to include in a partial response. */
799
- fields?: string;
800
- /** 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. */
801
- key?: string;
802
- /** Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` */
803
- name: string;
804
- /** OAuth 2.0 token for the current user. */
805
- oauth_token?: string;
806
- /** Returns response with indentations and line breaks. */
807
- prettyPrint?: boolean;
808
- /** 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. */
809
- quotaUser?: string;
810
- /** Upload protocol for media (e.g. "raw", "multipart"). */
811
- upload_protocol?: string;
812
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
813
- uploadType?: string;
814
- },
815
- body: RunTaskRequest,
816
- ): Request<Task>;
817
- }
818
- interface QueuesResource {
819
- /** 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 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 Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. */
820
- create(request: {
821
- /** V1 error format. */
822
- '$.xgafv'?: '1' | '2';
823
- /** OAuth access token. */
824
- access_token?: string;
825
- /** Data format for response. */
826
- alt?: 'json' | 'media' | 'proto';
827
- /** JSONP */
828
- callback?: string;
829
- /** Selector specifying which fields to include in a partial response. */
830
- fields?: string;
831
- /** 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. */
832
- key?: string;
833
- /** OAuth 2.0 token for the current user. */
834
- oauth_token?: string;
835
- /** Required. The location name in which the queue will be created. For example: `projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed locations can be obtained by calling Cloud Tasks' implementation of ListLocations. */
836
- parent: string;
837
- /** Returns response with indentations and line breaks. */
838
- prettyPrint?: boolean;
839
- /** 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. */
840
- quotaUser?: string;
841
- /** Upload protocol for media (e.g. "raw", "multipart"). */
842
- upload_protocol?: string;
843
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
844
- uploadType?: string;
845
- /** Request body */
846
- resource: Queue;
847
- }): Request<Queue>;
848
- create(
849
- request: {
850
- /** V1 error format. */
851
- '$.xgafv'?: '1' | '2';
852
- /** OAuth access token. */
853
- access_token?: string;
854
- /** Data format for response. */
855
- alt?: 'json' | 'media' | 'proto';
856
- /** JSONP */
857
- callback?: string;
858
- /** Selector specifying which fields to include in a partial response. */
859
- fields?: string;
860
- /** 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. */
861
- key?: string;
862
- /** OAuth 2.0 token for the current user. */
863
- oauth_token?: string;
864
- /** Required. The location name in which the queue will be created. For example: `projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed locations can be obtained by calling Cloud Tasks' implementation of ListLocations. */
865
- parent: string;
866
- /** Returns response with indentations and line breaks. */
867
- prettyPrint?: boolean;
868
- /** 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. */
869
- quotaUser?: string;
870
- /** Upload protocol for media (e.g. "raw", "multipart"). */
871
- upload_protocol?: string;
872
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
873
- uploadType?: string;
874
- },
875
- body: Queue,
876
- ): Request<Queue>;
877
- /** 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. */
878
- delete(request?: {
879
- /** V1 error format. */
880
- '$.xgafv'?: '1' | '2';
881
- /** OAuth access token. */
882
- access_token?: string;
883
- /** Data format for response. */
884
- alt?: 'json' | 'media' | 'proto';
885
- /** JSONP */
886
- callback?: string;
887
- /** Selector specifying which fields to include in a partial response. */
888
- fields?: string;
889
- /** 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. */
890
- key?: string;
891
- /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
892
- name: string;
893
- /** OAuth 2.0 token for the current user. */
894
- oauth_token?: string;
895
- /** Returns response with indentations and line breaks. */
896
- prettyPrint?: boolean;
897
- /** 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. */
898
- quotaUser?: string;
899
- /** Upload protocol for media (e.g. "raw", "multipart"). */
900
- upload_protocol?: string;
901
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
902
- uploadType?: string;
903
- }): Request<{}>;
904
- /** Gets a queue. */
905
- get(request?: {
906
- /** V1 error format. */
907
- '$.xgafv'?: '1' | '2';
908
- /** OAuth access token. */
909
- access_token?: string;
910
- /** Data format for response. */
911
- alt?: 'json' | 'media' | 'proto';
912
- /** JSONP */
913
- callback?: string;
914
- /** Selector specifying which fields to include in a partial response. */
915
- fields?: string;
916
- /** 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. */
917
- key?: string;
918
- /** Required. The resource name of the queue. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
919
- name: string;
920
- /** OAuth 2.0 token for the current user. */
921
- oauth_token?: string;
922
- /** Returns response with indentations and line breaks. */
923
- prettyPrint?: boolean;
924
- /** 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. */
925
- quotaUser?: string;
926
- /** Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats]. [Queue.stats] will be returned only if it was explicitly specified in the mask. */
927
- readMask?: string;
928
- /** Upload protocol for media (e.g. "raw", "multipart"). */
929
- upload_protocol?: string;
930
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
931
- uploadType?: string;
932
- }): Request<Queue>;
933
- /** Gets the access control policy for a Queue. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy` */
934
- getIamPolicy(
935
- request: {
936
- /** V1 error format. */
937
- '$.xgafv'?: '1' | '2';
938
- /** OAuth access token. */
939
- access_token?: string;
940
- /** Data format for response. */
941
- alt?: 'json' | 'media' | 'proto';
942
- /** JSONP */
943
- callback?: string;
944
- /** Selector specifying which fields to include in a partial response. */
945
- fields?: string;
946
- /** 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. */
947
- key?: string;
948
- /** OAuth 2.0 token for the current user. */
949
- oauth_token?: string;
950
- /** Returns response with indentations and line breaks. */
951
- prettyPrint?: boolean;
952
- /** 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. */
953
- quotaUser?: string;
954
- /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
955
- resource: string;
956
- /** Upload protocol for media (e.g. "raw", "multipart"). */
957
- upload_protocol?: string;
958
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
959
- uploadType?: string;
960
- },
961
- body: GetIamPolicyRequest,
962
- ): Request<Policy>;
963
- /** Lists queues. Queues are returned in lexicographical order. */
964
- list(request?: {
965
- /** V1 error format. */
966
- '$.xgafv'?: '1' | '2';
967
- /** OAuth access token. */
968
- access_token?: string;
969
- /** Data format for response. */
970
- alt?: 'json' | 'media' | 'proto';
971
- /** JSONP */
972
- callback?: string;
973
- /** Selector specifying which fields to include in a partial response. */
974
- fields?: string;
975
- /** `filter` can be used to specify a subset of queues. Any Queue field can be used as a filter and several operators as supported. For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as described in [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). Sample filter "state: PAUSED". Note that using filters might cause fewer queues than the requested page_size to be returned. */
976
- filter?: string;
977
- /** 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. */
978
- key?: string;
979
- /** OAuth 2.0 token for the current user. */
980
- oauth_token?: string;
981
- /** Requested page size. The maximum page size is 9800. If unspecified, the page size will be the maximum. Fewer queues than requested might be returned, even if more queues exist; use the next_page_token in the response to determine if more queues exist. */
982
- pageSize?: number;
983
- /** A token identifying the page of results to return. To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of next_page_token returned from the previous call to ListQueues method. It is an error to switch the value of the filter while iterating through pages. */
984
- pageToken?: string;
985
- /** Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID` */
986
- parent: string;
987
- /** Returns response with indentations and line breaks. */
988
- prettyPrint?: boolean;
989
- /** 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. */
990
- quotaUser?: string;
991
- /** Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats]. [Queue.stats] will be returned only if it was explicitly specified in the mask. */
992
- readMask?: string;
993
- /** Upload protocol for media (e.g. "raw", "multipart"). */
994
- upload_protocol?: string;
995
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
996
- uploadType?: string;
997
- }): Request<ListQueuesResponse>;
998
- /** Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. 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 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 Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. */
999
- patch(request: {
1000
- /** V1 error format. */
1001
- '$.xgafv'?: '1' | '2';
1002
- /** OAuth access token. */
1003
- access_token?: string;
1004
- /** Data format for response. */
1005
- alt?: 'json' | 'media' | 'proto';
1006
- /** JSONP */
1007
- callback?: string;
1008
- /** Selector specifying which fields to include in a partial response. */
1009
- fields?: string;
1010
- /** 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. */
1011
- key?: string;
1012
- /** Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters. */
1013
- name: string;
1014
- /** OAuth 2.0 token for the current user. */
1015
- oauth_token?: string;
1016
- /** Returns response with indentations and line breaks. */
1017
- prettyPrint?: boolean;
1018
- /** 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. */
1019
- quotaUser?: string;
1020
- /** A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated. */
1021
- updateMask?: string;
1022
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1023
- upload_protocol?: string;
1024
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1025
- uploadType?: string;
1026
- /** Request body */
1027
- resource: Queue;
1028
- }): Request<Queue>;
1029
- patch(
1030
- request: {
1031
- /** V1 error format. */
1032
- '$.xgafv'?: '1' | '2';
1033
- /** OAuth access token. */
1034
- access_token?: string;
1035
- /** Data format for response. */
1036
- alt?: 'json' | 'media' | 'proto';
1037
- /** JSONP */
1038
- callback?: string;
1039
- /** Selector specifying which fields to include in a partial response. */
1040
- fields?: string;
1041
- /** 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. */
1042
- key?: string;
1043
- /** Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters. */
1044
- name: string;
1045
- /** OAuth 2.0 token for the current user. */
1046
- oauth_token?: string;
1047
- /** Returns response with indentations and line breaks. */
1048
- prettyPrint?: boolean;
1049
- /** 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. */
1050
- quotaUser?: string;
1051
- /** A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated. */
1052
- updateMask?: string;
1053
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1054
- upload_protocol?: string;
1055
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1056
- uploadType?: string;
1057
- },
1058
- body: Queue,
1059
- ): Request<Queue>;
1060
- /** 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. */
1061
- pause(request: {
1062
- /** V1 error format. */
1063
- '$.xgafv'?: '1' | '2';
1064
- /** OAuth access token. */
1065
- access_token?: string;
1066
- /** Data format for response. */
1067
- alt?: 'json' | 'media' | 'proto';
1068
- /** JSONP */
1069
- callback?: string;
1070
- /** Selector specifying which fields to include in a partial response. */
1071
- fields?: string;
1072
- /** 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. */
1073
- key?: string;
1074
- /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
1075
- name: string;
1076
- /** OAuth 2.0 token for the current user. */
1077
- oauth_token?: string;
1078
- /** Returns response with indentations and line breaks. */
1079
- prettyPrint?: boolean;
1080
- /** 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. */
1081
- quotaUser?: string;
1082
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1083
- upload_protocol?: string;
1084
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1085
- uploadType?: string;
1086
- /** Request body */
1087
- resource: PauseQueueRequest;
1088
- }): Request<Queue>;
1089
- pause(
1090
- request: {
404
+
405
+ const projects: {
406
+ locations: {
407
+ /** Gets information about a location. */
408
+ get(request?: {
1091
409
  /** V1 error format. */
1092
410
  '$.xgafv'?: '1' | '2';
1093
411
  /** OAuth access token. */
@@ -1100,7 +418,7 @@ declare namespace gapi.client {
1100
418
  fields?: string;
1101
419
  /** 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. */
1102
420
  key?: string;
1103
- /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
421
+ /** Resource name for the location. */
1104
422
  name: string;
1105
423
  /** OAuth 2.0 token for the current user. */
1106
424
  oauth_token?: string;
@@ -1112,40 +430,9 @@ declare namespace gapi.client {
1112
430
  upload_protocol?: string;
1113
431
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1114
432
  uploadType?: string;
1115
- },
1116
- body: PauseQueueRequest,
1117
- ): Request<Queue>;
1118
- /** 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. */
1119
- purge(request: {
1120
- /** V1 error format. */
1121
- '$.xgafv'?: '1' | '2';
1122
- /** OAuth access token. */
1123
- access_token?: string;
1124
- /** Data format for response. */
1125
- alt?: 'json' | 'media' | 'proto';
1126
- /** JSONP */
1127
- callback?: string;
1128
- /** Selector specifying which fields to include in a partial response. */
1129
- fields?: string;
1130
- /** 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. */
1131
- key?: string;
1132
- /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
1133
- name: string;
1134
- /** OAuth 2.0 token for the current user. */
1135
- oauth_token?: string;
1136
- /** Returns response with indentations and line breaks. */
1137
- prettyPrint?: boolean;
1138
- /** 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. */
1139
- quotaUser?: string;
1140
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1141
- upload_protocol?: string;
1142
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1143
- uploadType?: string;
1144
- /** Request body */
1145
- resource: PurgeQueueRequest;
1146
- }): Request<Queue>;
1147
- purge(
1148
- request: {
433
+ }): Request<Location>;
434
+ /** Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured. */
435
+ getCmekConfig(request?: {
1149
436
  /** V1 error format. */
1150
437
  '$.xgafv'?: '1' | '2';
1151
438
  /** OAuth access token. */
@@ -1158,7 +445,7 @@ declare namespace gapi.client {
1158
445
  fields?: string;
1159
446
  /** 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. */
1160
447
  key?: string;
1161
- /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
448
+ /** Required. The config resource name. For example: projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` */
1162
449
  name: string;
1163
450
  /** OAuth 2.0 token for the current user. */
1164
451
  oauth_token?: string;
@@ -1170,40 +457,9 @@ declare namespace gapi.client {
1170
457
  upload_protocol?: string;
1171
458
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1172
459
  uploadType?: string;
1173
- },
1174
- body: PurgeQueueRequest,
1175
- ): Request<Queue>;
1176
- /** 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). */
1177
- resume(request: {
1178
- /** V1 error format. */
1179
- '$.xgafv'?: '1' | '2';
1180
- /** OAuth access token. */
1181
- access_token?: string;
1182
- /** Data format for response. */
1183
- alt?: 'json' | 'media' | 'proto';
1184
- /** JSONP */
1185
- callback?: string;
1186
- /** Selector specifying which fields to include in a partial response. */
1187
- fields?: string;
1188
- /** 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. */
1189
- key?: string;
1190
- /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
1191
- name: string;
1192
- /** OAuth 2.0 token for the current user. */
1193
- oauth_token?: string;
1194
- /** Returns response with indentations and line breaks. */
1195
- prettyPrint?: boolean;
1196
- /** 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. */
1197
- quotaUser?: string;
1198
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1199
- upload_protocol?: string;
1200
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1201
- uploadType?: string;
1202
- /** Request body */
1203
- resource: ResumeQueueRequest;
1204
- }): Request<Queue>;
1205
- resume(
1206
- request: {
460
+ }): Request<CmekConfig>;
461
+ /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
462
+ list(request?: {
1207
463
  /** V1 error format. */
1208
464
  '$.xgafv'?: '1' | '2';
1209
465
  /** OAuth access token. */
@@ -1212,14 +468,22 @@ declare namespace gapi.client {
1212
468
  alt?: 'json' | 'media' | 'proto';
1213
469
  /** JSONP */
1214
470
  callback?: string;
471
+ /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
472
+ extraLocationTypes?: string | string[];
1215
473
  /** Selector specifying which fields to include in a partial response. */
1216
474
  fields?: string;
475
+ /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */
476
+ filter?: string;
1217
477
  /** 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. */
1218
478
  key?: string;
1219
- /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
479
+ /** The resource that owns the locations collection, if applicable. */
1220
480
  name: string;
1221
481
  /** OAuth 2.0 token for the current user. */
1222
482
  oauth_token?: string;
483
+ /** The maximum number of results to return. If not set, the service selects a default. */
484
+ pageSize?: number;
485
+ /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
486
+ pageToken?: string;
1223
487
  /** Returns response with indentations and line breaks. */
1224
488
  prettyPrint?: boolean;
1225
489
  /** 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. */
@@ -1228,194 +492,9 @@ declare namespace gapi.client {
1228
492
  upload_protocol?: string;
1229
493
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1230
494
  uploadType?: string;
1231
- },
1232
- body: ResumeQueueRequest,
1233
- ): Request<Queue>;
1234
- /** 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` */
1235
- setIamPolicy(
1236
- request: {
1237
- /** V1 error format. */
1238
- '$.xgafv'?: '1' | '2';
1239
- /** OAuth access token. */
1240
- access_token?: string;
1241
- /** Data format for response. */
1242
- alt?: 'json' | 'media' | 'proto';
1243
- /** JSONP */
1244
- callback?: string;
1245
- /** Selector specifying which fields to include in a partial response. */
1246
- fields?: string;
1247
- /** 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. */
1248
- key?: string;
1249
- /** OAuth 2.0 token for the current user. */
1250
- oauth_token?: string;
1251
- /** Returns response with indentations and line breaks. */
1252
- prettyPrint?: boolean;
1253
- /** 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. */
1254
- quotaUser?: string;
1255
- /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1256
- resource: string;
1257
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1258
- upload_protocol?: string;
1259
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1260
- uploadType?: string;
1261
- },
1262
- body: SetIamPolicyRequest,
1263
- ): Request<Policy>;
1264
- /** 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. */
1265
- testIamPermissions(
1266
- request: {
1267
- /** V1 error format. */
1268
- '$.xgafv'?: '1' | '2';
1269
- /** OAuth access token. */
1270
- access_token?: string;
1271
- /** Data format for response. */
1272
- alt?: 'json' | 'media' | 'proto';
1273
- /** JSONP */
1274
- callback?: string;
1275
- /** Selector specifying which fields to include in a partial response. */
1276
- fields?: string;
1277
- /** 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. */
1278
- key?: string;
1279
- /** OAuth 2.0 token for the current user. */
1280
- oauth_token?: string;
1281
- /** Returns response with indentations and line breaks. */
1282
- prettyPrint?: boolean;
1283
- /** 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. */
1284
- quotaUser?: string;
1285
- /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1286
- resource: string;
1287
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1288
- upload_protocol?: string;
1289
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1290
- uploadType?: string;
1291
- },
1292
- body: TestIamPermissionsRequest,
1293
- ): Request<TestIamPermissionsResponse>;
1294
- tasks: TasksResource;
1295
- }
1296
- interface LocationsResource {
1297
- /** Gets information about a location. */
1298
- get(request?: {
1299
- /** V1 error format. */
1300
- '$.xgafv'?: '1' | '2';
1301
- /** OAuth access token. */
1302
- access_token?: string;
1303
- /** Data format for response. */
1304
- alt?: 'json' | 'media' | 'proto';
1305
- /** JSONP */
1306
- callback?: string;
1307
- /** Selector specifying which fields to include in a partial response. */
1308
- fields?: string;
1309
- /** 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. */
1310
- key?: string;
1311
- /** Resource name for the location. */
1312
- name: string;
1313
- /** OAuth 2.0 token for the current user. */
1314
- oauth_token?: string;
1315
- /** Returns response with indentations and line breaks. */
1316
- prettyPrint?: boolean;
1317
- /** 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. */
1318
- quotaUser?: string;
1319
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1320
- upload_protocol?: string;
1321
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1322
- uploadType?: string;
1323
- }): Request<Location>;
1324
- /** Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured. */
1325
- getCmekConfig(request?: {
1326
- /** V1 error format. */
1327
- '$.xgafv'?: '1' | '2';
1328
- /** OAuth access token. */
1329
- access_token?: string;
1330
- /** Data format for response. */
1331
- alt?: 'json' | 'media' | 'proto';
1332
- /** JSONP */
1333
- callback?: string;
1334
- /** Selector specifying which fields to include in a partial response. */
1335
- fields?: string;
1336
- /** 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. */
1337
- key?: string;
1338
- /** Required. The config resource name. For example: projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` */
1339
- name: string;
1340
- /** OAuth 2.0 token for the current user. */
1341
- oauth_token?: string;
1342
- /** Returns response with indentations and line breaks. */
1343
- prettyPrint?: boolean;
1344
- /** 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. */
1345
- quotaUser?: string;
1346
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1347
- upload_protocol?: string;
1348
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1349
- uploadType?: string;
1350
- }): Request<CmekConfig>;
1351
- /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
1352
- list(request?: {
1353
- /** V1 error format. */
1354
- '$.xgafv'?: '1' | '2';
1355
- /** OAuth access token. */
1356
- access_token?: string;
1357
- /** Data format for response. */
1358
- alt?: 'json' | 'media' | 'proto';
1359
- /** JSONP */
1360
- callback?: string;
1361
- /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
1362
- extraLocationTypes?: string | string[];
1363
- /** Selector specifying which fields to include in a partial response. */
1364
- fields?: string;
1365
- /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */
1366
- filter?: string;
1367
- /** 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. */
1368
- key?: string;
1369
- /** The resource that owns the locations collection, if applicable. */
1370
- name: string;
1371
- /** OAuth 2.0 token for the current user. */
1372
- oauth_token?: string;
1373
- /** The maximum number of results to return. If not set, the service selects a default. */
1374
- pageSize?: number;
1375
- /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
1376
- pageToken?: string;
1377
- /** Returns response with indentations and line breaks. */
1378
- prettyPrint?: boolean;
1379
- /** 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. */
1380
- quotaUser?: string;
1381
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1382
- upload_protocol?: string;
1383
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1384
- uploadType?: string;
1385
- }): Request<ListLocationsResponse>;
1386
- /** Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key associated with the Cloud Tasks location (Creates if the key does not already exist). All new tasks created in the location will be encrypted at-rest with the KMS-key provided in the config. */
1387
- updateCmekConfig(request: {
1388
- /** V1 error format. */
1389
- '$.xgafv'?: '1' | '2';
1390
- /** OAuth access token. */
1391
- access_token?: string;
1392
- /** Data format for response. */
1393
- alt?: 'json' | 'media' | 'proto';
1394
- /** JSONP */
1395
- callback?: string;
1396
- /** Selector specifying which fields to include in a partial response. */
1397
- fields?: string;
1398
- /** 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. */
1399
- key?: string;
1400
- /** 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` */
1401
- name: string;
1402
- /** OAuth 2.0 token for the current user. */
1403
- oauth_token?: string;
1404
- /** Returns response with indentations and line breaks. */
1405
- prettyPrint?: boolean;
1406
- /** 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. */
1407
- quotaUser?: string;
1408
- /** List of fields to be updated in this request. */
1409
- updateMask?: string;
1410
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1411
- upload_protocol?: string;
1412
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1413
- uploadType?: string;
1414
- /** Request body */
1415
- resource: CmekConfig;
1416
- }): Request<CmekConfig>;
1417
- updateCmekConfig(
1418
- request: {
495
+ }): Request<ListLocationsResponse>;
496
+ /** Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key associated with the Cloud Tasks location (Creates if the key does not already exist). All new tasks created in the location will be encrypted at-rest with the KMS-key provided in the config. */
497
+ updateCmekConfig(request: {
1419
498
  /** V1 error format. */
1420
499
  '$.xgafv'?: '1' | '2';
1421
500
  /** OAuth access token. */
@@ -1442,16 +521,932 @@ declare namespace gapi.client {
1442
521
  upload_protocol?: string;
1443
522
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1444
523
  uploadType?: string;
1445
- },
1446
- body: CmekConfig,
1447
- ): Request<CmekConfig>;
1448
- operations: OperationsResource;
1449
- queues: QueuesResource;
1450
- }
1451
- interface ProjectsResource {
1452
- locations: LocationsResource;
1453
- }
1454
-
1455
- const projects: ProjectsResource;
524
+ /** Request body */
525
+ resource: CmekConfig;
526
+ }): Request<CmekConfig>;
527
+ updateCmekConfig(
528
+ request: {
529
+ /** V1 error format. */
530
+ '$.xgafv'?: '1' | '2';
531
+ /** OAuth access token. */
532
+ access_token?: string;
533
+ /** Data format for response. */
534
+ alt?: 'json' | 'media' | 'proto';
535
+ /** JSONP */
536
+ callback?: string;
537
+ /** Selector specifying which fields to include in a partial response. */
538
+ fields?: string;
539
+ /** 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. */
540
+ key?: string;
541
+ /** 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` */
542
+ name: string;
543
+ /** OAuth 2.0 token for the current user. */
544
+ oauth_token?: string;
545
+ /** Returns response with indentations and line breaks. */
546
+ prettyPrint?: boolean;
547
+ /** 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. */
548
+ quotaUser?: string;
549
+ /** List of fields to be updated in this request. */
550
+ updateMask?: string;
551
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
552
+ upload_protocol?: string;
553
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
554
+ uploadType?: string;
555
+ },
556
+ body: CmekConfig,
557
+ ): Request<CmekConfig>;
558
+ operations: {
559
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
560
+ get(request?: {
561
+ /** V1 error format. */
562
+ '$.xgafv'?: '1' | '2';
563
+ /** OAuth access token. */
564
+ access_token?: string;
565
+ /** Data format for response. */
566
+ alt?: 'json' | 'media' | 'proto';
567
+ /** JSONP */
568
+ callback?: string;
569
+ /** Selector specifying which fields to include in a partial response. */
570
+ fields?: string;
571
+ /** 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. */
572
+ key?: string;
573
+ /** The name of the operation resource. */
574
+ name: string;
575
+ /** OAuth 2.0 token for the current user. */
576
+ oauth_token?: string;
577
+ /** Returns response with indentations and line breaks. */
578
+ prettyPrint?: boolean;
579
+ /** 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. */
580
+ quotaUser?: string;
581
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
582
+ upload_protocol?: string;
583
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
584
+ uploadType?: string;
585
+ }): Request<Operation>;
586
+ };
587
+ queues: {
588
+ /** 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 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 Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. */
589
+ create(request: {
590
+ /** V1 error format. */
591
+ '$.xgafv'?: '1' | '2';
592
+ /** OAuth access token. */
593
+ access_token?: string;
594
+ /** Data format for response. */
595
+ alt?: 'json' | 'media' | 'proto';
596
+ /** JSONP */
597
+ callback?: string;
598
+ /** Selector specifying which fields to include in a partial response. */
599
+ fields?: string;
600
+ /** 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. */
601
+ key?: string;
602
+ /** OAuth 2.0 token for the current user. */
603
+ oauth_token?: string;
604
+ /** Required. The location name in which the queue will be created. For example: `projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed locations can be obtained by calling Cloud Tasks' implementation of ListLocations. */
605
+ parent: string;
606
+ /** Returns response with indentations and line breaks. */
607
+ prettyPrint?: boolean;
608
+ /** 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. */
609
+ quotaUser?: string;
610
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
611
+ upload_protocol?: string;
612
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
613
+ uploadType?: string;
614
+ /** Request body */
615
+ resource: Queue;
616
+ }): Request<Queue>;
617
+ create(
618
+ request: {
619
+ /** V1 error format. */
620
+ '$.xgafv'?: '1' | '2';
621
+ /** OAuth access token. */
622
+ access_token?: string;
623
+ /** Data format for response. */
624
+ alt?: 'json' | 'media' | 'proto';
625
+ /** JSONP */
626
+ callback?: string;
627
+ /** Selector specifying which fields to include in a partial response. */
628
+ fields?: string;
629
+ /** 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. */
630
+ key?: string;
631
+ /** OAuth 2.0 token for the current user. */
632
+ oauth_token?: string;
633
+ /** Required. The location name in which the queue will be created. For example: `projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed locations can be obtained by calling Cloud Tasks' implementation of ListLocations. */
634
+ parent: string;
635
+ /** Returns response with indentations and line breaks. */
636
+ prettyPrint?: boolean;
637
+ /** 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. */
638
+ quotaUser?: string;
639
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
640
+ upload_protocol?: string;
641
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
642
+ uploadType?: string;
643
+ },
644
+ body: Queue,
645
+ ): Request<Queue>;
646
+ /** 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. */
647
+ delete(request?: {
648
+ /** V1 error format. */
649
+ '$.xgafv'?: '1' | '2';
650
+ /** OAuth access token. */
651
+ access_token?: string;
652
+ /** Data format for response. */
653
+ alt?: 'json' | 'media' | 'proto';
654
+ /** JSONP */
655
+ callback?: string;
656
+ /** Selector specifying which fields to include in a partial response. */
657
+ fields?: string;
658
+ /** 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. */
659
+ key?: string;
660
+ /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
661
+ name: string;
662
+ /** OAuth 2.0 token for the current user. */
663
+ oauth_token?: string;
664
+ /** Returns response with indentations and line breaks. */
665
+ prettyPrint?: boolean;
666
+ /** 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. */
667
+ quotaUser?: string;
668
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
669
+ upload_protocol?: string;
670
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
671
+ uploadType?: string;
672
+ }): Request<{}>;
673
+ /** Gets a queue. */
674
+ get(request?: {
675
+ /** V1 error format. */
676
+ '$.xgafv'?: '1' | '2';
677
+ /** OAuth access token. */
678
+ access_token?: string;
679
+ /** Data format for response. */
680
+ alt?: 'json' | 'media' | 'proto';
681
+ /** JSONP */
682
+ callback?: string;
683
+ /** Selector specifying which fields to include in a partial response. */
684
+ fields?: string;
685
+ /** 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. */
686
+ key?: string;
687
+ /** Required. The resource name of the queue. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
688
+ name: string;
689
+ /** OAuth 2.0 token for the current user. */
690
+ oauth_token?: string;
691
+ /** Returns response with indentations and line breaks. */
692
+ prettyPrint?: boolean;
693
+ /** 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. */
694
+ quotaUser?: string;
695
+ /** Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats]. [Queue.stats] will be returned only if it was explicitly specified in the mask. */
696
+ readMask?: string;
697
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
698
+ upload_protocol?: string;
699
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
700
+ uploadType?: string;
701
+ }): Request<Queue>;
702
+ /** Gets the access control policy for a Queue. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy` */
703
+ getIamPolicy(
704
+ request: {
705
+ /** V1 error format. */
706
+ '$.xgafv'?: '1' | '2';
707
+ /** OAuth access token. */
708
+ access_token?: string;
709
+ /** Data format for response. */
710
+ alt?: 'json' | 'media' | 'proto';
711
+ /** JSONP */
712
+ callback?: string;
713
+ /** Selector specifying which fields to include in a partial response. */
714
+ fields?: string;
715
+ /** 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. */
716
+ key?: string;
717
+ /** OAuth 2.0 token for the current user. */
718
+ oauth_token?: string;
719
+ /** Returns response with indentations and line breaks. */
720
+ prettyPrint?: boolean;
721
+ /** 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. */
722
+ quotaUser?: string;
723
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
724
+ resource: string;
725
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
726
+ upload_protocol?: string;
727
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
728
+ uploadType?: string;
729
+ },
730
+ body: GetIamPolicyRequest,
731
+ ): Request<Policy>;
732
+ /** Lists queues. Queues are returned in lexicographical order. */
733
+ list(request?: {
734
+ /** V1 error format. */
735
+ '$.xgafv'?: '1' | '2';
736
+ /** OAuth access token. */
737
+ access_token?: string;
738
+ /** Data format for response. */
739
+ alt?: 'json' | 'media' | 'proto';
740
+ /** JSONP */
741
+ callback?: string;
742
+ /** Selector specifying which fields to include in a partial response. */
743
+ fields?: string;
744
+ /** `filter` can be used to specify a subset of queues. Any Queue field can be used as a filter and several operators as supported. For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as described in [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). Sample filter "state: PAUSED". Note that using filters might cause fewer queues than the requested page_size to be returned. */
745
+ filter?: string;
746
+ /** 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. */
747
+ key?: string;
748
+ /** OAuth 2.0 token for the current user. */
749
+ oauth_token?: string;
750
+ /** Requested page size. The maximum page size is 9800. If unspecified, the page size will be the maximum. Fewer queues than requested might be returned, even if more queues exist; use the next_page_token in the response to determine if more queues exist. */
751
+ pageSize?: number;
752
+ /** A token identifying the page of results to return. To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of next_page_token returned from the previous call to ListQueues method. It is an error to switch the value of the filter while iterating through pages. */
753
+ pageToken?: string;
754
+ /** Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID` */
755
+ parent: string;
756
+ /** Returns response with indentations and line breaks. */
757
+ prettyPrint?: boolean;
758
+ /** 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. */
759
+ quotaUser?: string;
760
+ /** Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats]. [Queue.stats] will be returned only if it was explicitly specified in the mask. */
761
+ readMask?: string;
762
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
763
+ upload_protocol?: string;
764
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
765
+ uploadType?: string;
766
+ }): Request<ListQueuesResponse>;
767
+ /** Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. 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 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 Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. */
768
+ patch(request: {
769
+ /** V1 error format. */
770
+ '$.xgafv'?: '1' | '2';
771
+ /** OAuth access token. */
772
+ access_token?: string;
773
+ /** Data format for response. */
774
+ alt?: 'json' | 'media' | 'proto';
775
+ /** JSONP */
776
+ callback?: string;
777
+ /** Selector specifying which fields to include in a partial response. */
778
+ fields?: string;
779
+ /** 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. */
780
+ key?: string;
781
+ /** Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters. */
782
+ name: string;
783
+ /** OAuth 2.0 token for the current user. */
784
+ oauth_token?: string;
785
+ /** Returns response with indentations and line breaks. */
786
+ prettyPrint?: boolean;
787
+ /** 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. */
788
+ quotaUser?: string;
789
+ /** A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated. */
790
+ updateMask?: string;
791
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
792
+ upload_protocol?: string;
793
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
794
+ uploadType?: string;
795
+ /** Request body */
796
+ resource: Queue;
797
+ }): Request<Queue>;
798
+ patch(
799
+ request: {
800
+ /** V1 error format. */
801
+ '$.xgafv'?: '1' | '2';
802
+ /** OAuth access token. */
803
+ access_token?: string;
804
+ /** Data format for response. */
805
+ alt?: 'json' | 'media' | 'proto';
806
+ /** JSONP */
807
+ callback?: string;
808
+ /** Selector specifying which fields to include in a partial response. */
809
+ fields?: string;
810
+ /** 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. */
811
+ key?: string;
812
+ /** Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters. */
813
+ name: string;
814
+ /** OAuth 2.0 token for the current user. */
815
+ oauth_token?: string;
816
+ /** Returns response with indentations and line breaks. */
817
+ prettyPrint?: boolean;
818
+ /** 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. */
819
+ quotaUser?: string;
820
+ /** A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated. */
821
+ updateMask?: string;
822
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
823
+ upload_protocol?: string;
824
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
825
+ uploadType?: string;
826
+ },
827
+ body: Queue,
828
+ ): Request<Queue>;
829
+ /** 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. */
830
+ pause(request: {
831
+ /** V1 error format. */
832
+ '$.xgafv'?: '1' | '2';
833
+ /** OAuth access token. */
834
+ access_token?: string;
835
+ /** Data format for response. */
836
+ alt?: 'json' | 'media' | 'proto';
837
+ /** JSONP */
838
+ callback?: string;
839
+ /** Selector specifying which fields to include in a partial response. */
840
+ fields?: string;
841
+ /** 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. */
842
+ key?: string;
843
+ /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
844
+ name: string;
845
+ /** OAuth 2.0 token for the current user. */
846
+ oauth_token?: string;
847
+ /** Returns response with indentations and line breaks. */
848
+ prettyPrint?: boolean;
849
+ /** 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. */
850
+ quotaUser?: string;
851
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
852
+ upload_protocol?: string;
853
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
854
+ uploadType?: string;
855
+ /** Request body */
856
+ resource: PauseQueueRequest;
857
+ }): Request<Queue>;
858
+ pause(
859
+ request: {
860
+ /** V1 error format. */
861
+ '$.xgafv'?: '1' | '2';
862
+ /** OAuth access token. */
863
+ access_token?: string;
864
+ /** Data format for response. */
865
+ alt?: 'json' | 'media' | 'proto';
866
+ /** JSONP */
867
+ callback?: string;
868
+ /** Selector specifying which fields to include in a partial response. */
869
+ fields?: string;
870
+ /** 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. */
871
+ key?: string;
872
+ /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
873
+ name: string;
874
+ /** OAuth 2.0 token for the current user. */
875
+ oauth_token?: string;
876
+ /** Returns response with indentations and line breaks. */
877
+ prettyPrint?: boolean;
878
+ /** 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. */
879
+ quotaUser?: string;
880
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
881
+ upload_protocol?: string;
882
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
883
+ uploadType?: string;
884
+ },
885
+ body: PauseQueueRequest,
886
+ ): Request<Queue>;
887
+ /** 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. */
888
+ purge(request: {
889
+ /** V1 error format. */
890
+ '$.xgafv'?: '1' | '2';
891
+ /** OAuth access token. */
892
+ access_token?: string;
893
+ /** Data format for response. */
894
+ alt?: 'json' | 'media' | 'proto';
895
+ /** JSONP */
896
+ callback?: string;
897
+ /** Selector specifying which fields to include in a partial response. */
898
+ fields?: string;
899
+ /** 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. */
900
+ key?: string;
901
+ /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
902
+ name: string;
903
+ /** OAuth 2.0 token for the current user. */
904
+ oauth_token?: string;
905
+ /** Returns response with indentations and line breaks. */
906
+ prettyPrint?: boolean;
907
+ /** 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. */
908
+ quotaUser?: string;
909
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
910
+ upload_protocol?: string;
911
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
912
+ uploadType?: string;
913
+ /** Request body */
914
+ resource: PurgeQueueRequest;
915
+ }): Request<Queue>;
916
+ purge(
917
+ request: {
918
+ /** V1 error format. */
919
+ '$.xgafv'?: '1' | '2';
920
+ /** OAuth access token. */
921
+ access_token?: string;
922
+ /** Data format for response. */
923
+ alt?: 'json' | 'media' | 'proto';
924
+ /** JSONP */
925
+ callback?: string;
926
+ /** Selector specifying which fields to include in a partial response. */
927
+ fields?: string;
928
+ /** 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. */
929
+ key?: string;
930
+ /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
931
+ name: string;
932
+ /** OAuth 2.0 token for the current user. */
933
+ oauth_token?: string;
934
+ /** Returns response with indentations and line breaks. */
935
+ prettyPrint?: boolean;
936
+ /** 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. */
937
+ quotaUser?: string;
938
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
939
+ upload_protocol?: string;
940
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
941
+ uploadType?: string;
942
+ },
943
+ body: PurgeQueueRequest,
944
+ ): Request<Queue>;
945
+ /** 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). */
946
+ resume(request: {
947
+ /** V1 error format. */
948
+ '$.xgafv'?: '1' | '2';
949
+ /** OAuth access token. */
950
+ access_token?: string;
951
+ /** Data format for response. */
952
+ alt?: 'json' | 'media' | 'proto';
953
+ /** JSONP */
954
+ callback?: string;
955
+ /** Selector specifying which fields to include in a partial response. */
956
+ fields?: string;
957
+ /** 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. */
958
+ key?: string;
959
+ /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
960
+ name: string;
961
+ /** OAuth 2.0 token for the current user. */
962
+ oauth_token?: string;
963
+ /** Returns response with indentations and line breaks. */
964
+ prettyPrint?: boolean;
965
+ /** 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. */
966
+ quotaUser?: string;
967
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
968
+ upload_protocol?: string;
969
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
970
+ uploadType?: string;
971
+ /** Request body */
972
+ resource: ResumeQueueRequest;
973
+ }): Request<Queue>;
974
+ resume(
975
+ request: {
976
+ /** V1 error format. */
977
+ '$.xgafv'?: '1' | '2';
978
+ /** OAuth access token. */
979
+ access_token?: string;
980
+ /** Data format for response. */
981
+ alt?: 'json' | 'media' | 'proto';
982
+ /** JSONP */
983
+ callback?: string;
984
+ /** Selector specifying which fields to include in a partial response. */
985
+ fields?: string;
986
+ /** 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. */
987
+ key?: string;
988
+ /** Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` */
989
+ name: string;
990
+ /** OAuth 2.0 token for the current user. */
991
+ oauth_token?: string;
992
+ /** Returns response with indentations and line breaks. */
993
+ prettyPrint?: boolean;
994
+ /** 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. */
995
+ quotaUser?: string;
996
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
997
+ upload_protocol?: string;
998
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
999
+ uploadType?: string;
1000
+ },
1001
+ body: ResumeQueueRequest,
1002
+ ): Request<Queue>;
1003
+ /** 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` */
1004
+ setIamPolicy(
1005
+ request: {
1006
+ /** V1 error format. */
1007
+ '$.xgafv'?: '1' | '2';
1008
+ /** OAuth access token. */
1009
+ access_token?: string;
1010
+ /** Data format for response. */
1011
+ alt?: 'json' | 'media' | 'proto';
1012
+ /** JSONP */
1013
+ callback?: string;
1014
+ /** Selector specifying which fields to include in a partial response. */
1015
+ fields?: string;
1016
+ /** 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. */
1017
+ key?: string;
1018
+ /** OAuth 2.0 token for the current user. */
1019
+ oauth_token?: string;
1020
+ /** Returns response with indentations and line breaks. */
1021
+ prettyPrint?: boolean;
1022
+ /** 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. */
1023
+ quotaUser?: string;
1024
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1025
+ resource: string;
1026
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1027
+ upload_protocol?: string;
1028
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1029
+ uploadType?: string;
1030
+ },
1031
+ body: SetIamPolicyRequest,
1032
+ ): Request<Policy>;
1033
+ /** 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. */
1034
+ testIamPermissions(
1035
+ request: {
1036
+ /** V1 error format. */
1037
+ '$.xgafv'?: '1' | '2';
1038
+ /** OAuth access token. */
1039
+ access_token?: string;
1040
+ /** Data format for response. */
1041
+ alt?: 'json' | 'media' | 'proto';
1042
+ /** JSONP */
1043
+ callback?: string;
1044
+ /** Selector specifying which fields to include in a partial response. */
1045
+ fields?: string;
1046
+ /** 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. */
1047
+ key?: string;
1048
+ /** OAuth 2.0 token for the current user. */
1049
+ oauth_token?: string;
1050
+ /** Returns response with indentations and line breaks. */
1051
+ prettyPrint?: boolean;
1052
+ /** 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. */
1053
+ quotaUser?: string;
1054
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
1055
+ resource: string;
1056
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1057
+ upload_protocol?: string;
1058
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1059
+ uploadType?: string;
1060
+ },
1061
+ body: TestIamPermissionsRequest,
1062
+ ): Request<TestIamPermissionsResponse>;
1063
+ tasks: {
1064
+ /** Creates a batch of tasks and adds them to a queue. This call is not atomic. All tasks must be for the same queue. A maximum of 100 tasks can be created in a single batch. */
1065
+ batchCreate(request: {
1066
+ /** V1 error format. */
1067
+ '$.xgafv'?: '1' | '2';
1068
+ /** OAuth access token. */
1069
+ access_token?: string;
1070
+ /** Data format for response. */
1071
+ alt?: 'json' | 'media' | 'proto';
1072
+ /** JSONP */
1073
+ callback?: string;
1074
+ /** Selector specifying which fields to include in a partial response. */
1075
+ fields?: string;
1076
+ /** 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. */
1077
+ key?: string;
1078
+ /** OAuth 2.0 token for the current user. */
1079
+ oauth_token?: string;
1080
+ /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1081
+ parent: string;
1082
+ /** Returns response with indentations and line breaks. */
1083
+ prettyPrint?: boolean;
1084
+ /** 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. */
1085
+ quotaUser?: string;
1086
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1087
+ upload_protocol?: string;
1088
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1089
+ uploadType?: string;
1090
+ /** Request body */
1091
+ resource: BatchCreateTasksRequest;
1092
+ }): Request<Operation>;
1093
+ batchCreate(
1094
+ request: {
1095
+ /** V1 error format. */
1096
+ '$.xgafv'?: '1' | '2';
1097
+ /** OAuth access token. */
1098
+ access_token?: string;
1099
+ /** Data format for response. */
1100
+ alt?: 'json' | 'media' | 'proto';
1101
+ /** JSONP */
1102
+ callback?: string;
1103
+ /** Selector specifying which fields to include in a partial response. */
1104
+ fields?: string;
1105
+ /** 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. */
1106
+ key?: string;
1107
+ /** OAuth 2.0 token for the current user. */
1108
+ oauth_token?: string;
1109
+ /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1110
+ parent: string;
1111
+ /** Returns response with indentations and line breaks. */
1112
+ prettyPrint?: boolean;
1113
+ /** 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. */
1114
+ quotaUser?: string;
1115
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1116
+ upload_protocol?: string;
1117
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1118
+ uploadType?: string;
1119
+ },
1120
+ body: BatchCreateTasksRequest,
1121
+ ): Request<Operation>;
1122
+ /** 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. */
1123
+ batchDelete(request: {
1124
+ /** V1 error format. */
1125
+ '$.xgafv'?: '1' | '2';
1126
+ /** OAuth access token. */
1127
+ access_token?: string;
1128
+ /** Data format for response. */
1129
+ alt?: 'json' | 'media' | 'proto';
1130
+ /** JSONP */
1131
+ callback?: string;
1132
+ /** Selector specifying which fields to include in a partial response. */
1133
+ fields?: string;
1134
+ /** 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. */
1135
+ key?: string;
1136
+ /** OAuth 2.0 token for the current user. */
1137
+ oauth_token?: string;
1138
+ /** Required. The queue name. For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
1139
+ parent: string;
1140
+ /** Returns response with indentations and line breaks. */
1141
+ prettyPrint?: boolean;
1142
+ /** 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. */
1143
+ quotaUser?: string;
1144
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1145
+ upload_protocol?: string;
1146
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1147
+ uploadType?: string;
1148
+ /** Request body */
1149
+ resource: BatchDeleteTasksRequest;
1150
+ }): Request<Operation>;
1151
+ batchDelete(
1152
+ request: {
1153
+ /** V1 error format. */
1154
+ '$.xgafv'?: '1' | '2';
1155
+ /** OAuth access token. */
1156
+ access_token?: string;
1157
+ /** Data format for response. */
1158
+ alt?: 'json' | 'media' | 'proto';
1159
+ /** JSONP */
1160
+ callback?: string;
1161
+ /** Selector specifying which fields to include in a partial response. */
1162
+ fields?: string;
1163
+ /** 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. */
1164
+ key?: string;
1165
+ /** OAuth 2.0 token for the current user. */
1166
+ oauth_token?: string;
1167
+ /** Required. The queue name. For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
1168
+ parent: string;
1169
+ /** Returns response with indentations and line breaks. */
1170
+ prettyPrint?: boolean;
1171
+ /** 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. */
1172
+ quotaUser?: string;
1173
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1174
+ upload_protocol?: string;
1175
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1176
+ uploadType?: string;
1177
+ },
1178
+ body: BatchDeleteTasksRequest,
1179
+ ): Request<Operation>;
1180
+ /** 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. */
1181
+ buffer(request: {
1182
+ /** V1 error format. */
1183
+ '$.xgafv'?: '1' | '2';
1184
+ /** OAuth access token. */
1185
+ access_token?: string;
1186
+ /** Data format for response. */
1187
+ alt?: 'json' | 'media' | 'proto';
1188
+ /** JSONP */
1189
+ callback?: string;
1190
+ /** Selector specifying which fields to include in a partial response. */
1191
+ fields?: string;
1192
+ /** 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. */
1193
+ key?: string;
1194
+ /** OAuth 2.0 token for the current user. */
1195
+ oauth_token?: string;
1196
+ /** Returns response with indentations and line breaks. */
1197
+ prettyPrint?: boolean;
1198
+ /** Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1199
+ queue: string;
1200
+ /** 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. */
1201
+ quotaUser?: string;
1202
+ /** Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task. */
1203
+ taskId: string;
1204
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1205
+ upload_protocol?: string;
1206
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1207
+ uploadType?: string;
1208
+ /** Request body */
1209
+ resource: BufferTaskRequest;
1210
+ }): Request<BufferTaskResponse>;
1211
+ buffer(
1212
+ request: {
1213
+ /** V1 error format. */
1214
+ '$.xgafv'?: '1' | '2';
1215
+ /** OAuth access token. */
1216
+ access_token?: string;
1217
+ /** Data format for response. */
1218
+ alt?: 'json' | 'media' | 'proto';
1219
+ /** JSONP */
1220
+ callback?: string;
1221
+ /** Selector specifying which fields to include in a partial response. */
1222
+ fields?: string;
1223
+ /** 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. */
1224
+ key?: string;
1225
+ /** OAuth 2.0 token for the current user. */
1226
+ oauth_token?: string;
1227
+ /** Returns response with indentations and line breaks. */
1228
+ prettyPrint?: boolean;
1229
+ /** Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1230
+ queue: string;
1231
+ /** 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. */
1232
+ quotaUser?: string;
1233
+ /** Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task. */
1234
+ taskId: string;
1235
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1236
+ upload_protocol?: string;
1237
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1238
+ uploadType?: string;
1239
+ },
1240
+ body: BufferTaskRequest,
1241
+ ): Request<BufferTaskResponse>;
1242
+ /** 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. */
1243
+ create(request: {
1244
+ /** V1 error format. */
1245
+ '$.xgafv'?: '1' | '2';
1246
+ /** OAuth access token. */
1247
+ access_token?: string;
1248
+ /** Data format for response. */
1249
+ alt?: 'json' | 'media' | 'proto';
1250
+ /** JSONP */
1251
+ callback?: string;
1252
+ /** Selector specifying which fields to include in a partial response. */
1253
+ fields?: string;
1254
+ /** 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. */
1255
+ key?: string;
1256
+ /** OAuth 2.0 token for the current user. */
1257
+ oauth_token?: string;
1258
+ /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1259
+ parent: string;
1260
+ /** Returns response with indentations and line breaks. */
1261
+ prettyPrint?: boolean;
1262
+ /** 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. */
1263
+ quotaUser?: string;
1264
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1265
+ upload_protocol?: string;
1266
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1267
+ uploadType?: string;
1268
+ /** Request body */
1269
+ resource: CreateTaskRequest;
1270
+ }): Request<Task>;
1271
+ create(
1272
+ request: {
1273
+ /** V1 error format. */
1274
+ '$.xgafv'?: '1' | '2';
1275
+ /** OAuth access token. */
1276
+ access_token?: string;
1277
+ /** Data format for response. */
1278
+ alt?: 'json' | 'media' | 'proto';
1279
+ /** JSONP */
1280
+ callback?: string;
1281
+ /** Selector specifying which fields to include in a partial response. */
1282
+ fields?: string;
1283
+ /** 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. */
1284
+ key?: string;
1285
+ /** OAuth 2.0 token for the current user. */
1286
+ oauth_token?: string;
1287
+ /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist. */
1288
+ parent: string;
1289
+ /** Returns response with indentations and line breaks. */
1290
+ prettyPrint?: boolean;
1291
+ /** 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. */
1292
+ quotaUser?: string;
1293
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1294
+ upload_protocol?: string;
1295
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1296
+ uploadType?: string;
1297
+ },
1298
+ body: CreateTaskRequest,
1299
+ ): Request<Task>;
1300
+ /** 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. */
1301
+ delete(request?: {
1302
+ /** V1 error format. */
1303
+ '$.xgafv'?: '1' | '2';
1304
+ /** OAuth access token. */
1305
+ access_token?: string;
1306
+ /** Data format for response. */
1307
+ alt?: 'json' | 'media' | 'proto';
1308
+ /** JSONP */
1309
+ callback?: string;
1310
+ /** Selector specifying which fields to include in a partial response. */
1311
+ fields?: string;
1312
+ /** 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. */
1313
+ key?: string;
1314
+ /** Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` */
1315
+ name: string;
1316
+ /** OAuth 2.0 token for the current user. */
1317
+ oauth_token?: string;
1318
+ /** Returns response with indentations and line breaks. */
1319
+ prettyPrint?: boolean;
1320
+ /** 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. */
1321
+ quotaUser?: string;
1322
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1323
+ upload_protocol?: string;
1324
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1325
+ uploadType?: string;
1326
+ }): Request<{}>;
1327
+ /** Gets a task. After a task is successfully executed or has exhausted its retry attempts, the task is deleted. A `GetTask` request for a deleted task returns a `NOT_FOUND` error. */
1328
+ get(request?: {
1329
+ /** V1 error format. */
1330
+ '$.xgafv'?: '1' | '2';
1331
+ /** OAuth access token. */
1332
+ access_token?: string;
1333
+ /** Data format for response. */
1334
+ alt?: 'json' | 'media' | 'proto';
1335
+ /** JSONP */
1336
+ callback?: string;
1337
+ /** Selector specifying which fields to include in a partial response. */
1338
+ fields?: string;
1339
+ /** 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. */
1340
+ key?: string;
1341
+ /** Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` */
1342
+ name: string;
1343
+ /** OAuth 2.0 token for the current user. */
1344
+ oauth_token?: string;
1345
+ /** Returns response with indentations and line breaks. */
1346
+ prettyPrint?: boolean;
1347
+ /** 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. */
1348
+ quotaUser?: string;
1349
+ /** 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. */
1350
+ responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
1351
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1352
+ upload_protocol?: string;
1353
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1354
+ uploadType?: string;
1355
+ }): Request<Task>;
1356
+ /** Lists the tasks in a queue. By default, only the BASIC view is retrieved due to performance considerations; response_view controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time. */
1357
+ list(request?: {
1358
+ /** V1 error format. */
1359
+ '$.xgafv'?: '1' | '2';
1360
+ /** OAuth access token. */
1361
+ access_token?: string;
1362
+ /** Data format for response. */
1363
+ alt?: 'json' | 'media' | 'proto';
1364
+ /** JSONP */
1365
+ callback?: string;
1366
+ /** Selector specifying which fields to include in a partial response. */
1367
+ fields?: string;
1368
+ /** 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. */
1369
+ key?: string;
1370
+ /** OAuth 2.0 token for the current user. */
1371
+ oauth_token?: string;
1372
+ /** Maximum page size. Fewer tasks than requested might be returned, even if more tasks exist; use next_page_token in the response to determine if more tasks exist. The maximum page size is 1000. If unspecified, the page size will be the maximum. */
1373
+ pageSize?: number;
1374
+ /** A token identifying the page of results to return. To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of next_page_token returned from the previous call to ListTasks method. The page token is valid for only 2 hours. */
1375
+ pageToken?: string;
1376
+ /** Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` */
1377
+ parent: string;
1378
+ /** Returns response with indentations and line breaks. */
1379
+ prettyPrint?: boolean;
1380
+ /** 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. */
1381
+ quotaUser?: string;
1382
+ /** 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. */
1383
+ responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
1384
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1385
+ upload_protocol?: string;
1386
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1387
+ uploadType?: string;
1388
+ }): Request<ListTasksResponse>;
1389
+ /** Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its RateLimits or is PAUSED. This command is meant to be used for manual debugging. For example, RunTask can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the status after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's schedule_time will be reset to the time that RunTask was called plus the retry delay specified in the queue's RetryConfig. RunTask returns NOT_FOUND when it is called on a task that has already succeeded or permanently failed. */
1390
+ run(request: {
1391
+ /** V1 error format. */
1392
+ '$.xgafv'?: '1' | '2';
1393
+ /** OAuth access token. */
1394
+ access_token?: string;
1395
+ /** Data format for response. */
1396
+ alt?: 'json' | 'media' | 'proto';
1397
+ /** JSONP */
1398
+ callback?: string;
1399
+ /** Selector specifying which fields to include in a partial response. */
1400
+ fields?: string;
1401
+ /** 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. */
1402
+ key?: string;
1403
+ /** Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` */
1404
+ name: string;
1405
+ /** OAuth 2.0 token for the current user. */
1406
+ oauth_token?: string;
1407
+ /** Returns response with indentations and line breaks. */
1408
+ prettyPrint?: boolean;
1409
+ /** 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. */
1410
+ quotaUser?: string;
1411
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1412
+ upload_protocol?: string;
1413
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1414
+ uploadType?: string;
1415
+ /** Request body */
1416
+ resource: RunTaskRequest;
1417
+ }): Request<Task>;
1418
+ run(
1419
+ request: {
1420
+ /** V1 error format. */
1421
+ '$.xgafv'?: '1' | '2';
1422
+ /** OAuth access token. */
1423
+ access_token?: string;
1424
+ /** Data format for response. */
1425
+ alt?: 'json' | 'media' | 'proto';
1426
+ /** JSONP */
1427
+ callback?: string;
1428
+ /** Selector specifying which fields to include in a partial response. */
1429
+ fields?: string;
1430
+ /** 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. */
1431
+ key?: string;
1432
+ /** Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` */
1433
+ name: string;
1434
+ /** OAuth 2.0 token for the current user. */
1435
+ oauth_token?: string;
1436
+ /** Returns response with indentations and line breaks. */
1437
+ prettyPrint?: boolean;
1438
+ /** 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. */
1439
+ quotaUser?: string;
1440
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1441
+ upload_protocol?: string;
1442
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1443
+ uploadType?: string;
1444
+ },
1445
+ body: RunTaskRequest,
1446
+ ): Request<Task>;
1447
+ };
1448
+ };
1449
+ };
1450
+ };
1456
1451
  }
1457
1452
  }