@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20230801 → 0.0.20230907
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 +26 -12
- package/package.json +2 -2
- package/tests.ts +41 -11
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://cloudbuild.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230907
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -680,6 +680,17 @@ declare namespace gapi.client {
|
|
|
680
680
|
// tslint:disable-next-line:no-empty-interface
|
|
681
681
|
interface CancelOperationRequest {
|
|
682
682
|
}
|
|
683
|
+
interface ConnectedRepository {
|
|
684
|
+
/** Directory, relative to the source root, in which to run the build. */
|
|
685
|
+
dir?:
|
|
686
|
+
string;
|
|
687
|
+
/** Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`. */
|
|
688
|
+
repository?:
|
|
689
|
+
string;
|
|
690
|
+
/** The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. */
|
|
691
|
+
revision?:
|
|
692
|
+
string;
|
|
693
|
+
}
|
|
683
694
|
interface CreateBitbucketServerConfigOperationMetadata {
|
|
684
695
|
/** The resource name of the BitbucketServerConfig to be created. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. */
|
|
685
696
|
bitbucketServerConfig?:
|
|
@@ -1402,7 +1413,7 @@ declare namespace gapi.client {
|
|
|
1402
1413
|
string[];
|
|
1403
1414
|
/**
|
|
1404
1415
|
* List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
|
|
1405
|
-
* can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first
|
|
1416
|
+
* can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored.
|
|
1406
1417
|
*/
|
|
1407
1418
|
buildStepOutputs?:
|
|
1408
1419
|
string[];
|
|
@@ -1477,6 +1488,9 @@ declare namespace gapi.client {
|
|
|
1477
1488
|
string;
|
|
1478
1489
|
}
|
|
1479
1490
|
interface Source {
|
|
1491
|
+
/** Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource. */
|
|
1492
|
+
connectedRepository?:
|
|
1493
|
+
ConnectedRepository;
|
|
1480
1494
|
/** If provided, get the source from this Git repository. */
|
|
1481
1495
|
gitSource?:
|
|
1482
1496
|
GitSource;
|
|
@@ -4758,7 +4772,7 @@ declare namespace gapi.client {
|
|
|
4758
4772
|
}): Request<Operation>;
|
|
4759
4773
|
}
|
|
4760
4774
|
interface TriggersResource {
|
|
4761
|
-
/** Creates a new `BuildTrigger`.
|
|
4775
|
+
/** Creates a new `BuildTrigger`. */
|
|
4762
4776
|
create(request: {
|
|
4763
4777
|
/** V1 error format. */
|
|
4764
4778
|
"$.xgafv"?:
|
|
@@ -4845,7 +4859,7 @@ declare namespace gapi.client {
|
|
|
4845
4859
|
string;
|
|
4846
4860
|
},
|
|
4847
4861
|
body: BuildTrigger): Request<BuildTrigger>;
|
|
4848
|
-
/** Deletes a `BuildTrigger` by its project ID and trigger ID.
|
|
4862
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. */
|
|
4849
4863
|
delete(request?: {
|
|
4850
4864
|
/** V1 error format. */
|
|
4851
4865
|
"$.xgafv"?:
|
|
@@ -4890,7 +4904,7 @@ declare namespace gapi.client {
|
|
|
4890
4904
|
uploadType?:
|
|
4891
4905
|
string;
|
|
4892
4906
|
}): Request<{}>;
|
|
4893
|
-
/** Returns information about a `BuildTrigger`.
|
|
4907
|
+
/** Returns information about a `BuildTrigger`. */
|
|
4894
4908
|
get(request?: {
|
|
4895
4909
|
/** V1 error format. */
|
|
4896
4910
|
"$.xgafv"?:
|
|
@@ -4935,7 +4949,7 @@ declare namespace gapi.client {
|
|
|
4935
4949
|
uploadType?:
|
|
4936
4950
|
string;
|
|
4937
4951
|
}): Request<BuildTrigger>;
|
|
4938
|
-
/** Lists existing `BuildTrigger`s.
|
|
4952
|
+
/** Lists existing `BuildTrigger`s. */
|
|
4939
4953
|
list(request?: {
|
|
4940
4954
|
/** V1 error format. */
|
|
4941
4955
|
"$.xgafv"?:
|
|
@@ -4983,7 +4997,7 @@ declare namespace gapi.client {
|
|
|
4983
4997
|
uploadType?:
|
|
4984
4998
|
string;
|
|
4985
4999
|
}): Request<ListBuildTriggersResponse>;
|
|
4986
|
-
/** Updates a `BuildTrigger` by its project ID and trigger ID.
|
|
5000
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. */
|
|
4987
5001
|
patch(request: {
|
|
4988
5002
|
/** V1 error format. */
|
|
4989
5003
|
"$.xgafv"?:
|
|
@@ -5622,7 +5636,7 @@ declare namespace gapi.client {
|
|
|
5622
5636
|
WorkerPoolsResource;
|
|
5623
5637
|
}
|
|
5624
5638
|
interface TriggersResource {
|
|
5625
|
-
/** Creates a new `BuildTrigger`.
|
|
5639
|
+
/** Creates a new `BuildTrigger`. */
|
|
5626
5640
|
create(request: {
|
|
5627
5641
|
/** V1 error format. */
|
|
5628
5642
|
"$.xgafv"?:
|
|
@@ -5709,7 +5723,7 @@ declare namespace gapi.client {
|
|
|
5709
5723
|
string;
|
|
5710
5724
|
},
|
|
5711
5725
|
body: BuildTrigger): Request<BuildTrigger>;
|
|
5712
|
-
/** Deletes a `BuildTrigger` by its project ID and trigger ID.
|
|
5726
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. */
|
|
5713
5727
|
delete(request?: {
|
|
5714
5728
|
/** V1 error format. */
|
|
5715
5729
|
"$.xgafv"?:
|
|
@@ -5754,7 +5768,7 @@ declare namespace gapi.client {
|
|
|
5754
5768
|
uploadType?:
|
|
5755
5769
|
string;
|
|
5756
5770
|
}): Request<{}>;
|
|
5757
|
-
/** Returns information about a `BuildTrigger`.
|
|
5771
|
+
/** Returns information about a `BuildTrigger`. */
|
|
5758
5772
|
get(request?: {
|
|
5759
5773
|
/** V1 error format. */
|
|
5760
5774
|
"$.xgafv"?:
|
|
@@ -5799,7 +5813,7 @@ declare namespace gapi.client {
|
|
|
5799
5813
|
uploadType?:
|
|
5800
5814
|
string;
|
|
5801
5815
|
}): Request<BuildTrigger>;
|
|
5802
|
-
/** Lists existing `BuildTrigger`s.
|
|
5816
|
+
/** Lists existing `BuildTrigger`s. */
|
|
5803
5817
|
list(request?: {
|
|
5804
5818
|
/** V1 error format. */
|
|
5805
5819
|
"$.xgafv"?:
|
|
@@ -5847,7 +5861,7 @@ declare namespace gapi.client {
|
|
|
5847
5861
|
uploadType?:
|
|
5848
5862
|
string;
|
|
5849
5863
|
}): Request<ListBuildTriggersResponse>;
|
|
5850
|
-
/** Updates a `BuildTrigger` by its project ID and trigger ID.
|
|
5864
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. */
|
|
5851
5865
|
patch(request: {
|
|
5852
5866
|
/** V1 error format. */
|
|
5853
5867
|
"$.xgafv"?:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.cloudbuild-v1",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20230907",
|
|
4
4
|
"description": "TypeScript typings for Cloud Build API v1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/gapi.client": "*",
|
|
18
|
-
"@types/gapi.client.discovery": "*"
|
|
18
|
+
"@types/gapi.client.discovery-v1": "*"
|
|
19
19
|
}
|
|
20
20
|
}
|
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: 20230907
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -295,6 +295,11 @@ gapi.load('client', async () => {
|
|
|
295
295
|
],
|
|
296
296
|
serviceAccount: "Test string",
|
|
297
297
|
source: {
|
|
298
|
+
connectedRepository: {
|
|
299
|
+
dir: "Test string",
|
|
300
|
+
repository: "Test string",
|
|
301
|
+
revision: "Test string",
|
|
302
|
+
},
|
|
298
303
|
gitSource: {
|
|
299
304
|
dir: "Test string",
|
|
300
305
|
revision: "Test string",
|
|
@@ -855,6 +860,11 @@ gapi.load('client', async () => {
|
|
|
855
860
|
],
|
|
856
861
|
serviceAccount: "Test string",
|
|
857
862
|
source: {
|
|
863
|
+
connectedRepository: {
|
|
864
|
+
dir: "Test string",
|
|
865
|
+
repository: "Test string",
|
|
866
|
+
revision: "Test string",
|
|
867
|
+
},
|
|
858
868
|
gitSource: {
|
|
859
869
|
dir: "Test string",
|
|
860
870
|
revision: "Test string",
|
|
@@ -1206,7 +1216,7 @@ gapi.load('client', async () => {
|
|
|
1206
1216
|
await gapi.client.cloudbuild.projects.locations.operations.get({
|
|
1207
1217
|
name: "Test string",
|
|
1208
1218
|
});
|
|
1209
|
-
/** Creates a new `BuildTrigger`.
|
|
1219
|
+
/** Creates a new `BuildTrigger`. */
|
|
1210
1220
|
await gapi.client.cloudbuild.projects.locations.triggers.create({
|
|
1211
1221
|
parent: "Test string",
|
|
1212
1222
|
projectId: "Test string",
|
|
@@ -1451,6 +1461,11 @@ gapi.load('client', async () => {
|
|
|
1451
1461
|
],
|
|
1452
1462
|
serviceAccount: "Test string",
|
|
1453
1463
|
source: {
|
|
1464
|
+
connectedRepository: {
|
|
1465
|
+
dir: "Test string",
|
|
1466
|
+
repository: "Test string",
|
|
1467
|
+
revision: "Test string",
|
|
1468
|
+
},
|
|
1454
1469
|
gitSource: {
|
|
1455
1470
|
dir: "Test string",
|
|
1456
1471
|
revision: "Test string",
|
|
@@ -1711,26 +1726,26 @@ gapi.load('client', async () => {
|
|
|
1711
1726
|
state: "Test string",
|
|
1712
1727
|
},
|
|
1713
1728
|
});
|
|
1714
|
-
/** Deletes a `BuildTrigger` by its project ID and trigger ID.
|
|
1729
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. */
|
|
1715
1730
|
await gapi.client.cloudbuild.projects.locations.triggers.delete({
|
|
1716
1731
|
name: "Test string",
|
|
1717
1732
|
projectId: "Test string",
|
|
1718
1733
|
triggerId: "Test string",
|
|
1719
1734
|
});
|
|
1720
|
-
/** Returns information about a `BuildTrigger`.
|
|
1735
|
+
/** Returns information about a `BuildTrigger`. */
|
|
1721
1736
|
await gapi.client.cloudbuild.projects.locations.triggers.get({
|
|
1722
1737
|
name: "Test string",
|
|
1723
1738
|
projectId: "Test string",
|
|
1724
1739
|
triggerId: "Test string",
|
|
1725
1740
|
});
|
|
1726
|
-
/** Lists existing `BuildTrigger`s.
|
|
1741
|
+
/** Lists existing `BuildTrigger`s. */
|
|
1727
1742
|
await gapi.client.cloudbuild.projects.locations.triggers.list({
|
|
1728
1743
|
pageSize: 42,
|
|
1729
1744
|
pageToken: "Test string",
|
|
1730
1745
|
parent: "Test string",
|
|
1731
1746
|
projectId: "Test string",
|
|
1732
1747
|
});
|
|
1733
|
-
/** Updates a `BuildTrigger` by its project ID and trigger ID.
|
|
1748
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. */
|
|
1734
1749
|
await gapi.client.cloudbuild.projects.locations.triggers.patch({
|
|
1735
1750
|
projectId: "Test string",
|
|
1736
1751
|
resourceName: "Test string",
|
|
@@ -1977,6 +1992,11 @@ gapi.load('client', async () => {
|
|
|
1977
1992
|
],
|
|
1978
1993
|
serviceAccount: "Test string",
|
|
1979
1994
|
source: {
|
|
1995
|
+
connectedRepository: {
|
|
1996
|
+
dir: "Test string",
|
|
1997
|
+
repository: "Test string",
|
|
1998
|
+
revision: "Test string",
|
|
1999
|
+
},
|
|
1980
2000
|
gitSource: {
|
|
1981
2001
|
dir: "Test string",
|
|
1982
2002
|
revision: "Test string",
|
|
@@ -2350,7 +2370,7 @@ gapi.load('client', async () => {
|
|
|
2350
2370
|
uid: "Test string",
|
|
2351
2371
|
updateTime: "Test string",
|
|
2352
2372
|
});
|
|
2353
|
-
/** Creates a new `BuildTrigger`.
|
|
2373
|
+
/** Creates a new `BuildTrigger`. */
|
|
2354
2374
|
await gapi.client.cloudbuild.projects.triggers.create({
|
|
2355
2375
|
parent: "Test string",
|
|
2356
2376
|
projectId: "Test string",
|
|
@@ -2595,6 +2615,11 @@ gapi.load('client', async () => {
|
|
|
2595
2615
|
],
|
|
2596
2616
|
serviceAccount: "Test string",
|
|
2597
2617
|
source: {
|
|
2618
|
+
connectedRepository: {
|
|
2619
|
+
dir: "Test string",
|
|
2620
|
+
repository: "Test string",
|
|
2621
|
+
revision: "Test string",
|
|
2622
|
+
},
|
|
2598
2623
|
gitSource: {
|
|
2599
2624
|
dir: "Test string",
|
|
2600
2625
|
revision: "Test string",
|
|
@@ -2855,26 +2880,26 @@ gapi.load('client', async () => {
|
|
|
2855
2880
|
state: "Test string",
|
|
2856
2881
|
},
|
|
2857
2882
|
});
|
|
2858
|
-
/** Deletes a `BuildTrigger` by its project ID and trigger ID.
|
|
2883
|
+
/** Deletes a `BuildTrigger` by its project ID and trigger ID. */
|
|
2859
2884
|
await gapi.client.cloudbuild.projects.triggers.delete({
|
|
2860
2885
|
name: "Test string",
|
|
2861
2886
|
projectId: "Test string",
|
|
2862
2887
|
triggerId: "Test string",
|
|
2863
2888
|
});
|
|
2864
|
-
/** Returns information about a `BuildTrigger`.
|
|
2889
|
+
/** Returns information about a `BuildTrigger`. */
|
|
2865
2890
|
await gapi.client.cloudbuild.projects.triggers.get({
|
|
2866
2891
|
name: "Test string",
|
|
2867
2892
|
projectId: "Test string",
|
|
2868
2893
|
triggerId: "Test string",
|
|
2869
2894
|
});
|
|
2870
|
-
/** Lists existing `BuildTrigger`s.
|
|
2895
|
+
/** Lists existing `BuildTrigger`s. */
|
|
2871
2896
|
await gapi.client.cloudbuild.projects.triggers.list({
|
|
2872
2897
|
pageSize: 42,
|
|
2873
2898
|
pageToken: "Test string",
|
|
2874
2899
|
parent: "Test string",
|
|
2875
2900
|
projectId: "Test string",
|
|
2876
2901
|
});
|
|
2877
|
-
/** Updates a `BuildTrigger` by its project ID and trigger ID.
|
|
2902
|
+
/** Updates a `BuildTrigger` by its project ID and trigger ID. */
|
|
2878
2903
|
await gapi.client.cloudbuild.projects.triggers.patch({
|
|
2879
2904
|
projectId: "Test string",
|
|
2880
2905
|
triggerId: "Test string",
|
|
@@ -3120,6 +3145,11 @@ gapi.load('client', async () => {
|
|
|
3120
3145
|
],
|
|
3121
3146
|
serviceAccount: "Test string",
|
|
3122
3147
|
source: {
|
|
3148
|
+
connectedRepository: {
|
|
3149
|
+
dir: "Test string",
|
|
3150
|
+
repository: "Test string",
|
|
3151
|
+
revision: "Test string",
|
|
3152
|
+
},
|
|
3123
3153
|
gitSource: {
|
|
3124
3154
|
dir: "Test string",
|
|
3125
3155
|
revision: "Test string",
|