@maxim_mazurok/gapi.client.cloudtasks-v2beta2 0.0.20220916 → 0.0.20221014
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 +76 -3
- package/package.json +1 -1
- package/tests.ts +18 -1
package/index.d.ts
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
5
5
|
// Declan Vong <https://github.com/declanvong>
|
|
6
6
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
-
// TypeScript Version: 2.8
|
|
8
7
|
|
|
9
8
|
// IMPORTANT
|
|
10
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
11
|
// Generated from: https://cloudtasks.googleapis.com/$discovery/rest?version=v2beta2
|
|
13
|
-
// Revision:
|
|
12
|
+
// Revision: 20221014
|
|
14
13
|
|
|
15
14
|
/// <reference types="gapi.client" />
|
|
16
15
|
|
|
@@ -290,7 +289,7 @@ declare namespace gapi.client {
|
|
|
290
289
|
* type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
|
|
291
290
|
*/
|
|
292
291
|
oidcToken?: OidcToken;
|
|
293
|
-
/** Uri override. When specified modifies the execution Uri for all the tasks in the queue. */
|
|
292
|
+
/** Uri override. When specified, modifies the execution Uri for all the tasks in the queue. */
|
|
294
293
|
uriOverride?: UriOverride;
|
|
295
294
|
}
|
|
296
295
|
interface LeaseTasksRequest {
|
|
@@ -679,6 +678,78 @@ declare namespace gapi.client {
|
|
|
679
678
|
query?: string;
|
|
680
679
|
/** Scheme override. When specified, the Uri scheme is replaced by the provided value. */
|
|
681
680
|
scheme?: string;
|
|
681
|
+
/** Uri Override Enforce Mode Determines the Target UriOverride mode. */
|
|
682
|
+
uriOverrideEnforceMode?: string;
|
|
683
|
+
}
|
|
684
|
+
interface QueueResource {
|
|
685
|
+
/**
|
|
686
|
+
* 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
|
|
687
|
+
* versions before 322.0.0. New clients should use CreateQueue instead of this method.
|
|
688
|
+
*/
|
|
689
|
+
update(request: {
|
|
690
|
+
/** V1 error format. */
|
|
691
|
+
"$.xgafv"?: string;
|
|
692
|
+
/** OAuth access token. */
|
|
693
|
+
access_token?: string;
|
|
694
|
+
/** Data format for response. */
|
|
695
|
+
alt?: string;
|
|
696
|
+
/**
|
|
697
|
+
* 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
|
|
698
|
+
* which to make the request.
|
|
699
|
+
*/
|
|
700
|
+
appId?: string;
|
|
701
|
+
/** JSONP */
|
|
702
|
+
callback?: string;
|
|
703
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
704
|
+
fields?: string;
|
|
705
|
+
/** 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. */
|
|
706
|
+
key?: string;
|
|
707
|
+
/** OAuth 2.0 token for the current user. */
|
|
708
|
+
oauth_token?: string;
|
|
709
|
+
/** Returns response with indentations and line breaks. */
|
|
710
|
+
prettyPrint?: boolean;
|
|
711
|
+
/** 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. */
|
|
712
|
+
quotaUser?: string;
|
|
713
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
714
|
+
upload_protocol?: string;
|
|
715
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
716
|
+
uploadType?: string;
|
|
717
|
+
/** Request body */
|
|
718
|
+
resource: HttpBody;
|
|
719
|
+
}): Request<{}>;
|
|
720
|
+
update(request: {
|
|
721
|
+
/** V1 error format. */
|
|
722
|
+
"$.xgafv"?: string;
|
|
723
|
+
/** OAuth access token. */
|
|
724
|
+
access_token?: string;
|
|
725
|
+
/** Data format for response. */
|
|
726
|
+
alt?: string;
|
|
727
|
+
/**
|
|
728
|
+
* 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
|
|
729
|
+
* which to make the request.
|
|
730
|
+
*/
|
|
731
|
+
appId?: string;
|
|
732
|
+
/** JSONP */
|
|
733
|
+
callback?: string;
|
|
734
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
735
|
+
fields?: string;
|
|
736
|
+
/** 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. */
|
|
737
|
+
key?: string;
|
|
738
|
+
/** OAuth 2.0 token for the current user. */
|
|
739
|
+
oauth_token?: string;
|
|
740
|
+
/** Returns response with indentations and line breaks. */
|
|
741
|
+
prettyPrint?: boolean;
|
|
742
|
+
/** 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. */
|
|
743
|
+
quotaUser?: string;
|
|
744
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
745
|
+
upload_protocol?: string;
|
|
746
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
747
|
+
uploadType?: string;
|
|
748
|
+
},
|
|
749
|
+
body: HttpBody): Request<{}>;
|
|
750
|
+
}
|
|
751
|
+
interface ApiResource {
|
|
752
|
+
queue: QueueResource;
|
|
682
753
|
}
|
|
683
754
|
interface TasksResource {
|
|
684
755
|
/**
|
|
@@ -1822,6 +1893,8 @@ declare namespace gapi.client {
|
|
|
1822
1893
|
locations: LocationsResource;
|
|
1823
1894
|
}
|
|
1824
1895
|
|
|
1896
|
+
const api: ApiResource;
|
|
1897
|
+
|
|
1825
1898
|
const projects: ProjectsResource;
|
|
1826
1899
|
}
|
|
1827
1900
|
}
|
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: 20221014
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -29,6 +29,21 @@ gapi.load('client', async () => {
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
|
+
/**
|
|
33
|
+
* 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
|
|
34
|
+
* before 322.0.0. New clients should use CreateQueue instead of this method.
|
|
35
|
+
*/
|
|
36
|
+
await gapi.client.cloudtasks.api.queue.update({
|
|
37
|
+
appId: "Test string",
|
|
38
|
+
}, {
|
|
39
|
+
contentType: "Test string",
|
|
40
|
+
data: "Test string",
|
|
41
|
+
extensions: [
|
|
42
|
+
{
|
|
43
|
+
A: 42
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
});
|
|
32
47
|
/** Gets information about a location. */
|
|
33
48
|
await gapi.client.cloudtasks.projects.locations.get({
|
|
34
49
|
name: "Test string",
|
|
@@ -80,6 +95,7 @@ gapi.load('client', async () => {
|
|
|
80
95
|
port: "Test string",
|
|
81
96
|
query: "Test string",
|
|
82
97
|
scheme: "Test string",
|
|
98
|
+
uriOverrideEnforceMode: "Test string",
|
|
83
99
|
},
|
|
84
100
|
},
|
|
85
101
|
name: "Test string",
|
|
@@ -184,6 +200,7 @@ gapi.load('client', async () => {
|
|
|
184
200
|
port: "Test string",
|
|
185
201
|
query: "Test string",
|
|
186
202
|
scheme: "Test string",
|
|
203
|
+
uriOverrideEnforceMode: "Test string",
|
|
187
204
|
},
|
|
188
205
|
},
|
|
189
206
|
name: "Test string",
|