@maxim_mazurok/gapi.client.containeranalysis-v1 0.0.20221001 → 0.0.20221104
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 +74 -1
- 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: 20221104
|
|
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;
|
|
@@ -1445,6 +1506,12 @@ declare namespace gapi.client {
|
|
|
1445
1506
|
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
1446
1507
|
permissions?: string[];
|
|
1447
1508
|
}
|
|
1509
|
+
interface TimeSpan {
|
|
1510
|
+
/** End of time span. */
|
|
1511
|
+
endTime?: string;
|
|
1512
|
+
/** Start of time span. */
|
|
1513
|
+
startTime?: string;
|
|
1514
|
+
}
|
|
1448
1515
|
interface UpgradeDistribution {
|
|
1449
1516
|
/**
|
|
1450
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
|
|
@@ -1496,6 +1563,12 @@ declare namespace gapi.client {
|
|
|
1496
1563
|
/** The iteration of the package build from the above version. */
|
|
1497
1564
|
revision?: string;
|
|
1498
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
|
+
}
|
|
1499
1572
|
interface VulnerabilityNote {
|
|
1500
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. */
|
|
1501
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: 20221104
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|