@maxim_mazurok/gapi.client.cloudtasks-v2beta2 0.0.20221208 → 0.0.20230201
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 +37 -30
- package/package.json +1 -1
- package/tests.ts +13 -5
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: 20230201
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -131,14 +131,14 @@ declare namespace gapi.client {
|
|
|
131
131
|
* Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
|
|
132
132
|
* `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
|
|
133
133
|
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
|
|
134
|
-
* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `
|
|
135
|
-
*
|
|
136
|
-
* `
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* `
|
|
141
|
-
*
|
|
134
|
+
* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
|
135
|
+
* users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has
|
|
136
|
+
* been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains
|
|
137
|
+
* the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
|
|
138
|
+
* deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
|
|
139
|
+
* the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that
|
|
140
|
+
* has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
|
|
141
|
+
* retains the role in the binding.
|
|
142
142
|
*/
|
|
143
143
|
members?: string[];
|
|
144
144
|
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
@@ -236,11 +236,11 @@ declare namespace gapi.client {
|
|
|
236
236
|
/**
|
|
237
237
|
* 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
|
|
238
238
|
* 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: *
|
|
239
|
-
* Any header that is prefixed with "X-
|
|
240
|
-
*
|
|
241
|
-
* `
|
|
242
|
-
*
|
|
243
|
-
*
|
|
239
|
+
* 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
|
|
240
|
+
* 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"`. *
|
|
241
|
+
* `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
|
|
242
|
+
* 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
|
|
243
|
+
* specified using comma-separated values. The size of the headers must be less than 80KB.
|
|
244
244
|
*/
|
|
245
245
|
headers?: { [P in string]: string };
|
|
246
246
|
/** The HTTP method to use for the request. The default is POST. */
|
|
@@ -266,12 +266,11 @@ declare namespace gapi.client {
|
|
|
266
266
|
/**
|
|
267
267
|
* 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
|
|
268
268
|
* 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
|
|
269
|
-
* is: * Any header that is prefixed with "X-
|
|
270
|
-
*
|
|
271
|
-
* `
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
* queue.
|
|
269
|
+
* 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
|
|
270
|
+
* 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"`. *
|
|
271
|
+
* `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
|
|
272
|
+
* 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
|
|
273
|
+
* 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.
|
|
275
274
|
*/
|
|
276
275
|
headerOverrides?: HeaderOverride[];
|
|
277
276
|
/**
|
|
@@ -379,6 +378,10 @@ declare namespace gapi.client {
|
|
|
379
378
|
*/
|
|
380
379
|
serviceAccountEmail?: string;
|
|
381
380
|
}
|
|
381
|
+
interface PathOverride {
|
|
382
|
+
/** The URI path (e.g., a/b/c). Default is Empty string. */
|
|
383
|
+
path?: string;
|
|
384
|
+
}
|
|
382
385
|
// tslint:disable-next-line:no-empty-interface
|
|
383
386
|
interface PauseQueueRequest {
|
|
384
387
|
}
|
|
@@ -426,6 +429,10 @@ declare namespace gapi.client {
|
|
|
426
429
|
// tslint:disable-next-line:no-empty-interface
|
|
427
430
|
interface PurgeQueueRequest {
|
|
428
431
|
}
|
|
432
|
+
interface QueryOverride {
|
|
433
|
+
/** The query parameters (e.g., qparam1=123&qparam2=456). Default is Empty string. */
|
|
434
|
+
queryParams?: string;
|
|
435
|
+
}
|
|
429
436
|
interface Queue {
|
|
430
437
|
/** App Engine HTTP target. An App Engine queue is a queue that has an AppEngineHttpTarget. */
|
|
431
438
|
appEngineHttpTarget?: AppEngineHttpTarget;
|
|
@@ -663,22 +670,22 @@ declare namespace gapi.client {
|
|
|
663
670
|
}
|
|
664
671
|
interface UriOverride {
|
|
665
672
|
/**
|
|
666
|
-
* Host override. When specified, the host part of
|
|
667
|
-
* overridden
|
|
673
|
+
* Host override. When specified, will replace the host part of the task URL. For example, if the task URL is "https://www.google.com", and host value is set to "example.net", the
|
|
674
|
+
* overridden URI will be changed to "https://example.net". Host value cannot be an empty string.
|
|
668
675
|
*/
|
|
669
676
|
host?: string;
|
|
670
|
-
/**
|
|
671
|
-
|
|
677
|
+
/** URI path. When specified, will replace the existing path of the task URL. Setting the path value to an empty string clears the URI path segment. */
|
|
678
|
+
pathOverride?: PathOverride;
|
|
672
679
|
/**
|
|
673
|
-
* Port override. When specified, the port part of
|
|
674
|
-
* http://www.google.com:123/foo.
|
|
680
|
+
* Port override. When specified, will replace the port part of the task URI. For instance, for a URI http://www.google.com/foo and port=123, the overridden URI becomes
|
|
681
|
+
* http://www.google.com:123/foo. Note that the port value must be a positive integer. Setting the port to 0 (Zero) clears the URI port.
|
|
675
682
|
*/
|
|
676
683
|
port?: string;
|
|
677
|
-
/**
|
|
678
|
-
|
|
679
|
-
/** Scheme override. When specified, the
|
|
684
|
+
/** URI Query. When specified, will replace the query part of the task URI. Setting the query value to an empty string clears the URI query segment. */
|
|
685
|
+
queryOverride?: QueryOverride;
|
|
686
|
+
/** Scheme override. When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS). */
|
|
680
687
|
scheme?: string;
|
|
681
|
-
/**
|
|
688
|
+
/** URI Override Enforce Mode When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS. */
|
|
682
689
|
uriOverrideEnforceMode?: string;
|
|
683
690
|
}
|
|
684
691
|
interface QueueResource {
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230201
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -91,9 +91,13 @@ gapi.load('client', async () => {
|
|
|
91
91
|
},
|
|
92
92
|
uriOverride: {
|
|
93
93
|
host: "Test string",
|
|
94
|
-
|
|
94
|
+
pathOverride: {
|
|
95
|
+
path: "Test string",
|
|
96
|
+
},
|
|
95
97
|
port: "Test string",
|
|
96
|
-
|
|
98
|
+
queryOverride: {
|
|
99
|
+
queryParams: "Test string",
|
|
100
|
+
},
|
|
97
101
|
scheme: "Test string",
|
|
98
102
|
uriOverrideEnforceMode: "Test string",
|
|
99
103
|
},
|
|
@@ -196,9 +200,13 @@ gapi.load('client', async () => {
|
|
|
196
200
|
},
|
|
197
201
|
uriOverride: {
|
|
198
202
|
host: "Test string",
|
|
199
|
-
|
|
203
|
+
pathOverride: {
|
|
204
|
+
path: "Test string",
|
|
205
|
+
},
|
|
200
206
|
port: "Test string",
|
|
201
|
-
|
|
207
|
+
queryOverride: {
|
|
208
|
+
queryParams: "Test string",
|
|
209
|
+
},
|
|
202
210
|
scheme: "Test string",
|
|
203
211
|
uriOverrideEnforceMode: "Test string",
|
|
204
212
|
},
|