@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 0.3.20261002 → 0.3.20261009
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 +150 -2
- package/package.json +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=v1alpha1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20261009
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -219,6 +219,8 @@ declare namespace gapi.client {
|
|
|
219
219
|
| 'TIMEOUT'
|
|
220
220
|
| 'CANCELLED'
|
|
221
221
|
| 'EXPIRED';
|
|
222
|
+
/** Tasks to be executed in the build step. */
|
|
223
|
+
tasks?: Task[];
|
|
222
224
|
/** 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. */
|
|
223
225
|
timeout?: string;
|
|
224
226
|
/** Output only. Stores timing information for executing this build step. */
|
|
@@ -250,6 +252,12 @@ declare namespace gapi.client {
|
|
|
250
252
|
| 'HIGH'
|
|
251
253
|
| 'CRITICAL';
|
|
252
254
|
}
|
|
255
|
+
interface CitCWorkspace {
|
|
256
|
+
/** e.g., 45 */
|
|
257
|
+
snapshotVersion?: string;
|
|
258
|
+
/** e.g., "user/123" */
|
|
259
|
+
workspaceId?: string;
|
|
260
|
+
}
|
|
253
261
|
interface Command {
|
|
254
262
|
/** Command-line arguments used when executing this Command. */
|
|
255
263
|
args?: string[];
|
|
@@ -672,7 +680,7 @@ declare namespace gapi.client {
|
|
|
672
680
|
gitSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency;
|
|
673
681
|
}
|
|
674
682
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency {
|
|
675
|
-
/**
|
|
683
|
+
/** Optional. Where the artifact files should be placed on the worker. Required when specified in `Build.dependencies`. */
|
|
676
684
|
destPath?: string;
|
|
677
685
|
/** Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
678
686
|
resource?: string;
|
|
@@ -1058,6 +1066,14 @@ declare namespace gapi.client {
|
|
|
1058
1066
|
| 'IMPACT_PARTIAL'
|
|
1059
1067
|
| 'IMPACT_COMPLETE';
|
|
1060
1068
|
}
|
|
1069
|
+
interface Dependency {
|
|
1070
|
+
empty?: boolean;
|
|
1071
|
+
genericArtifact?: GenericArtifactDependency;
|
|
1072
|
+
gitSource?: GitSourceDependency;
|
|
1073
|
+
httpsArtifactDependency?: HttpsArtifactDependency;
|
|
1074
|
+
invokeBlaze?: InvokeBlazeDependency;
|
|
1075
|
+
piperSource?: PiperSourceDependency;
|
|
1076
|
+
}
|
|
1061
1077
|
interface Deployable {
|
|
1062
1078
|
/** Resource URI for the artifact being deployed. */
|
|
1063
1079
|
resourceUri?: string[];
|
|
@@ -1078,6 +1094,12 @@ declare namespace gapi.client {
|
|
|
1078
1094
|
/** Identity of the user that triggered this deployment. */
|
|
1079
1095
|
userEmail?: string;
|
|
1080
1096
|
}
|
|
1097
|
+
interface DepotSource {
|
|
1098
|
+
/** The changelist number. If not provided, it will default to piper HEAD. */
|
|
1099
|
+
changelist?: string;
|
|
1100
|
+
/** Optional branch information. */
|
|
1101
|
+
overlayBranch?: OverlayBranchId;
|
|
1102
|
+
}
|
|
1081
1103
|
interface Derived {
|
|
1082
1104
|
/** Output only. This contains the base image URL for the derived image occurrence. */
|
|
1083
1105
|
baseResourceUrl?: string;
|
|
@@ -1112,6 +1134,12 @@ declare namespace gapi.client {
|
|
|
1112
1134
|
/** The vendor of the product. e.g. "google" */
|
|
1113
1135
|
vendor?: string;
|
|
1114
1136
|
}
|
|
1137
|
+
interface DeveloperConnectSetupData {
|
|
1138
|
+
/** INTERNAL_ONLY. The IP address of the private git server. Only set if the git server is private and connected with a service directory. Deprecated: this was a workaround for PSC that is no longer used. */
|
|
1139
|
+
gitServerIpAddress?: string;
|
|
1140
|
+
/** INTERNAL_ONLY. SSL certificate to use for git operations. */
|
|
1141
|
+
sslCaInfo?: string;
|
|
1142
|
+
}
|
|
1115
1143
|
interface Digest {
|
|
1116
1144
|
/** `SHA1`, `SHA512` etc. */
|
|
1117
1145
|
algo?: string;
|
|
@@ -1363,6 +1391,12 @@ declare namespace gapi.client {
|
|
|
1363
1391
|
/** Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests. */
|
|
1364
1392
|
v2Name?: string;
|
|
1365
1393
|
}
|
|
1394
|
+
interface GenericArtifactDependency {
|
|
1395
|
+
/** Where the artifact files should be placed on the worker. Required when specified in `Build.dependencies`. Ignored when specified in `TaskDependency`, as the task runner controls where artifacts are placed. */
|
|
1396
|
+
destPath?: string;
|
|
1397
|
+
/** The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
1398
|
+
resource?: string;
|
|
1399
|
+
}
|
|
1366
1400
|
interface GetIamPolicyRequest {
|
|
1367
1401
|
/** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
|
|
1368
1402
|
options?: GetPolicyOptions;
|
|
@@ -1375,6 +1409,30 @@ declare namespace gapi.client {
|
|
|
1375
1409
|
/** A map of how many occurrences were found for each severity. */
|
|
1376
1410
|
counts?: SeverityCount[];
|
|
1377
1411
|
}
|
|
1412
|
+
interface GitSourceDependency {
|
|
1413
|
+
/** How much history should be fetched for the build (default 1, -1 for all history). */
|
|
1414
|
+
depth?: string;
|
|
1415
|
+
/** Where should the files be placed on the worker. */
|
|
1416
|
+
destPath?: string;
|
|
1417
|
+
/** True if remote tags should be fetched too (default false). Note: when depth is 1 (default), git fetch only retrieves tags pointing to commits within the shallow boundary. Set depth to -1 to fetch all historical tags. */
|
|
1418
|
+
fetchTags?: boolean;
|
|
1419
|
+
/** True if submodules should be fetched too (default false). */
|
|
1420
|
+
recurseSubmodules?: boolean;
|
|
1421
|
+
/** The kind of repo (url or dev connect) */
|
|
1422
|
+
repository?: GitSourceRepository;
|
|
1423
|
+
/** The revision that we will fetch the repo at. */
|
|
1424
|
+
revision?: string;
|
|
1425
|
+
}
|
|
1426
|
+
interface GitSourceRepository {
|
|
1427
|
+
/** The Developer Connect Git repository link or the url that matches a repository link in the current project, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*` */
|
|
1428
|
+
developerConnect?: string;
|
|
1429
|
+
/** Data needed to setup the Developer Connect repository. */
|
|
1430
|
+
developerConnectSetupData?: DeveloperConnectSetupData;
|
|
1431
|
+
/** Enables the use of the proxy URL returned by DeveloperConnect for git operations, if available. */
|
|
1432
|
+
proxyUrlEnabled?: boolean;
|
|
1433
|
+
/** Location of the Git repository. */
|
|
1434
|
+
url?: string;
|
|
1435
|
+
}
|
|
1378
1436
|
interface GoogleDevtoolsContaineranalysisV1alpha1AliasContext {
|
|
1379
1437
|
/** The alias kind. */
|
|
1380
1438
|
kind?: 'KIND_UNSPECIFIED' | 'FIXED' | 'MOVABLE' | 'OTHER';
|
|
@@ -1485,6 +1543,12 @@ declare namespace gapi.client {
|
|
|
1485
1543
|
/** The hash value. */
|
|
1486
1544
|
value?: string;
|
|
1487
1545
|
}
|
|
1546
|
+
interface HttpsArtifactDependency {
|
|
1547
|
+
/** Where the artifact file should be placed on the worker. Required when specified in `Build.dependencies`. Ignored when specified in `TaskDependency`, as the task runner controls where artifacts are placed. */
|
|
1548
|
+
destPath?: string;
|
|
1549
|
+
/** The URI to download the artifact file from. */
|
|
1550
|
+
uri?: string;
|
|
1551
|
+
}
|
|
1488
1552
|
interface IdentifierHelper {
|
|
1489
1553
|
/** The field that is set in the API proto. */
|
|
1490
1554
|
field?: 'IDENTIFIER_HELPER_FIELD_UNSPECIFIED' | 'GENERIC_URI';
|
|
@@ -1537,6 +1601,15 @@ declare namespace gapi.client {
|
|
|
1537
1601
|
/** subject is the subjects of the intoto statement */
|
|
1538
1602
|
subject?: Subject[];
|
|
1539
1603
|
}
|
|
1604
|
+
interface InvokeBlazeDependency {
|
|
1605
|
+
/** Only for MPM commands. */
|
|
1606
|
+
architecture?: string;
|
|
1607
|
+
command?: 'UNKNOWN_COMMAND' | 'BUILD' | 'MPM' | 'TEST';
|
|
1608
|
+
destPath?: string;
|
|
1609
|
+
flags?: string[];
|
|
1610
|
+
piperRevision?: PiperRevision;
|
|
1611
|
+
targets?: string[];
|
|
1612
|
+
}
|
|
1540
1613
|
interface Justification {
|
|
1541
1614
|
/** Additional details on why this justification was chosen. */
|
|
1542
1615
|
details?: string;
|
|
@@ -1829,6 +1902,12 @@ declare namespace gapi.client {
|
|
|
1829
1902
|
/** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */
|
|
1830
1903
|
response?: {[P in string]: any};
|
|
1831
1904
|
}
|
|
1905
|
+
interface OverlayBranchId {
|
|
1906
|
+
/** The required prefix, also called branch family. */
|
|
1907
|
+
branchPrefix?: string;
|
|
1908
|
+
/** The optional suffix, also called iteration. */
|
|
1909
|
+
branchSuffix?: string;
|
|
1910
|
+
}
|
|
1832
1911
|
interface Package {
|
|
1833
1912
|
/** The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
|
|
1834
1913
|
architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
|
|
@@ -1928,6 +2007,12 @@ declare namespace gapi.client {
|
|
|
1928
2007
|
packageType?: string;
|
|
1929
2008
|
severityName?: string;
|
|
1930
2009
|
}
|
|
2010
|
+
interface ParameterDefinition {
|
|
2011
|
+
/** The default value if not provided at runtime. Omission of this parameter indicates the parameter is required. */
|
|
2012
|
+
defaultValue?: string;
|
|
2013
|
+
/** A description of the parameter for UI documentation. */
|
|
2014
|
+
description?: string;
|
|
2015
|
+
}
|
|
1931
2016
|
interface PerScannerVerdict {
|
|
1932
2017
|
/** Optional. Malicious Content LLM scan result. */
|
|
1933
2018
|
maliciousContentLlmResult?: MaliciousContentLLMResult;
|
|
@@ -1946,6 +2031,18 @@ declare namespace gapi.client {
|
|
|
1946
2031
|
/** The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. */
|
|
1947
2032
|
signature?: string;
|
|
1948
2033
|
}
|
|
2034
|
+
interface PiperRevision {
|
|
2035
|
+
/** Revision is within a CitC workspace. */
|
|
2036
|
+
citcWorkspace?: CitCWorkspace;
|
|
2037
|
+
/** Revision is a specific submitted changelist (possibly on a branch). */
|
|
2038
|
+
depotSource?: DepotSource;
|
|
2039
|
+
}
|
|
2040
|
+
interface PiperSourceDependency {
|
|
2041
|
+
/** The depot paths to fetch. (e.g., "//depot/google3/my/path/..."). Wildcards like ... and * are supported as per go/piper-api#depot_path_expression. Paths must start with "//depot/". */
|
|
2042
|
+
depotPaths?: string[];
|
|
2043
|
+
/** The piper revision to fetch the depot_paths from. If not provided, it will default to DepotSource with Piper HEAD. */
|
|
2044
|
+
piperRevision?: PiperRevision;
|
|
2045
|
+
}
|
|
1949
2046
|
interface Policy {
|
|
1950
2047
|
/** Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. */
|
|
1951
2048
|
bindings?: Binding[];
|
|
@@ -2366,6 +2463,57 @@ declare namespace gapi.client {
|
|
|
2366
2463
|
/** name is the name of the Subject used here */
|
|
2367
2464
|
name?: string;
|
|
2368
2465
|
}
|
|
2466
|
+
interface Task {
|
|
2467
|
+
/** Data to be passed to the task. */
|
|
2468
|
+
data?: {[P in string]: string};
|
|
2469
|
+
/** Dependencies that the Cloud Build worker will fetch before executing the task. */
|
|
2470
|
+
dependencies?: TaskDependency[];
|
|
2471
|
+
/** Working directory to use when running this task. This value is a relative path to the step's working directory. */
|
|
2472
|
+
dir?: string;
|
|
2473
|
+
/** Environment variables to be set for this task. */
|
|
2474
|
+
envs?: {[P in string]: string};
|
|
2475
|
+
/** Output only. The evaluated parameters for the task. */
|
|
2476
|
+
evaluatedParams?: {[P in string]: string};
|
|
2477
|
+
/** Output only. Return code from running the task. */
|
|
2478
|
+
exitCode?: number;
|
|
2479
|
+
/** ID of the task to be executed. */
|
|
2480
|
+
id?: string;
|
|
2481
|
+
/** Metadata for the task. */
|
|
2482
|
+
metadata?: TaskMetadata;
|
|
2483
|
+
/** Parameters to be passed to the task. */
|
|
2484
|
+
params?: {[P in string]: string};
|
|
2485
|
+
/** Remote configuration for the task. */
|
|
2486
|
+
remoteConfig?: string;
|
|
2487
|
+
/** Output only. The results of the task. */
|
|
2488
|
+
results?: {[P in string]: string};
|
|
2489
|
+
/** A shell script to be executed in the task. */
|
|
2490
|
+
script?: string;
|
|
2491
|
+
/** Output only. If `remote_config` is set, this holds the unmodified Task definition fetched from that location. Remote resolution only populates this field and leaves the inline fields as they are. The worker overlays the two right before execution, since CEL evaluation needs to know whether a param was set inline or by the remote definition. */
|
|
2492
|
+
snapshot?: Task;
|
|
2493
|
+
/** Output only. Status of the task. */
|
|
2494
|
+
status?:
|
|
2495
|
+
| 'STATUS_UNKNOWN'
|
|
2496
|
+
| 'QUEUED'
|
|
2497
|
+
| 'WORKING'
|
|
2498
|
+
| 'SUCCESS'
|
|
2499
|
+
| 'FAILURE'
|
|
2500
|
+
| 'INTERNAL_ERROR'
|
|
2501
|
+
| 'CANCELLED';
|
|
2502
|
+
}
|
|
2503
|
+
interface TaskDependency {
|
|
2504
|
+
/** Dependency to fetch. */
|
|
2505
|
+
dep?: Dependency;
|
|
2506
|
+
/** ID of the dependency. */
|
|
2507
|
+
id?: string;
|
|
2508
|
+
/** SHA256 digest of the dependency. */
|
|
2509
|
+
sha256?: string;
|
|
2510
|
+
}
|
|
2511
|
+
interface TaskMetadata {
|
|
2512
|
+
/** Description of the task. */
|
|
2513
|
+
description?: string;
|
|
2514
|
+
/** Parameter definitions for the task. */
|
|
2515
|
+
params?: {[P in string]: ParameterDefinition};
|
|
2516
|
+
}
|
|
2369
2517
|
interface TestIamPermissionsRequest {
|
|
2370
2518
|
/** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). */
|
|
2371
2519
|
permissions?: string[];
|