@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20220730 → 0.0.20220818
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 +62 -5
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +13 -1
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
11
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
12
|
// Generated from: https://cloudbuild.googleapis.com/$discovery/rest?version=v1
|
|
13
|
-
// Revision:
|
|
13
|
+
// Revision: 20220818
|
|
14
14
|
|
|
15
15
|
/// <reference types="gapi.client" />
|
|
16
16
|
|
|
@@ -1115,6 +1115,64 @@ declare namespace gapi.client {
|
|
|
1115
1115
|
/** Output only. Time at which the request to update the `WorkerPool` was received. */
|
|
1116
1116
|
updateTime?: string;
|
|
1117
1117
|
}
|
|
1118
|
+
interface GithubDotComWebhookResource {
|
|
1119
|
+
/** ReceiveGitHubDotComWebhook is called when the API receives a github.com webhook. */
|
|
1120
|
+
receive(request: {
|
|
1121
|
+
/** V1 error format. */
|
|
1122
|
+
"$.xgafv"?: string;
|
|
1123
|
+
/** OAuth access token. */
|
|
1124
|
+
access_token?: string;
|
|
1125
|
+
/** Data format for response. */
|
|
1126
|
+
alt?: string;
|
|
1127
|
+
/** JSONP */
|
|
1128
|
+
callback?: string;
|
|
1129
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1130
|
+
fields?: string;
|
|
1131
|
+
/** 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. */
|
|
1132
|
+
key?: string;
|
|
1133
|
+
/** OAuth 2.0 token for the current user. */
|
|
1134
|
+
oauth_token?: string;
|
|
1135
|
+
/** Returns response with indentations and line breaks. */
|
|
1136
|
+
prettyPrint?: boolean;
|
|
1137
|
+
/** 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. */
|
|
1138
|
+
quotaUser?: string;
|
|
1139
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1140
|
+
upload_protocol?: string;
|
|
1141
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1142
|
+
uploadType?: string;
|
|
1143
|
+
/** For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation. */
|
|
1144
|
+
webhookKey?: string;
|
|
1145
|
+
/** Request body */
|
|
1146
|
+
resource: HttpBody;
|
|
1147
|
+
}): Request<{}>;
|
|
1148
|
+
receive(request: {
|
|
1149
|
+
/** V1 error format. */
|
|
1150
|
+
"$.xgafv"?: string;
|
|
1151
|
+
/** OAuth access token. */
|
|
1152
|
+
access_token?: string;
|
|
1153
|
+
/** Data format for response. */
|
|
1154
|
+
alt?: string;
|
|
1155
|
+
/** JSONP */
|
|
1156
|
+
callback?: string;
|
|
1157
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1158
|
+
fields?: string;
|
|
1159
|
+
/** 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. */
|
|
1160
|
+
key?: string;
|
|
1161
|
+
/** OAuth 2.0 token for the current user. */
|
|
1162
|
+
oauth_token?: string;
|
|
1163
|
+
/** Returns response with indentations and line breaks. */
|
|
1164
|
+
prettyPrint?: boolean;
|
|
1165
|
+
/** 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. */
|
|
1166
|
+
quotaUser?: string;
|
|
1167
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1168
|
+
upload_protocol?: string;
|
|
1169
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1170
|
+
uploadType?: string;
|
|
1171
|
+
/** For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation. */
|
|
1172
|
+
webhookKey?: string;
|
|
1173
|
+
},
|
|
1174
|
+
body: HttpBody): Request<{}>;
|
|
1175
|
+
}
|
|
1118
1176
|
interface LocationsResource {
|
|
1119
1177
|
/** ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook. */
|
|
1120
1178
|
regionalWebhook(request: {
|
|
@@ -1892,10 +1950,7 @@ declare namespace gapi.client {
|
|
|
1892
1950
|
key?: string;
|
|
1893
1951
|
/** OAuth 2.0 token for the current user. */
|
|
1894
1952
|
oauth_token?: string;
|
|
1895
|
-
/**
|
|
1896
|
-
* The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 50 configs will be returned. The maximum value is 1000; values
|
|
1897
|
-
* above 1000 will be coerced to 1000.
|
|
1898
|
-
*/
|
|
1953
|
+
/** The maximum number of configs to return. The service may return fewer than this value. The maximum value is 1000; values above 1000 will be coerced to 1000. */
|
|
1899
1954
|
pageSize?: number;
|
|
1900
1955
|
/**
|
|
1901
1956
|
* A page token, received from a previous `ListBitbucketServerRepositoriesRequest` call. Provide this to retrieve the subsequent page. When paginating, all other parameters
|
|
@@ -3837,6 +3892,8 @@ declare namespace gapi.client {
|
|
|
3837
3892
|
body: HttpBody): Request<{}>;
|
|
3838
3893
|
}
|
|
3839
3894
|
|
|
3895
|
+
const githubDotComWebhook: GithubDotComWebhookResource;
|
|
3896
|
+
|
|
3840
3897
|
const locations: LocationsResource;
|
|
3841
3898
|
|
|
3842
3899
|
const operations: OperationsResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -66,6 +66,11 @@ After that you can use Cloud Build API resources: <!-- TODO: make this work for
|
|
|
66
66
|
|
|
67
67
|
```typescript
|
|
68
68
|
|
|
69
|
+
/*
|
|
70
|
+
ReceiveGitHubDotComWebhook is called when the API receives a github.com webhook.
|
|
71
|
+
*/
|
|
72
|
+
await gapi.client.cloudbuild.githubDotComWebhook.receive({ });
|
|
73
|
+
|
|
69
74
|
/*
|
|
70
75
|
ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook.
|
|
71
76
|
*/
|
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: 20220818
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -29,6 +29,18 @@ gapi.load('client', async () => {
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
|
+
/** ReceiveGitHubDotComWebhook is called when the API receives a github.com webhook. */
|
|
33
|
+
await gapi.client.cloudbuild.githubDotComWebhook.receive({
|
|
34
|
+
webhookKey: "Test string",
|
|
35
|
+
}, {
|
|
36
|
+
contentType: "Test string",
|
|
37
|
+
data: "Test string",
|
|
38
|
+
extensions: [
|
|
39
|
+
{
|
|
40
|
+
A: 42
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
});
|
|
32
44
|
/** ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook. */
|
|
33
45
|
await gapi.client.cloudbuild.locations.regionalWebhook({
|
|
34
46
|
location: "Test string",
|