@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.0.20220928 → 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 +136 -6
  2. package/package.json +1 -1
  3. package/tests.ts +1 -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://containeranalysis.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20220928
12
+ // Revision: 20221015
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -161,6 +161,67 @@ declare namespace gapi.client {
161
161
  /** Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded. */
162
162
  signature?: string;
163
163
  }
164
+ interface BuildStep {
165
+ /**
166
+ * Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take
167
+ * precedence.
168
+ */
169
+ allowExitCodes?: number[];
170
+ /**
171
+ * Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still
172
+ * have a failure status. Error information will be reported in the failure_detail field.
173
+ */
174
+ allowFailure?: boolean;
175
+ /**
176
+ * A list of arguments that will be presented to the step when it is started. If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that
177
+ * entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
178
+ */
179
+ args?: string[];
180
+ /**
181
+ * Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be
182
+ * outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the
183
+ * build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
184
+ */
185
+ dir?: string;
186
+ /** Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used. */
187
+ entrypoint?: string;
188
+ /** A list of environment variable definitions to be used when running a step. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". */
189
+ env?: string[];
190
+ /** Output only. Return code from running the step. */
191
+ exitCode?: number;
192
+ /** Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency. */
193
+ id?: string;
194
+ /**
195
+ * Required. The name of the container image that will run this particular build step. If the image is available in the host's Docker daemon's cache, it will be run directly. If not,
196
+ * the host will attempt to pull the image first, using the builder service account's credentials if necessary. The Docker daemon's cache will already have the latest versions of all
197
+ * of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also
198
+ * have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them. If you built an image in a previous
199
+ * build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.
200
+ */
201
+ name?: string;
202
+ /** Output only. Stores timing information for pulling this build step's builder image only. */
203
+ pullTiming?: TimeSpan;
204
+ /** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
205
+ script?: string;
206
+ /** A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. */
207
+ secretEnv?: string[];
208
+ /** Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses. */
209
+ status?: string;
210
+ /** Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out. */
211
+ timeout?: string;
212
+ /** Output only. Stores timing information for executing this build step. */
213
+ timing?: TimeSpan;
214
+ /**
215
+ * List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their
216
+ * contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
217
+ */
218
+ volumes?: Volume[];
219
+ /**
220
+ * The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty,
221
+ * this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
222
+ */
223
+ waitFor?: string[];
224
+ }
164
225
  interface ByProducts {
165
226
  customValues?: { [P in string]: string };
166
227
  }
@@ -211,12 +272,22 @@ declare namespace gapi.client {
211
272
  * 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.
212
273
  */
213
274
  images?: string[];
275
+ /**
276
+ * 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
277
+ * 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.
278
+ */
279
+ mavenArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact[];
214
280
  /**
215
281
  * 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
216
282
  * 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
217
283
  * field. If any objects fail to be pushed, the build is marked FAILURE.
218
284
  */
219
285
  objects?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects;
286
+ /**
287
+ * 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
288
+ * upload. If any objects fail to be pushed, the build is marked FAILURE.
289
+ */
290
+ pythonPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage[];
220
291
  }
221
292
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects {
222
293
  /**
@@ -230,6 +301,33 @@ declare namespace gapi.client {
230
301
  /** Output only. Stores timing information for pushing all artifact objects. */
231
302
  timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
232
303
  }
