@maxim_mazurok/gapi.client.cloudtasks-v2beta2 0.1.20260115 → 0.2.20260306
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +124 -97
- 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=v2beta2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260306
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -38,7 +38,15 @@ declare namespace gapi.client {
|
|
|
38
38
|
/** HTTP request headers. This map contains the header field names and values. Headers can be set when the task is created. Repeated headers are not supported but a header value can contain commas. Cloud Tasks sets some headers to default values: * `User-Agent`: By default, this header is `"AppEngine-Google; (+http://code.google.com/appengine)"`. This header can be modified, but Cloud Tasks will append `"AppEngine-Google; (+http://code.google.com/appengine)"` to the modified `User-Agent`. If the task has a payload, Cloud Tasks sets the following headers: * `Content-Type`: By default, the `Content-Type` header is set to `"application/octet-stream"`. The default can be overridden by explicitly setting `Content-Type` to a particular media type when the task is created. For example, `Content-Type` can be set to `"application/json"`. * `Content-Length`: This is computed by Cloud Tasks. This value is output only. It cannot be changed. The headers below cannot be set or overridden: * `Host` * `X-Google-*` * `X-AppEngine-*` In addition, Cloud Tasks sets some headers when the task is dispatched, such as headers containing information about the task; see [request headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). These headers are set only when the task is dispatched, so they are not visible when the task is returned in a Cloud Tasks response. Although there is no specific limit for the maximum number of headers or the size, there is a limit on the maximum size of the Task. For more information, see the CreateTask documentation. */
|
|
39
39
|
headers?: {[P in string]: string};
|
|
40
40
|
/** The HTTP method to use for the request. The default is POST. The app's request handler for the task's target URL must be able to handle HTTP requests with this http_method, otherwise the task attempt fails with error code 405 (Method Not Allowed). See [Writing a push task request handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) and the App Engine documentation for your runtime on [How Requests are Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled). */
|
|
41
|
-
httpMethod?:
|
|
41
|
+
httpMethod?:
|
|
42
|
+
| 'HTTP_METHOD_UNSPECIFIED'
|
|
43
|
+
| 'POST'
|
|
44
|
+
| 'GET'
|
|
45
|
+
| 'HEAD'
|
|
46
|
+
| 'PUT'
|
|
47
|
+
| 'DELETE'
|
|
48
|
+
| 'PATCH'
|
|
49
|
+
| 'OPTIONS';
|
|
42
50
|
/** Payload. The payload will be sent as the HTTP message body. A message body, and thus a payload, is allowed only if the HTTP method is POST or PUT. It is an error to set a data payload on a task with an incompatible HttpMethod. */
|
|
43
51
|
payload?: string;
|
|
44
52
|
/** The relative URL. The relative URL must begin with "/" and must be a valid HTTP relative URL. It can contain a path and query string arguments. If the relative URL is empty, then the root path "/" will be used. No spaces are allowed, and the maximum length allowed is 2083 characters. */
|
|
@@ -86,7 +94,7 @@ declare namespace gapi.client {
|
|
|
86
94
|
}
|
|
87
95
|
interface CancelLeaseRequest {
|
|
88
96
|
/** 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. */
|
|
89
|
-
responseView?:
|
|
97
|
+
responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
90
98
|
/** Required. The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response. This restriction is to ensure that your worker currently holds the lease. */
|
|
91
99
|
scheduleTime?: string;
|
|
92
100
|
}
|
|
@@ -98,7 +106,7 @@ declare namespace gapi.client {
|
|
|
98
106
|
}
|
|
99
107
|
interface CreateTaskRequest {
|
|
100
108
|
/** 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. */
|
|
101
|
-
responseView?:
|
|
109
|
+
responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
102
110
|
/** Required. The task to add. Task names have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can optionally specify a task name. If a name is not specified then the system will generate a random unique task id, which will be set in the task returned in the response. If schedule_time is not set or is in the past then Cloud Tasks will set it to the current time. Task De-duplication: Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical to that of an existing task or a task that was deleted or completed recently then the call will fail with ALREADY_EXISTS. The IDs of deleted tasks are not immediately available for reuse. It can take up to 24 hours (or 9 days if the task's queue was created using a queue.yaml or queue.xml) for the task ID to be released and made available again. Because there is an extra lookup cost to identify duplicate task names, these CreateTask calls have significantly increased latency. Using hashed strings for the task id or for the prefix of the task id is recommended. Choosing task ids that are sequential or have sequential prefixes, for example using a timestamp, causes an increase in latency and error rates in all task commands. The infrastructure relies on an approximately uniform distribution of task ids to store and serve tasks efficiently. */
|
|
103
111
|
task?: Task;
|
|
104
112
|
}
|
|
@@ -145,7 +153,15 @@ declare namespace gapi.client {
|
|
|
145
153
|
/** HTTP request headers. This map contains the header field names and values. Headers can be set when running the task is created or task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Any header that is prefixed with "X-CloudTasks-" will be treated as service header. Service headers define properties of the task and are predefined in CloudTask. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `"Google-Cloud-Tasks"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `"application/octet-stream"` or `"application/json"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB. */
|
|
146
154
|
headers?: {[P in string]: string};
|
|
147
155
|
/** The HTTP method to use for the request. The default is POST. */
|
|
148
|
-
httpMethod?:
|
|
156
|
+
httpMethod?:
|
|
157
|
+
| 'HTTP_METHOD_UNSPECIFIED'
|
|
158
|
+
| 'POST'
|
|
159
|
+
| 'GET'
|
|
160
|
+
| 'HEAD'
|
|
161
|
+
| 'PUT'
|
|
162
|
+
| 'DELETE'
|
|
163
|
+
| 'PATCH'
|
|
164
|
+
| 'OPTIONS';
|
|
149
165
|
/** If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com. */
|
|
150
166
|
oauthToken?: OAuthToken;
|
|
151
167
|
/** If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself. */
|
|
@@ -157,7 +173,15 @@ declare namespace gapi.client {
|
|
|
157
173
|
/** HTTP target headers. This map contains the header field names and values. Headers will be set when running the task is created and/or task is created. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: * Any header that is prefixed with "X-CloudTasks-" will be treated as service header. Service headers define properties of the task and are predefined in CloudTask. * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will be set to `"Google-CloudTasks"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the task is created. For example, `Content-Type` can be set to `"application/octet-stream"` or `"application/json"`. Headers which can have multiple values (according to RFC2616) can be specified using comma-separated values. The size of the headers must be less than 80KB. Queue-level headers to override headers of all the tasks in the queue. Do not put business sensitive or personally identifying data in the HTTP Header Override Configuration or other similar fields in accordance with Section 12 (Resource Fields) of the [Service Specific Terms](https://cloud.google.com/terms/service-terms). */
|
|
158
174
|
headerOverrides?: HeaderOverride[];
|
|
159
175
|
/** The HTTP method to use for the request. When specified, it overrides HttpRequest for the task. Note that if the value is set to HttpMethod the HttpRequest of the task will be ignored at execution time. */
|
|
160
|
-
httpMethod?:
|
|
176
|
+
httpMethod?:
|
|
177
|
+
| 'HTTP_METHOD_UNSPECIFIED'
|
|
178
|
+
| 'POST'
|
|
179
|
+
| 'GET'
|
|
180
|
+
| 'HEAD'
|
|
181
|
+
| 'PUT'
|
|
182
|
+
| 'DELETE'
|
|
183
|
+
| 'PATCH'
|
|
184
|
+
| 'OPTIONS';
|
|
161
185
|
/** If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) is generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally be used only when calling Google APIs hosted on *.googleapis.com. Note that both the service account email and the scope MUST be specified when using the queue-level authorization override. */
|
|
162
186
|
oauthToken?: OAuthToken;
|
|
163
187
|
/** If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token is generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself. Note that both the service account email and the audience MUST be specified when using the queue-level authorization override. */
|
|
@@ -173,7 +197,7 @@ declare namespace gapi.client {
|
|
|
173
197
|
/** The maximum number of tasks to lease. The system will make a best effort to return as close to as `max_tasks` as possible. The largest that `max_tasks` can be is 1000. The maximum total size of a lease tasks response is 32 MB. If the sum of all task sizes requested reaches this limit, fewer tasks than requested are returned. */
|
|
174
198
|
maxTasks?: number;
|
|
175
199
|
/** 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. */
|
|
176
|
-
responseView?:
|
|
200
|
+
responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
177
201
|
}
|
|
178
202
|
interface LeaseTasksResponse {
|
|
179
203
|
/** The leased tasks. */
|
|
@@ -262,7 +286,7 @@ declare namespace gapi.client {
|
|
|
262
286
|
/** Settings that determine the retry behavior. * For tasks created using Cloud Tasks: the queue-level retry settings apply to all tasks in the queue that were created using Cloud Tasks. Retry settings cannot be set on individual tasks. * For tasks created using the App Engine SDK: the queue-level retry settings apply to all tasks in the queue which do not have retry settings explicitly set on the task and were created by the App Engine SDK. See [App Engine documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). */
|
|
263
287
|
retryConfig?: RetryConfig;
|
|
264
288
|
/** Output only. The state of the queue. `state` can only be changed by called PauseQueue, ResumeQueue, or uploading [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). UpdateQueue cannot be used to change `state`. */
|
|
265
|
-
state?:
|
|
289
|
+
state?: 'STATE_UNSPECIFIED' | 'RUNNING' | 'PAUSED' | 'DISABLED';
|
|
266
290
|
/** Output only. The realtime, informational statistics for a queue. In order to receive the statistics the caller should include this field in the FieldMask. */
|
|
267
291
|
stats?: QueueStats;
|
|
268
292
|
/** The maximum amount of time that a task will be retained in this queue. Queues created by Cloud Tasks have a default `task_ttl` of 31 days. After a task has lived for `task_ttl`, the task will be deleted regardless of whether it was dispatched or not. The `task_ttl` for queues created via queue.yaml/xml is equal to the maximum duration because there is a [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for these queues. To view the maximum valid duration, see the documentation for Duration. */
|
|
@@ -294,7 +318,7 @@ declare namespace gapi.client {
|
|
|
294
318
|
/** Required. The desired new lease duration, starting from now. The maximum lease duration is 1 week. `lease_duration` will be truncated to the nearest second. */
|
|
295
319
|
leaseDuration?: string;
|
|
296
320
|
/** 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. */
|
|
297
|
-
responseView?:
|
|
321
|
+
responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
298
322
|
/** Required. The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response. This restriction is to ensure that your worker currently holds the lease. */
|
|
299
323
|
scheduleTime?: string;
|
|
300
324
|
}
|
|
@@ -315,7 +339,7 @@ declare namespace gapi.client {
|
|
|
315
339
|
}
|
|
316
340
|
interface RunTaskRequest {
|
|
317
341
|
/** 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. */
|
|
318
|
-
responseView?:
|
|
342
|
+
responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
319
343
|
}
|
|
320
344
|
interface SetIamPolicyRequest {
|
|
321
345
|
/** REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them. */
|
|
@@ -345,7 +369,7 @@ declare namespace gapi.client {
|
|
|
345
369
|
/** Output only. The task status. */
|
|
346
370
|
status?: TaskStatus;
|
|
347
371
|
/** Output only. The view specifies which subset of the Task has been returned. */
|
|
348
|
-
view?:
|
|
372
|
+
view?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
349
373
|
}
|
|
350
374
|
interface TaskStatus {
|
|
351
375
|
/** Output only. The number of attempts dispatched. This count includes attempts which have been dispatched but haven't received a response. */
|
|
@@ -375,19 +399,22 @@ declare namespace gapi.client {
|
|
|
375
399
|
/** URI Query. When specified, replaces the query part of the task URI. Setting the query value to an empty string clears the URI query segment. */
|
|
376
400
|
queryOverride?: QueryOverride;
|
|
377
401
|
/** Scheme override. When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS). */
|
|
378
|
-
scheme?:
|
|
402
|
+
scheme?: 'SCHEME_UNSPECIFIED' | 'HTTP' | 'HTTPS';
|
|
379
403
|
/** URI Override Enforce Mode When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS. */
|
|
380
|
-
uriOverrideEnforceMode?:
|
|
404
|
+
uriOverrideEnforceMode?:
|
|
405
|
+
| 'URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED'
|
|
406
|
+
| 'IF_NOT_EXISTS'
|
|
407
|
+
| 'ALWAYS';
|
|
381
408
|
}
|
|
382
409
|
interface QueueResource {
|
|
383
410
|
/** Update queue list by uploading a queue.yaml file. The queue.yaml file is supplied in the request body as a YAML encoded string. This method was added to support gcloud clients versions before 322.0.0. New clients should use CreateQueue instead of this method. */
|
|
384
411
|
update(request: {
|
|
385
412
|
/** V1 error format. */
|
|
386
|
-
'$.xgafv'?:
|
|
413
|
+
'$.xgafv'?: '1' | '2';
|
|
387
414
|
/** OAuth access token. */
|
|
388
415
|
access_token?: string;
|
|
389
416
|
/** Data format for response. */
|
|
390
|
-
alt?:
|
|
417
|
+
alt?: 'json' | 'media' | 'proto';
|
|
391
418
|
/** Required. The App ID is supplied as an HTTP parameter. Unlike internal usage of App ID, it does not include a region prefix. Rather, the App ID represents the Project ID against which to make the request. */
|
|
392
419
|
appId?: string;
|
|
393
420
|
/** JSONP */
|
|
@@ -412,11 +439,11 @@ declare namespace gapi.client {
|
|
|
412
439
|
update(
|
|
413
440
|
request: {
|
|
414
441
|
/** V1 error format. */
|
|
415
|
-
'$.xgafv'?:
|
|
442
|
+
'$.xgafv'?: '1' | '2';
|
|
416
443
|
/** OAuth access token. */
|
|
417
444
|
access_token?: string;
|
|
418
445
|
/** Data format for response. */
|
|
419
|
-
alt?:
|
|
446
|
+
alt?: 'json' | 'media' | 'proto';
|
|
420
447
|
/** Required. The App ID is supplied as an HTTP parameter. Unlike internal usage of App ID, it does not include a region prefix. Rather, the App ID represents the Project ID against which to make the request. */
|
|
421
448
|
appId?: string;
|
|
422
449
|
/** JSONP */
|
|
@@ -446,11 +473,11 @@ declare namespace gapi.client {
|
|
|
446
473
|
/** Acknowledges a pull task. The worker, that is, the entity that leased this task must call this method to indicate that the work associated with the task has finished. The worker must acknowledge a task within the lease_duration or the lease will expire and the task will become available to be leased again. After the task is acknowledged, it will not be returned by a later LeaseTasks, GetTask, or ListTasks. */
|
|
447
474
|
acknowledge(request: {
|
|
448
475
|
/** V1 error format. */
|
|
449
|
-
'$.xgafv'?:
|
|
476
|
+
'$.xgafv'?: '1' | '2';
|
|
450
477
|
/** OAuth access token. */
|
|
451
478
|
access_token?: string;
|
|
452
479
|
/** Data format for response. */
|
|
453
|
-
alt?:
|
|
480
|
+
alt?: 'json' | 'media' | 'proto';
|
|
454
481
|
/** JSONP */
|
|
455
482
|
callback?: string;
|
|
456
483
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -475,11 +502,11 @@ declare namespace gapi.client {
|
|
|
475
502
|
acknowledge(
|
|
476
503
|
request: {
|
|
477
504
|
/** V1 error format. */
|
|
478
|
-
'$.xgafv'?:
|
|
505
|
+
'$.xgafv'?: '1' | '2';
|
|
479
506
|
/** OAuth access token. */
|
|
480
507
|
access_token?: string;
|
|
481
508
|
/** Data format for response. */
|
|
482
|
-
alt?:
|
|
509
|
+
alt?: 'json' | 'media' | 'proto';
|
|
483
510
|
/** JSONP */
|
|
484
511
|
callback?: string;
|
|
485
512
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -504,11 +531,11 @@ declare namespace gapi.client {
|
|
|
504
531
|
/** 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. */
|
|
505
532
|
buffer(request: {
|
|
506
533
|
/** V1 error format. */
|
|
507
|
-
'$.xgafv'?:
|
|
534
|
+
'$.xgafv'?: '1' | '2';
|
|
508
535
|
/** OAuth access token. */
|
|
509
536
|
access_token?: string;
|
|
510
537
|
/** Data format for response. */
|
|
511
|
-
alt?:
|
|
538
|
+
alt?: 'json' | 'media' | 'proto';
|
|
512
539
|
/** JSONP */
|
|
513
540
|
callback?: string;
|
|
514
541
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -535,11 +562,11 @@ declare namespace gapi.client {
|
|
|
535
562
|
buffer(
|
|
536
563
|
request: {
|
|
537
564
|
/** V1 error format. */
|
|
538
|
-
'$.xgafv'?:
|
|
565
|
+
'$.xgafv'?: '1' | '2';
|
|
539
566
|
/** OAuth access token. */
|
|
540
567
|
access_token?: string;
|
|
541
568
|
/** Data format for response. */
|
|
542
|
-
alt?:
|
|
569
|
+
alt?: 'json' | 'media' | 'proto';
|
|
543
570
|
/** JSONP */
|
|
544
571
|
callback?: string;
|
|
545
572
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -566,11 +593,11 @@ declare namespace gapi.client {
|
|
|
566
593
|
/** Cancel a pull task's lease. The worker can use this method to cancel a task's lease by setting its schedule_time to now. This will make the task available to be leased to the next caller of LeaseTasks. */
|
|
567
594
|
cancelLease(request: {
|
|
568
595
|
/** V1 error format. */
|
|
569
|
-
'$.xgafv'?:
|
|
596
|
+
'$.xgafv'?: '1' | '2';
|
|
570
597
|
/** OAuth access token. */
|
|
571
598
|
access_token?: string;
|
|
572
599
|
/** Data format for response. */
|
|
573
|
-
alt?:
|
|
600
|
+
alt?: 'json' | 'media' | 'proto';
|
|
574
601
|
/** JSONP */
|
|
575
602
|
callback?: string;
|
|
576
603
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -595,11 +622,11 @@ declare namespace gapi.client {
|
|
|
595
622
|
cancelLease(
|
|
596
623
|
request: {
|
|
597
624
|
/** V1 error format. */
|
|
598
|
-
'$.xgafv'?:
|
|
625
|
+
'$.xgafv'?: '1' | '2';
|
|
599
626
|
/** OAuth access token. */
|
|
600
627
|
access_token?: string;
|
|
601
628
|
/** Data format for response. */
|
|
602
|
-
alt?:
|
|
629
|
+
alt?: 'json' | 'media' | 'proto';
|
|
603
630
|
/** JSONP */
|
|
604
631
|
callback?: string;
|
|
605
632
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -624,11 +651,11 @@ declare namespace gapi.client {
|
|
|
624
651
|
/** Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * For App Engine queues, the maximum task size is 100KB. * For pull queues, the maximum task size is 1MB. */
|
|
625
652
|
create(request: {
|
|
626
653
|
/** V1 error format. */
|
|
627
|
-
'$.xgafv'?:
|
|
654
|
+
'$.xgafv'?: '1' | '2';
|
|
628
655
|
/** OAuth access token. */
|
|
629
656
|
access_token?: string;
|
|
630
657
|
/** Data format for response. */
|
|
631
|
-
alt?:
|
|
658
|
+
alt?: 'json' | 'media' | 'proto';
|
|
632
659
|
/** JSONP */
|
|
633
660
|
callback?: string;
|
|
634
661
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -653,11 +680,11 @@ declare namespace gapi.client {
|
|
|
653
680
|
create(
|
|
654
681
|
request: {
|
|
655
682
|
/** V1 error format. */
|
|
656
|
-
'$.xgafv'?:
|
|
683
|
+
'$.xgafv'?: '1' | '2';
|
|
657
684
|
/** OAuth access token. */
|
|
658
685
|
access_token?: string;
|
|
659
686
|
/** Data format for response. */
|
|
660
|
-
alt?:
|
|
687
|
+
alt?: 'json' | 'media' | 'proto';
|
|
661
688
|
/** JSONP */
|
|
662
689
|
callback?: string;
|
|
663
690
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -682,11 +709,11 @@ declare namespace gapi.client {
|
|
|
682
709
|
/** Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has completed successfully or permanently failed. */
|
|
683
710
|
delete(request?: {
|
|
684
711
|
/** V1 error format. */
|
|
685
|
-
'$.xgafv'?:
|
|
712
|
+
'$.xgafv'?: '1' | '2';
|
|
686
713
|
/** OAuth access token. */
|
|
687
714
|
access_token?: string;
|
|
688
715
|
/** Data format for response. */
|
|
689
|
-
alt?:
|
|
716
|
+
alt?: 'json' | 'media' | 'proto';
|
|
690
717
|
/** JSONP */
|
|
691
718
|
callback?: string;
|
|
692
719
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -709,11 +736,11 @@ declare namespace gapi.client {
|
|
|
709
736
|
/** Gets a task. */
|
|
710
737
|
get(request?: {
|
|
711
738
|
/** V1 error format. */
|
|
712
|
-
'$.xgafv'?:
|
|
739
|
+
'$.xgafv'?: '1' | '2';
|
|
713
740
|
/** OAuth access token. */
|
|
714
741
|
access_token?: string;
|
|
715
742
|
/** Data format for response. */
|
|
716
|
-
alt?:
|
|
743
|
+
alt?: 'json' | 'media' | 'proto';
|
|
717
744
|
/** JSONP */
|
|
718
745
|
callback?: string;
|
|
719
746
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -729,7 +756,7 @@ declare namespace gapi.client {
|
|
|
729
756
|
/** 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. */
|
|
730
757
|
quotaUser?: string;
|
|
731
758
|
/** 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. */
|
|
732
|
-
responseView?:
|
|
759
|
+
responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
733
760
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
734
761
|
upload_protocol?: string;
|
|
735
762
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
@@ -738,11 +765,11 @@ declare namespace gapi.client {
|
|
|
738
765
|
/** Leases tasks from a pull queue for lease_duration. This method is invoked by the worker to obtain a lease. The worker must acknowledge the task via AcknowledgeTask after they have performed the work associated with the task. The payload is intended to store data that the worker needs to perform the work associated with the task. To return the payloads in the response, set response_view to FULL. A maximum of 10 qps of LeaseTasks requests are allowed per queue. RESOURCE_EXHAUSTED is returned when this limit is exceeded. RESOURCE_EXHAUSTED is also returned when max_tasks_dispatched_per_second is exceeded. */
|
|
739
766
|
lease(request: {
|
|
740
767
|
/** V1 error format. */
|
|
741
|
-
'$.xgafv'?:
|
|
768
|
+
'$.xgafv'?: '1' | '2';
|
|
742
769
|
/** OAuth access token. */
|
|
743
770
|
access_token?: string;
|
|
744
771
|
/** Data format for response. */
|
|
745
|
-
alt?:
|
|
772
|
+
alt?: 'json' | 'media' | 'proto';
|
|
746
773
|
/** JSONP */
|
|
747
774
|
callback?: string;
|
|
748
775
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -767,11 +794,11 @@ declare namespace gapi.client {
|
|
|
767
794
|
lease(
|
|
768
795
|
request: {
|
|
769
796
|
/** V1 error format. */
|
|
770
|
-
'$.xgafv'?:
|
|
797
|
+
'$.xgafv'?: '1' | '2';
|
|
771
798
|
/** OAuth access token. */
|
|
772
799
|
access_token?: string;
|
|
773
800
|
/** Data format for response. */
|
|
774
|
-
alt?:
|
|
801
|
+
alt?: 'json' | 'media' | 'proto';
|
|
775
802
|
/** JSONP */
|
|
776
803
|
callback?: string;
|
|
777
804
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -796,11 +823,11 @@ declare namespace gapi.client {
|
|
|
796
823
|
/** 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. */
|
|
797
824
|
list(request?: {
|
|
798
825
|
/** V1 error format. */
|
|
799
|
-
'$.xgafv'?:
|
|
826
|
+
'$.xgafv'?: '1' | '2';
|
|
800
827
|
/** OAuth access token. */
|
|
801
828
|
access_token?: string;
|
|
802
829
|
/** Data format for response. */
|
|
803
|
-
alt?:
|
|
830
|
+
alt?: 'json' | 'media' | 'proto';
|
|
804
831
|
/** JSONP */
|
|
805
832
|
callback?: string;
|
|
806
833
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -820,7 +847,7 @@ declare namespace gapi.client {
|
|
|
820
847
|
/** 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. */
|
|
821
848
|
quotaUser?: string;
|
|
822
849
|
/** 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. */
|
|
823
|
-
responseView?:
|
|
850
|
+
responseView?: 'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
824
851
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
825
852
|
upload_protocol?: string;
|
|
826
853
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
@@ -829,11 +856,11 @@ declare namespace gapi.client {
|
|
|
829
856
|
/** Renew the current lease of a pull task. The worker can use this method to extend the lease by a new duration, starting from now. The new task lease will be returned in the task's schedule_time. */
|
|
830
857
|
renewLease(request: {
|
|
831
858
|
/** V1 error format. */
|
|
832
|
-
'$.xgafv'?:
|
|
859
|
+
'$.xgafv'?: '1' | '2';
|
|
833
860
|
/** OAuth access token. */
|
|
834
861
|
access_token?: string;
|
|
835
862
|
/** Data format for response. */
|
|
836
|
-
alt?:
|
|
863
|
+
alt?: 'json' | 'media' | 'proto';
|
|
837
864
|
/** JSONP */
|
|
838
865
|
callback?: string;
|
|
839
866
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -858,11 +885,11 @@ declare namespace gapi.client {
|
|
|
858
885
|
renewLease(
|
|
859
886
|
request: {
|
|
860
887
|
/** V1 error format. */
|
|
861
|
-
'$.xgafv'?:
|
|
888
|
+
'$.xgafv'?: '1' | '2';
|
|
862
889
|
/** OAuth access token. */
|
|
863
890
|
access_token?: string;
|
|
864
891
|
/** Data format for response. */
|
|
865
|
-
alt?:
|
|
892
|
+
alt?: 'json' | 'media' | 'proto';
|
|
866
893
|
/** JSONP */
|
|
867
894
|
callback?: string;
|
|
868
895
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -887,11 +914,11 @@ declare namespace gapi.client {
|
|
|
887
914
|
/** 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. RunTask cannot be called on a pull task. */
|
|
888
915
|
run(request: {
|
|
889
916
|
/** V1 error format. */
|
|
890
|
-
'$.xgafv'?:
|
|
917
|
+
'$.xgafv'?: '1' | '2';
|
|
891
918
|
/** OAuth access token. */
|
|
892
919
|
access_token?: string;
|
|
893
920
|
/** Data format for response. */
|
|
894
|
-
alt?:
|
|
921
|
+
alt?: 'json' | 'media' | 'proto';
|
|
895
922
|
/** JSONP */
|
|
896
923
|
callback?: string;
|
|
897
924
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -916,11 +943,11 @@ declare namespace gapi.client {
|
|
|
916
943
|
run(
|
|
917
944
|
request: {
|
|
918
945
|
/** V1 error format. */
|
|
919
|
-
'$.xgafv'?:
|
|
946
|
+
'$.xgafv'?: '1' | '2';
|
|
920
947
|
/** OAuth access token. */
|
|
921
948
|
access_token?: string;
|
|
922
949
|
/** Data format for response. */
|
|
923
|
-
alt?:
|
|
950
|
+
alt?: 'json' | 'media' | 'proto';
|
|
924
951
|
/** JSONP */
|
|
925
952
|
callback?: string;
|
|
926
953
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -947,11 +974,11 @@ declare namespace gapi.client {
|
|
|
947
974
|
/** 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. */
|
|
948
975
|
create(request: {
|
|
949
976
|
/** V1 error format. */
|
|
950
|
-
'$.xgafv'?:
|
|
977
|
+
'$.xgafv'?: '1' | '2';
|
|
951
978
|
/** OAuth access token. */
|
|
952
979
|
access_token?: string;
|
|
953
980
|
/** Data format for response. */
|
|
954
|
-
alt?:
|
|
981
|
+
alt?: 'json' | 'media' | 'proto';
|
|
955
982
|
/** JSONP */
|
|
956
983
|
callback?: string;
|
|
957
984
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -976,11 +1003,11 @@ declare namespace gapi.client {
|
|
|
976
1003
|
create(
|
|
977
1004
|
request: {
|
|
978
1005
|
/** V1 error format. */
|
|
979
|
-
'$.xgafv'?:
|
|
1006
|
+
'$.xgafv'?: '1' | '2';
|
|
980
1007
|
/** OAuth access token. */
|
|
981
1008
|
access_token?: string;
|
|
982
1009
|
/** Data format for response. */
|
|
983
|
-
alt?:
|
|
1010
|
+
alt?: 'json' | 'media' | 'proto';
|
|
984
1011
|
/** JSONP */
|
|
985
1012
|
callback?: string;
|
|
986
1013
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1005,11 +1032,11 @@ declare namespace gapi.client {
|
|
|
1005
1032
|
/** 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. */
|
|
1006
1033
|
delete(request?: {
|
|
1007
1034
|
/** V1 error format. */
|
|
1008
|
-
'$.xgafv'?:
|
|
1035
|
+
'$.xgafv'?: '1' | '2';
|
|
1009
1036
|
/** OAuth access token. */
|
|
1010
1037
|
access_token?: string;
|
|
1011
1038
|
/** Data format for response. */
|
|
1012
|
-
alt?:
|
|
1039
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1013
1040
|
/** JSONP */
|
|
1014
1041
|
callback?: string;
|
|
1015
1042
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1032,11 +1059,11 @@ declare namespace gapi.client {
|
|
|
1032
1059
|
/** Gets a queue. */
|
|
1033
1060
|
get(request?: {
|
|
1034
1061
|
/** V1 error format. */
|
|
1035
|
-
'$.xgafv'?:
|
|
1062
|
+
'$.xgafv'?: '1' | '2';
|
|
1036
1063
|
/** OAuth access token. */
|
|
1037
1064
|
access_token?: string;
|
|
1038
1065
|
/** Data format for response. */
|
|
1039
|
-
alt?:
|
|
1066
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1040
1067
|
/** JSONP */
|
|
1041
1068
|
callback?: string;
|
|
1042
1069
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1062,11 +1089,11 @@ declare namespace gapi.client {
|
|
|
1062
1089
|
getIamPolicy(
|
|
1063
1090
|
request: {
|
|
1064
1091
|
/** V1 error format. */
|
|
1065
|
-
'$.xgafv'?:
|
|
1092
|
+
'$.xgafv'?: '1' | '2';
|
|
1066
1093
|
/** OAuth access token. */
|
|
1067
1094
|
access_token?: string;
|
|
1068
1095
|
/** Data format for response. */
|
|
1069
|
-
alt?:
|
|
1096
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1070
1097
|
/** JSONP */
|
|
1071
1098
|
callback?: string;
|
|
1072
1099
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1091,11 +1118,11 @@ declare namespace gapi.client {
|
|
|
1091
1118
|
/** Lists queues. Queues are returned in lexicographical order. */
|
|
1092
1119
|
list(request?: {
|
|
1093
1120
|
/** V1 error format. */
|
|
1094
|
-
'$.xgafv'?:
|
|
1121
|
+
'$.xgafv'?: '1' | '2';
|
|
1095
1122
|
/** OAuth access token. */
|
|
1096
1123
|
access_token?: string;
|
|
1097
1124
|
/** Data format for response. */
|
|
1098
|
-
alt?:
|
|
1125
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1099
1126
|
/** JSONP */
|
|
1100
1127
|
callback?: string;
|
|
1101
1128
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1126,11 +1153,11 @@ declare namespace gapi.client {
|
|
|
1126
1153
|
/** 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. */
|
|
1127
1154
|
patch(request: {
|
|
1128
1155
|
/** V1 error format. */
|
|
1129
|
-
'$.xgafv'?:
|
|
1156
|
+
'$.xgafv'?: '1' | '2';
|
|
1130
1157
|
/** OAuth access token. */
|
|
1131
1158
|
access_token?: string;
|
|
1132
1159
|
/** Data format for response. */
|
|
1133
|
-
alt?:
|
|
1160
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1134
1161
|
/** JSONP */
|
|
1135
1162
|
callback?: string;
|
|
1136
1163
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1157,11 +1184,11 @@ declare namespace gapi.client {
|
|
|
1157
1184
|
patch(
|
|
1158
1185
|
request: {
|
|
1159
1186
|
/** V1 error format. */
|
|
1160
|
-
'$.xgafv'?:
|
|
1187
|
+
'$.xgafv'?: '1' | '2';
|
|
1161
1188
|
/** OAuth access token. */
|
|
1162
1189
|
access_token?: string;
|
|
1163
1190
|
/** Data format for response. */
|
|
1164
|
-
alt?:
|
|
1191
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1165
1192
|
/** JSONP */
|
|
1166
1193
|
callback?: string;
|
|
1167
1194
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1188,11 +1215,11 @@ declare namespace gapi.client {
|
|
|
1188
1215
|
/** 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. */
|
|
1189
1216
|
pause(request: {
|
|
1190
1217
|
/** V1 error format. */
|
|
1191
|
-
'$.xgafv'?:
|
|
1218
|
+
'$.xgafv'?: '1' | '2';
|
|
1192
1219
|
/** OAuth access token. */
|
|
1193
1220
|
access_token?: string;
|
|
1194
1221
|
/** Data format for response. */
|
|
1195
|
-
alt?:
|
|
1222
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1196
1223
|
/** JSONP */
|
|
1197
1224
|
callback?: string;
|
|
1198
1225
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1217,11 +1244,11 @@ declare namespace gapi.client {
|
|
|
1217
1244
|
pause(
|
|
1218
1245
|
request: {
|
|
1219
1246
|
/** V1 error format. */
|
|
1220
|
-
'$.xgafv'?:
|
|
1247
|
+
'$.xgafv'?: '1' | '2';
|
|
1221
1248
|
/** OAuth access token. */
|
|
1222
1249
|
access_token?: string;
|
|
1223
1250
|
/** Data format for response. */
|
|
1224
|
-
alt?:
|
|
1251
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1225
1252
|
/** JSONP */
|
|
1226
1253
|
callback?: string;
|
|
1227
1254
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1246,11 +1273,11 @@ declare namespace gapi.client {
|
|
|
1246
1273
|
/** 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. */
|
|
1247
1274
|
purge(request: {
|
|
1248
1275
|
/** V1 error format. */
|
|
1249
|
-
'$.xgafv'?:
|
|
1276
|
+
'$.xgafv'?: '1' | '2';
|
|
1250
1277
|
/** OAuth access token. */
|
|
1251
1278
|
access_token?: string;
|
|
1252
1279
|
/** Data format for response. */
|
|
1253
|
-
alt?:
|
|
1280
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1254
1281
|
/** JSONP */
|
|
1255
1282
|
callback?: string;
|
|
1256
1283
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1275,11 +1302,11 @@ declare namespace gapi.client {
|
|
|
1275
1302
|
purge(
|
|
1276
1303
|
request: {
|
|
1277
1304
|
/** V1 error format. */
|
|
1278
|
-
'$.xgafv'?:
|
|
1305
|
+
'$.xgafv'?: '1' | '2';
|
|
1279
1306
|
/** OAuth access token. */
|
|
1280
1307
|
access_token?: string;
|
|
1281
1308
|
/** Data format for response. */
|
|
1282
|
-
alt?:
|
|
1309
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1283
1310
|
/** JSONP */
|
|
1284
1311
|
callback?: string;
|
|
1285
1312
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1304,11 +1331,11 @@ declare namespace gapi.client {
|
|
|
1304
1331
|
/** 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). */
|
|
1305
1332
|
resume(request: {
|
|
1306
1333
|
/** V1 error format. */
|
|
1307
|
-
'$.xgafv'?:
|
|
1334
|
+
'$.xgafv'?: '1' | '2';
|
|
1308
1335
|
/** OAuth access token. */
|
|
1309
1336
|
access_token?: string;
|
|
1310
1337
|
/** Data format for response. */
|
|
1311
|
-
alt?:
|
|
1338
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1312
1339
|
/** JSONP */
|
|
1313
1340
|
callback?: string;
|
|
1314
1341
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1333,11 +1360,11 @@ declare namespace gapi.client {
|
|
|
1333
1360
|
resume(
|
|
1334
1361
|
request: {
|
|
1335
1362
|
/** V1 error format. */
|
|
1336
|
-
'$.xgafv'?:
|
|
1363
|
+
'$.xgafv'?: '1' | '2';
|
|
1337
1364
|
/** OAuth access token. */
|
|
1338
1365
|
access_token?: string;
|
|
1339
1366
|
/** Data format for response. */
|
|
1340
|
-
alt?:
|
|
1367
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1341
1368
|
/** JSONP */
|
|
1342
1369
|
callback?: string;
|
|
1343
1370
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1363,11 +1390,11 @@ declare namespace gapi.client {
|
|
|
1363
1390
|
setIamPolicy(
|
|
1364
1391
|
request: {
|
|
1365
1392
|
/** V1 error format. */
|
|
1366
|
-
'$.xgafv'?:
|
|
1393
|
+
'$.xgafv'?: '1' | '2';
|
|
1367
1394
|
/** OAuth access token. */
|
|
1368
1395
|
access_token?: string;
|
|
1369
1396
|
/** Data format for response. */
|
|
1370
|
-
alt?:
|
|
1397
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1371
1398
|
/** JSONP */
|
|
1372
1399
|
callback?: string;
|
|
1373
1400
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1393,11 +1420,11 @@ declare namespace gapi.client {
|
|
|
1393
1420
|
testIamPermissions(
|
|
1394
1421
|
request: {
|
|
1395
1422
|
/** V1 error format. */
|
|
1396
|
-
'$.xgafv'?:
|
|
1423
|
+
'$.xgafv'?: '1' | '2';
|
|
1397
1424
|
/** OAuth access token. */
|
|
1398
1425
|
access_token?: string;
|
|
1399
1426
|
/** Data format for response. */
|
|
1400
|
-
alt?:
|
|
1427
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1401
1428
|
/** JSONP */
|
|
1402
1429
|
callback?: string;
|
|
1403
1430
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1425,11 +1452,11 @@ declare namespace gapi.client {
|
|
|
1425
1452
|
/** Gets information about a location. */
|
|
1426
1453
|
get(request?: {
|
|
1427
1454
|
/** V1 error format. */
|
|
1428
|
-
'$.xgafv'?:
|
|
1455
|
+
'$.xgafv'?: '1' | '2';
|
|
1429
1456
|
/** OAuth access token. */
|
|
1430
1457
|
access_token?: string;
|
|
1431
1458
|
/** Data format for response. */
|
|
1432
|
-
alt?:
|
|
1459
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1433
1460
|
/** JSONP */
|
|
1434
1461
|
callback?: string;
|
|
1435
1462
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1452,11 +1479,11 @@ declare namespace gapi.client {
|
|
|
1452
1479
|
/** Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured. */
|
|
1453
1480
|
getCmekConfig(request?: {
|
|
1454
1481
|
/** V1 error format. */
|
|
1455
|
-
'$.xgafv'?:
|
|
1482
|
+
'$.xgafv'?: '1' | '2';
|
|
1456
1483
|
/** OAuth access token. */
|
|
1457
1484
|
access_token?: string;
|
|
1458
1485
|
/** Data format for response. */
|
|
1459
|
-
alt?:
|
|
1486
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1460
1487
|
/** JSONP */
|
|
1461
1488
|
callback?: string;
|
|
1462
1489
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1476,14 +1503,14 @@ declare namespace gapi.client {
|
|
|
1476
1503
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1477
1504
|
uploadType?: string;
|
|
1478
1505
|
}): Request<CmekConfig>;
|
|
1479
|
-
/** Lists information about the supported locations for this service. */
|
|
1506
|
+
/** Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project. */
|
|
1480
1507
|
list(request?: {
|
|
1481
1508
|
/** V1 error format. */
|
|
1482
|
-
'$.xgafv'?:
|
|
1509
|
+
'$.xgafv'?: '1' | '2';
|
|
1483
1510
|
/** OAuth access token. */
|
|
1484
1511
|
access_token?: string;
|
|
1485
1512
|
/** Data format for response. */
|
|
1486
|
-
alt?:
|
|
1513
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1487
1514
|
/** JSONP */
|
|
1488
1515
|
callback?: string;
|
|
1489
1516
|
/** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
|
|
@@ -1511,14 +1538,14 @@ declare namespace gapi.client {
|
|
|
1511
1538
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1512
1539
|
uploadType?: string;
|
|
1513
1540
|
}): Request<ListLocationsResponse>;
|
|
1514
|
-
/** Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key
|
|
1541
|
+
/** 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. */
|
|
1515
1542
|
updateCmekConfig(request: {
|
|
1516
1543
|
/** V1 error format. */
|
|
1517
|
-
'$.xgafv'?:
|
|
1544
|
+
'$.xgafv'?: '1' | '2';
|
|
1518
1545
|
/** OAuth access token. */
|
|
1519
1546
|
access_token?: string;
|
|
1520
1547
|
/** Data format for response. */
|
|
1521
|
-
alt?:
|
|
1548
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1522
1549
|
/** JSONP */
|
|
1523
1550
|
callback?: string;
|
|
1524
1551
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1545,11 +1572,11 @@ declare namespace gapi.client {
|
|
|
1545
1572
|
updateCmekConfig(
|
|
1546
1573
|
request: {
|
|
1547
1574
|
/** V1 error format. */
|
|
1548
|
-
'$.xgafv'?:
|
|
1575
|
+
'$.xgafv'?: '1' | '2';
|
|
1549
1576
|
/** OAuth access token. */
|
|
1550
1577
|
access_token?: string;
|
|
1551
1578
|
/** Data format for response. */
|
|
1552
|
-
alt?:
|
|
1579
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1553
1580
|
/** JSONP */
|
|
1554
1581
|
callback?: string;
|
|
1555
1582
|
/** Selector specifying which fields to include in a partial response. */
|