@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20220808 → 0.0.20220826
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 -1
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +43 -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: 20220826
|
|
14
14
|
|
|
15
15
|
/// <reference types="gapi.client" />
|
|
16
16
|
|
|
@@ -324,6 +324,16 @@ declare namespace gapi.client {
|
|
|
324
324
|
workerPool?: string;
|
|
325
325
|
}
|
|
326
326
|
interface BuildStep {
|
|
327
|
+
/**
|
|
328
|
+
* Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take
|
|
329
|
+
* precedence.
|
|
330
|
+
*/
|
|
331
|
+
allowExitCodes?: number[];
|
|
332
|
+
/**
|
|
333
|
+
* Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still
|
|
334
|
+
* have a failure status. Error information will be reported in the failure_detail field.
|
|
335
|
+
*/
|
|
336
|
+
allowFailure?: boolean;
|
|
327
337
|
/**
|
|
328
338
|
* A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that
|
|
329
339
|
* entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
|
|
@@ -339,6 +349,8 @@ declare namespace gapi.client {
|
|
|
339
349
|
entrypoint?: string;
|
|
340
350
|
/** A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". */
|
|
341
351
|
env?: string[];
|
|
352
|
+
/** Output only. Return code from running the step. */
|
|
353
|
+
exitCode?: number;
|
|
342
354
|
/** Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency. */
|
|
343
355
|
id?: string;
|
|
344
356
|
/**
|
|
@@ -1115,6 +1127,64 @@ declare namespace gapi.client {
|
|
|
1115
1127
|
/** Output only. Time at which the request to update the `WorkerPool` was received. */
|
|
1116
1128
|
updateTime?: string;
|
|
1117
1129
|
}
|
|
1130
|
+
interface GithubDotComWebhookResource {
|
|
1131
|
+
/** ReceiveGitHubDotComWebhook is called when the API receives a github.com webhook. */
|
|
1132
|
+
receive(request: {
|
|
1133
|
+
/** V1 error format. */
|
|
1134
|
+
"$.xgafv"?: string;
|
|
1135
|
+
/** OAuth access token. */
|
|
1136
|
+
access_token?: string;
|
|
1137
|
+
/** Data format for response. */
|
|
1138
|
+
alt?: string;
|
|
1139
|
+
/** JSONP */
|
|
1140
|
+
callback?: string;
|
|
1141
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1142
|
+
fields?: string;
|
|
1143
|
+
/** 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. */
|
|
1144
|
+
key?: string;
|
|
1145
|
+
/** OAuth 2.0 token for the current user. */
|
|
1146
|
+
oauth_token?: string;
|
|
1147
|
+
/** Returns response with indentations and line breaks. */
|
|
1148
|
+
prettyPrint?: boolean;
|
|
1149
|
+
/** 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. */
|
|
1150
|
+
quotaUser?: string;
|
|
1151
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1152
|
+
upload_protocol?: string;
|
|
1153
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1154
|
+
uploadType?: string;
|
|
1155
|
+
/** For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation. */
|
|
1156
|
+
webhookKey?: string;
|
|
1157
|
+
/** Request body */
|
|
1158
|
+
resource: HttpBody;
|
|
1159
|
+
}): Request<{}>;
|
|
1160
|
+
receive(request: {
|
|
1161
|
+
/** V1 error format. */
|
|
1162
|
+
"$.xgafv"?: string;
|
|
1163
|
+
/** OAuth access token. */
|
|
1164
|
+
access_token?: string;
|
|
1165
|
+
/** Data format for response. */
|
|
1166
|
+
alt?: string;
|
|
1167
|
+
/** JSONP */
|
|
1168
|
+
callback?: string;
|
|
1169
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1170
|
+
fields?: string;
|
|
1171
|
+
/** 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. */
|
|
1172
|
+
key?: string;
|
|
1173
|
+
/** OAuth 2.0 token for the current user. */
|
|
1174
|
+
oauth_token?: string;
|
|
1175
|
+
/** Returns response with indentations and line breaks. */
|
|
1176
|
+
prettyPrint?: boolean;
|
|
1177
|
+
/** 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. */
|
|
1178
|
+
quotaUser?: string;
|
|
1179
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1180
|
+
upload_protocol?: string;
|
|
1181
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1182
|
+
uploadType?: string;
|
|
1183
|
+
/** For GitHub Enterprise webhooks, this key is used to associate the webhook request with the GitHubEnterpriseConfig to use for validation. */
|
|
1184
|
+
webhookKey?: string;
|
|
1185
|
+
},
|
|
1186
|
+
body: HttpBody): Request<{}>;
|
|
1187
|
+
}
|
|
1118
1188
|
interface LocationsResource {
|
|
1119
1189
|
/** ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook. */
|
|
1120
1190
|
regionalWebhook(request: {
|
|
@@ -3834,6 +3904,8 @@ declare namespace gapi.client {
|
|
|
3834
3904
|
body: HttpBody): Request<{}>;
|
|
3835
3905
|
}
|
|
3836
3906
|
|
|
3907
|
+
const githubDotComWebhook: GithubDotComWebhookResource;
|
|
3908
|
+
|
|
3837
3909
|
const locations: LocationsResource;
|
|
3838
3910
|
|
|
3839
3911
|
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: 20220826
|
|
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",
|
|
@@ -269,6 +281,10 @@ gapi.load('client', async () => {
|
|
|
269
281
|
statusDetail: "Test string",
|
|
270
282
|
steps: [
|
|
271
283
|
{
|
|
284
|
+
allowExitCodes: [
|
|
285
|
+
42
|
|
286
|
+
],
|
|
287
|
+
allowFailure: true,
|
|
272
288
|
args: [
|
|
273
289
|
"Test string"
|
|
274
290
|
],
|
|
@@ -277,6 +293,7 @@ gapi.load('client', async () => {
|
|
|
277
293
|
env: [
|
|
278
294
|
"Test string"
|
|
279
295
|
],
|
|
296
|
+
exitCode: 42,
|
|
280
297
|
id: "Test string",
|
|
281
298
|
name: "Test string",
|
|
282
299
|
pullTiming: {
|
|
@@ -742,6 +759,10 @@ gapi.load('client', async () => {
|
|
|
742
759
|
statusDetail: "Test string",
|
|
743
760
|
steps: [
|
|
744
761
|
{
|
|
762
|
+
allowExitCodes: [
|
|
763
|
+
42
|
|
764
|
+
],
|
|
765
|
+
allowFailure: true,
|
|
745
766
|
args: [
|
|
746
767
|
"Test string"
|
|
747
768
|
],
|
|
@@ -750,6 +771,7 @@ gapi.load('client', async () => {
|
|
|
750
771
|
env: [
|
|
751
772
|
"Test string"
|
|
752
773
|
],
|
|
774
|
+
exitCode: 42,
|
|
753
775
|
id: "Test string",
|
|
754
776
|
name: "Test string",
|
|
755
777
|
pullTiming: {
|
|
@@ -1138,6 +1160,10 @@ gapi.load('client', async () => {
|
|
|
1138
1160
|
statusDetail: "Test string",
|
|
1139
1161
|
steps: [
|
|
1140
1162
|
{
|
|
1163
|
+
allowExitCodes: [
|
|
1164
|
+
42
|
|
1165
|
+
],
|
|
1166
|
+
allowFailure: true,
|
|
1141
1167
|
args: [
|
|
1142
1168
|
"Test string"
|
|
1143
1169
|
],
|
|
@@ -1146,6 +1172,7 @@ gapi.load('client', async () => {
|
|
|
1146
1172
|
env: [
|
|
1147
1173
|
"Test string"
|
|
1148
1174
|
],
|
|
1175
|
+
exitCode: 42,
|
|
1149
1176
|
id: "Test string",
|
|
1150
1177
|
name: "Test string",
|
|
1151
1178
|
pullTiming: {
|
|
@@ -1521,6 +1548,10 @@ gapi.load('client', async () => {
|
|
|
1521
1548
|
statusDetail: "Test string",
|
|
1522
1549
|
steps: [
|
|
1523
1550
|
{
|
|
1551
|
+
allowExitCodes: [
|
|
1552
|
+
42
|
|
1553
|
+
],
|
|
1554
|
+
allowFailure: true,
|
|
1524
1555
|
args: [
|
|
1525
1556
|
"Test string"
|
|
1526
1557
|
],
|
|
@@ -1529,6 +1560,7 @@ gapi.load('client', async () => {
|
|
|
1529
1560
|
env: [
|
|
1530
1561
|
"Test string"
|
|
1531
1562
|
],
|
|
1563
|
+
exitCode: 42,
|
|
1532
1564
|
id: "Test string",
|
|
1533
1565
|
name: "Test string",
|
|
1534
1566
|
pullTiming: {
|
|
@@ -1994,6 +2026,10 @@ gapi.load('client', async () => {
|
|
|
1994
2026
|
statusDetail: "Test string",
|
|
1995
2027
|
steps: [
|
|
1996
2028
|
{
|
|
2029
|
+
allowExitCodes: [
|
|
2030
|
+
42
|
|
2031
|
+
],
|
|
2032
|
+
allowFailure: true,
|
|
1997
2033
|
args: [
|
|
1998
2034
|
"Test string"
|
|
1999
2035
|
],
|
|
@@ -2002,6 +2038,7 @@ gapi.load('client', async () => {
|
|
|
2002
2038
|
env: [
|
|
2003
2039
|
"Test string"
|
|
2004
2040
|
],
|
|
2041
|
+
exitCode: 42,
|
|
2005
2042
|
id: "Test string",
|
|
2006
2043
|
name: "Test string",
|
|
2007
2044
|
pullTiming: {
|
|
@@ -2376,6 +2413,10 @@ gapi.load('client', async () => {
|
|
|
2376
2413
|
statusDetail: "Test string",
|
|
2377
2414
|
steps: [
|
|
2378
2415
|
{
|
|
2416
|
+
allowExitCodes: [
|
|
2417
|
+
42
|
|
2418
|
+
],
|
|
2419
|
+
allowFailure: true,
|
|
2379
2420
|
args: [
|
|
2380
2421
|
"Test string"
|
|
2381
2422
|
],
|
|
@@ -2384,6 +2425,7 @@ gapi.load('client', async () => {
|
|
|
2384
2425
|
env: [
|
|
2385
2426
|
"Test string"
|
|
2386
2427
|
],
|
|
2428
|
+
exitCode: 42,
|
|
2387
2429
|
id: "Test string",
|
|
2388
2430
|
name: "Test string",
|
|
2389
2431
|
pullTiming: {
|