@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20230406 → 0.0.20230420

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 +25 -1
  2. package/package.json +1 -1
  3. package/tests.ts +139 -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: 20230406
12
+ // Revision: 20230420
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -74,6 +74,11 @@ declare namespace gapi.client {
74
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
75
  */
76
76
  mavenArtifacts?: MavenArtifact[];
77
+ /**
78
+ * A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified
79
+ * Artifact Registry repository using the builder service account's credentials. If any packages fail to be pushed, the build is marked FAILURE.
80
+ */
81
+ npmPackages?: NpmPackage[];
77
82
  /**
78
83
  * 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
79
84
  * 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
@@ -895,6 +900,15 @@ declare namespace gapi.client {
895
900
  */
896
901
  peeredNetworkIpRange?: string;
897
902
  }
903
+ interface NpmPackage {
904
+ /** Path to the package.json. e.g. workspace/path/to/package */
905
+ packagePath?: string;
906
+ /**
907
+ * Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact
908
+ * Registry with this location as a prefix.
909
+ */
910
+ repository?: string;
911
+ }
898
912
  interface Operation {
899
913
  /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
900
914
  done?: boolean;
@@ -1050,6 +1064,8 @@ declare namespace gapi.client {
1050
1064
  images?: BuiltImage[];
1051
1065
  /** Maven artifacts uploaded to Artifact Registry at the end of the build. */
1052
1066
  mavenArtifacts?: UploadedMavenArtifact[];
1067
+ /** Npm packages uploaded to Artifact Registry at the end of the build. */
1068
+ npmPackages?: UploadedNpmPackage[];
1053
1069
  /** Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
1054
1070
  numArtifacts?: string;
1055
1071
  /** Python artifacts uploaded to Artifact Registry at the end of the build. */
@@ -1196,6 +1212,14 @@ declare namespace gapi.client {
1196
1212
  /** URI of the uploaded artifact. */
1197
1213
  uri?: string;
1198
1214
  }
1215
+ interface UploadedNpmPackage {
1216
+ /** Hash types and values of the npm package. */
1217
+ fileHashes?: FileHashes;
1218
+ /** Output only. Stores timing information for pushing the specified artifact. */
1219
+ pushTiming?: TimeSpan;
1220
+ /** URI of the uploaded npm package. */
1221
+ uri?: string;
1222
+ }
1199
1223
  interface UploadedPythonPackage {
1200
1224
  /** Hash types and values of the Python Artifact. */
1201
1225
  fileHashes?: FileHashes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudbuild-v1",
3
- "version": "0.0.20230406",
3
+ "version": "0.0.20230420",
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: 20230406
6
+ // Revision: 20230420
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -123,6 +123,12 @@ gapi.load('client', async () => {
123
123
  version: "Test string",
124
124
  }
125
125
  ],
126
+ npmPackages: [
127
+ {
128
+ packagePath: "Test string",
129
+ repository: "Test string",
130
+ }
131
+ ],
126
132
  objects: {
127
133
  location: "Test string",
128
134
  paths: [
@@ -242,6 +248,23 @@ gapi.load('client', async () => {
242
248
  uri: "Test string",
243
249
  }
244
250
  ],
251
+ npmPackages: [
252
+ {
253
+ fileHashes: {
254
+ fileHash: [
255
+ {
256
+ type: "Test string",
257
+ value: "Test string",
258
+ }
259
+ ],
260
+ },
261
+ pushTiming: {
262
+ endTime: "Test string",
263
+ startTime: "Test string",
264
+ },
265
+ uri: "Test string",
266
+ }
267
+ ],
245
268
  numArtifacts: "Test string",
246
269
  pythonPackages: [
247
270
  {
@@ -658,6 +681,12 @@ gapi.load('client', async () => {
658
681
  version: "Test string",
659
682
  }
660
683
  ],
684
+ npmPackages: [
685
+ {
686
+ packagePath: "Test string",
687
+ repository: "Test string",
688
+ }
689
+ ],
661
690
  objects: {
662
691
  location: "Test string",
663
692
  paths: [
@@ -777,6 +806,23 @@ gapi.load('client', async () => {
777
806
  uri: "Test string",
778
807
  }
779
808
  ],
809
+ npmPackages: [
810
+ {
811
+ fileHashes: {
812
+ fileHash: [
813
+ {
814
+ type: "Test string",
815
+ value: "Test string",
816
+ }
817
+ ],
818
+ },
819
+ pushTiming: {
820
+ endTime: "Test string",
821
+ startTime: "Test string",
822
+ },
823
+ uri: "Test string",
824
+ }
825
+ ],
780
826
  numArtifacts: "Test string",
781
827
  pythonPackages: [
782
828
  {
@@ -1229,6 +1275,12 @@ gapi.load('client', async () => {
1229
1275
  version: "Test string",
1230
1276
  }
1231
1277
  ],
1278
+ npmPackages: [
1279
+ {
1280
+ packagePath: "Test string",
1281
+ repository: "Test string",
1282
+ }
1283
+ ],
1232
1284
  objects: {
1233
1285
  location: "Test string",
1234
1286
  paths: [
@@ -1348,6 +1400,23 @@ gapi.load('client', async () => {
1348
1400
  uri: "Test string",
1349
1401
  }
1350
1402
  ],
1403
+ npmPackages: [
1404
+ {
1405
+ fileHashes: {
1406
+ fileHash: [
1407
+ {
1408
+ type: "Test string",
1409
+ value: "Test string",
1410
+ }
1411
+ ],
1412
+ },
1413
+ pushTiming: {
1414
+ endTime: "Test string",
1415
+ startTime: "Test string",
1416
+ },
1417
+ uri: "Test string",
1418
+ }
1419
+ ],
1351
1420
  numArtifacts: "Test string",
1352
1421
  pythonPackages: [
1353
1422
  {
@@ -1727,6 +1796,12 @@ gapi.load('client', async () => {
1727
1796
  version: "Test string",
1728
1797
  }
1729
1798
  ],
1799
+ npmPackages: [
1800
+ {
1801
+ packagePath: "Test string",
1802
+ repository: "Test string",
1803
+ }
1804
+ ],
1730
1805
  objects: {
1731
1806
  location: "Test string",
1732
1807
  paths: [
@@ -1846,6 +1921,23 @@ gapi.load('client', async () => {
1846
1921
  uri: "Test string",
1847
1922
  }
1848
1923
  ],
1924
+ npmPackages: [
1925
+ {
1926
+ fileHashes: {
1927
+ fileHash: [
1928
+ {
1929
+ type: "Test string",
1930
+ value: "Test string",
1931
+ }
1932
+ ],
1933
+ },
1934
+ pushTiming: {
1935
+ endTime: "Test string",
1936
+ startTime: "Test string",
1937
+ },
1938
+ uri: "Test string",
1939
+ }
1940
+ ],
1849
1941
  numArtifacts: "Test string",
1850
1942
  pythonPackages: [
1851
1943
  {
@@ -2318,6 +2410,12 @@ gapi.load('client', async () => {
2318
2410
  version: "Test string",
2319
2411
  }
2320
2412
  ],
2413
+ npmPackages: [
2414
+ {
2415
+ packagePath: "Test string",
2416
+ repository: "Test string",
2417
+ }
2418
+ ],
2321
2419
  objects: {
2322
2420
  location: "Test string",
2323
2421
  paths: [
@@ -2437,6 +2535,23 @@ gapi.load('client', async () => {
2437
2535
  uri: "Test string",
2438
2536
  }
2439
2537
  ],
2538
+ npmPackages: [
2539
+ {
2540
+ fileHashes: {
2541
+ fileHash: [
2542
+ {
2543
+ type: "Test string",
2544
+ value: "Test string",
2545
+ }
2546
+ ],
2547
+ },
2548
+ pushTiming: {
2549
+ endTime: "Test string",
2550
+ startTime: "Test string",
2551
+ },
2552
+ uri: "Test string",
2553
+ }
2554
+ ],
2440
2555
  numArtifacts: "Test string",
2441
2556
  pythonPackages: [
2442
2557
  {
@@ -2815,6 +2930,12 @@ gapi.load('client', async () => {
2815
2930
  version: "Test string",
2816
2931
  }
2817
2932
  ],
2933
+ npmPackages: [
2934
+ {
2935
+ packagePath: "Test string",
2936
+ repository: "Test string",
2937
+ }
2938
+ ],
2818
2939
  objects: {
2819
2940
  location: "Test string",
2820
2941
  paths: [
@@ -2934,6 +3055,23 @@ gapi.load('client', async () => {
2934
3055
  uri: "Test string",
2935
3056
  }
2936
3057
  ],
3058
+ npmPackages: [
3059
+ {
3060
+ fileHashes: {
3061
+ fileHash: [
3062
+ {
3063
+ type: "Test string",
3064
+ value: "Test string",
3065
+ }
3066
+ ],
3067
+ },
3068
+ pushTiming: {
3069
+ endTime: "Test string",
3070
+ startTime: "Test string",
3071
+ },
3072
+ uri: "Test string",
3073
+ }
3074
+ ],
2937
3075
  numArtifacts: "Test string",
2938
3076
  pythonPackages: [
2939
3077
  {