@maxim_mazurok/gapi.client.cloudtasks-v2beta2 0.2.20260306 → 0.2.20260609
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 +6 -6
- package/package.json +1 -1
- package/readme.md +17 -0
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: 20260609
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -145,7 +145,7 @@ declare namespace gapi.client {
|
|
|
145
145
|
/** The HTTP request/response body as raw binary. */
|
|
146
146
|
data?: string;
|
|
147
147
|
/** Application specific response metadata. Must be set in the first response for streaming APIs. */
|
|
148
|
-
extensions?:
|
|
148
|
+
extensions?: {[P in string]: any}[];
|
|
149
149
|
}
|
|
150
150
|
interface HttpRequest {
|
|
151
151
|
/** HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a task with an incompatible HttpMethod. */
|
|
@@ -281,7 +281,7 @@ declare namespace gapi.client {
|
|
|
281
281
|
pullTarget?: any;
|
|
282
282
|
/** Output only. The last time this queue was purged. All tasks that were created before this time were purged. A queue can be purged using PurgeQueue, the [App Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). Purge time will be truncated to the nearest microsecond. Purge time will be unset if the queue has never been purged. */
|
|
283
283
|
purgeTime?: string;
|
|
284
|
-
/** Rate limits for task dispatches. rate_limits and retry_config are related because they both control task attempts however they control how tasks are attempted in different ways: * rate_limits controls the total rate of dispatches from a queue (i.e. all traffic dispatched from the queue, regardless of whether the dispatch is from a first attempt or a retry). * retry_config controls what happens to particular
|
|
284
|
+
/** Rate limits for task dispatches. rate_limits and retry_config are related because they both control task attempts however they control how tasks are attempted in different ways: * rate_limits controls the total rate of dispatches from a queue (i.e. all traffic dispatched from the queue, regardless of whether the dispatch is from a first attempt or a retry). * retry_config controls what happens to a particular task after its first attempt fails. That is, retry_config controls task retries (the second attempt, third attempt, etc). */
|
|
285
285
|
rateLimits?: RateLimits;
|
|
286
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). */
|
|
287
287
|
retryConfig?: RetryConfig;
|
|
@@ -349,7 +349,7 @@ declare namespace gapi.client {
|
|
|
349
349
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
350
350
|
code?: number;
|
|
351
351
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
352
|
-
details?:
|
|
352
|
+
details?: {[P in string]: any}[];
|
|
353
353
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
354
354
|
message?: string;
|
|
355
355
|
}
|
|
@@ -1503,7 +1503,7 @@ declare namespace gapi.client {
|
|
|
1503
1503
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1504
1504
|
uploadType?: string;
|
|
1505
1505
|
}): Request<CmekConfig>;
|
|
1506
|
-
/** Lists information about the supported locations for this service. This method
|
|
1506
|
+
/** 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. */
|
|
1507
1507
|
list(request?: {
|
|
1508
1508
|
/** V1 error format. */
|
|
1509
1509
|
'$.xgafv'?: '1' | '2';
|
|
@@ -1513,7 +1513,7 @@ declare namespace gapi.client {
|
|
|
1513
1513
|
alt?: 'json' | 'media' | 'proto';
|
|
1514
1514
|
/** JSONP */
|
|
1515
1515
|
callback?: string;
|
|
1516
|
-
/** Optional. Do not use this field
|
|
1516
|
+
/** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
|
|
1517
1517
|
extraLocationTypes?: string | string[];
|
|
1518
1518
|
/** Selector specifying which fields to include in a partial response. */
|
|
1519
1519
|
fields?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Cloud Tasks API:
|
|
|
11
11
|
npm install @types/gapi.client.cloudtasks-v2beta2 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.cloudtasks-v2beta2"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|