@maxim_mazurok/gapi.client.containeranalysis-v1beta1 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 -138
- package/package.json +1 -1
- package/tests.ts +1 -22
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:
|
|
12
|
+
// Revision: 20221104
|
|
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
|
}
|
|
@@ -1118,12 +1179,6 @@ declare namespace gapi.client {
|
|
|
1118
1179
|
/** The occurrences requested. */
|
|
1119
1180
|
occurrences?: Occurrence[];
|
|
1120
1181
|
}
|
|
1121
|
-
interface ListScanConfigsResponse {
|
|
1122
|
-
/** The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. */
|
|
1123
|
-
nextPageToken?: string;
|
|
1124
|
-
/** The scan configurations requested. */
|
|
1125
|
-
scanConfigs?: ScanConfig[];
|
|
1126
|
-
}
|
|
1127
1182
|
interface Location {
|
|
1128
1183
|
/** Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. */
|
|
1129
1184
|
cpeUri?: string;
|
|
@@ -1415,18 +1470,6 @@ declare namespace gapi.client {
|
|
|
1415
1470
|
/** Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. */
|
|
1416
1471
|
uri?: string;
|
|
1417
1472
|
}
|
|
1418
|
-
interface ScanConfig {
|
|
1419
|
-
/** Output only. The time this scan config was created. */
|
|
1420
|
-
createTime?: string;
|
|
1421
|
-
/** Output only. A human-readable description of what the scan configuration does. */
|
|
1422
|
-
description?: string;
|
|
1423
|
-
/** Whether the scan is enabled. */
|
|
1424
|
-
enabled?: boolean;
|
|
1425
|
-
/** Output only. The name of the scan configuration in the form of `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. */
|
|
1426
|
-
name?: string;
|
|
1427
|
-
/** Output only. The time this scan config was last updated. */
|
|
1428
|
-
updateTime?: string;
|
|
1429
|
-
}
|
|
1430
1473
|
interface SetIamPolicyRequest {
|
|
1431
1474
|
/**
|
|
1432
1475
|
* REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
|
|
@@ -1508,6 +1551,12 @@ declare namespace gapi.client {
|
|
|
1508
1551
|
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
1509
1552
|
permissions?: string[];
|
|
1510
1553
|
}
|
|
1554
|
+
interface TimeSpan {
|
|
1555
|
+
/** End of time span. */
|
|
1556
|
+
endTime?: string;
|
|
1557
|
+
/** Start of time span. */
|
|
1558
|
+
startTime?: string;
|
|
1559
|
+
}
|
|
1511
1560
|
interface Version {
|
|
1512
1561
|
/** Used to correct mistakes in the version numbering scheme. */
|
|
1513
1562
|
epoch?: number;
|
|
@@ -1524,6 +1573,12 @@ declare namespace gapi.client {
|
|
|
1524
1573
|
/** The iteration of the package build from the above version. */
|
|
1525
1574
|
revision?: string;
|
|
1526
1575
|
}
|
|
1576
|
+
interface Volume {
|
|
1577
|
+
/** 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. */
|
|
1578
|
+
name?: string;
|
|
1579
|
+
/** 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. */
|
|
1580
|
+
path?: string;
|
|
1581
|
+
}
|
|
1527
1582
|
interface Vulnerability {
|
|
1528
1583
|
/** The CVSS score for this vulnerability. */
|
|
1529
1584
|
cvssScore?: number;
|
|
@@ -2398,128 +2453,9 @@ declare namespace gapi.client {
|
|
|
2398
2453
|
},
|
|
2399
2454
|
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
2400
2455
|
}
|
|
2401
|
-
interface ScanConfigsResource {
|
|
2402
|
-
/** Gets the specified scan configuration. */
|
|
2403
|
-
get(request?: {
|
|
2404
|
-
/** V1 error format. */
|
|
2405
|
-
"$.xgafv"?: string;
|
|
2406
|
-
/** OAuth access token. */
|
|
2407
|
-
access_token?: string;
|
|
2408
|
-
/** Data format for response. */
|
|
2409
|
-
alt?: string;
|
|
2410
|
-
/** JSONP */
|
|
2411
|
-
callback?: string;
|
|
2412
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2413
|
-
fields?: string;
|
|
2414
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2415
|
-
key?: string;
|
|
2416
|
-
/** Required. The name of the scan configuration in the form of `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. */
|
|
2417
|
-
name: string;
|
|
2418
|
-
/** OAuth 2.0 token for the current user. */
|
|
2419
|
-
oauth_token?: string;
|
|
2420
|
-
/** Returns response with indentations and line breaks. */
|
|
2421
|
-
prettyPrint?: boolean;
|
|
2422
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2423
|
-
quotaUser?: string;
|
|
2424
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2425
|
-
upload_protocol?: string;
|
|
2426
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2427
|
-
uploadType?: string;
|
|
2428
|
-
}): Request<ScanConfig>;
|
|
2429
|
-
/** Lists scan configurations for the specified project. */
|
|
2430
|
-
list(request?: {
|
|
2431
|
-
/** V1 error format. */
|
|
2432
|
-
"$.xgafv"?: string;
|
|
2433
|
-
/** OAuth access token. */
|
|
2434
|
-
access_token?: string;
|
|
2435
|
-
/** Data format for response. */
|
|
2436
|
-
alt?: string;
|
|
2437
|
-
/** JSONP */
|
|
2438
|
-
callback?: string;
|
|
2439
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2440
|
-
fields?: string;
|
|
2441
|
-
/** Required. The filter expression. */
|
|
2442
|
-
filter?: string;
|
|
2443
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2444
|
-
key?: string;
|
|
2445
|
-
/** OAuth 2.0 token for the current user. */
|
|
2446
|
-
oauth_token?: string;
|
|
2447
|
-
/** The number of scan configs to return in the list. */
|
|
2448
|
-
pageSize?: number;
|
|
2449
|
-
/** Token to provide to skip to a particular spot in the list. */
|
|
2450
|
-
pageToken?: string;
|
|
2451
|
-
/** Required. The name of the project to list scan configurations for in the form of `projects/[PROJECT_ID]`. */
|
|
2452
|
-
parent: string;
|
|
2453
|
-
/** Returns response with indentations and line breaks. */
|
|
2454
|
-
prettyPrint?: boolean;
|
|
2455
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2456
|
-
quotaUser?: string;
|
|
2457
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2458
|
-
upload_protocol?: string;
|
|
2459
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2460
|
-
uploadType?: string;
|
|
2461
|
-
}): Request<ListScanConfigsResponse>;
|
|
2462
|
-
/** Updates the specified scan configuration. */
|
|
2463
|
-
update(request: {
|
|
2464
|
-
/** V1 error format. */
|
|
2465
|
-
"$.xgafv"?: string;
|
|
2466
|
-
/** OAuth access token. */
|
|
2467
|
-
access_token?: string;
|
|
2468
|
-
/** Data format for response. */
|
|
2469
|
-
alt?: string;
|
|
2470
|
-
/** JSONP */
|
|
2471
|
-
callback?: string;
|
|
2472
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2473
|
-
fields?: string;
|
|
2474
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2475
|
-
key?: string;
|
|
2476
|
-
/** Required. The name of the scan configuration in the form of `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. */
|
|
2477
|
-
name: string;
|
|
2478
|
-
/** OAuth 2.0 token for the current user. */
|
|
2479
|
-
oauth_token?: string;
|
|
2480
|
-
/** Returns response with indentations and line breaks. */
|
|
2481
|
-
prettyPrint?: boolean;
|
|
2482
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2483
|
-
quotaUser?: string;
|
|
2484
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2485
|
-
upload_protocol?: string;
|
|
2486
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2487
|
-
uploadType?: string;
|
|
2488
|
-
/** Request body */
|
|
2489
|
-
resource: ScanConfig;
|
|
2490
|
-
}): Request<ScanConfig>;
|
|
2491
|
-
update(request: {
|
|
2492
|
-
/** V1 error format. */
|
|
2493
|
-
"$.xgafv"?: string;
|
|
2494
|
-
/** OAuth access token. */
|
|
2495
|
-
access_token?: string;
|
|
2496
|
-
/** Data format for response. */
|
|
2497
|
-
alt?: string;
|
|
2498
|
-
/** JSONP */
|
|
2499
|
-
callback?: string;
|
|
2500
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
2501
|
-
fields?: string;
|
|
2502
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2503
|
-
key?: string;
|
|
2504
|
-
/** Required. The name of the scan configuration in the form of `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. */
|
|
2505
|
-
name: string;
|
|
2506
|
-
/** OAuth 2.0 token for the current user. */
|
|
2507
|
-
oauth_token?: string;
|
|
2508
|
-
/** Returns response with indentations and line breaks. */
|
|
2509
|
-
prettyPrint?: boolean;
|
|
2510
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2511
|
-
quotaUser?: string;
|
|
2512
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2513
|
-
upload_protocol?: string;
|
|
2514
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2515
|
-
uploadType?: string;
|
|
2516
|
-
},
|
|
2517
|
-
body: ScanConfig): Request<ScanConfig>;
|
|
2518
|
-
}
|
|
2519
2456
|
interface ProjectsResource {
|
|
2520
2457
|
notes: NotesResource;
|
|
2521
2458
|
occurrences: OccurrencesResource;
|
|
2522
|
-
scanConfigs: ScanConfigsResource;
|
|
2523
2459
|
}
|
|
2524
2460
|
|
|
2525
2461
|
const projects: ProjectsResource;
|
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 */
|
|
@@ -2163,26 +2163,5 @@ gapi.load('client', async () => {
|
|
|
2163
2163
|
"Test string"
|
|
2164
2164
|
],
|
|
2165
2165
|
});
|
|
2166
|
-
/** Gets the specified scan configuration. */
|
|
2167
|
-
await gapi.client.containeranalysis.projects.scanConfigs.get({
|
|
2168
|
-
name: "Test string",
|
|
2169
|
-
});
|
|
2170
|
-
/** Lists scan configurations for the specified project. */
|
|
2171
|
-
await gapi.client.containeranalysis.projects.scanConfigs.list({
|
|
2172
|
-
filter: "Test string",
|
|
2173
|
-
pageSize: 42,
|
|
2174
|
-
pageToken: "Test string",
|
|
2175
|
-
parent: "Test string",
|
|
2176
|
-
});
|
|
2177
|
-
/** Updates the specified scan configuration. */
|
|
2178
|
-
await gapi.client.containeranalysis.projects.scanConfigs.update({
|
|
2179
|
-
name: "Test string",
|
|
2180
|
-
}, {
|
|
2181
|
-
createTime: "Test string",
|
|
2182
|
-
description: "Test string",
|
|
2183
|
-
enabled: true,
|
|
2184
|
-
name: "Test string",
|
|
2185
|
-
updateTime: "Test string",
|
|
2186
|
-
});
|
|
2187
2166
|
}
|
|
2188
2167
|
});
|