304
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact {
305
+ /** Maven `artifactId` value used when uploading the artifact to Artifact Registry. */
306
+ artifactId?: string;
307
+ /** Maven `groupId` value used when uploading the artifact to Artifact Registry. */
308
+ groupId?: string;
309
+ /**
310
+ * 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
311
+ * relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
312
+ */
313
+ path?: string;
314
+ /**
315
+ * 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
316
+ * this location as a prefix.
317
+ */
318
+ repository?: string;
319
+ /** Maven `version` value used when uploading the artifact to Artifact Registry. */
320
+ version?: string;
321
+ }
322
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage {
323
+ /** Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. */
324
+ paths?: string[];
325
+ /**
326
+ * 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
327
+ * Registry with this location as a prefix.
328
+ */
329
+ repository?: string;
330
+ }
233
331
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Build {
234
332
  /** Output only. Describes this build's approval configuration, status, and result. */
235
333
  approval?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval;
@@ -304,8 +402,8 @@ declare namespace gapi.client {
304
402
  */
305
403
  timeout?: string;
306
404
  /**
307
- * 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:
308
- * 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.
405
+ * 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
406
+ * 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.
309
407
  */
310
408
  timing?: { [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan };
311
409
  /** Output only. Non-fatal problems encountered during the execution of the build. */
@@ -499,9 +597,9 @@ declare namespace gapi.client {
499
597
  tagName?: string;
500
598
  }
501
599
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Results {
502
- /** Path to the artifact manifest. Only populated when artifacts are uploaded. */
600
+ /** Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
503
601
  artifactManifest?: string;
504
- /** Time to push all non-container artifacts. */
602
+ /** Time to push all non-container artifacts to Cloud Storage. */
505
603
  artifactTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
506
604
  /** List of build step digests, in the order corresponding to build step indices. */
507
605
  buildStepImages?: string[];
@@ -512,8 +610,12 @@ declare namespace gapi.client {
512
610
  buildStepOutputs?: string[];
513
611
  /** Container images that were built as a part of the build. */
514
612
  images?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[];
515
- /** Number of artifacts uploaded. Only populated when artifacts are uploaded. */
613
+ /** Maven artifacts uploaded to Artifact Registry at the end of the build. */
614
+ mavenArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact[];
615
+ /** Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
516
616
  numArtifacts?: string;
617
+ /** Python artifacts uploaded to Artifact Registry at the end of the build. */
618
+ pythonPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage[];
517
619
  }
518
620
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Secret {
519
621
  /** Cloud KMS key name to use to decrypt these envs. */
@@ -583,6 +685,22 @@ declare namespace gapi.client {
583
685
  /** Start of time span. */
584
686
  startTime?: string;
585
687
  }
688
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact {
689
+ /** Hash types and values of the Maven Artifact. */
690
+ fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
691
+ /** Output only. Stores timing information for pushing the specified artifact. */
692
+ pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
693
+ /** URI of the uploaded artifact. */
694
+ uri?: string;
695
+ }
696
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage {
697
+ /** Hash types and values of the Python Artifact. */
698
+ fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
699
+ /** Output only. Stores timing information for pushing the specified artifact. */
700
+ pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
701
+ /** URI of the uploaded artifact. */
702
+ uri?: string;
703
+ }
586
704
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Volume {
587
705
  /** 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. */
588
706
  name?: string;
@@ -1451,6 +1569,12 @@ declare namespace gapi.client {
1451
1569
  /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
1452
1570
  permissions?: string[];
1453
1571
  }
1572
+ interface TimeSpan {
1573
+ /** End of time span. */
1574
+ endTime?: string;
1575
+ /** Start of time span. */
1576
+ startTime?: string;
1577
+ }
1454
1578
  interface Version {
1455
1579
  /** Used to correct mistakes in the version numbering scheme. */
1456
1580
  epoch?: number;
@@ -1467,6 +1591,12 @@ declare namespace gapi.client {
1467
1591
  /** The iteration of the package build from the above version. */
1468
1592
  revision?: string;
1469
1593
  }
1594
+ interface Volume {
1595
+ /** 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. */
1596
+ name?: string;
1597
+ /** Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths. */
1598
+ path?: string;
1599
+ }
1470
1600
  interface Vulnerability {
1471
1601
  /** The CVSS score for this vulnerability. */
1472
1602
  cvssScore?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.containeranalysis-v1beta1",
3
- "version": "0.0.20220928",
3
+ "version": "0.0.20221015",
4
4
  "description": "TypeScript typings for Container Analysis API v1beta1",
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: 20220928
6
+ // Revision: 20221015
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */