@maxim_mazurok/gapi.client.containeranalysis-v1 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.
- package/index.d.ts +136 -6
- package/package.json +1 -1
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20221015
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -160,6 +160,67 @@ declare namespace gapi.client {
|
|
|
160
160
|
/** Trigger identifier if the build was triggered automatically; empty if not. */
|
|
161
161
|
triggerId?: string;
|
|
162
162
|
}
|
|
163
|
+
interface BuildStep {
|
|
164
|
+
/**
|
|
165
|
+
* 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
|
|
166
|
+
* precedence.
|
|
167
|
+
*/
|
|
168
|
+
allowExitCodes?: number[];
|
|
169
|
+
/**
|
|
170
|
+
* 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
|
|
171
|
+
* have a failure status. Error information will be reported in the failure_detail field.
|
|
172
|
+
*/
|
|
173
|
+
allowFailure?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* 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
|
|
176
|
+
* 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.
|
|
177
|
+
*/
|
|
178
|
+
args?: string[];
|
|
179
|
+
/**
|
|
180
|
+
* 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
|
|
181
|
+
* 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
|
|
182
|
+
* 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.
|
|
183
|
+
*/
|
|
184
|
+
dir?: string;
|
|
185
|
+
/** Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used. */
|
|
186
|
+
entrypoint?: string;
|
|
187
|
+
/** 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". */
|
|
188
|
+
env?: string[];
|
|
189
|
+
/** Output only. Return code from running the step. */
|
|
190
|
+
exitCode?: number;
|
|
191
|
+
/** Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency. */
|
|
192
|
+
id?: string;
|
|
193
|
+
/**
|
|
194
|
+
* 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,
|
|
195
|
+
* 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
|
|
196
|
+
* of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also
|
|
197
|
+
* 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
|
|
198
|
+
* 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.
|
|
199
|
+
*/
|
|
200
|
+
name?: string;
|
|
201
|
+
/** Output only. Stores timing information for pulling this build step's builder image only. */
|
|
202
|
+
pullTiming?: TimeSpan;
|
|
203
|
+
/** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
|
|
204
|
+
script?: string;
|
|
205
|
+
/** 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`. */
|
|
206
|
+
secretEnv?: string[];
|
|
207
|
+
/** 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. */
|
|
208
|
+
status?: string;
|
|
209
|
+
/** 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. */
|
|
210
|
+
timeout?: string;
|
|
211
|
+
/** Output only. Stores timing information for executing this build step. */
|
|
212
|
+
timing?: TimeSpan;
|
|
213
|
+
/**
|
|
214
|
+
* 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
|
|
215
|
+
* 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.
|
|
216
|
+
*/
|
|
217
|
+
volumes?: Volume[];
|
|
218
|
+
/**
|
|
219
|
+
* 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,
|
|
220
|
+
* this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
|
|
221
|
+
*/
|
|
222
|
+
waitFor?: string[];
|
|
223
|
+
}
|
|
163
224
|
interface Category {
|
|
164
225
|
/** The identifier of the category. */
|
|
165
226
|
categoryId?: string;
|
|
@@ -252,12 +313,22 @@ declare namespace gapi.client {
|
|
|
252
313
|
* 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.
|
|
253
314
|
*/
|
|
254
315
|
images?: string[];
|
|
316
|
+
/**
|
|
317
|
+
* 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
|
|
318
|
+
* 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.
|
|
319
|
+
*/
|
|
320
|
+
mavenArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact[];
|
|
255
321
|
/**
|
|
256
322
|
* 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
|
|
257
323
|
* 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
|
|
258
324
|
* field. If any objects fail to be pushed, the build is marked FAILURE.
|
|
259
325
|
*/
|
|
260
326
|
objects?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects;
|
|
327
|
+
/**
|
|
328
|
+
* 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
|
|
329
|
+
* upload. If any objects fail to be pushed, the build is marked FAILURE.
|
|
330
|
+
*/
|
|
331
|
+
pythonPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage[];
|
|
261
332
|
}
|
|
262
333
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects {
|
|
263
334
|
/**
|
|
@@ -271,6 +342,33 @@ declare namespace gapi.client {
|
|
|
271
342
|
/** Output only. Stores timing information for pushing all artifact objects. */
|
|
272
343
|
timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
273
344
|
}
|
|
345
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact {
|
|
346
|
+
/** Maven `artifactId` value used when uploading the artifact to Artifact Registry. */
|
|
347
|
+
artifactId?: string;
|
|
348
|
+
/** Maven `groupId` value used when uploading the artifact to Artifact Registry. */
|
|
349
|
+
groupId?: string;
|
|
350
|
+
/**
|
|
351
|
+
* 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
|
|
352
|
+
* relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
|
|
353
|
+
*/
|
|
354
|
+
path?: string;
|
|
355
|
+
/**
|
|
356
|
+
* 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
|
|
357
|
+
* this location as a prefix.
|
|
358
|
+
*/
|
|
359
|
+
repository?: string;
|
|
360
|
+
/** Maven `version` value used when uploading the artifact to Artifact Registry. */
|
|
361
|
+
version?: string;
|
|
362
|
+
}
|
|
363
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage {
|
|
364
|
+
/** Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. */
|
|
365
|
+
paths?: string[];
|
|
366
|
+
/**
|
|
367
|
+
* 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
|
|
368
|
+
* Registry with this location as a prefix.
|
|
369
|
+
*/
|
|
370
|
+
repository?: string;
|
|
371
|
+
}
|
|
274
372
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Build {
|
|
275
373
|
/** Output only. Describes this build's approval configuration, status, and result. */
|
|
276
374
|
approval?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval;
|
|
@@ -345,8 +443,8 @@ declare namespace gapi.client {
|
|
|
345
443
|
*/
|
|
346
444
|
timeout?: string;
|
|
347
445
|
/**
|
|
348
|
-
* 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
|
|
349
|
-
* 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.
|
|
446
|
+
* 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
|
|
447
|
+
* 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.
|
|
350
448
|
*/
|
|
351
449
|
timing?: { [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan };
|
|
352
450
|
/** Output only. Non-fatal problems encountered during the execution of the build. */
|
|
@@ -540,9 +638,9 @@ declare namespace gapi.client {
|
|
|
540
638
|
tagName?: string;
|
|
541
639
|
}
|
|
542
640
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Results {
|
|
543
|
-
/** Path to the artifact manifest. Only populated when artifacts are uploaded. */
|
|
641
|
+
/** Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
|
|
544
642
|
artifactManifest?: string;
|
|
545
|
-
/** Time to push all non-container artifacts. */
|
|
643
|
+
/** Time to push all non-container artifacts to Cloud Storage. */
|
|
546
644
|
artifactTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
547
645
|
/** List of build step digests, in the order corresponding to build step indices. */
|
|
548
646
|
buildStepImages?: string[];
|
|
@@ -553,8 +651,12 @@ declare namespace gapi.client {
|
|
|
553
651
|
buildStepOutputs?: string[];
|
|
554
652
|
/** Container images that were built as a part of the build. */
|
|
555
653
|
images?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[];
|
|
556
|
-
/**
|
|
654
|
+
/** Maven artifacts uploaded to Artifact Registry at the end of the build. */
|
|
655
|
+
mavenArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact[];
|
|
656
|
+
/** Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
|
|
557
657
|
numArtifacts?: string;
|
|
658
|
+
/** Python artifacts uploaded to Artifact Registry at the end of the build. */
|
|
659
|
+
pythonPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage[];
|
|
558
660
|
}
|
|
559
661
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Secret {
|
|
560
662
|
/** Cloud KMS key name to use to decrypt these envs. */
|
|
@@ -624,6 +726,22 @@ declare namespace gapi.client {
|
|
|
624
726
|
/** Start of time span. */
|
|
625
727
|
startTime?: string;
|
|
626
728
|
}
|
|
729
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact {
|
|
730
|
+
/** Hash types and values of the Maven Artifact. */
|
|
731
|
+
fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
|
|
732
|
+
/** Output only. Stores timing information for pushing the specified artifact. */
|
|
733
|
+
pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
734
|
+
/** URI of the uploaded artifact. */
|
|
735
|
+
uri?: string;
|
|
736
|
+
}
|
|
737
|
+
interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage {
|
|
738
|
+
/** Hash types and values of the Python Artifact. */
|
|
739
|
+
fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
|
|
740
|
+
/** Output only. Stores timing information for pushing the specified artifact. */
|
|
741
|
+
pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
|
|
742
|
+
/** URI of the uploaded artifact. */
|
|
743
|
+
uri?: string;
|
|
744
|
+
}
|
|
627
745
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1Volume {
|
|
628
746
|
/** 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. */
|
|
629
747
|
name?: string;
|
|
@@ -1388,6 +1506,12 @@ declare namespace gapi.client {
|
|
|
1388
1506
|
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
1389
1507
|
permissions?: string[];
|
|
1390
1508
|
}
|
|
1509
|
+
interface TimeSpan {
|
|
1510
|
+
/** End of time span. */
|
|
1511
|
+
endTime?: string;
|
|
1512
|
+
/** Start of time span. */
|
|
1513
|
+
startTime?: string;
|
|
1514
|
+
}
|
|
1391
1515
|
interface UpgradeDistribution {
|
|
1392
1516
|
/**
|
|
1393
1517
|
* The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at
|
|
@@ -1439,6 +1563,12 @@ declare namespace gapi.client {
|
|
|
1439
1563
|
/** The iteration of the package build from the above version. */
|
|
1440
1564
|
revision?: string;
|
|
1441
1565
|
}
|
|
1566
|
+
interface Volume {
|
|
1567
|
+
/** 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. */
|
|
1568
|
+
name?: string;
|
|
1569
|
+
/** 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. */
|
|
1570
|
+
path?: string;
|
|
1571
|
+
}
|
|
1442
1572
|
interface VulnerabilityNote {
|
|
1443
1573
|
/** The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity. */
|
|
1444
1574
|
cvssScore?: number;
|
package/package.json
CHANGED
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: 20221015
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|