@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20220921 → 0.0.20221015

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.
Files changed (3) hide show
  1. package/index.d.ts +63 -6
  2. package/package.json +1 -1
  3. package/tests.ts +307 -1
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: 20220921
12
+ // Revision: 20221015
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -69,12 +69,22 @@ declare namespace gapi.client {
69
69
  * images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.
70
70
  */
71
71
  images?: string[];
72
+ /**
73
+ * A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be
74
+ * uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.
75
+ */
76
+ mavenArtifacts?: MavenArtifact[];
72
77
  /**
73
78
  * A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the
74
79
  * specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results
75
80
  * field. If any objects fail to be pushed, the build is marked FAILURE.
76
81
  */
77
82
  objects?: ArtifactObjects;
83
+ /**
84
+ * A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the
85
+ * upload. If any objects fail to be pushed, the build is marked FAILURE.
86
+ */
87
+ pythonPackages?: PythonPackage[];
78
88
  }
79
89
  interface BatchCreateBitbucketServerConnectedRepositoriesRequest {
80
90
  /** Required. Requests to connect Bitbucket Server repositories. */
@@ -268,8 +278,8 @@ declare namespace gapi.client {
268
278
  */
269
279
  timeout?: string;
270
280
  /**
271
- * Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE:
272
- * time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
281
+ * Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all artifacts including docker images
282
+ * and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
273
283
  */
274
284
  timing?: { [P in string]: TimeSpan };
275
285
  /** Output only. Non-fatal problems encountered during the execution of the build. */
@@ -852,6 +862,24 @@ declare namespace gapi.client {
852
862
  /** `WorkerPools` for the specified project. */
853
863
  workerPools?: WorkerPool[];
854
864
  }
865
+ interface MavenArtifact {
866
+ /** Maven `artifactId` value used when uploading the artifact to Artifact Registry. */
867
+ artifactId?: string;
868
+ /** Maven `groupId` value used when uploading the artifact to Artifact Registry. */
869
+ groupId?: string;
870
+ /**
871
+ * Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a
872
+ * relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
873
+ */
874
+ path?: string;
875
+ /**
876
+ * Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with
877
+ * this location as a prefix.
878
+ */
879
+ repository?: string;
880
+ /** Maven `version` value used when uploading the artifact to Artifact Registry. */
881
+ version?: string;
882
+ }
855
883
  interface NetworkConfig {
856
884
  /** Option to configure network egress for the workers. */
857
885
  egressOption?: string;
@@ -997,6 +1025,15 @@ declare namespace gapi.client {
997
1025
  /** Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */
998
1026
  tag?: string;
999
1027
  }
1028
+ interface PythonPackage {
1029
+ /** Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. */
1030
+ paths?: string[];
1031
+ /**
1032
+ * Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact
1033
+ * Registry with this location as a prefix.
1034
+ */
1035
+ repository?: string;
1036
+ }
1000
1037
  // tslint:disable-next-line:no-empty-interface
1001
1038
  interface ReceiveTriggerWebhookResponse {
1002
1039
  }
@@ -1030,9 +1067,9 @@ declare namespace gapi.client {
1030
1067
  tagName?: string;
1031
1068
  }
1032
1069
  interface Results {
1033
- /** Path to the artifact manifest. Only populated when artifacts are uploaded. */
1070
+ /** Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
1034
1071
  artifactManifest?: string;
1035
- /** Time to push all non-container artifacts. */
1072
+ /** Time to push all non-container artifacts to Cloud Storage. */
1036
1073
  artifactTiming?: TimeSpan;
1037
1074
  /** List of build step digests, in the order corresponding to build step indices. */
1038
1075
  buildStepImages?: string[];
@@ -1043,8 +1080,12 @@ declare namespace gapi.client {
1043
1080
  buildStepOutputs?: string[];
1044
1081
  /** Container images that were built as a part of the build. */
1045
1082
  images?: BuiltImage[];
1046
- /** Number of artifacts uploaded. Only populated when artifacts are uploaded. */
1083
+ /** Maven artifacts uploaded to Artifact Registry at the end of the build. */
1084
+ mavenArtifacts?: UploadedMavenArtifact[];
1085
+ /** Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
1047
1086
  numArtifacts?: string;
1087
+ /** Python artifacts uploaded to Artifact Registry at the end of the build. */
1088
+ pythonPackages?: UploadedPythonPackage[];
1048
1089
  }
1049
1090
  interface RetryBuildRequest {
1050
1091
  /** Required. Build ID of the original build. */
@@ -1214,6 +1255,22 @@ declare namespace gapi.client {
1214
1255
  /** The resource name of the `WorkerPool` being updated. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`. */
1215
1256
  workerPool?: string;
1216
1257
  }
1258
+ interface UploadedMavenArtifact {
1259
+ /** Hash types and values of the Maven Artifact. */
1260
+ fileHashes?: FileHashes;
1261
+ /** Output only. Stores timing information for pushing the specified artifact. */
1262
+ pushTiming?: TimeSpan;
1263
+ /** URI of the uploaded artifact. */
1264
+ uri?: string;
1265
+ }
1266
+ interface UploadedPythonPackage {
1267
+ /** Hash types and values of the Python Artifact. */
1268
+ fileHashes?: FileHashes;
1269
+ /** Output only. Stores timing information for pushing the specified artifact. */
1270
+ pushTiming?: TimeSpan;
1271
+ /** URI of the uploaded artifact. */
1272
+ uri?: string;
1273
+ }
1217
1274
  interface Volume {
1218
1275
  /** Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps. */
1219
1276
  name?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudbuild-v1",
3
- "version": "0.0.20220921",
3
+ "version": "0.0.20221015",
4
4
  "description": "TypeScript typings for Cloud Build API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20220921
6
+ // Revision: 20221015
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -114,6 +114,15 @@ gapi.load('client', async () => {
114
114
  images: [
115
115
  "Test string"
116
116
  ],
117
+ mavenArtifacts: [
118
+ {
119
+ artifactId: "Test string",
120
+ groupId: "Test string",
121
+ path: "Test string",
122
+ repository: "Test string",
123
+ version: "Test string",
124
+ }
125
+ ],
117
126
  objects: {
118
127
  location: "Test string",
119
128
  paths: [
@@ -124,6 +133,14 @@ gapi.load('client', async () => {
124
133
  startTime: "Test string",
125
134
  },
126
135
  },
136
+ pythonPackages: [
137
+ {
138
+ paths: [
139
+ "Test string"
140
+ ],
141
+ repository: "Test string",
142
+ }
143
+ ],
127
144
  },
128
145
  availableSecrets: {
129
146
  inline: [
@@ -207,7 +224,41 @@ gapi.load('client', async () => {
207
224
  },
208
225
  }
209
226
  ],
227
+ mavenArtifacts: [
228
+ {
229
+ fileHashes: {
230
+ fileHash: [
231
+ {
232
+ type: "Test string",
233
+ value: "Test string",
234
+ }
235
+ ],
236
+ },
237
+ pushTiming: {
238
+ endTime: "Test string",
239
+ startTime: "Test string",
240
+ },
241
+ uri: "Test string",
242
+ }
243
+ ],
210
244
  numArtifacts: "Test string",
245
+ pythonPackages: [
246
+ {
247
+ fileHashes: {
248
+ fileHash: [
249
+ {
250
+ type: "Test string",
251
+ value: "Test string",
252
+ }
253
+ ],
254
+ },
255
+ pushTiming: {
256
+ endTime: "Test string",
257
+ startTime: "Test string",
258
+ },
259
+ uri: "Test string",
260
+ }
261
+ ],
211
262
  },
212
263
  secrets: [
213
264
  {
@@ -592,6 +643,15 @@ gapi.load('client', async () => {
592
643
  images: [
593
644
  "Test string"
594
645
  ],
646
+ mavenArtifacts: [
647
+ {
648
+ artifactId: "Test string",
649
+ groupId: "Test string",
650
+ path: "Test string",
651
+ repository: "Test string",
652
+ version: "Test string",
653
+ }
654
+ ],
595
655
  objects: {
596
656
  location: "Test string",
597
657
  paths: [
@@ -602,6 +662,14 @@ gapi.load('client', async () => {
602
662
  startTime: "Test string",
603
663
  },
604
664
  },
665
+ pythonPackages: [
666
+ {
667
+ paths: [
668
+ "Test string"
669
+ ],
670
+ repository: "Test string",
671
+ }
672
+ ],
605
673
  },
606
674
  availableSecrets: {
607
675
  inline: [
@@ -685,7 +753,41 @@ gapi.load('client', async () => {
685
753
  },
686
754
  }
687
755
  ],
756
+ mavenArtifacts: [
757
+ {
758
+ fileHashes: {
759
+ fileHash: [
760
+ {
761
+ type: "Test string",
762
+ value: "Test string",
763
+ }
764
+ ],
765
+ },
766
+ pushTiming: {
767
+ endTime: "Test string",
768
+ startTime: "Test string",
769
+ },
770
+ uri: "Test string",
771
+ }
772
+ ],
688
773
  numArtifacts: "Test string",
774
+ pythonPackages: [
775
+ {
776
+ fileHashes: {
777
+ fileHash: [
778
+ {
779
+ type: "Test string",
780
+ value: "Test string",
781
+ }
782
+ ],
783
+ },
784
+ pushTiming: {
785
+ endTime: "Test string",
786
+ startTime: "Test string",
787
+ },
788
+ uri: "Test string",
789
+ }
790
+ ],
689
791
  },
690
792
  secrets: [
691
793
  {
@@ -1106,6 +1208,15 @@ gapi.load('client', async () => {
1106
1208
  images: [
1107
1209
  "Test string"
1108
1210
  ],
1211
+ mavenArtifacts: [
1212
+ {
1213
+ artifactId: "Test string",
1214
+ groupId: "Test string",
1215
+ path: "Test string",
1216
+ repository: "Test string",
1217
+ version: "Test string",
1218
+ }
1219
+ ],
1109
1220
  objects: {
1110
1221
  location: "Test string",
1111
1222
  paths: [
@@ -1116,6 +1227,14 @@ gapi.load('client', async () => {
1116
1227
  startTime: "Test string",
1117
1228
  },
1118
1229
  },
1230
+ pythonPackages: [
1231
+ {
1232
+ paths: [
1233
+ "Test string"
1234
+ ],
1235
+ repository: "Test string",
1236
+ }
1237
+ ],
1119
1238
  },
1120
1239
  availableSecrets: {
1121
1240
  inline: [
@@ -1199,7 +1318,41 @@ gapi.load('client', async () => {
1199
1318
  },
1200
1319
  }
1201
1320
  ],
1321
+ mavenArtifacts: [
1322
+ {
1323
+ fileHashes: {
1324
+ fileHash: [
1325
+ {
1326
+ type: "Test string",
1327
+ value: "Test string",
1328
+ }
1329
+ ],
1330
+ },
1331
+ pushTiming: {
1332
+ endTime: "Test string",
1333
+ startTime: "Test string",
1334
+ },
1335
+ uri: "Test string",
1336
+ }
1337
+ ],
1202
1338
  numArtifacts: "Test string",
1339
+ pythonPackages: [
1340
+ {
1341
+ fileHashes: {
1342
+ fileHash: [
1343
+ {
1344
+ type: "Test string",
1345
+ value: "Test string",
1346
+ }
1347
+ ],
1348
+ },
1349
+ pushTiming: {
1350
+ endTime: "Test string",
1351
+ startTime: "Test string",
1352
+ },
1353
+ uri: "Test string",
1354
+ }
1355
+ ],
1203
1356
  },
1204
1357
  secrets: [
1205
1358
  {
@@ -1533,6 +1686,15 @@ gapi.load('client', async () => {
1533
1686
  images: [
1534
1687
  "Test string"
1535
1688
  ],
1689
+ mavenArtifacts: [
1690
+ {
1691
+ artifactId: "Test string",
1692
+ groupId: "Test string",
1693
+ path: "Test string",
1694
+ repository: "Test string",
1695
+ version: "Test string",
1696
+ }
1697
+ ],
1536
1698
  objects: {
1537
1699
  location: "Test string",
1538
1700
  paths: [
@@ -1543,6 +1705,14 @@ gapi.load('client', async () => {
1543
1705
  startTime: "Test string",
1544
1706
  },
1545
1707
  },
1708
+ pythonPackages: [
1709
+ {
1710
+ paths: [
1711
+ "Test string"
1712
+ ],
1713
+ repository: "Test string",
1714
+ }
1715
+ ],
1546
1716
  },
1547
1717
  availableSecrets: {
1548
1718
  inline: [
@@ -1626,7 +1796,41 @@ gapi.load('client', async () => {
1626
1796
  },
1627
1797
  }
1628
1798
  ],
1799
+ mavenArtifacts: [
1800
+ {
1801
+ fileHashes: {
1802
+ fileHash: [
1803
+ {
1804
+ type: "Test string",
1805
+ value: "Test string",
1806
+ }
1807
+ ],
1808
+ },
1809
+ pushTiming: {
1810
+ endTime: "Test string",
1811
+ startTime: "Test string",
1812
+ },
1813
+ uri: "Test string",
1814
+ }
1815
+ ],
1629
1816
  numArtifacts: "Test string",
1817
+ pythonPackages: [
1818
+ {
1819
+ fileHashes: {
1820
+ fileHash: [
1821
+ {
1822
+ type: "Test string",
1823
+ value: "Test string",
1824
+ }
1825
+ ],
1826
+ },
1827
+ pushTiming: {
1828
+ endTime: "Test string",
1829
+ startTime: "Test string",
1830
+ },
1831
+ uri: "Test string",
1832
+ }
1833
+ ],
1630
1834
  },
1631
1835
  secrets: [
1632
1836
  {
@@ -2050,6 +2254,15 @@ gapi.load('client', async () => {
2050
2254
  images: [
2051
2255
  "Test string"
2052
2256
  ],
2257
+ mavenArtifacts: [
2258
+ {
2259
+ artifactId: "Test string",
2260
+ groupId: "Test string",
2261
+ path: "Test string",
2262
+ repository: "Test string",
2263
+ version: "Test string",
2264
+ }
2265
+ ],
2053
2266
  objects: {
2054
2267
  location: "Test string",
2055
2268
  paths: [
@@ -2060,6 +2273,14 @@ gapi.load('client', async () => {
2060
2273
  startTime: "Test string",
2061
2274
  },
2062
2275
  },
2276
+ pythonPackages: [
2277
+ {
2278
+ paths: [
2279
+ "Test string"
2280
+ ],
2281
+ repository: "Test string",
2282
+ }
2283
+ ],
2063
2284
  },
2064
2285
  availableSecrets: {
2065
2286
  inline: [
@@ -2143,7 +2364,41 @@ gapi.load('client', async () => {
2143
2364
  },
2144
2365
  }
2145
2366
  ],
2367
+ mavenArtifacts: [
2368
+ {
2369
+ fileHashes: {
2370
+ fileHash: [
2371
+ {
2372
+ type: "Test string",
2373
+ value: "Test string",
2374
+ }
2375
+ ],
2376
+ },
2377
+ pushTiming: {
2378
+ endTime: "Test string",
2379
+ startTime: "Test string",
2380
+ },
2381
+ uri: "Test string",
2382
+ }
2383
+ ],
2146
2384
  numArtifacts: "Test string",
2385
+ pythonPackages: [
2386
+ {
2387
+ fileHashes: {
2388
+ fileHash: [
2389
+ {
2390
+ type: "Test string",
2391
+ value: "Test string",
2392
+ }
2393
+ ],
2394
+ },
2395
+ pushTiming: {
2396
+ endTime: "Test string",
2397
+ startTime: "Test string",
2398
+ },
2399
+ uri: "Test string",
2400
+ }
2401
+ ],
2147
2402
  },
2148
2403
  secrets: [
2149
2404
  {
@@ -2476,6 +2731,15 @@ gapi.load('client', async () => {
2476
2731
  images: [
2477
2732
  "Test string"
2478
2733
  ],
2734
+ mavenArtifacts: [
2735
+ {
2736
+ artifactId: "Test string",
2737
+ groupId: "Test string",
2738
+ path: "Test string",
2739
+ repository: "Test string",
2740
+ version: "Test string",
2741
+ }
2742
+ ],
2479
2743
  objects: {
2480
2744
  location: "Test string",
2481
2745
  paths: [
@@ -2486,6 +2750,14 @@ gapi.load('client', async () => {
2486
2750
  startTime: "Test string",
2487
2751
  },
2488
2752
  },
2753
+ pythonPackages: [
2754
+ {
2755
+ paths: [
2756
+ "Test string"
2757
+ ],
2758
+ repository: "Test string",
2759
+ }
2760
+ ],
2489
2761
  },
2490
2762
  availableSecrets: {
2491
2763
  inline: [
@@ -2569,7 +2841,41 @@ gapi.load('client', async () => {
2569
2841
  },
2570
2842
  }
2571
2843
  ],
2844
+ mavenArtifacts: [
2845
+ {
2846
+ fileHashes: {
2847
+ fileHash: [
2848
+ {
2849
+ type: "Test string",
2850
+ value: "Test string",
2851
+ }
2852
+ ],
2853
+ },
2854
+ pushTiming: {
2855
+ endTime: "Test string",
2856
+ startTime: "Test string",
2857
+ },
2858
+ uri: "Test string",
2859
+ }
2860
+ ],
2572
2861
  numArtifacts: "Test string",
2862
+ pythonPackages: [
2863
+ {
2864
+ fileHashes: {
2865
+ fileHash: [
2866
+ {
2867
+ type: "Test string",
2868
+ value: "Test string",
2869
+ }
2870
+ ],
2871
+ },
2872
+ pushTiming: {
2873
+ endTime: "Test string",
2874
+ startTime: "Test string",
2875
+ },
2876
+ uri: "Test string",
2877
+ }
2878
+ ],
2573
2879
  },
2574
2880
  secrets: [
2575
2881
  {