@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20220730
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 +3848 -0
- package/package.json +20 -0
- package/readme.md +88 -0
- package/tests.ts +2559 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/tests.ts
ADDED
|
@@ -0,0 +1,2559 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.cloudbuild-v1 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220730
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://cloudbuild.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
+
/** now we can use gapi.client.cloudbuild */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
+
];
|
|
21
|
+
const immediate = false;
|
|
22
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
+
if (authResult && !authResult.error) {
|
|
24
|
+
/** handle successful authorization */
|
|
25
|
+
run();
|
|
26
|
+
} else {
|
|
27
|
+
/** handle authorization error */
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
async function run() {
|
|
32
|
+
/** ReceiveRegionalWebhook is called when the API receives a regional GitHub webhook. */
|
|
33
|
+
await gapi.client.cloudbuild.locations.regionalWebhook({
|
|
34
|
+
location: "Test string",
|
|
35
|
+
webhookKey: "Test string",
|
|
36
|
+
}, {
|
|
37
|
+
contentType: "Test string",
|
|
38
|
+
data: "Test string",
|
|
39
|
+
extensions: [
|
|
40
|
+
{
|
|
41
|
+
A: 42
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
|
|
47
|
+
* method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
|
|
48
|
+
* completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of
|
|
49
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
50
|
+
*/
|
|
51
|
+
await gapi.client.cloudbuild.operations.cancel({
|
|
52
|
+
name: "Test string",
|
|
53
|
+
}, {
|
|
54
|
+
});
|
|
55
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
56
|
+
await gapi.client.cloudbuild.operations.get({
|
|
57
|
+
name: "Test string",
|
|
58
|
+
});
|
|
59
|
+
/** Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done. */
|
|
60
|
+
await gapi.client.cloudbuild.projects.builds.approve({
|
|
61
|
+
name: "Test string",
|
|
62
|
+
}, {
|
|
63
|
+
approvalResult: {
|
|
64
|
+
approvalTime: "Test string",
|
|
65
|
+
approverAccount: "Test string",
|
|
66
|
+
comment: "Test string",
|
|
67
|
+
decision: "Test string",
|
|
68
|
+
url: "Test string",
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
/** Cancels a build in progress. */
|
|
72
|
+
await gapi.client.cloudbuild.projects.builds.cancel({
|
|
73
|
+
id: "Test string",
|
|
74
|
+
projectId: "Test string",
|
|
75
|
+
}, {
|
|
76
|
+
id: "Test string",
|
|
77
|
+
name: "Test string",
|
|
78
|
+
projectId: "Test string",
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build
|
|
82
|
+
* status (such as `SUCCESS` or `FAILURE`).
|
|
83
|
+
*/
|
|
84
|
+
await gapi.client.cloudbuild.projects.builds.create({
|
|
85
|
+
parent: "Test string",
|
|
86
|
+
projectId: "Test string",
|
|
87
|
+
}, {
|
|
88
|
+
approval: {
|
|
89
|
+
config: {
|
|
90
|
+
approvalRequired: true,
|
|
91
|
+
},
|
|
92
|
+
result: {
|
|
93
|
+
approvalTime: "Test string",
|
|
94
|
+
approverAccount: "Test string",
|
|
95
|
+
comment: "Test string",
|
|
96
|
+
decision: "Test string",
|
|
97
|
+
url: "Test string",
|
|
98
|
+
},
|
|
99
|
+
state: "Test string",
|
|
100
|
+
},
|
|
101
|
+
artifacts: {
|
|
102
|
+
images: [
|
|
103
|
+
"Test string"
|
|
104
|
+
],
|
|
105
|
+
objects: {
|
|
106
|
+
location: "Test string",
|
|
107
|
+
paths: [
|
|
108
|
+
"Test string"
|
|
109
|
+
],
|
|
110
|
+
timing: {
|
|
111
|
+
endTime: "Test string",
|
|
112
|
+
startTime: "Test string",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
availableSecrets: {
|
|
117
|
+
inline: [
|
|
118
|
+
{
|
|
119
|
+
envMap: {
|
|
120
|
+
A: "Test string"
|
|
121
|
+
},
|
|
122
|
+
kmsKeyName: "Test string",
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
secretManager: [
|
|
126
|
+
{
|
|
127
|
+
env: "Test string",
|
|
128
|
+
versionName: "Test string",
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
buildTriggerId: "Test string",
|
|
133
|
+
createTime: "Test string",
|
|
134
|
+
failureInfo: {
|
|
135
|
+
detail: "Test string",
|
|
136
|
+
type: "Test string",
|
|
137
|
+
},
|
|
138
|
+
finishTime: "Test string",
|
|
139
|
+
id: "Test string",
|
|
140
|
+
images: [
|
|
141
|
+
"Test string"
|
|
142
|
+
],
|
|
143
|
+
logsBucket: "Test string",
|
|
144
|
+
logUrl: "Test string",
|
|
145
|
+
name: "Test string",
|
|
146
|
+
options: {
|
|
147
|
+
diskSizeGb: "Test string",
|
|
148
|
+
dynamicSubstitutions: true,
|
|
149
|
+
env: [
|
|
150
|
+
"Test string"
|
|
151
|
+
],
|
|
152
|
+
logging: "Test string",
|
|
153
|
+
logStreamingOption: "Test string",
|
|
154
|
+
machineType: "Test string",
|
|
155
|
+
pool: {
|
|
156
|
+
name: "Test string",
|
|
157
|
+
},
|
|
158
|
+
requestedVerifyOption: "Test string",
|
|
159
|
+
secretEnv: [
|
|
160
|
+
"Test string"
|
|
161
|
+
],
|
|
162
|
+
sourceProvenanceHash: [
|
|
163
|
+
"Test string"
|
|
164
|
+
],
|
|
165
|
+
substitutionOption: "Test string",
|
|
166
|
+
volumes: [
|
|
167
|
+
{
|
|
168
|
+
name: "Test string",
|
|
169
|
+
path: "Test string",
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
workerPool: "Test string",
|
|
173
|
+
},
|
|
174
|
+
projectId: "Test string",
|
|
175
|
+
queueTtl: "Test string",
|
|
176
|
+
results: {
|
|
177
|
+
artifactManifest: "Test string",
|
|
178
|
+
artifactTiming: {
|
|
179
|
+
endTime: "Test string",
|
|
180
|
+
startTime: "Test string",
|
|
181
|
+
},
|
|
182
|
+
buildStepImages: [
|
|
183
|
+
"Test string"
|
|
184
|
+
],
|
|
185
|
+
buildStepOutputs: [
|
|
186
|
+
"Test string"
|
|
187
|
+
],
|
|
188
|
+
images: [
|
|
189
|
+
{
|
|
190
|
+
digest: "Test string",
|
|
191
|
+
name: "Test string",
|
|
192
|
+
pushTiming: {
|
|
193
|
+
endTime: "Test string",
|
|
194
|
+
startTime: "Test string",
|
|
195
|
+
},
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
numArtifacts: "Test string",
|
|
199
|
+
},
|
|
200
|
+
secrets: [
|
|
201
|
+
{
|
|
202
|
+
kmsKeyName: "Test string",
|
|
203
|
+
secretEnv: {
|
|
204
|
+
A: "Test string"
|
|
205
|
+
},
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
serviceAccount: "Test string",
|
|
209
|
+
source: {
|
|
210
|
+
repoSource: {
|
|
211
|
+
branchName: "Test string",
|
|
212
|
+
commitSha: "Test string",
|
|
213
|
+
dir: "Test string",
|
|
214
|
+
invertRegex: true,
|
|
215
|
+
projectId: "Test string",
|
|
216
|
+
repoName: "Test string",
|
|
217
|
+
substitutions: {
|
|
218
|
+
A: "Test string"
|
|
219
|
+
},
|
|
220
|
+
tagName: "Test string",
|
|
221
|
+
},
|
|
222
|
+
storageSource: {
|
|
223
|
+
bucket: "Test string",
|
|
224
|
+
generation: "Test string",
|
|
225
|
+
object: "Test string",
|
|
226
|
+
},
|
|
227
|
+
storageSourceManifest: {
|
|
228
|
+
bucket: "Test string",
|
|
229
|
+
generation: "Test string",
|
|
230
|
+
object: "Test string",
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
sourceProvenance: {
|
|
234
|
+
fileHashes: {
|
|
235
|
+
A: {
|
|
236
|
+
fileHash: [
|
|
237
|
+
{
|
|
238
|
+
type: "Test string",
|
|
239
|
+
value: "Test string",
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
resolvedRepoSource: {
|
|
245
|
+
branchName: "Test string",
|
|
246
|
+
commitSha: "Test string",
|
|
247
|
+
dir: "Test string",
|
|
248
|
+
invertRegex: true,
|
|
249
|
+
projectId: "Test string",
|
|
250
|
+
repoName: "Test string",
|
|
251
|
+
substitutions: {
|
|
252
|
+
A: "Test string"
|
|
253
|
+
},
|
|
254
|
+
tagName: "Test string",
|
|
255
|
+
},
|
|
256
|
+
resolvedStorageSource: {
|
|
257
|
+
bucket: "Test string",
|
|
258
|
+
generation: "Test string",
|
|
259
|
+
object: "Test string",
|
|
260
|
+
},
|
|
261
|
+
resolvedStorageSourceManifest: {
|
|
262
|
+
bucket: "Test string",
|
|
263
|
+
generation: "Test string",
|
|
264
|
+
object: "Test string",
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
startTime: "Test string",
|
|
268
|
+
status: "Test string",
|
|
269
|
+
statusDetail: "Test string",
|
|
270
|
+
steps: [
|
|
271
|
+
{
|
|
272
|
+
args: [
|
|
273
|
+
"Test string"
|
|
274
|
+
],
|
|
275
|
+
dir: "Test string",
|
|
276
|
+
entrypoint: "Test string",
|
|
277
|
+
env: [
|
|
278
|
+
"Test string"
|
|
279
|
+
],
|
|
280
|
+
id: "Test string",
|
|
281
|
+
name: "Test string",
|
|
282
|
+
pullTiming: {
|
|
283
|
+
endTime: "Test string",
|
|
284
|
+
startTime: "Test string",
|
|
285
|
+
},
|
|
286
|
+
script: "Test string",
|
|
287
|
+
secretEnv: [
|
|
288
|
+
"Test string"
|
|
289
|
+
],
|
|
290
|
+
status: "Test string",
|
|
291
|
+
timeout: "Test string",
|
|
292
|
+
timing: {
|
|
293
|
+
endTime: "Test string",
|
|
294
|
+
startTime: "Test string",
|
|
295
|
+
},
|
|
296
|
+
volumes: [
|
|
297
|
+
{
|
|
298
|
+
name: "Test string",
|
|
299
|
+
path: "Test string",
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
waitFor: [
|
|
303
|
+
"Test string"
|
|
304
|
+
],
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
substitutions: {
|
|
308
|
+
A: "Test string"
|
|
309
|
+
},
|
|
310
|
+
tags: [
|
|
311
|
+
"Test string"
|
|
312
|
+
],
|
|
313
|
+
timeout: "Test string",
|
|
314
|
+
timing: {
|
|
315
|
+
A: {
|
|
316
|
+
endTime: "Test string",
|
|
317
|
+
startTime: "Test string",
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
warnings: [
|
|
321
|
+
{
|
|
322
|
+
priority: "Test string",
|
|
323
|
+
text: "Test string",
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
});
|
|
327
|
+
/** Returns information about a previously requested build. The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and timing information. */
|
|
328
|
+
await gapi.client.cloudbuild.projects.builds.get({
|
|
329
|
+
id: "Test string",
|
|
330
|
+
name: "Test string",
|
|
331
|
+
projectId: "Test string",
|
|
332
|
+
});
|
|
333
|
+
/** Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully. */
|
|
334
|
+
await gapi.client.cloudbuild.projects.builds.list({
|
|
335
|
+
filter: "Test string",
|
|
336
|
+
pageSize: 42,
|
|
337
|
+
pageToken: "Test string",
|
|
338
|
+
parent: "Test string",
|
|
339
|
+
projectId: "Test string",
|
|
340
|
+
});
|
|
341
|
+
/**
|
|
342
|
+
* Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered
|
|
343
|
+
* builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that
|
|
344
|
+
* specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the
|
|
345
|
+
* original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the
|
|
346
|
+
* original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the
|
|
347
|
+
* original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may
|
|
348
|
+
* or may not be available depending on the bucket's lifecycle management settings.
|
|
349
|
+
*/
|
|
350
|
+
await gapi.client.cloudbuild.projects.builds.retry({
|
|
351
|
+
id: "Test string",
|
|
352
|
+
projectId: "Test string",
|
|
353
|
+
}, {
|
|
354
|
+
id: "Test string",
|
|
355
|
+
name: "Test string",
|
|
356
|
+
projectId: "Test string",
|
|
357
|
+
});
|
|
358
|
+
/** Create an association between a GCP project and a GitHub Enterprise server. */
|
|
359
|
+
await gapi.client.cloudbuild.projects.githubEnterpriseConfigs.create({
|
|
360
|
+
gheConfigId: "Test string",
|
|
361
|
+
parent: "Test string",
|
|
362
|
+
projectId: "Test string",
|
|
363
|
+
}, {
|
|
364
|
+
appId: "Test string",
|
|
365
|
+
createTime: "Test string",
|
|
366
|
+
displayName: "Test string",
|
|
367
|
+
hostUrl: "Test string",
|
|
368
|
+
name: "Test string",
|
|
369
|
+
peeredNetwork: "Test string",
|
|
370
|
+
secrets: {
|
|
371
|
+
oauthClientIdName: "Test string",
|
|
372
|
+
oauthClientIdVersionName: "Test string",
|
|
373
|
+
oauthSecretName: "Test string",
|
|
374
|
+
oauthSecretVersionName: "Test string",
|
|
375
|
+
privateKeyName: "Test string",
|
|
376
|
+
privateKeyVersionName: "Test string",
|
|
377
|
+
webhookSecretName: "Test string",
|
|
378
|
+
webhookSecretVersionName: "Test string",
|
|
379
|
+
},
|
|
380
|
+
sslCa: "Test string",
|
|
381
|
+
webhookKey: "Test string",
|
|
382
|
+
});
|
|
383
|
+
/** Delete an association between a GCP project and a GitHub Enterprise server. */
|
|
384
|
+
await gapi.client.cloudbuild.projects.githubEnterpriseConfigs.delete({
|
|
385
|
+
configId: "Test string",
|
|
386
|
+
name: "Test string",
|
|
387
|
+
projectId: "Test string",
|
|
388
|
+
});
|
|
389
|
+
/** Retrieve a GitHubEnterpriseConfig. */
|
|
390
|
+
await gapi.client.cloudbuild.projects.githubEnterpriseConfigs.get({
|
|
391
|
+
configId: "Test string",
|
|
392
|
+
name: "Test string",
|
|
393
|
+
projectId: "Test string",
|
|
394
|
+
});
|
|
395
|
+
/** List all GitHubEnterpriseConfigs for a given project. */
|
|
396
|
+
await gapi.client.cloudbuild.projects.githubEnterpriseConfigs.list({
|
|
397
|
+
parent: "Test string",
|
|
398
|
+
projectId: "Test string",
|
|
399
|
+
});
|
|
400
|
+
/** Update an association between a GCP project and a GitHub Enterprise server. */
|
|
401
|
+
await gapi.client.cloudbuild.projects.githubEnterpriseConfigs.patch({
|
|
402
|
+
name: "Test string",
|
|
403
|
+
updateMask: "Test string",
|
|
404
|
+
}, {
|
|
405
|
+
appId: "Test string",
|
|
406
|
+
createTime: "Test string",
|
|
407
|
+
displayName: "Test string",
|
|
408
|
+
hostUrl: "Test string",
|
|
409
|
+
name: "Test string",
|
|
410
|
+
peeredNetwork: "Test string",
|
|
411
|
+
secrets: {
|
|
412
|
+
oauthClientIdName: "Test string",
|
|
413
|
+
oauthClientIdVersionName: "Test string",
|
|
414
|
+
oauthSecretName: "Test string",
|
|
415
|
+
oauthSecretVersionName: "Test string",
|
|
416
|
+
privateKeyName: "Test string",
|
|
417
|
+
privateKeyVersionName: "Test string",
|
|
418
|
+
webhookSecretName: "Test string",
|
|
419
|
+
webhookSecretVersionName: "Test string",
|
|
420
|
+
},
|
|
421
|
+
sslCa: "Test string",
|
|
422
|
+
webhookKey: "Test string",
|
|
423
|
+
});
|
|
424
|
+
/** Creates a new `BitbucketServerConfig`. This API is experimental. */
|
|
425
|
+
await gapi.client.cloudbuild.projects.locations.bitbucketServerConfigs.create({
|
|
426
|
+
bitbucketServerConfigId: "Test string",
|
|
427
|
+
parent: "Test string",
|
|
428
|
+
}, {
|
|
429
|
+
apiKey: "Test string",
|
|
430
|
+
connectedRepositories: [
|
|
431
|
+
{
|
|
432
|
+
projectKey: "Test string",
|
|
433
|
+
repoSlug: "Test string",
|
|
434
|
+
webhookId: 42,
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
createTime: "Test string",
|
|
438
|
+
hostUri: "Test string",
|
|
439
|
+
name: "Test string",
|
|
440
|
+
peeredNetwork: "Test string",
|
|
441
|
+
secrets: {
|
|
442
|
+
adminAccessTokenVersionName: "Test string",
|
|
443
|
+
readAccessTokenVersionName: "Test string",
|
|
444
|
+
webhookSecretVersionName: "Test string",
|
|
445
|
+
},
|
|
446
|
+
sslCa: "Test string",
|
|
447
|
+
username: "Test string",
|
|
448
|
+
webhookKey: "Test string",
|
|
449
|
+
});
|
|
450
|
+
/** Delete a `BitbucketServerConfig`. This API is experimental. */
|
|
451
|
+
await gapi.client.cloudbuild.projects.locations.bitbucketServerConfigs.delete({
|
|
452
|
+
name: "Test string",
|
|
453
|
+
});
|
|
454
|
+
/** Retrieve a `BitbucketServerConfig`. This API is experimental. */
|
|
455
|
+
await gapi.client.cloudbuild.projects.locations.bitbucketServerConfigs.get({
|
|
456
|
+
name: "Test string",
|
|
457
|
+
});
|
|
458
|
+
/** List all `BitbucketServerConfigs` for a given project. This API is experimental. */
|
|
459
|
+
await gapi.client.cloudbuild.projects.locations.bitbucketServerConfigs.list({
|
|
460
|
+
pageSize: 42,
|
|
461
|
+
pageToken: "Test string",
|
|
462
|
+
parent: "Test string",
|
|
463
|
+
});
|
|
464
|
+
/** Updates an existing `BitbucketServerConfig`. This API is experimental. */
|
|
465
|
+
await gapi.client.cloudbuild.projects.locations.bitbucketServerConfigs.patch({
|
|
466
|
+
name: "Test string",
|
|
467
|
+
updateMask: "Test string",
|
|
468
|
+
}, {
|
|
469
|
+
apiKey: "Test string",
|
|
470
|
+
connectedRepositories: [
|
|
471
|
+
{
|
|
472
|
+
projectKey: "Test string",
|
|
473
|
+
repoSlug: "Test string",
|
|
474
|
+
webhookId: 42,
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
createTime: "Test string",
|
|
478
|
+
hostUri: "Test string",
|
|
479
|
+
name: "Test string",
|
|
480
|
+
peeredNetwork: "Test string",
|
|
481
|
+
secrets: {
|
|
482
|
+
adminAccessTokenVersionName: "Test string",
|
|
483
|
+
readAccessTokenVersionName: "Test string",
|
|
484
|
+
webhookSecretVersionName: "Test string",
|
|
485
|
+
},
|
|
486
|
+
sslCa: "Test string",
|
|
487
|
+
username: "Test string",
|
|
488
|
+
webhookKey: "Test string",
|
|
489
|
+
});
|
|
490
|
+
/** Remove a Bitbucket Server repository from a given BitbucketServerConfig's connected repositories. This API is experimental. */
|
|
491
|
+
await gapi.client.cloudbuild.projects.locations.bitbucketServerConfigs.removeBitbucketServerConnectedRepository({
|
|
492
|
+
config: "Test string",
|
|
493
|
+
}, {
|
|
494
|
+
connectedRepository: {
|
|
495
|
+
projectKey: "Test string",
|
|
496
|
+
repoSlug: "Test string",
|
|
497
|
+
webhookId: 42,
|
|
498
|
+
},
|
|
499
|
+
});
|
|
500
|
+
/** Batch connecting Bitbucket Server repositories to Cloud Build. */
|
|
501
|
+
await gapi.client.cloudbuild.projects.locations.bitbucketServerConfigs.connectedRepositories.batchCreate({
|
|
502
|
+
parent: "Test string",
|
|
503
|
+
}, {
|
|
504
|
+
requests: [
|
|
505
|
+
{
|
|
506
|
+
bitbucketServerConnectedRepository: {
|
|
507
|
+
parent: "Test string",
|
|
508
|
+
repo: {
|
|
509
|
+
projectKey: "Test string",
|
|
510
|
+
repoSlug: "Test string",
|
|
511
|
+
webhookId: 42,
|
|
512
|
+
},
|
|
513
|
+
status: {
|
|
514
|
+
code: 42,
|
|
515
|
+
details: [
|
|
516
|
+
{
|
|
517
|
+
A: 42
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
message: "Test string",
|
|
521
|
+
},
|
|
522
|
+
},
|
|
523
|
+
parent: "Test string",
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
});
|
|
527
|
+
/** List all repositories for a given `BitbucketServerConfig`. This API is experimental. */
|
|
528
|
+
await gapi.client.cloudbuild.projects.locations.bitbucketServerConfigs.repos.list({
|
|
529
|
+
pageSize: 42,
|
|
530
|
+
pageToken: "Test string",
|
|
531
|
+
parent: "Test string",
|
|
532
|
+
});
|
|
533
|
+
/** Approves or rejects a pending build. If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done. */
|
|
534
|
+
await gapi.client.cloudbuild.projects.locations.builds.approve({
|
|
535
|
+
name: "Test string",
|
|
536
|
+
}, {
|
|
537
|
+
approvalResult: {
|
|
538
|
+
approvalTime: "Test string",
|
|
539
|
+
approverAccount: "Test string",
|
|
540
|
+
comment: "Test string",
|
|
541
|
+
decision: "Test string",
|
|
542
|
+
url: "Test string",
|
|
543
|
+
},
|
|
544
|
+
});
|
|
545
|
+
/** Cancels a build in progress. */
|
|
546
|
+
await gapi.client.cloudbuild.projects.locations.builds.cancel({
|
|
547
|
+
name: "Test string",
|
|
548
|
+
}, {
|
|
549
|
+
id: "Test string",
|
|
550
|
+
name: "Test string",
|
|
551
|
+
projectId: "Test string",
|
|
552
|
+
});
|
|
553
|
+
/**
|
|
554
|
+
* Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build
|
|
555
|
+
* status (such as `SUCCESS` or `FAILURE`).
|
|
556
|
+
*/
|
|
557
|
+
await gapi.client.cloudbuild.projects.locations.builds.create({
|
|
558
|
+
parent: "Test string",
|
|
559
|
+
projectId: "Test string",
|
|
560
|
+
}, {
|
|
561
|
+
approval: {
|
|
562
|
+
config: {
|
|
563
|
+
approvalRequired: true,
|
|
564
|
+
},
|
|
565
|
+
result: {
|
|
566
|
+
approvalTime: "Test string",
|
|
567
|
+
approverAccount: "Test string",
|
|
568
|
+
comment: "Test string",
|
|
569
|
+
decision: "Test string",
|
|
570
|
+
url: "Test string",
|
|
571
|
+
},
|
|
572
|
+
state: "Test string",
|
|
573
|
+
},
|
|
574
|
+
artifacts: {
|
|
575
|
+
images: [
|
|
576
|
+
"Test string"
|
|
577
|
+
],
|
|
578
|
+
objects: {
|
|
579
|
+
location: "Test string",
|
|
580
|
+
paths: [
|
|
581
|
+
"Test string"
|
|
582
|
+
],
|
|
583
|
+
timing: {
|
|
584
|
+
endTime: "Test string",
|
|
585
|
+
startTime: "Test string",
|
|
586
|
+
},
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
availableSecrets: {
|
|
590
|
+
inline: [
|
|
591
|
+
{
|
|
592
|
+
envMap: {
|
|
593
|
+
A: "Test string"
|
|
594
|
+
},
|
|
595
|
+
kmsKeyName: "Test string",
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
secretManager: [
|
|
599
|
+
{
|
|
600
|
+
env: "Test string",
|
|
601
|
+
versionName: "Test string",
|
|
602
|
+
}
|
|
603
|
+
],
|
|
604
|
+
},
|
|
605
|
+
buildTriggerId: "Test string",
|
|
606
|
+
createTime: "Test string",
|
|
607
|
+
failureInfo: {
|
|
608
|
+
detail: "Test string",
|
|
609
|
+
type: "Test string",
|
|
610
|
+
},
|
|
611
|
+
finishTime: "Test string",
|
|
612
|
+
id: "Test string",
|
|
613
|
+
images: [
|
|
614
|
+
"Test string"
|
|
615
|
+
],
|
|
616
|
+
logsBucket: "Test string",
|
|
617
|
+
logUrl: "Test string",
|
|
618
|
+
name: "Test string",
|
|
619
|
+
options: {
|
|
620
|
+
diskSizeGb: "Test string",
|
|
621
|
+
dynamicSubstitutions: true,
|
|
622
|
+
env: [
|
|
623
|
+
"Test string"
|
|
624
|
+
],
|
|
625
|
+
logging: "Test string",
|
|
626
|
+
logStreamingOption: "Test string",
|
|
627
|
+
machineType: "Test string",
|
|
628
|
+
pool: {
|
|
629
|
+
name: "Test string",
|
|
630
|
+
},
|
|
631
|
+
requestedVerifyOption: "Test string",
|
|
632
|
+
secretEnv: [
|
|
633
|
+
"Test string"
|
|
634
|
+
],
|
|
635
|
+
sourceProvenanceHash: [
|
|
636
|
+
"Test string"
|
|
637
|
+
],
|
|
638
|
+
substitutionOption: "Test string",
|
|
639
|
+
volumes: [
|
|
640
|
+
{
|
|
641
|
+
name: "Test string",
|
|
642
|
+
path: "Test string",
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
workerPool: "Test string",
|
|
646
|
+
},
|
|
647
|
+
projectId: "Test string",
|
|
648
|
+
queueTtl: "Test string",
|
|
649
|
+
results: {
|
|
650
|
+
artifactManifest: "Test string",
|
|
651
|
+
artifactTiming: {
|
|
652
|
+
endTime: "Test string",
|
|
653
|
+
startTime: "Test string",
|
|
654
|
+
},
|
|
655
|
+
buildStepImages: [
|
|
656
|
+
"Test string"
|
|
657
|
+
],
|
|
658
|
+
buildStepOutputs: [
|
|
659
|
+
"Test string"
|
|
660
|
+
],
|
|
661
|
+
images: [
|
|
662
|
+
{
|
|
663
|
+
digest: "Test string",
|
|
664
|
+
name: "Test string",
|
|
665
|
+
pushTiming: {
|
|
666
|
+
endTime: "Test string",
|
|
667
|
+
startTime: "Test string",
|
|
668
|
+
},
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
numArtifacts: "Test string",
|
|
672
|
+
},
|
|
673
|
+
secrets: [
|
|
674
|
+
{
|
|
675
|
+
kmsKeyName: "Test string",
|
|
676
|
+
secretEnv: {
|
|
677
|
+
A: "Test string"
|
|
678
|
+
},
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
serviceAccount: "Test string",
|
|
682
|
+
source: {
|
|
683
|
+
repoSource: {
|
|
684
|
+
branchName: "Test string",
|
|
685
|
+
commitSha: "Test string",
|
|
686
|
+
dir: "Test string",
|
|
687
|
+
invertRegex: true,
|
|
688
|
+
projectId: "Test string",
|
|
689
|
+
repoName: "Test string",
|
|
690
|
+
substitutions: {
|
|
691
|
+
A: "Test string"
|
|
692
|
+
},
|
|
693
|
+
tagName: "Test string",
|
|
694
|
+
},
|
|
695
|
+
storageSource: {
|
|
696
|
+
bucket: "Test string",
|
|
697
|
+
generation: "Test string",
|
|
698
|
+
object: "Test string",
|
|
699
|
+
},
|
|
700
|
+
storageSourceManifest: {
|
|
701
|
+
bucket: "Test string",
|
|
702
|
+
generation: "Test string",
|
|
703
|
+
object: "Test string",
|
|
704
|
+
},
|
|
705
|
+
},
|
|
706
|
+
sourceProvenance: {
|
|
707
|
+
fileHashes: {
|
|
708
|
+
A: {
|
|
709
|
+
fileHash: [
|
|
710
|
+
{
|
|
711
|
+
type: "Test string",
|
|
712
|
+
value: "Test string",
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
resolvedRepoSource: {
|
|
718
|
+
branchName: "Test string",
|
|
719
|
+
commitSha: "Test string",
|
|
720
|
+
dir: "Test string",
|
|
721
|
+
invertRegex: true,
|
|
722
|
+
projectId: "Test string",
|
|
723
|
+
repoName: "Test string",
|
|
724
|
+
substitutions: {
|
|
725
|
+
A: "Test string"
|
|
726
|
+
},
|
|
727
|
+
tagName: "Test string",
|
|
728
|
+
},
|
|
729
|
+
resolvedStorageSource: {
|
|
730
|
+
bucket: "Test string",
|
|
731
|
+
generation: "Test string",
|
|
732
|
+
object: "Test string",
|
|
733
|
+
},
|
|
734
|
+
resolvedStorageSourceManifest: {
|
|
735
|
+
bucket: "Test string",
|
|
736
|
+
generation: "Test string",
|
|
737
|
+
object: "Test string",
|
|
738
|
+
},
|
|
739
|
+
},
|
|
740
|
+
startTime: "Test string",
|
|
741
|
+
status: "Test string",
|
|
742
|
+
statusDetail: "Test string",
|
|
743
|
+
steps: [
|
|
744
|
+
{
|
|
745
|
+
args: [
|
|
746
|
+
"Test string"
|
|
747
|
+
],
|
|
748
|
+
dir: "Test string",
|
|
749
|
+
entrypoint: "Test string",
|
|
750
|
+
env: [
|
|
751
|
+
"Test string"
|
|
752
|
+
],
|
|
753
|
+
id: "Test string",
|
|
754
|
+
name: "Test string",
|
|
755
|
+
pullTiming: {
|
|
756
|
+
endTime: "Test string",
|
|
757
|
+
startTime: "Test string",
|
|
758
|
+
},
|
|
759
|
+
script: "Test string",
|
|
760
|
+
secretEnv: [
|
|
761
|
+
"Test string"
|
|
762
|
+
],
|
|
763
|
+
status: "Test string",
|
|
764
|
+
timeout: "Test string",
|
|
765
|
+
timing: {
|
|
766
|
+
endTime: "Test string",
|
|
767
|
+
startTime: "Test string",
|
|
768
|
+
},
|
|
769
|
+
volumes: [
|
|
770
|
+
{
|
|
771
|
+
name: "Test string",
|
|
772
|
+
path: "Test string",
|
|
773
|
+
}
|
|
774
|
+
],
|
|
775
|
+
waitFor: [
|
|
776
|
+
"Test string"
|
|
777
|
+
],
|
|
778
|
+
}
|
|
779
|
+
],
|
|
780
|
+
substitutions: {
|
|
781
|
+
A: "Test string"
|
|
782
|
+
},
|
|
783
|
+
tags: [
|
|
784
|
+
"Test string"
|
|
785
|
+
],
|
|
786
|
+
timeout: "Test string",
|
|
787
|
+
timing: {
|
|
788
|
+
A: {
|
|
789
|
+
endTime: "Test string",
|
|
790
|
+
startTime: "Test string",
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
warnings: [
|
|
794
|
+
{
|
|
795
|
+
priority: "Test string",
|
|
796
|
+
text: "Test string",
|
|
797
|
+
}
|
|
798
|
+
],
|
|
799
|
+
});
|
|
800
|
+
/** Returns information about a previously requested build. The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and timing information. */
|
|
801
|
+
await gapi.client.cloudbuild.projects.locations.builds.get({
|
|
802
|
+
id: "Test string",
|
|
803
|
+
name: "Test string",
|
|
804
|
+
projectId: "Test string",
|
|
805
|
+
});
|
|
806
|
+
/** Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully. */
|
|
807
|
+
await gapi.client.cloudbuild.projects.locations.builds.list({
|
|
808
|
+
filter: "Test string",
|
|
809
|
+
pageSize: 42,
|
|
810
|
+
pageToken: "Test string",
|
|
811
|
+
parent: "Test string",
|
|
812
|
+
projectId: "Test string",
|
|
813
|
+
});
|
|
814
|
+
/**
|
|
815
|
+
* Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered
|
|
816
|
+
* builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that
|
|
817
|
+
* specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the
|
|
818
|
+
* original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the
|
|
819
|
+
* original build pulled source from Google Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the
|
|
820
|
+
* original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may
|
|
821
|
+
* or may not be available depending on the bucket's lifecycle management settings.
|
|
822
|
+
*/
|
|
823
|
+
await gapi.client.cloudbuild.projects.locations.builds.retry({
|
|
824
|
+
name: "Test string",
|
|
825
|
+
}, {
|
|
826
|
+
id: "Test string",
|
|
827
|
+
name: "Test string",
|
|
828
|
+
projectId: "Test string",
|
|
829
|
+
});
|
|
830
|
+
/** Create an association between a GCP project and a GitHub Enterprise server. */
|
|
831
|
+
await gapi.client.cloudbuild.projects.locations.githubEnterpriseConfigs.create({
|
|
832
|
+
gheConfigId: "Test string",
|
|
833
|
+
parent: "Test string",
|
|
834
|
+
projectId: "Test string",
|
|
835
|
+
}, {
|
|
836
|
+
appId: "Test string",
|
|
837
|
+
createTime: "Test string",
|
|
838
|
+
displayName: "Test string",
|
|
839
|
+
hostUrl: "Test string",
|
|
840
|
+
name: "Test string",
|
|
841
|
+
peeredNetwork: "Test string",
|
|
842
|
+
secrets: {
|
|
843
|
+
oauthClientIdName: "Test string",
|
|
844
|
+
oauthClientIdVersionName: "Test string",
|
|
845
|
+
oauthSecretName: "Test string",
|
|
846
|
+
oauthSecretVersionName: "Test string",
|
|
847
|
+
privateKeyName: "Test string",
|
|
848
|
+
privateKeyVersionName: "Test string",
|
|
849
|
+
webhookSecretName: "Test string",
|
|
850
|
+
webhookSecretVersionName: "Test string",
|
|
851
|
+
},
|
|
852
|
+
sslCa: "Test string",
|
|
853
|
+
webhookKey: "Test string",
|
|
854
|
+
});
|
|
855
|
+
/** Delete an association between a GCP project and a GitHub Enterprise server. */
|
|
856
|
+
await gapi.client.cloudbuild.projects.locations.githubEnterpriseConfigs.delete({
|
|
857
|
+
configId: "Test string",
|
|
858
|
+
name: "Test string",
|
|
859
|
+
projectId: "Test string",
|
|
860
|
+
});
|
|
861
|
+
/** Retrieve a GitHubEnterpriseConfig. */
|
|
862
|
+
await gapi.client.cloudbuild.projects.locations.githubEnterpriseConfigs.get({
|
|
863
|
+
configId: "Test string",
|
|
864
|
+
name: "Test string",
|
|
865
|
+
projectId: "Test string",
|
|
866
|
+
});
|
|
867
|
+
/** List all GitHubEnterpriseConfigs for a given project. */
|
|
868
|
+
await gapi.client.cloudbuild.projects.locations.githubEnterpriseConfigs.list({
|
|
869
|
+
parent: "Test string",
|
|
870
|
+
projectId: "Test string",
|
|
871
|
+
});
|
|
872
|
+
/** Update an association between a GCP project and a GitHub Enterprise server. */
|
|
873
|
+
await gapi.client.cloudbuild.projects.locations.githubEnterpriseConfigs.patch({
|
|
874
|
+
name: "Test string",
|
|
875
|
+
updateMask: "Test string",
|
|
876
|
+
}, {
|
|
877
|
+
appId: "Test string",
|
|
878
|
+
createTime: "Test string",
|
|
879
|
+
displayName: "Test string",
|
|
880
|
+
hostUrl: "Test string",
|
|
881
|
+
name: "Test string",
|
|
882
|
+
peeredNetwork: "Test string",
|
|
883
|
+
secrets: {
|
|
884
|
+
oauthClientIdName: "Test string",
|
|
885
|
+
oauthClientIdVersionName: "Test string",
|
|
886
|
+
oauthSecretName: "Test string",
|
|
887
|
+
oauthSecretVersionName: "Test string",
|
|
888
|
+
privateKeyName: "Test string",
|
|
889
|
+
privateKeyVersionName: "Test string",
|
|
890
|
+
webhookSecretName: "Test string",
|
|
891
|
+
webhookSecretVersionName: "Test string",
|
|
892
|
+
},
|
|
893
|
+
sslCa: "Test string",
|
|
894
|
+
webhookKey: "Test string",
|
|
895
|
+
});
|
|
896
|
+
/**
|
|
897
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
|
|
898
|
+
* method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
|
|
899
|
+
* completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of
|
|
900
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
901
|
+
*/
|
|
902
|
+
await gapi.client.cloudbuild.projects.locations.operations.cancel({
|
|
903
|
+
name: "Test string",
|
|
904
|
+
}, {
|
|
905
|
+
});
|
|
906
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
907
|
+
await gapi.client.cloudbuild.projects.locations.operations.get({
|
|
908
|
+
name: "Test string",
|
|
909
|
+
});
|
|
910
|
+
/** Creates a new `BuildTrigger`. This API is experimental. */
|
|
911
|
+
await gapi.client.cloudbuild.projects.locations.triggers.create({
|
|
912
|
+
parent: "Test string",
|
|
913
|
+
projectId: "Test string",
|
|
914
|
+
}, {
|
|
915
|
+
approvalConfig: {
|
|
916
|
+
approvalRequired: true,
|
|
917
|
+
},
|
|
918
|
+
autodetect: true,
|
|
919
|
+
bitbucketServerTriggerConfig: {
|
|
920
|
+
bitbucketServerConfig: {
|
|
921
|
+
apiKey: "Test string",
|
|
922
|
+
connectedRepositories: [
|
|
923
|
+
{
|
|
924
|
+
projectKey: "Test string",
|
|
925
|
+
repoSlug: "Test string",
|
|
926
|
+
webhookId: 42,
|
|
927
|
+
}
|
|
928
|
+
],
|
|
929
|
+
createTime: "Test string",
|
|
930
|
+
hostUri: "Test string",
|
|
931
|
+
name: "Test string",
|
|
932
|
+
peeredNetwork: "Test string",
|
|
933
|
+
secrets: {
|
|
934
|
+
adminAccessTokenVersionName: "Test string",
|
|
935
|
+
readAccessTokenVersionName: "Test string",
|
|
936
|
+
webhookSecretVersionName: "Test string",
|
|
937
|
+
},
|
|
938
|
+
sslCa: "Test string",
|
|
939
|
+
username: "Test string",
|
|
940
|
+
webhookKey: "Test string",
|
|
941
|
+
},
|
|
942
|
+
bitbucketServerConfigResource: "Test string",
|
|
943
|
+
projectKey: "Test string",
|
|
944
|
+
pullRequest: {
|
|
945
|
+
branch: "Test string",
|
|
946
|
+
commentControl: "Test string",
|
|
947
|
+
invertRegex: true,
|
|
948
|
+
},
|
|
949
|
+
push: {
|
|
950
|
+
branch: "Test string",
|
|
951
|
+
invertRegex: true,
|
|
952
|
+
tag: "Test string",
|
|
953
|
+
},
|
|
954
|
+
repoSlug: "Test string",
|
|
955
|
+
},
|
|
956
|
+
build: {
|
|
957
|
+
approval: {
|
|
958
|
+
config: {
|
|
959
|
+
approvalRequired: true,
|
|
960
|
+
},
|
|
961
|
+
result: {
|
|
962
|
+
approvalTime: "Test string",
|
|
963
|
+
approverAccount: "Test string",
|
|
964
|
+
comment: "Test string",
|
|
965
|
+
decision: "Test string",
|
|
966
|
+
url: "Test string",
|
|
967
|
+
},
|
|
968
|
+
state: "Test string",
|
|
969
|
+
},
|
|
970
|
+
artifacts: {
|
|
971
|
+
images: [
|
|
972
|
+
"Test string"
|
|
973
|
+
],
|
|
974
|
+
objects: {
|
|
975
|
+
location: "Test string",
|
|
976
|
+
paths: [
|
|
977
|
+
"Test string"
|
|
978
|
+
],
|
|
979
|
+
timing: {
|
|
980
|
+
endTime: "Test string",
|
|
981
|
+
startTime: "Test string",
|
|
982
|
+
},
|
|
983
|
+
},
|
|
984
|
+
},
|
|
985
|
+
availableSecrets: {
|
|
986
|
+
inline: [
|
|
987
|
+
{
|
|
988
|
+
envMap: {
|
|
989
|
+
A: "Test string"
|
|
990
|
+
},
|
|
991
|
+
kmsKeyName: "Test string",
|
|
992
|
+
}
|
|
993
|
+
],
|
|
994
|
+
secretManager: [
|
|
995
|
+
{
|
|
996
|
+
env: "Test string",
|
|
997
|
+
versionName: "Test string",
|
|
998
|
+
}
|
|
999
|
+
],
|
|
1000
|
+
},
|
|
1001
|
+
buildTriggerId: "Test string",
|
|
1002
|
+
createTime: "Test string",
|
|
1003
|
+
failureInfo: {
|
|
1004
|
+
detail: "Test string",
|
|
1005
|
+
type: "Test string",
|
|
1006
|
+
},
|
|
1007
|
+
finishTime: "Test string",
|
|
1008
|
+
id: "Test string",
|
|
1009
|
+
images: [
|
|
1010
|
+
"Test string"
|
|
1011
|
+
],
|
|
1012
|
+
logsBucket: "Test string",
|
|
1013
|
+
logUrl: "Test string",
|
|
1014
|
+
name: "Test string",
|
|
1015
|
+
options: {
|
|
1016
|
+
diskSizeGb: "Test string",
|
|
1017
|
+
dynamicSubstitutions: true,
|
|
1018
|
+
env: [
|
|
1019
|
+
"Test string"
|
|
1020
|
+
],
|
|
1021
|
+
logging: "Test string",
|
|
1022
|
+
logStreamingOption: "Test string",
|
|
1023
|
+
machineType: "Test string",
|
|
1024
|
+
pool: {
|
|
1025
|
+
name: "Test string",
|
|
1026
|
+
},
|
|
1027
|
+
requestedVerifyOption: "Test string",
|
|
1028
|
+
secretEnv: [
|
|
1029
|
+
"Test string"
|
|
1030
|
+
],
|
|
1031
|
+
sourceProvenanceHash: [
|
|
1032
|
+
"Test string"
|
|
1033
|
+
],
|
|
1034
|
+
substitutionOption: "Test string",
|
|
1035
|
+
volumes: [
|
|
1036
|
+
{
|
|
1037
|
+
name: "Test string",
|
|
1038
|
+
path: "Test string",
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
workerPool: "Test string",
|
|
1042
|
+
},
|
|
1043
|
+
projectId: "Test string",
|
|
1044
|
+
queueTtl: "Test string",
|
|
1045
|
+
results: {
|
|
1046
|
+
artifactManifest: "Test string",
|
|
1047
|
+
artifactTiming: {
|
|
1048
|
+
endTime: "Test string",
|
|
1049
|
+
startTime: "Test string",
|
|
1050
|
+
},
|
|
1051
|
+
buildStepImages: [
|
|
1052
|
+
"Test string"
|
|
1053
|
+
],
|
|
1054
|
+
buildStepOutputs: [
|
|
1055
|
+
"Test string"
|
|
1056
|
+
],
|
|
1057
|
+
images: [
|
|
1058
|
+
{
|
|
1059
|
+
digest: "Test string",
|
|
1060
|
+
name: "Test string",
|
|
1061
|
+
pushTiming: {
|
|
1062
|
+
endTime: "Test string",
|
|
1063
|
+
startTime: "Test string",
|
|
1064
|
+
},
|
|
1065
|
+
}
|
|
1066
|
+
],
|
|
1067
|
+
numArtifacts: "Test string",
|
|
1068
|
+
},
|
|
1069
|
+
secrets: [
|
|
1070
|
+
{
|
|
1071
|
+
kmsKeyName: "Test string",
|
|
1072
|
+
secretEnv: {
|
|
1073
|
+
A: "Test string"
|
|
1074
|
+
},
|
|
1075
|
+
}
|
|
1076
|
+
],
|
|
1077
|
+
serviceAccount: "Test string",
|
|
1078
|
+
source: {
|
|
1079
|
+
repoSource: {
|
|
1080
|
+
branchName: "Test string",
|
|
1081
|
+
commitSha: "Test string",
|
|
1082
|
+
dir: "Test string",
|
|
1083
|
+
invertRegex: true,
|
|
1084
|
+
projectId: "Test string",
|
|
1085
|
+
repoName: "Test string",
|
|
1086
|
+
substitutions: {
|
|
1087
|
+
A: "Test string"
|
|
1088
|
+
},
|
|
1089
|
+
tagName: "Test string",
|
|
1090
|
+
},
|
|
1091
|
+
storageSource: {
|
|
1092
|
+
bucket: "Test string",
|
|
1093
|
+
generation: "Test string",
|
|
1094
|
+
object: "Test string",
|
|
1095
|
+
},
|
|
1096
|
+
storageSourceManifest: {
|
|
1097
|
+
bucket: "Test string",
|
|
1098
|
+
generation: "Test string",
|
|
1099
|
+
object: "Test string",
|
|
1100
|
+
},
|
|
1101
|
+
},
|
|
1102
|
+
sourceProvenance: {
|
|
1103
|
+
fileHashes: {
|
|
1104
|
+
A: {
|
|
1105
|
+
fileHash: [
|
|
1106
|
+
{
|
|
1107
|
+
type: "Test string",
|
|
1108
|
+
value: "Test string",
|
|
1109
|
+
}
|
|
1110
|
+
],
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
resolvedRepoSource: {
|
|
1114
|
+
branchName: "Test string",
|
|
1115
|
+
commitSha: "Test string",
|
|
1116
|
+
dir: "Test string",
|
|
1117
|
+
invertRegex: true,
|
|
1118
|
+
projectId: "Test string",
|
|
1119
|
+
repoName: "Test string",
|
|
1120
|
+
substitutions: {
|
|
1121
|
+
A: "Test string"
|
|
1122
|
+
},
|
|
1123
|
+
tagName: "Test string",
|
|
1124
|
+
},
|
|
1125
|
+
resolvedStorageSource: {
|
|
1126
|
+
bucket: "Test string",
|
|
1127
|
+
generation: "Test string",
|
|
1128
|
+
object: "Test string",
|
|
1129
|
+
},
|
|
1130
|
+
resolvedStorageSourceManifest: {
|
|
1131
|
+
bucket: "Test string",
|
|
1132
|
+
generation: "Test string",
|
|
1133
|
+
object: "Test string",
|
|
1134
|
+
},
|
|
1135
|
+
},
|
|
1136
|
+
startTime: "Test string",
|
|
1137
|
+
status: "Test string",
|
|
1138
|
+
statusDetail: "Test string",
|
|
1139
|
+
steps: [
|
|
1140
|
+
{
|
|
1141
|
+
args: [
|
|
1142
|
+
"Test string"
|
|
1143
|
+
],
|
|
1144
|
+
dir: "Test string",
|
|
1145
|
+
entrypoint: "Test string",
|
|
1146
|
+
env: [
|
|
1147
|
+
"Test string"
|
|
1148
|
+
],
|
|
1149
|
+
id: "Test string",
|
|
1150
|
+
name: "Test string",
|
|
1151
|
+
pullTiming: {
|
|
1152
|
+
endTime: "Test string",
|
|
1153
|
+
startTime: "Test string",
|
|
1154
|
+
},
|
|
1155
|
+
script: "Test string",
|
|
1156
|
+
secretEnv: [
|
|
1157
|
+
"Test string"
|
|
1158
|
+
],
|
|
1159
|
+
status: "Test string",
|
|
1160
|
+
timeout: "Test string",
|
|
1161
|
+
timing: {
|
|
1162
|
+
endTime: "Test string",
|
|
1163
|
+
startTime: "Test string",
|
|
1164
|
+
},
|
|
1165
|
+
volumes: [
|
|
1166
|
+
{
|
|
1167
|
+
name: "Test string",
|
|
1168
|
+
path: "Test string",
|
|
1169
|
+
}
|
|
1170
|
+
],
|
|
1171
|
+
waitFor: [
|
|
1172
|
+
"Test string"
|
|
1173
|
+
],
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
substitutions: {
|
|
1177
|
+
A: "Test string"
|
|
1178
|
+
},
|
|
1179
|
+
tags: [
|
|
1180
|
+
"Test string"
|
|
1181
|
+
],
|
|
1182
|
+
timeout: "Test string",
|
|
1183
|
+
timing: {
|
|
1184
|
+
A: {
|
|
1185
|
+
endTime: "Test string",
|
|
1186
|
+
startTime: "Test string",
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
warnings: [
|
|
1190
|
+
{
|
|
1191
|
+
priority: "Test string",
|
|
1192
|
+
text: "Test string",
|
|
1193
|
+
}
|
|
1194
|
+
],
|
|
1195
|
+
},
|
|
1196
|
+
createTime: "Test string",
|
|
1197
|
+
description: "Test string",
|
|
1198
|
+
disabled: true,
|
|
1199
|
+
eventType: "Test string",
|
|
1200
|
+
filename: "Test string",
|
|
1201
|
+
filter: "Test string",
|
|
1202
|
+
gitFileSource: {
|
|
1203
|
+
bitbucketServerConfig: "Test string",
|
|
1204
|
+
githubEnterpriseConfig: "Test string",
|
|
1205
|
+
path: "Test string",
|
|
1206
|
+
repoType: "Test string",
|
|
1207
|
+
revision: "Test string",
|
|
1208
|
+
uri: "Test string",
|
|
1209
|
+
},
|
|
1210
|
+
github: {
|
|
1211
|
+
enterpriseConfigResourceName: "Test string",
|
|
1212
|
+
installationId: "Test string",
|
|
1213
|
+
name: "Test string",
|
|
1214
|
+
owner: "Test string",
|
|
1215
|
+
pullRequest: {
|
|
1216
|
+
branch: "Test string",
|
|
1217
|
+
commentControl: "Test string",
|
|
1218
|
+
invertRegex: true,
|
|
1219
|
+
},
|
|
1220
|
+
push: {
|
|
1221
|
+
branch: "Test string",
|
|
1222
|
+
invertRegex: true,
|
|
1223
|
+
tag: "Test string",
|
|
1224
|
+
},
|
|
1225
|
+
},
|
|
1226
|
+
id: "Test string",
|
|
1227
|
+
ignoredFiles: [
|
|
1228
|
+
"Test string"
|
|
1229
|
+
],
|
|
1230
|
+
includeBuildLogs: "Test string",
|
|
1231
|
+
includedFiles: [
|
|
1232
|
+
"Test string"
|
|
1233
|
+
],
|
|
1234
|
+
name: "Test string",
|
|
1235
|
+
pubsubConfig: {
|
|
1236
|
+
serviceAccountEmail: "Test string",
|
|
1237
|
+
state: "Test string",
|
|
1238
|
+
subscription: "Test string",
|
|
1239
|
+
topic: "Test string",
|
|
1240
|
+
},
|
|
1241
|
+
resourceName: "Test string",
|
|
1242
|
+
serviceAccount: "Test string",
|
|
1243
|
+
sourceToBuild: {
|
|
1244
|
+
bitbucketServerConfig: "Test string",
|
|
1245
|
+
githubEnterpriseConfig: "Test string",
|
|
1246
|
+
ref: "Test string",
|
|
1247
|
+
repoType: "Test string",
|
|
1248
|
+
uri: "Test string",
|
|
1249
|
+
},
|
|
1250
|
+
substitutions: {
|
|
1251
|
+
A: "Test string"
|
|
1252
|
+
},
|
|
1253
|
+
tags: [
|
|
1254
|
+
"Test string"
|
|
1255
|
+
],
|
|
1256
|
+
triggerTemplate: {
|
|
1257
|
+
branchName: "Test string",
|
|
1258
|
+
commitSha: "Test string",
|
|
1259
|
+
dir: "Test string",
|
|
1260
|
+
invertRegex: true,
|
|
1261
|
+
projectId: "Test string",
|
|
1262
|
+
repoName: "Test string",
|
|
1263
|
+
substitutions: {
|
|
1264
|
+
A: "Test string"
|
|
1265
|
+
},
|
|
1266
|
+
tagName: "Test string",
|
|
1267
|
+
},
|
|
1268
|
+
webhookConfig: {
|
|
1269
|
+
secret: "Test string",
|
|
1270
|
+
state: "Test string",
|
|
1271
|
+
},
|
|
1272
|
+
});
|
|
1273
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental. */
|
|
1274
|
+
await gapi.client.cloudbuild.projects.locations.triggers.delete({
|
|
1275
|
+
name: "Test string",
|
|
1276
|
+
projectId: "Test string",
|
|
1277
|
+
triggerId: "Test string",
|
|
1278
|
+
});
|
|
1279
|
+
/** Returns information about a `BuildTrigger`. This API is experimental. */
|
|
1280
|
+
await gapi.client.cloudbuild.projects.locations.triggers.get({
|
|
1281
|
+
name: "Test string",
|
|
1282
|
+
projectId: "Test string",
|
|
1283
|
+
triggerId: "Test string",
|
|
1284
|
+
});
|
|
1285
|
+
/** Lists existing `BuildTrigger`s. This API is experimental. */
|
|
1286
|
+
await gapi.client.cloudbuild.projects.locations.triggers.list({
|
|
1287
|
+
pageSize: 42,
|
|
1288
|
+
pageToken: "Test string",
|
|
1289
|
+
parent: "Test string",
|
|
1290
|
+
projectId: "Test string",
|
|
1291
|
+
});
|
|
1292
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental. */
|
|
1293
|
+
await gapi.client.cloudbuild.projects.locations.triggers.patch({
|
|
1294
|
+
projectId: "Test string",
|
|
1295
|
+
resourceName: "Test string",
|
|
1296
|
+
triggerId: "Test string",
|
|
1297
|
+
}, {
|
|
1298
|
+
approvalConfig: {
|
|
1299
|
+
approvalRequired: true,
|
|
1300
|
+
},
|
|
1301
|
+
autodetect: true,
|
|
1302
|
+
bitbucketServerTriggerConfig: {
|
|
1303
|
+
bitbucketServerConfig: {
|
|
1304
|
+
apiKey: "Test string",
|
|
1305
|
+
connectedRepositories: [
|
|
1306
|
+
{
|
|
1307
|
+
projectKey: "Test string",
|
|
1308
|
+
repoSlug: "Test string",
|
|
1309
|
+
webhookId: 42,
|
|
1310
|
+
}
|
|
1311
|
+
],
|
|
1312
|
+
createTime: "Test string",
|
|
1313
|
+
hostUri: "Test string",
|
|
1314
|
+
name: "Test string",
|
|
1315
|
+
peeredNetwork: "Test string",
|
|
1316
|
+
secrets: {
|
|
1317
|
+
adminAccessTokenVersionName: "Test string",
|
|
1318
|
+
readAccessTokenVersionName: "Test string",
|
|
1319
|
+
webhookSecretVersionName: "Test string",
|
|
1320
|
+
},
|
|
1321
|
+
sslCa: "Test string",
|
|
1322
|
+
username: "Test string",
|
|
1323
|
+
webhookKey: "Test string",
|
|
1324
|
+
},
|
|
1325
|
+
bitbucketServerConfigResource: "Test string",
|
|
1326
|
+
projectKey: "Test string",
|
|
1327
|
+
pullRequest: {
|
|
1328
|
+
branch: "Test string",
|
|
1329
|
+
commentControl: "Test string",
|
|
1330
|
+
invertRegex: true,
|
|
1331
|
+
},
|
|
1332
|
+
push: {
|
|
1333
|
+
branch: "Test string",
|
|
1334
|
+
invertRegex: true,
|
|
1335
|
+
tag: "Test string",
|
|
1336
|
+
},
|
|
1337
|
+
repoSlug: "Test string",
|
|
1338
|
+
},
|
|
1339
|
+
build: {
|
|
1340
|
+
approval: {
|
|
1341
|
+
config: {
|
|
1342
|
+
approvalRequired: true,
|
|
1343
|
+
},
|
|
1344
|
+
result: {
|
|
1345
|
+
approvalTime: "Test string",
|
|
1346
|
+
approverAccount: "Test string",
|
|
1347
|
+
comment: "Test string",
|
|
1348
|
+
decision: "Test string",
|
|
1349
|
+
url: "Test string",
|
|
1350
|
+
},
|
|
1351
|
+
state: "Test string",
|
|
1352
|
+
},
|
|
1353
|
+
artifacts: {
|
|
1354
|
+
images: [
|
|
1355
|
+
"Test string"
|
|
1356
|
+
],
|
|
1357
|
+
objects: {
|
|
1358
|
+
location: "Test string",
|
|
1359
|
+
paths: [
|
|
1360
|
+
"Test string"
|
|
1361
|
+
],
|
|
1362
|
+
timing: {
|
|
1363
|
+
endTime: "Test string",
|
|
1364
|
+
startTime: "Test string",
|
|
1365
|
+
},
|
|
1366
|
+
},
|
|
1367
|
+
},
|
|
1368
|
+
availableSecrets: {
|
|
1369
|
+
inline: [
|
|
1370
|
+
{
|
|
1371
|
+
envMap: {
|
|
1372
|
+
A: "Test string"
|
|
1373
|
+
},
|
|
1374
|
+
kmsKeyName: "Test string",
|
|
1375
|
+
}
|
|
1376
|
+
],
|
|
1377
|
+
secretManager: [
|
|
1378
|
+
{
|
|
1379
|
+
env: "Test string",
|
|
1380
|
+
versionName: "Test string",
|
|
1381
|
+
}
|
|
1382
|
+
],
|
|
1383
|
+
},
|
|
1384
|
+
buildTriggerId: "Test string",
|
|
1385
|
+
createTime: "Test string",
|
|
1386
|
+
failureInfo: {
|
|
1387
|
+
detail: "Test string",
|
|
1388
|
+
type: "Test string",
|
|
1389
|
+
},
|
|
1390
|
+
finishTime: "Test string",
|
|
1391
|
+
id: "Test string",
|
|
1392
|
+
images: [
|
|
1393
|
+
"Test string"
|
|
1394
|
+
],
|
|
1395
|
+
logsBucket: "Test string",
|
|
1396
|
+
logUrl: "Test string",
|
|
1397
|
+
name: "Test string",
|
|
1398
|
+
options: {
|
|
1399
|
+
diskSizeGb: "Test string",
|
|
1400
|
+
dynamicSubstitutions: true,
|
|
1401
|
+
env: [
|
|
1402
|
+
"Test string"
|
|
1403
|
+
],
|
|
1404
|
+
logging: "Test string",
|
|
1405
|
+
logStreamingOption: "Test string",
|
|
1406
|
+
machineType: "Test string",
|
|
1407
|
+
pool: {
|
|
1408
|
+
name: "Test string",
|
|
1409
|
+
},
|
|
1410
|
+
requestedVerifyOption: "Test string",
|
|
1411
|
+
secretEnv: [
|
|
1412
|
+
"Test string"
|
|
1413
|
+
],
|
|
1414
|
+
sourceProvenanceHash: [
|
|
1415
|
+
"Test string"
|
|
1416
|
+
],
|
|
1417
|
+
substitutionOption: "Test string",
|
|
1418
|
+
volumes: [
|
|
1419
|
+
{
|
|
1420
|
+
name: "Test string",
|
|
1421
|
+
path: "Test string",
|
|
1422
|
+
}
|
|
1423
|
+
],
|
|
1424
|
+
workerPool: "Test string",
|
|
1425
|
+
},
|
|
1426
|
+
projectId: "Test string",
|
|
1427
|
+
queueTtl: "Test string",
|
|
1428
|
+
results: {
|
|
1429
|
+
artifactManifest: "Test string",
|
|
1430
|
+
artifactTiming: {
|
|
1431
|
+
endTime: "Test string",
|
|
1432
|
+
startTime: "Test string",
|
|
1433
|
+
},
|
|
1434
|
+
buildStepImages: [
|
|
1435
|
+
"Test string"
|
|
1436
|
+
],
|
|
1437
|
+
buildStepOutputs: [
|
|
1438
|
+
"Test string"
|
|
1439
|
+
],
|
|
1440
|
+
images: [
|
|
1441
|
+
{
|
|
1442
|
+
digest: "Test string",
|
|
1443
|
+
name: "Test string",
|
|
1444
|
+
pushTiming: {
|
|
1445
|
+
endTime: "Test string",
|
|
1446
|
+
startTime: "Test string",
|
|
1447
|
+
},
|
|
1448
|
+
}
|
|
1449
|
+
],
|
|
1450
|
+
numArtifacts: "Test string",
|
|
1451
|
+
},
|
|
1452
|
+
secrets: [
|
|
1453
|
+
{
|
|
1454
|
+
kmsKeyName: "Test string",
|
|
1455
|
+
secretEnv: {
|
|
1456
|
+
A: "Test string"
|
|
1457
|
+
},
|
|
1458
|
+
}
|
|
1459
|
+
],
|
|
1460
|
+
serviceAccount: "Test string",
|
|
1461
|
+
source: {
|
|
1462
|
+
repoSource: {
|
|
1463
|
+
branchName: "Test string",
|
|
1464
|
+
commitSha: "Test string",
|
|
1465
|
+
dir: "Test string",
|
|
1466
|
+
invertRegex: true,
|
|
1467
|
+
projectId: "Test string",
|
|
1468
|
+
repoName: "Test string",
|
|
1469
|
+
substitutions: {
|
|
1470
|
+
A: "Test string"
|
|
1471
|
+
},
|
|
1472
|
+
tagName: "Test string",
|
|
1473
|
+
},
|
|
1474
|
+
storageSource: {
|
|
1475
|
+
bucket: "Test string",
|
|
1476
|
+
generation: "Test string",
|
|
1477
|
+
object: "Test string",
|
|
1478
|
+
},
|
|
1479
|
+
storageSourceManifest: {
|
|
1480
|
+
bucket: "Test string",
|
|
1481
|
+
generation: "Test string",
|
|
1482
|
+
object: "Test string",
|
|
1483
|
+
},
|
|
1484
|
+
},
|
|
1485
|
+
sourceProvenance: {
|
|
1486
|
+
fileHashes: {
|
|
1487
|
+
A: {
|
|
1488
|
+
fileHash: [
|
|
1489
|
+
{
|
|
1490
|
+
type: "Test string",
|
|
1491
|
+
value: "Test string",
|
|
1492
|
+
}
|
|
1493
|
+
],
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
resolvedRepoSource: {
|
|
1497
|
+
branchName: "Test string",
|
|
1498
|
+
commitSha: "Test string",
|
|
1499
|
+
dir: "Test string",
|
|
1500
|
+
invertRegex: true,
|
|
1501
|
+
projectId: "Test string",
|
|
1502
|
+
repoName: "Test string",
|
|
1503
|
+
substitutions: {
|
|
1504
|
+
A: "Test string"
|
|
1505
|
+
},
|
|
1506
|
+
tagName: "Test string",
|
|
1507
|
+
},
|
|
1508
|
+
resolvedStorageSource: {
|
|
1509
|
+
bucket: "Test string",
|
|
1510
|
+
generation: "Test string",
|
|
1511
|
+
object: "Test string",
|
|
1512
|
+
},
|
|
1513
|
+
resolvedStorageSourceManifest: {
|
|
1514
|
+
bucket: "Test string",
|
|
1515
|
+
generation: "Test string",
|
|
1516
|
+
object: "Test string",
|
|
1517
|
+
},
|
|
1518
|
+
},
|
|
1519
|
+
startTime: "Test string",
|
|
1520
|
+
status: "Test string",
|
|
1521
|
+
statusDetail: "Test string",
|
|
1522
|
+
steps: [
|
|
1523
|
+
{
|
|
1524
|
+
args: [
|
|
1525
|
+
"Test string"
|
|
1526
|
+
],
|
|
1527
|
+
dir: "Test string",
|
|
1528
|
+
entrypoint: "Test string",
|
|
1529
|
+
env: [
|
|
1530
|
+
"Test string"
|
|
1531
|
+
],
|
|
1532
|
+
id: "Test string",
|
|
1533
|
+
name: "Test string",
|
|
1534
|
+
pullTiming: {
|
|
1535
|
+
endTime: "Test string",
|
|
1536
|
+
startTime: "Test string",
|
|
1537
|
+
},
|
|
1538
|
+
script: "Test string",
|
|
1539
|
+
secretEnv: [
|
|
1540
|
+
"Test string"
|
|
1541
|
+
],
|
|
1542
|
+
status: "Test string",
|
|
1543
|
+
timeout: "Test string",
|
|
1544
|
+
timing: {
|
|
1545
|
+
endTime: "Test string",
|
|
1546
|
+
startTime: "Test string",
|
|
1547
|
+
},
|
|
1548
|
+
volumes: [
|
|
1549
|
+
{
|
|
1550
|
+
name: "Test string",
|
|
1551
|
+
path: "Test string",
|
|
1552
|
+
}
|
|
1553
|
+
],
|
|
1554
|
+
waitFor: [
|
|
1555
|
+
"Test string"
|
|
1556
|
+
],
|
|
1557
|
+
}
|
|
1558
|
+
],
|
|
1559
|
+
substitutions: {
|
|
1560
|
+
A: "Test string"
|
|
1561
|
+
},
|
|
1562
|
+
tags: [
|
|
1563
|
+
"Test string"
|
|
1564
|
+
],
|
|
1565
|
+
timeout: "Test string",
|
|
1566
|
+
timing: {
|
|
1567
|
+
A: {
|
|
1568
|
+
endTime: "Test string",
|
|
1569
|
+
startTime: "Test string",
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1572
|
+
warnings: [
|
|
1573
|
+
{
|
|
1574
|
+
priority: "Test string",
|
|
1575
|
+
text: "Test string",
|
|
1576
|
+
}
|
|
1577
|
+
],
|
|
1578
|
+
},
|
|
1579
|
+
createTime: "Test string",
|
|
1580
|
+
description: "Test string",
|
|
1581
|
+
disabled: true,
|
|
1582
|
+
eventType: "Test string",
|
|
1583
|
+
filename: "Test string",
|
|
1584
|
+
filter: "Test string",
|
|
1585
|
+
gitFileSource: {
|
|
1586
|
+
bitbucketServerConfig: "Test string",
|
|
1587
|
+
githubEnterpriseConfig: "Test string",
|
|
1588
|
+
path: "Test string",
|
|
1589
|
+
repoType: "Test string",
|
|
1590
|
+
revision: "Test string",
|
|
1591
|
+
uri: "Test string",
|
|
1592
|
+
},
|
|
1593
|
+
github: {
|
|
1594
|
+
enterpriseConfigResourceName: "Test string",
|
|
1595
|
+
installationId: "Test string",
|
|
1596
|
+
name: "Test string",
|
|
1597
|
+
owner: "Test string",
|
|
1598
|
+
pullRequest: {
|
|
1599
|
+
branch: "Test string",
|
|
1600
|
+
commentControl: "Test string",
|
|
1601
|
+
invertRegex: true,
|
|
1602
|
+
},
|
|
1603
|
+
push: {
|
|
1604
|
+
branch: "Test string",
|
|
1605
|
+
invertRegex: true,
|
|
1606
|
+
tag: "Test string",
|
|
1607
|
+
},
|
|
1608
|
+
},
|
|
1609
|
+
id: "Test string",
|
|
1610
|
+
ignoredFiles: [
|
|
1611
|
+
"Test string"
|
|
1612
|
+
],
|
|
1613
|
+
includeBuildLogs: "Test string",
|
|
1614
|
+
includedFiles: [
|
|
1615
|
+
"Test string"
|
|
1616
|
+
],
|
|
1617
|
+
name: "Test string",
|
|
1618
|
+
pubsubConfig: {
|
|
1619
|
+
serviceAccountEmail: "Test string",
|
|
1620
|
+
state: "Test string",
|
|
1621
|
+
subscription: "Test string",
|
|
1622
|
+
topic: "Test string",
|
|
1623
|
+
},
|
|
1624
|
+
resourceName: "Test string",
|
|
1625
|
+
serviceAccount: "Test string",
|
|
1626
|
+
sourceToBuild: {
|
|
1627
|
+
bitbucketServerConfig: "Test string",
|
|
1628
|
+
githubEnterpriseConfig: "Test string",
|
|
1629
|
+
ref: "Test string",
|
|
1630
|
+
repoType: "Test string",
|
|
1631
|
+
uri: "Test string",
|
|
1632
|
+
},
|
|
1633
|
+
substitutions: {
|
|
1634
|
+
A: "Test string"
|
|
1635
|
+
},
|
|
1636
|
+
tags: [
|
|
1637
|
+
"Test string"
|
|
1638
|
+
],
|
|
1639
|
+
triggerTemplate: {
|
|
1640
|
+
branchName: "Test string",
|
|
1641
|
+
commitSha: "Test string",
|
|
1642
|
+
dir: "Test string",
|
|
1643
|
+
invertRegex: true,
|
|
1644
|
+
projectId: "Test string",
|
|
1645
|
+
repoName: "Test string",
|
|
1646
|
+
substitutions: {
|
|
1647
|
+
A: "Test string"
|
|
1648
|
+
},
|
|
1649
|
+
tagName: "Test string",
|
|
1650
|
+
},
|
|
1651
|
+
webhookConfig: {
|
|
1652
|
+
secret: "Test string",
|
|
1653
|
+
state: "Test string",
|
|
1654
|
+
},
|
|
1655
|
+
});
|
|
1656
|
+
/**
|
|
1657
|
+
* Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path. The POST request that
|
|
1658
|
+
* does not include the location endpoint in the path can only be used when running global triggers.
|
|
1659
|
+
*/
|
|
1660
|
+
await gapi.client.cloudbuild.projects.locations.triggers.run({
|
|
1661
|
+
name: "Test string",
|
|
1662
|
+
}, {
|
|
1663
|
+
projectId: "Test string",
|
|
1664
|
+
source: {
|
|
1665
|
+
branchName: "Test string",
|
|
1666
|
+
commitSha: "Test string",
|
|
1667
|
+
dir: "Test string",
|
|
1668
|
+
invertRegex: true,
|
|
1669
|
+
projectId: "Test string",
|
|
1670
|
+
repoName: "Test string",
|
|
1671
|
+
substitutions: {
|
|
1672
|
+
A: "Test string"
|
|
1673
|
+
},
|
|
1674
|
+
tagName: "Test string",
|
|
1675
|
+
},
|
|
1676
|
+
triggerId: "Test string",
|
|
1677
|
+
});
|
|
1678
|
+
/** ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. */
|
|
1679
|
+
await gapi.client.cloudbuild.projects.locations.triggers.webhook({
|
|
1680
|
+
name: "Test string",
|
|
1681
|
+
projectId: "Test string",
|
|
1682
|
+
secret: "Test string",
|
|
1683
|
+
trigger: "Test string",
|
|
1684
|
+
}, {
|
|
1685
|
+
contentType: "Test string",
|
|
1686
|
+
data: "Test string",
|
|
1687
|
+
extensions: [
|
|
1688
|
+
{
|
|
1689
|
+
A: 42
|
|
1690
|
+
}
|
|
1691
|
+
],
|
|
1692
|
+
});
|
|
1693
|
+
/** Creates a `WorkerPool`. */
|
|
1694
|
+
await gapi.client.cloudbuild.projects.locations.workerPools.create({
|
|
1695
|
+
parent: "Test string",
|
|
1696
|
+
validateOnly: true,
|
|
1697
|
+
workerPoolId: "Test string",
|
|
1698
|
+
}, {
|
|
1699
|
+
annotations: {
|
|
1700
|
+
A: "Test string"
|
|
1701
|
+
},
|
|
1702
|
+
createTime: "Test string",
|
|
1703
|
+
deleteTime: "Test string",
|
|
1704
|
+
displayName: "Test string",
|
|
1705
|
+
etag: "Test string",
|
|
1706
|
+
name: "Test string",
|
|
1707
|
+
privatePoolV1Config: {
|
|
1708
|
+
networkConfig: {
|
|
1709
|
+
egressOption: "Test string",
|
|
1710
|
+
peeredNetwork: "Test string",
|
|
1711
|
+
},
|
|
1712
|
+
workerConfig: {
|
|
1713
|
+
diskSizeGb: "Test string",
|
|
1714
|
+
machineType: "Test string",
|
|
1715
|
+
},
|
|
1716
|
+
},
|
|
1717
|
+
state: "Test string",
|
|
1718
|
+
uid: "Test string",
|
|
1719
|
+
updateTime: "Test string",
|
|
1720
|
+
});
|
|
1721
|
+
/** Deletes a `WorkerPool`. */
|
|
1722
|
+
await gapi.client.cloudbuild.projects.locations.workerPools.delete({
|
|
1723
|
+
allowMissing: true,
|
|
1724
|
+
etag: "Test string",
|
|
1725
|
+
name: "Test string",
|
|
1726
|
+
validateOnly: true,
|
|
1727
|
+
});
|
|
1728
|
+
/** Returns details of a `WorkerPool`. */
|
|
1729
|
+
await gapi.client.cloudbuild.projects.locations.workerPools.get({
|
|
1730
|
+
name: "Test string",
|
|
1731
|
+
});
|
|
1732
|
+
/** Lists `WorkerPool`s. */
|
|
1733
|
+
await gapi.client.cloudbuild.projects.locations.workerPools.list({
|
|
1734
|
+
pageSize: 42,
|
|
1735
|
+
pageToken: "Test string",
|
|
1736
|
+
parent: "Test string",
|
|
1737
|
+
});
|
|
1738
|
+
/** Updates a `WorkerPool`. */
|
|
1739
|
+
await gapi.client.cloudbuild.projects.locations.workerPools.patch({
|
|
1740
|
+
name: "Test string",
|
|
1741
|
+
updateMask: "Test string",
|
|
1742
|
+
validateOnly: true,
|
|
1743
|
+
}, {
|
|
1744
|
+
annotations: {
|
|
1745
|
+
A: "Test string"
|
|
1746
|
+
},
|
|
1747
|
+
createTime: "Test string",
|
|
1748
|
+
deleteTime: "Test string",
|
|
1749
|
+
displayName: "Test string",
|
|
1750
|
+
etag: "Test string",
|
|
1751
|
+
name: "Test string",
|
|
1752
|
+
privatePoolV1Config: {
|
|
1753
|
+
networkConfig: {
|
|
1754
|
+
egressOption: "Test string",
|
|
1755
|
+
peeredNetwork: "Test string",
|
|
1756
|
+
},
|
|
1757
|
+
workerConfig: {
|
|
1758
|
+
diskSizeGb: "Test string",
|
|
1759
|
+
machineType: "Test string",
|
|
1760
|
+
},
|
|
1761
|
+
},
|
|
1762
|
+
state: "Test string",
|
|
1763
|
+
uid: "Test string",
|
|
1764
|
+
updateTime: "Test string",
|
|
1765
|
+
});
|
|
1766
|
+
/** Creates a new `BuildTrigger`. This API is experimental. */
|
|
1767
|
+
await gapi.client.cloudbuild.projects.triggers.create({
|
|
1768
|
+
parent: "Test string",
|
|
1769
|
+
projectId: "Test string",
|
|
1770
|
+
}, {
|
|
1771
|
+
approvalConfig: {
|
|
1772
|
+
approvalRequired: true,
|
|
1773
|
+
},
|
|
1774
|
+
autodetect: true,
|
|
1775
|
+
bitbucketServerTriggerConfig: {
|
|
1776
|
+
bitbucketServerConfig: {
|
|
1777
|
+
apiKey: "Test string",
|
|
1778
|
+
connectedRepositories: [
|
|
1779
|
+
{
|
|
1780
|
+
projectKey: "Test string",
|
|
1781
|
+
repoSlug: "Test string",
|
|
1782
|
+
webhookId: 42,
|
|
1783
|
+
}
|
|
1784
|
+
],
|
|
1785
|
+
createTime: "Test string",
|
|
1786
|
+
hostUri: "Test string",
|
|
1787
|
+
name: "Test string",
|
|
1788
|
+
peeredNetwork: "Test string",
|
|
1789
|
+
secrets: {
|
|
1790
|
+
adminAccessTokenVersionName: "Test string",
|
|
1791
|
+
readAccessTokenVersionName: "Test string",
|
|
1792
|
+
webhookSecretVersionName: "Test string",
|
|
1793
|
+
},
|
|
1794
|
+
sslCa: "Test string",
|
|
1795
|
+
username: "Test string",
|
|
1796
|
+
webhookKey: "Test string",
|
|
1797
|
+
},
|
|
1798
|
+
bitbucketServerConfigResource: "Test string",
|
|
1799
|
+
projectKey: "Test string",
|
|
1800
|
+
pullRequest: {
|
|
1801
|
+
branch: "Test string",
|
|
1802
|
+
commentControl: "Test string",
|
|
1803
|
+
invertRegex: true,
|
|
1804
|
+
},
|
|
1805
|
+
push: {
|
|
1806
|
+
branch: "Test string",
|
|
1807
|
+
invertRegex: true,
|
|
1808
|
+
tag: "Test string",
|
|
1809
|
+
},
|
|
1810
|
+
repoSlug: "Test string",
|
|
1811
|
+
},
|
|
1812
|
+
build: {
|
|
1813
|
+
approval: {
|
|
1814
|
+
config: {
|
|
1815
|
+
approvalRequired: true,
|
|
1816
|
+
},
|
|
1817
|
+
result: {
|
|
1818
|
+
approvalTime: "Test string",
|
|
1819
|
+
approverAccount: "Test string",
|
|
1820
|
+
comment: "Test string",
|
|
1821
|
+
decision: "Test string",
|
|
1822
|
+
url: "Test string",
|
|
1823
|
+
},
|
|
1824
|
+
state: "Test string",
|
|
1825
|
+
},
|
|
1826
|
+
artifacts: {
|
|
1827
|
+
images: [
|
|
1828
|
+
"Test string"
|
|
1829
|
+
],
|
|
1830
|
+
objects: {
|
|
1831
|
+
location: "Test string",
|
|
1832
|
+
paths: [
|
|
1833
|
+
"Test string"
|
|
1834
|
+
],
|
|
1835
|
+
timing: {
|
|
1836
|
+
endTime: "Test string",
|
|
1837
|
+
startTime: "Test string",
|
|
1838
|
+
},
|
|
1839
|
+
},
|
|
1840
|
+
},
|
|
1841
|
+
availableSecrets: {
|
|
1842
|
+
inline: [
|
|
1843
|
+
{
|
|
1844
|
+
envMap: {
|
|
1845
|
+
A: "Test string"
|
|
1846
|
+
},
|
|
1847
|
+
kmsKeyName: "Test string",
|
|
1848
|
+
}
|
|
1849
|
+
],
|
|
1850
|
+
secretManager: [
|
|
1851
|
+
{
|
|
1852
|
+
env: "Test string",
|
|
1853
|
+
versionName: "Test string",
|
|
1854
|
+
}
|
|
1855
|
+
],
|
|
1856
|
+
},
|
|
1857
|
+
buildTriggerId: "Test string",
|
|
1858
|
+
createTime: "Test string",
|
|
1859
|
+
failureInfo: {
|
|
1860
|
+
detail: "Test string",
|
|
1861
|
+
type: "Test string",
|
|
1862
|
+
},
|
|
1863
|
+
finishTime: "Test string",
|
|
1864
|
+
id: "Test string",
|
|
1865
|
+
images: [
|
|
1866
|
+
"Test string"
|
|
1867
|
+
],
|
|
1868
|
+
logsBucket: "Test string",
|
|
1869
|
+
logUrl: "Test string",
|
|
1870
|
+
name: "Test string",
|
|
1871
|
+
options: {
|
|
1872
|
+
diskSizeGb: "Test string",
|
|
1873
|
+
dynamicSubstitutions: true,
|
|
1874
|
+
env: [
|
|
1875
|
+
"Test string"
|
|
1876
|
+
],
|
|
1877
|
+
logging: "Test string",
|
|
1878
|
+
logStreamingOption: "Test string",
|
|
1879
|
+
machineType: "Test string",
|
|
1880
|
+
pool: {
|
|
1881
|
+
name: "Test string",
|
|
1882
|
+
},
|
|
1883
|
+
requestedVerifyOption: "Test string",
|
|
1884
|
+
secretEnv: [
|
|
1885
|
+
"Test string"
|
|
1886
|
+
],
|
|
1887
|
+
sourceProvenanceHash: [
|
|
1888
|
+
"Test string"
|
|
1889
|
+
],
|
|
1890
|
+
substitutionOption: "Test string",
|
|
1891
|
+
volumes: [
|
|
1892
|
+
{
|
|
1893
|
+
name: "Test string",
|
|
1894
|
+
path: "Test string",
|
|
1895
|
+
}
|
|
1896
|
+
],
|
|
1897
|
+
workerPool: "Test string",
|
|
1898
|
+
},
|
|
1899
|
+
projectId: "Test string",
|
|
1900
|
+
queueTtl: "Test string",
|
|
1901
|
+
results: {
|
|
1902
|
+
artifactManifest: "Test string",
|
|
1903
|
+
artifactTiming: {
|
|
1904
|
+
endTime: "Test string",
|
|
1905
|
+
startTime: "Test string",
|
|
1906
|
+
},
|
|
1907
|
+
buildStepImages: [
|
|
1908
|
+
"Test string"
|
|
1909
|
+
],
|
|
1910
|
+
buildStepOutputs: [
|
|
1911
|
+
"Test string"
|
|
1912
|
+
],
|
|
1913
|
+
images: [
|
|
1914
|
+
{
|
|
1915
|
+
digest: "Test string",
|
|
1916
|
+
name: "Test string",
|
|
1917
|
+
pushTiming: {
|
|
1918
|
+
endTime: "Test string",
|
|
1919
|
+
startTime: "Test string",
|
|
1920
|
+
},
|
|
1921
|
+
}
|
|
1922
|
+
],
|
|
1923
|
+
numArtifacts: "Test string",
|
|
1924
|
+
},
|
|
1925
|
+
secrets: [
|
|
1926
|
+
{
|
|
1927
|
+
kmsKeyName: "Test string",
|
|
1928
|
+
secretEnv: {
|
|
1929
|
+
A: "Test string"
|
|
1930
|
+
},
|
|
1931
|
+
}
|
|
1932
|
+
],
|
|
1933
|
+
serviceAccount: "Test string",
|
|
1934
|
+
source: {
|
|
1935
|
+
repoSource: {
|
|
1936
|
+
branchName: "Test string",
|
|
1937
|
+
commitSha: "Test string",
|
|
1938
|
+
dir: "Test string",
|
|
1939
|
+
invertRegex: true,
|
|
1940
|
+
projectId: "Test string",
|
|
1941
|
+
repoName: "Test string",
|
|
1942
|
+
substitutions: {
|
|
1943
|
+
A: "Test string"
|
|
1944
|
+
},
|
|
1945
|
+
tagName: "Test string",
|
|
1946
|
+
},
|
|
1947
|
+
storageSource: {
|
|
1948
|
+
bucket: "Test string",
|
|
1949
|
+
generation: "Test string",
|
|
1950
|
+
object: "Test string",
|
|
1951
|
+
},
|
|
1952
|
+
storageSourceManifest: {
|
|
1953
|
+
bucket: "Test string",
|
|
1954
|
+
generation: "Test string",
|
|
1955
|
+
object: "Test string",
|
|
1956
|
+
},
|
|
1957
|
+
},
|
|
1958
|
+
sourceProvenance: {
|
|
1959
|
+
fileHashes: {
|
|
1960
|
+
A: {
|
|
1961
|
+
fileHash: [
|
|
1962
|
+
{
|
|
1963
|
+
type: "Test string",
|
|
1964
|
+
value: "Test string",
|
|
1965
|
+
}
|
|
1966
|
+
],
|
|
1967
|
+
}
|
|
1968
|
+
},
|
|
1969
|
+
resolvedRepoSource: {
|
|
1970
|
+
branchName: "Test string",
|
|
1971
|
+
commitSha: "Test string",
|
|
1972
|
+
dir: "Test string",
|
|
1973
|
+
invertRegex: true,
|
|
1974
|
+
projectId: "Test string",
|
|
1975
|
+
repoName: "Test string",
|
|
1976
|
+
substitutions: {
|
|
1977
|
+
A: "Test string"
|
|
1978
|
+
},
|
|
1979
|
+
tagName: "Test string",
|
|
1980
|
+
},
|
|
1981
|
+
resolvedStorageSource: {
|
|
1982
|
+
bucket: "Test string",
|
|
1983
|
+
generation: "Test string",
|
|
1984
|
+
object: "Test string",
|
|
1985
|
+
},
|
|
1986
|
+
resolvedStorageSourceManifest: {
|
|
1987
|
+
bucket: "Test string",
|
|
1988
|
+
generation: "Test string",
|
|
1989
|
+
object: "Test string",
|
|
1990
|
+
},
|
|
1991
|
+
},
|
|
1992
|
+
startTime: "Test string",
|
|
1993
|
+
status: "Test string",
|
|
1994
|
+
statusDetail: "Test string",
|
|
1995
|
+
steps: [
|
|
1996
|
+
{
|
|
1997
|
+
args: [
|
|
1998
|
+
"Test string"
|
|
1999
|
+
],
|
|
2000
|
+
dir: "Test string",
|
|
2001
|
+
entrypoint: "Test string",
|
|
2002
|
+
env: [
|
|
2003
|
+
"Test string"
|
|
2004
|
+
],
|
|
2005
|
+
id: "Test string",
|
|
2006
|
+
name: "Test string",
|
|
2007
|
+
pullTiming: {
|
|
2008
|
+
endTime: "Test string",
|
|
2009
|
+
startTime: "Test string",
|
|
2010
|
+
},
|
|
2011
|
+
script: "Test string",
|
|
2012
|
+
secretEnv: [
|
|
2013
|
+
"Test string"
|
|
2014
|
+
],
|
|
2015
|
+
status: "Test string",
|
|
2016
|
+
timeout: "Test string",
|
|
2017
|
+
timing: {
|
|
2018
|
+
endTime: "Test string",
|
|
2019
|
+
startTime: "Test string",
|
|
2020
|
+
},
|
|
2021
|
+
volumes: [
|
|
2022
|
+
{
|
|
2023
|
+
name: "Test string",
|
|
2024
|
+
path: "Test string",
|
|
2025
|
+
}
|
|
2026
|
+
],
|
|
2027
|
+
waitFor: [
|
|
2028
|
+
"Test string"
|
|
2029
|
+
],
|
|
2030
|
+
}
|
|
2031
|
+
],
|
|
2032
|
+
substitutions: {
|
|
2033
|
+
A: "Test string"
|
|
2034
|
+
},
|
|
2035
|
+
tags: [
|
|
2036
|
+
"Test string"
|
|
2037
|
+
],
|
|
2038
|
+
timeout: "Test string",
|
|
2039
|
+
timing: {
|
|
2040
|
+
A: {
|
|
2041
|
+
endTime: "Test string",
|
|
2042
|
+
startTime: "Test string",
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
2045
|
+
warnings: [
|
|
2046
|
+
{
|
|
2047
|
+
priority: "Test string",
|
|
2048
|
+
text: "Test string",
|
|
2049
|
+
}
|
|
2050
|
+
],
|
|
2051
|
+
},
|
|
2052
|
+
createTime: "Test string",
|
|
2053
|
+
description: "Test string",
|
|
2054
|
+
disabled: true,
|
|
2055
|
+
eventType: "Test string",
|
|
2056
|
+
filename: "Test string",
|
|
2057
|
+
filter: "Test string",
|
|
2058
|
+
gitFileSource: {
|
|
2059
|
+
bitbucketServerConfig: "Test string",
|
|
2060
|
+
githubEnterpriseConfig: "Test string",
|
|
2061
|
+
path: "Test string",
|
|
2062
|
+
repoType: "Test string",
|
|
2063
|
+
revision: "Test string",
|
|
2064
|
+
uri: "Test string",
|
|
2065
|
+
},
|
|
2066
|
+
github: {
|
|
2067
|
+
enterpriseConfigResourceName: "Test string",
|
|
2068
|
+
installationId: "Test string",
|
|
2069
|
+
name: "Test string",
|
|
2070
|
+
owner: "Test string",
|
|
2071
|
+
pullRequest: {
|
|
2072
|
+
branch: "Test string",
|
|
2073
|
+
commentControl: "Test string",
|
|
2074
|
+
invertRegex: true,
|
|
2075
|
+
},
|
|
2076
|
+
push: {
|
|
2077
|
+
branch: "Test string",
|
|
2078
|
+
invertRegex: true,
|
|
2079
|
+
tag: "Test string",
|
|
2080
|
+
},
|
|
2081
|
+
},
|
|
2082
|
+
id: "Test string",
|
|
2083
|
+
ignoredFiles: [
|
|
2084
|
+
"Test string"
|
|
2085
|
+
],
|
|
2086
|
+
includeBuildLogs: "Test string",
|
|
2087
|
+
includedFiles: [
|
|
2088
|
+
"Test string"
|
|
2089
|
+
],
|
|
2090
|
+
name: "Test string",
|
|
2091
|
+
pubsubConfig: {
|
|
2092
|
+
serviceAccountEmail: "Test string",
|
|
2093
|
+
state: "Test string",
|
|
2094
|
+
subscription: "Test string",
|
|
2095
|
+
topic: "Test string",
|
|
2096
|
+
},
|
|
2097
|
+
resourceName: "Test string",
|
|
2098
|
+
serviceAccount: "Test string",
|
|
2099
|
+
sourceToBuild: {
|
|
2100
|
+
bitbucketServerConfig: "Test string",
|
|
2101
|
+
githubEnterpriseConfig: "Test string",
|
|
2102
|
+
ref: "Test string",
|
|
2103
|
+
repoType: "Test string",
|
|
2104
|
+
uri: "Test string",
|
|
2105
|
+
},
|
|
2106
|
+
substitutions: {
|
|
2107
|
+
A: "Test string"
|
|
2108
|
+
},
|
|
2109
|
+
tags: [
|
|
2110
|
+
"Test string"
|
|
2111
|
+
],
|
|
2112
|
+
triggerTemplate: {
|
|
2113
|
+
branchName: "Test string",
|
|
2114
|
+
commitSha: "Test string",
|
|
2115
|
+
dir: "Test string",
|
|
2116
|
+
invertRegex: true,
|
|
2117
|
+
projectId: "Test string",
|
|
2118
|
+
repoName: "Test string",
|
|
2119
|
+
substitutions: {
|
|
2120
|
+
A: "Test string"
|
|
2121
|
+
},
|
|
2122
|
+
tagName: "Test string",
|
|
2123
|
+
},
|
|
2124
|
+
webhookConfig: {
|
|
2125
|
+
secret: "Test string",
|
|
2126
|
+
state: "Test string",
|
|
2127
|
+
},
|
|
2128
|
+
});
|
|
2129
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental. */
|
|
2130
|
+
await gapi.client.cloudbuild.projects.triggers.delete({
|
|
2131
|
+
name: "Test string",
|
|
2132
|
+
projectId: "Test string",
|
|
2133
|
+
triggerId: "Test string",
|
|
2134
|
+
});
|
|
2135
|
+
/** Returns information about a `BuildTrigger`. This API is experimental. */
|
|
2136
|
+
await gapi.client.cloudbuild.projects.triggers.get({
|
|
2137
|
+
name: "Test string",
|
|
2138
|
+
projectId: "Test string",
|
|
2139
|
+
triggerId: "Test string",
|
|
2140
|
+
});
|
|
2141
|
+
/** Lists existing `BuildTrigger`s. This API is experimental. */
|
|
2142
|
+
await gapi.client.cloudbuild.projects.triggers.list({
|
|
2143
|
+
pageSize: 42,
|
|
2144
|
+
pageToken: "Test string",
|
|
2145
|
+
parent: "Test string",
|
|
2146
|
+
projectId: "Test string",
|
|
2147
|
+
});
|
|
2148
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental. */
|
|
2149
|
+
await gapi.client.cloudbuild.projects.triggers.patch({
|
|
2150
|
+
projectId: "Test string",
|
|
2151
|
+
triggerId: "Test string",
|
|
2152
|
+
}, {
|
|
2153
|
+
approvalConfig: {
|
|
2154
|
+
approvalRequired: true,
|
|
2155
|
+
},
|
|
2156
|
+
autodetect: true,
|
|
2157
|
+
bitbucketServerTriggerConfig: {
|
|
2158
|
+
bitbucketServerConfig: {
|
|
2159
|
+
apiKey: "Test string",
|
|
2160
|
+
connectedRepositories: [
|
|
2161
|
+
{
|
|
2162
|
+
projectKey: "Test string",
|
|
2163
|
+
repoSlug: "Test string",
|
|
2164
|
+
webhookId: 42,
|
|
2165
|
+
}
|
|
2166
|
+
],
|
|
2167
|
+
createTime: "Test string",
|
|
2168
|
+
hostUri: "Test string",
|
|
2169
|
+
name: "Test string",
|
|
2170
|
+
peeredNetwork: "Test string",
|
|
2171
|
+
secrets: {
|
|
2172
|
+
adminAccessTokenVersionName: "Test string",
|
|
2173
|
+
readAccessTokenVersionName: "Test string",
|
|
2174
|
+
webhookSecretVersionName: "Test string",
|
|
2175
|
+
},
|
|
2176
|
+
sslCa: "Test string",
|
|
2177
|
+
username: "Test string",
|
|
2178
|
+
webhookKey: "Test string",
|
|
2179
|
+
},
|
|
2180
|
+
bitbucketServerConfigResource: "Test string",
|
|
2181
|
+
projectKey: "Test string",
|
|
2182
|
+
pullRequest: {
|
|
2183
|
+
branch: "Test string",
|
|
2184
|
+
commentControl: "Test string",
|
|
2185
|
+
invertRegex: true,
|
|
2186
|
+
},
|
|
2187
|
+
push: {
|
|
2188
|
+
branch: "Test string",
|
|
2189
|
+
invertRegex: true,
|
|
2190
|
+
tag: "Test string",
|
|
2191
|
+
},
|
|
2192
|
+
repoSlug: "Test string",
|
|
2193
|
+
},
|
|
2194
|
+
build: {
|
|
2195
|
+
approval: {
|
|
2196
|
+
config: {
|
|
2197
|
+
approvalRequired: true,
|
|
2198
|
+
},
|
|
2199
|
+
result: {
|
|
2200
|
+
approvalTime: "Test string",
|
|
2201
|
+
approverAccount: "Test string",
|
|
2202
|
+
comment: "Test string",
|
|
2203
|
+
decision: "Test string",
|
|
2204
|
+
url: "Test string",
|
|
2205
|
+
},
|
|
2206
|
+
state: "Test string",
|
|
2207
|
+
},
|
|
2208
|
+
artifacts: {
|
|
2209
|
+
images: [
|
|
2210
|
+
"Test string"
|
|
2211
|
+
],
|
|
2212
|
+
objects: {
|
|
2213
|
+
location: "Test string",
|
|
2214
|
+
paths: [
|
|
2215
|
+
"Test string"
|
|
2216
|
+
],
|
|
2217
|
+
timing: {
|
|
2218
|
+
endTime: "Test string",
|
|
2219
|
+
startTime: "Test string",
|
|
2220
|
+
},
|
|
2221
|
+
},
|
|
2222
|
+
},
|
|
2223
|
+
availableSecrets: {
|
|
2224
|
+
inline: [
|
|
2225
|
+
{
|
|
2226
|
+
envMap: {
|
|
2227
|
+
A: "Test string"
|
|
2228
|
+
},
|
|
2229
|
+
kmsKeyName: "Test string",
|
|
2230
|
+
}
|
|
2231
|
+
],
|
|
2232
|
+
secretManager: [
|
|
2233
|
+
{
|
|
2234
|
+
env: "Test string",
|
|
2235
|
+
versionName: "Test string",
|
|
2236
|
+
}
|
|
2237
|
+
],
|
|
2238
|
+
},
|
|
2239
|
+
buildTriggerId: "Test string",
|
|
2240
|
+
createTime: "Test string",
|
|
2241
|
+
failureInfo: {
|
|
2242
|
+
detail: "Test string",
|
|
2243
|
+
type: "Test string",
|
|
2244
|
+
},
|
|
2245
|
+
finishTime: "Test string",
|
|
2246
|
+
id: "Test string",
|
|
2247
|
+
images: [
|
|
2248
|
+
"Test string"
|
|
2249
|
+
],
|
|
2250
|
+
logsBucket: "Test string",
|
|
2251
|
+
logUrl: "Test string",
|
|
2252
|
+
name: "Test string",
|
|
2253
|
+
options: {
|
|
2254
|
+
diskSizeGb: "Test string",
|
|
2255
|
+
dynamicSubstitutions: true,
|
|
2256
|
+
env: [
|
|
2257
|
+
"Test string"
|
|
2258
|
+
],
|
|
2259
|
+
logging: "Test string",
|
|
2260
|
+
logStreamingOption: "Test string",
|
|
2261
|
+
machineType: "Test string",
|
|
2262
|
+
pool: {
|
|
2263
|
+
name: "Test string",
|
|
2264
|
+
},
|
|
2265
|
+
requestedVerifyOption: "Test string",
|
|
2266
|
+
secretEnv: [
|
|
2267
|
+
"Test string"
|
|
2268
|
+
],
|
|
2269
|
+
sourceProvenanceHash: [
|
|
2270
|
+
"Test string"
|
|
2271
|
+
],
|
|
2272
|
+
substitutionOption: "Test string",
|
|
2273
|
+
volumes: [
|
|
2274
|
+
{
|
|
2275
|
+
name: "Test string",
|
|
2276
|
+
path: "Test string",
|
|
2277
|
+
}
|
|
2278
|
+
],
|
|
2279
|
+
workerPool: "Test string",
|
|
2280
|
+
},
|
|
2281
|
+
projectId: "Test string",
|
|
2282
|
+
queueTtl: "Test string",
|
|
2283
|
+
results: {
|
|
2284
|
+
artifactManifest: "Test string",
|
|
2285
|
+
artifactTiming: {
|
|
2286
|
+
endTime: "Test string",
|
|
2287
|
+
startTime: "Test string",
|
|
2288
|
+
},
|
|
2289
|
+
buildStepImages: [
|
|
2290
|
+
"Test string"
|
|
2291
|
+
],
|
|
2292
|
+
buildStepOutputs: [
|
|
2293
|
+
"Test string"
|
|
2294
|
+
],
|
|
2295
|
+
images: [
|
|
2296
|
+
{
|
|
2297
|
+
digest: "Test string",
|
|
2298
|
+
name: "Test string",
|
|
2299
|
+
pushTiming: {
|
|
2300
|
+
endTime: "Test string",
|
|
2301
|
+
startTime: "Test string",
|
|
2302
|
+
},
|
|
2303
|
+
}
|
|
2304
|
+
],
|
|
2305
|
+
numArtifacts: "Test string",
|
|
2306
|
+
},
|
|
2307
|
+
secrets: [
|
|
2308
|
+
{
|
|
2309
|
+
kmsKeyName: "Test string",
|
|
2310
|
+
secretEnv: {
|
|
2311
|
+
A: "Test string"
|
|
2312
|
+
},
|
|
2313
|
+
}
|
|
2314
|
+
],
|
|
2315
|
+
serviceAccount: "Test string",
|
|
2316
|
+
source: {
|
|
2317
|
+
repoSource: {
|
|
2318
|
+
branchName: "Test string",
|
|
2319
|
+
commitSha: "Test string",
|
|
2320
|
+
dir: "Test string",
|
|
2321
|
+
invertRegex: true,
|
|
2322
|
+
projectId: "Test string",
|
|
2323
|
+
repoName: "Test string",
|
|
2324
|
+
substitutions: {
|
|
2325
|
+
A: "Test string"
|
|
2326
|
+
},
|
|
2327
|
+
tagName: "Test string",
|
|
2328
|
+
},
|
|
2329
|
+
storageSource: {
|
|
2330
|
+
bucket: "Test string",
|
|
2331
|
+
generation: "Test string",
|
|
2332
|
+
object: "Test string",
|
|
2333
|
+
},
|
|
2334
|
+
storageSourceManifest: {
|
|
2335
|
+
bucket: "Test string",
|
|
2336
|
+
generation: "Test string",
|
|
2337
|
+
object: "Test string",
|
|
2338
|
+
},
|
|
2339
|
+
},
|
|
2340
|
+
sourceProvenance: {
|
|
2341
|
+
fileHashes: {
|
|
2342
|
+
A: {
|
|
2343
|
+
fileHash: [
|
|
2344
|
+
{
|
|
2345
|
+
type: "Test string",
|
|
2346
|
+
value: "Test string",
|
|
2347
|
+
}
|
|
2348
|
+
],
|
|
2349
|
+
}
|
|
2350
|
+
},
|
|
2351
|
+
resolvedRepoSource: {
|
|
2352
|
+
branchName: "Test string",
|
|
2353
|
+
commitSha: "Test string",
|
|
2354
|
+
dir: "Test string",
|
|
2355
|
+
invertRegex: true,
|
|
2356
|
+
projectId: "Test string",
|
|
2357
|
+
repoName: "Test string",
|
|
2358
|
+
substitutions: {
|
|
2359
|
+
A: "Test string"
|
|
2360
|
+
},
|
|
2361
|
+
tagName: "Test string",
|
|
2362
|
+
},
|
|
2363
|
+
resolvedStorageSource: {
|
|
2364
|
+
bucket: "Test string",
|
|
2365
|
+
generation: "Test string",
|
|
2366
|
+
object: "Test string",
|
|
2367
|
+
},
|
|
2368
|
+
resolvedStorageSourceManifest: {
|
|
2369
|
+
bucket: "Test string",
|
|
2370
|
+
generation: "Test string",
|
|
2371
|
+
object: "Test string",
|
|
2372
|
+
},
|
|
2373
|
+
},
|
|
2374
|
+
startTime: "Test string",
|
|
2375
|
+
status: "Test string",
|
|
2376
|
+
statusDetail: "Test string",
|
|
2377
|
+
steps: [
|
|
2378
|
+
{
|
|
2379
|
+
args: [
|
|
2380
|
+
"Test string"
|
|
2381
|
+
],
|
|
2382
|
+
dir: "Test string",
|
|
2383
|
+
entrypoint: "Test string",
|
|
2384
|
+
env: [
|
|
2385
|
+
"Test string"
|
|
2386
|
+
],
|
|
2387
|
+
id: "Test string",
|
|
2388
|
+
name: "Test string",
|
|
2389
|
+
pullTiming: {
|
|
2390
|
+
endTime: "Test string",
|
|
2391
|
+
startTime: "Test string",
|
|
2392
|
+
},
|
|
2393
|
+
script: "Test string",
|
|
2394
|
+
secretEnv: [
|
|
2395
|
+
"Test string"
|
|
2396
|
+
],
|
|
2397
|
+
status: "Test string",
|
|
2398
|
+
timeout: "Test string",
|
|
2399
|
+
timing: {
|
|
2400
|
+
endTime: "Test string",
|
|
2401
|
+
startTime: "Test string",
|
|
2402
|
+
},
|
|
2403
|
+
volumes: [
|
|
2404
|
+
{
|
|
2405
|
+
name: "Test string",
|
|
2406
|
+
path: "Test string",
|
|
2407
|
+
}
|
|
2408
|
+
],
|
|
2409
|
+
waitFor: [
|
|
2410
|
+
"Test string"
|
|
2411
|
+
],
|
|
2412
|
+
}
|
|
2413
|
+
],
|
|
2414
|
+
substitutions: {
|
|
2415
|
+
A: "Test string"
|
|
2416
|
+
},
|
|
2417
|
+
tags: [
|
|
2418
|
+
"Test string"
|
|
2419
|
+
],
|
|
2420
|
+
timeout: "Test string",
|
|
2421
|
+
timing: {
|
|
2422
|
+
A: {
|
|
2423
|
+
endTime: "Test string",
|
|
2424
|
+
startTime: "Test string",
|
|
2425
|
+
}
|
|
2426
|
+
},
|
|
2427
|
+
warnings: [
|
|
2428
|
+
{
|
|
2429
|
+
priority: "Test string",
|
|
2430
|
+
text: "Test string",
|
|
2431
|
+
}
|
|
2432
|
+
],
|
|
2433
|
+
},
|
|
2434
|
+
createTime: "Test string",
|
|
2435
|
+
description: "Test string",
|
|
2436
|
+
disabled: true,
|
|
2437
|
+
eventType: "Test string",
|
|
2438
|
+
filename: "Test string",
|
|
2439
|
+
filter: "Test string",
|
|
2440
|
+
gitFileSource: {
|
|
2441
|
+
bitbucketServerConfig: "Test string",
|
|
2442
|
+
githubEnterpriseConfig: "Test string",
|
|
2443
|
+
path: "Test string",
|
|
2444
|
+
repoType: "Test string",
|
|
2445
|
+
revision: "Test string",
|
|
2446
|
+
uri: "Test string",
|
|
2447
|
+
},
|
|
2448
|
+
github: {
|
|
2449
|
+
enterpriseConfigResourceName: "Test string",
|
|
2450
|
+
installationId: "Test string",
|
|
2451
|
+
name: "Test string",
|
|
2452
|
+
owner: "Test string",
|
|
2453
|
+
pullRequest: {
|
|
2454
|
+
branch: "Test string",
|
|
2455
|
+
commentControl: "Test string",
|
|
2456
|
+
invertRegex: true,
|
|
2457
|
+
},
|
|
2458
|
+
push: {
|
|
2459
|
+
branch: "Test string",
|
|
2460
|
+
invertRegex: true,
|
|
2461
|
+
tag: "Test string",
|
|
2462
|
+
},
|
|
2463
|
+
},
|
|
2464
|
+
id: "Test string",
|
|
2465
|
+
ignoredFiles: [
|
|
2466
|
+
"Test string"
|
|
2467
|
+
],
|
|
2468
|
+
includeBuildLogs: "Test string",
|
|
2469
|
+
includedFiles: [
|
|
2470
|
+
"Test string"
|
|
2471
|
+
],
|
|
2472
|
+
name: "Test string",
|
|
2473
|
+
pubsubConfig: {
|
|
2474
|
+
serviceAccountEmail: "Test string",
|
|
2475
|
+
state: "Test string",
|
|
2476
|
+
subscription: "Test string",
|
|
2477
|
+
topic: "Test string",
|
|
2478
|
+
},
|
|
2479
|
+
resourceName: "Test string",
|
|
2480
|
+
serviceAccount: "Test string",
|
|
2481
|
+
sourceToBuild: {
|
|
2482
|
+
bitbucketServerConfig: "Test string",
|
|
2483
|
+
githubEnterpriseConfig: "Test string",
|
|
2484
|
+
ref: "Test string",
|
|
2485
|
+
repoType: "Test string",
|
|
2486
|
+
uri: "Test string",
|
|
2487
|
+
},
|
|
2488
|
+
substitutions: {
|
|
2489
|
+
A: "Test string"
|
|
2490
|
+
},
|
|
2491
|
+
tags: [
|
|
2492
|
+
"Test string"
|
|
2493
|
+
],
|
|
2494
|
+
triggerTemplate: {
|
|
2495
|
+
branchName: "Test string",
|
|
2496
|
+
commitSha: "Test string",
|
|
2497
|
+
dir: "Test string",
|
|
2498
|
+
invertRegex: true,
|
|
2499
|
+
projectId: "Test string",
|
|
2500
|
+
repoName: "Test string",
|
|
2501
|
+
substitutions: {
|
|
2502
|
+
A: "Test string"
|
|
2503
|
+
},
|
|
2504
|
+
tagName: "Test string",
|
|
2505
|
+
},
|
|
2506
|
+
webhookConfig: {
|
|
2507
|
+
secret: "Test string",
|
|
2508
|
+
state: "Test string",
|
|
2509
|
+
},
|
|
2510
|
+
});
|
|
2511
|
+
/**
|
|
2512
|
+
* Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path. The POST request that
|
|
2513
|
+
* does not include the location endpoint in the path can only be used when running global triggers.
|
|
2514
|
+
*/
|
|
2515
|
+
await gapi.client.cloudbuild.projects.triggers.run({
|
|
2516
|
+
name: "Test string",
|
|
2517
|
+
projectId: "Test string",
|
|
2518
|
+
triggerId: "Test string",
|
|
2519
|
+
}, {
|
|
2520
|
+
branchName: "Test string",
|
|
2521
|
+
commitSha: "Test string",
|
|
2522
|
+
dir: "Test string",
|
|
2523
|
+
invertRegex: true,
|
|
2524
|
+
projectId: "Test string",
|
|
2525
|
+
repoName: "Test string",
|
|
2526
|
+
substitutions: {
|
|
2527
|
+
A: "Test string"
|
|
2528
|
+
},
|
|
2529
|
+
tagName: "Test string",
|
|
2530
|
+
});
|
|
2531
|
+
/** ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger. */
|
|
2532
|
+
await gapi.client.cloudbuild.projects.triggers.webhook({
|
|
2533
|
+
name: "Test string",
|
|
2534
|
+
projectId: "Test string",
|
|
2535
|
+
secret: "Test string",
|
|
2536
|
+
trigger: "Test string",
|
|
2537
|
+
}, {
|
|
2538
|
+
contentType: "Test string",
|
|
2539
|
+
data: "Test string",
|
|
2540
|
+
extensions: [
|
|
2541
|
+
{
|
|
2542
|
+
A: 42
|
|
2543
|
+
}
|
|
2544
|
+
],
|
|
2545
|
+
});
|
|
2546
|
+
/** ReceiveWebhook is called when the API receives a GitHub webhook. */
|
|
2547
|
+
await gapi.client.cloudbuild.v1.webhook({
|
|
2548
|
+
webhookKey: "Test string",
|
|
2549
|
+
}, {
|
|
2550
|
+
contentType: "Test string",
|
|
2551
|
+
data: "Test string",
|
|
2552
|
+
extensions: [
|
|
2553
|
+
{
|
|
2554
|
+
A: 42
|
|
2555
|
+
}
|
|
2556
|
+
],
|
|
2557
|
+
});
|
|
2558
|
+
}
|
|
2559
|
+
});
|