@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20230330 → 0.0.20230417

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 +42 -1
  2. package/package.json +1 -1
  3. package/tests.ts +169 -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: 20230330
12
+ // Revision: 20230417
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
@@ -777,6 +782,21 @@ declare namespace gapi.client {
777
782
  /** The URI of the repo. Either uri or repository can be specified and is required. */
778
783
  uri?: string;
779
784
  }
785
+ interface GitSource {
786
+ /**
787
+ * Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for
788
+ * that step's execution.
789
+ */
790
+ dir?: string;
791
+ /**
792
+ * The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository;
793
+ * therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see
794
+ * https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
795
+ */
796
+ revision?: string;
797
+ /** Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote. */
798
+ url?: string;
799
+ }
780
800
  interface Hash {
781
801
  /** The type of hash that was performed. */
782
802
  type?: string;
@@ -880,6 +900,15 @@ declare namespace gapi.client {
880
900
  */
881
901
  peeredNetworkIpRange?: string;
882
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
+ }
883
912
  interface Operation {
884
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. */
885
914
  done?: boolean;
@@ -1035,6 +1064,8 @@ declare namespace gapi.client {
1035
1064
  images?: BuiltImage[];
1036
1065
  /** Maven artifacts uploaded to Artifact Registry at the end of the build. */
1037
1066
  mavenArtifacts?: UploadedMavenArtifact[];
1067
+ /** Npm packages uploaded to Artifact Registry at the end of the build. */
1068
+ npmPackages?: UploadedNpmPackage[];
1038
1069
  /** Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
1039
1070
  numArtifacts?: string;
1040
1071
  /** Python artifacts uploaded to Artifact Registry at the end of the build. */
@@ -1082,6 +1113,8 @@ declare namespace gapi.client {
1082
1113
  service?: string;
1083
1114
  }
1084
1115
  interface Source {
1116
+ /** If provided, get the source from this Git repository. */
1117
+ gitSource?: GitSource;
1085
1118
  /** If provided, get the source from this location in a Cloud Source Repository. */
1086
1119
  repoSource?: RepoSource;
1087
1120
  /** If provided, get the source from this location in Google Cloud Storage. */
@@ -1179,6 +1212,14 @@ declare namespace gapi.client {
1179
1212
  /** URI of the uploaded artifact. */
1180
1213
  uri?: string;
1181
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
+ }
1182
1223
  interface UploadedPythonPackage {
1183
1224
  /** Hash types and values of the Python Artifact. */
1184
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.20230330",
3
+ "version": "0.0.20230417",
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: 20230330
6
+ // Revision: 20230417
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
  {
@@ -271,6 +294,11 @@ gapi.load('client', async () => {
271
294
  ],
272
295
  serviceAccount: "Test string",
273
296
  source: {
297
+ gitSource: {
298
+ dir: "Test string",
299
+ revision: "Test string",
300
+ url: "Test string",
301
+ },
274
302
  repoSource: {
275
303
  branchName: "Test string",
276
304
  commitSha: "Test string",
@@ -653,6 +681,12 @@ gapi.load('client', async () => {
653
681
  version: "Test string",
654
682
  }
655
683
  ],
684
+ npmPackages: [
685
+ {
686
+ packagePath: "Test string",
687
+ repository: "Test string",
688
+ }
689
+ ],
656
690
  objects: {
657
691
  location: "Test string",
658
692
  paths: [
@@ -772,6 +806,23 @@ gapi.load('client', async () => {
772
806
  uri: "Test string",
773
807
  }
774
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
+ ],
775
826
  numArtifacts: "Test string",
776
827
  pythonPackages: [
777
828
  {
@@ -801,6 +852,11 @@ gapi.load('client', async () => {
801
852
  ],
802
853
  serviceAccount: "Test string",
803
854
  source: {
855
+ gitSource: {
856
+ dir: "Test string",
857
+ revision: "Test string",
858
+ url: "Test string",
859
+ },
804
860
  repoSource: {
805
861
  branchName: "Test string",
806
862
  commitSha: "Test string",
@@ -1219,6 +1275,12 @@ gapi.load('client', async () => {
1219
1275
  version: "Test string",
1220
1276
  }
1221
1277
  ],
1278
+ npmPackages: [
1279
+ {
1280
+ packagePath: "Test string",
1281
+ repository: "Test string",
1282
+ }
1283
+ ],
1222
1284
  objects: {
1223
1285
  location: "Test string",
1224
1286
  paths: [
@@ -1338,6 +1400,23 @@ gapi.load('client', async () => {
1338
1400
  uri: "Test string",
1339
1401
  }
1340
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
+ ],
1341
1420
  numArtifacts: "Test string",
1342
1421
  pythonPackages: [
1343
1422
  {
@@ -1367,6 +1446,11 @@ gapi.load('client', async () => {
1367
1446
  ],
1368
1447
  serviceAccount: "Test string",
1369
1448
  source: {
1449
+ gitSource: {
1450
+ dir: "Test string",
1451
+ revision: "Test string",
1452
+ url: "Test string",
1453
+ },
1370
1454
  repoSource: {
1371
1455
  branchName: "Test string",
1372
1456
  commitSha: "Test string",
@@ -1712,6 +1796,12 @@ gapi.load('client', async () => {
1712
1796
  version: "Test string",
1713
1797
  }
1714
1798
  ],
1799
+ npmPackages: [
1800
+ {
1801
+ packagePath: "Test string",
1802
+ repository: "Test string",
1803
+ }
1804
+ ],
1715
1805
  objects: {
1716
1806
  location: "Test string",
1717
1807
  paths: [
@@ -1831,6 +1921,23 @@ gapi.load('client', async () => {
1831
1921
  uri: "Test string",
1832
1922
  }
1833
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
+ ],
1834
1941
  numArtifacts: "Test string",
1835
1942
  pythonPackages: [
1836
1943
  {
@@ -1860,6 +1967,11 @@ gapi.load('client', async () => {
1860
1967
  ],
1861
1968
  serviceAccount: "Test string",
1862
1969
  source: {
1970
+ gitSource: {
1971
+ dir: "Test string",
1972
+ revision: "Test string",
1973
+ url: "Test string",
1974
+ },
1863
1975
  repoSource: {
1864
1976
  branchName: "Test string",
1865
1977
  commitSha: "Test string",
@@ -2298,6 +2410,12 @@ gapi.load('client', async () => {
2298
2410
  version: "Test string",
2299
2411
  }
2300
2412
  ],
2413
+ npmPackages: [
2414
+ {
2415
+ packagePath: "Test string",
2416
+ repository: "Test string",
2417
+ }
2418
+ ],
2301
2419
  objects: {
2302
2420
  location: "Test string",
2303
2421
  paths: [
@@ -2417,6 +2535,23 @@ gapi.load('client', async () => {
2417
2535
  uri: "Test string",
2418
2536
  }
2419
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
+ ],
2420
2555
  numArtifacts: "Test string",
2421
2556
  pythonPackages: [
2422
2557
  {
@@ -2446,6 +2581,11 @@ gapi.load('client', async () => {
2446
2581
  ],
2447
2582
  serviceAccount: "Test string",
2448
2583
  source: {
2584
+ gitSource: {
2585
+ dir: "Test string",
2586
+ revision: "Test string",
2587
+ url: "Test string",
2588
+ },
2449
2589
  repoSource: {
2450
2590
  branchName: "Test string",
2451
2591
  commitSha: "Test string",
@@ -2790,6 +2930,12 @@ gapi.load('client', async () => {
2790
2930
  version: "Test string",
2791
2931
  }
2792
2932
  ],
2933
+ npmPackages: [
2934
+ {
2935
+ packagePath: "Test string",
2936
+ repository: "Test string",
2937
+ }
2938
+ ],
2793
2939
  objects: {
2794
2940
  location: "Test string",
2795
2941
  paths: [
@@ -2909,6 +3055,23 @@ gapi.load('client', async () => {
2909
3055
  uri: "Test string",
2910
3056
  }
2911
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
+ ],
2912
3075
  numArtifacts: "Test string",
2913
3076
  pythonPackages: [
2914
3077
  {
@@ -2938,6 +3101,11 @@ gapi.load('client', async () => {
2938
3101
  ],
2939
3102
  serviceAccount: "Test string",
2940
3103
  source: {
3104
+ gitSource: {
3105
+ dir: "Test string",
3106
+ revision: "Test string",
3107
+ url: "Test string",
3108
+ },
2941
3109
  repoSource: {
2942
3110
  branchName: "Test string",
2943
3111
  commitSha: "Test string",