@maxim_mazurok/gapi.client.cloudtasks-v2beta2 0.0.20220916 → 0.0.20220923
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 +73 -2
- package/package.json +1 -1
- package/tests.ts +16 -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: 20220923
|
|
14
13
|
|
|
15
14
|
/// <reference types="gapi.client" />
|
|
16
15
|
|
|
@@ -680,6 +679,76 @@ declare namespace gapi.client {
|
|
|
680
679
|
/** Scheme override. When specified, the Uri scheme is replaced by the provided value. */
|
|
681
680
|
scheme?: string;
|
|
682
681
|
}
|
|
682
|
+
interface QueueResource {
|
|
683
|
+
/**
|
|
684
|
+
* 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
|
|
685
|
+
* versions before 322.0.0. New clients should use CreateQueue instead of this method.
|
|
686
|
+
*/
|
|
687
|
+
update(request: {
|
|
688
|
+
/** V1 error format. */
|
|
689
|
+
"$.xgafv"?: string;
|
|
690
|
+
/** OAuth access token. */
|
|
691
|
+
access_token?: string;
|
|
692
|
+
/** Data format for response. */
|
|
693
|
+
alt?: string;
|
|
694
|
+
/**
|
|
695
|
+
* 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
|
|
696
|
+
* which to make the request.
|
|
697
|
+
*/
|
|
698
|
+
appId?: string;
|
|
699
|
+
/** JSONP */
|
|
700
|
+
callback?: string;
|
|
701
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
702
|
+
fields?: string;
|
|
703
|
+
/** 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. */
|
|
704
|
+
key?: string;
|
|
705
|
+
/** OAuth 2.0 token for the current user. */
|
|
706
|
+
oauth_token?: string;
|
|
707
|
+
/** Returns response with indentations and line breaks. */
|
|
708
|
+
prettyPrint?: boolean;
|
|
709
|
+
/** 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. */
|
|
710
|
+
quotaUser?: string;
|
|
711
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
712
|
+
upload_protocol?: string;
|
|
713
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
714
|
+
uploadType?: string;
|
|
715
|
+
/** Request body */
|
|
716
|
+
resource: HttpBody;
|
|
717
|
+
}): Request<{}>;
|
|
718
|
+
update(request: {
|
|
719
|
+
/** V1 error format. */
|
|
720
|
+
"$.xgafv"?: string;
|
|
721
|
+
/** OAuth access token. */
|
|
722
|
+
access_token?: string;
|
|
723
|
+
/** Data format for response. */
|
|
724
|
+
alt?: string;
|
|
725
|
+
/**
|
|
726
|
+
* 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
|
|
727
|
+
* which to make the request.
|
|
728
|
+
*/
|
|
729
|
+
appId?: string;
|
|
730
|
+
/** JSONP */
|
|
731
|
+
callback?: string;
|
|
732
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
733
|
+
fields?: string;
|
|
734
|
+
/** 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. */
|
|
735
|
+
key?: string;
|
|
736
|
+
/** OAuth 2.0 token for the current user. */
|
|
737
|
+
oauth_token?: string;
|
|
738
|
+
/** Returns response with indentations and line breaks. */
|
|
739
|
+
prettyPrint?: boolean;
|
|
740
|
+
/** 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. */
|
|
741
|
+
quotaUser?: string;
|
|
742
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
743
|
+
upload_protocol?: string;
|
|
744
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
745
|
+
uploadType?: string;
|
|
746
|
+
},
|
|
747
|
+
body: HttpBody): Request<{}>;
|
|
748
|
+
}
|
|
749
|
+
interface ApiResource {
|
|
750
|
+
queue: QueueResource;
|
|
751
|
+
}
|
|
683
752
|
interface TasksResource {
|
|
684
753
|
/**
|
|
685
754
|
* 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
|
|
@@ -1822,6 +1891,8 @@ declare namespace gapi.client {
|
|
|
1822
1891
|
locations: LocationsResource;
|
|
1823
1892
|
}
|
|
1824
1893
|
|
|
1894
|
+
const api: ApiResource;
|
|
1895
|
+
|
|
1825
1896
|
const projects: ProjectsResource;
|
|
1826
1897
|
}
|
|
1827
1898
|
}
|
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: 20220923
|
|
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",
|