@maxim_mazurok/gapi.client.containeranalysis-v1 0.2.20261002 → 0.2.20261016
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 +156 -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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20261016
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -228,6 +228,8 @@ declare namespace gapi.client {
|
|
|
228
228
|
| 'TIMEOUT'
|
|
229
229
|
| 'CANCELLED'
|
|
230
230
|
| 'EXPIRED';
|
|
231
|
+
/** Tasks to be executed in the build step. */
|
|
232
|
+
tasks?: Task[];
|
|
231
233
|
/** 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. */
|
|
232
234
|
timeout?: string;
|
|
233
235
|
/** Output only. Stores timing information for executing this build step. */
|
|
@@ -257,6 +259,12 @@ declare namespace gapi.client {
|
|
|
257
259
|
| 'HIGH'
|
|
258
260
|
| 'CRITICAL';
|
|
259
261
|
}
|
|
262
|
+
interface CitCWorkspace {
|
|
263
|
+
/** e.g., 45 */
|
|
264
|
+
snapshotVersion?: string;
|
|
265
|
+
/** e.g., "user/123" */
|
|
266
|
+
workspaceId?: string;
|
|
267
|
+
}
|
|
260
268
|
interface CloudRepoSourceContext {
|
|
261
269
|
/** An alias, which may be a branch or tag. */
|
|
262
270
|
aliasContext?: AliasContext;
|
|
@@ -551,6 +559,12 @@ declare namespace gapi.client {
|
|
|
551
559
|
pool?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption;
|
|
552
560
|
/** Optional. Option to specify the Pub/Sub topic to receive build status updates. */
|
|
553
561
|
pubsubTopic?: string;
|
|
562
|
+
/** Optional. Ranked list (earlier items have higher priority) of Machine Series to consider when provisioning Worker VMs. A concrete machine type will be selected based on machine availability in the given region. This field must be empty for the Build to be eligible to be paired with a pre-provisioned worker VM. */
|
|
563
|
+
rankedMachineSeries?:
|
|
564
|
+
| 'MACHINE_SERIES_UNSPECIFIED'
|
|
565
|
+
| 'MACHINE_SERIES_E'
|
|
566
|
+
| 'MACHINE_SERIES_N'
|
|
567
|
+
| 'MACHINE_SERIES_C'[];
|
|
554
568
|
/** Requested verifiability options. */
|
|
555
569
|
requestedVerifyOption?: 'NOT_VERIFIED' | 'VERIFIED' | 'BEST_EFFORT';
|
|
556
570
|
/** Output only. Worker release resolved from the release channel. */
|
|
@@ -684,7 +698,7 @@ declare namespace gapi.client {
|
|
|
684
698
|
gitSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency;
|
|
685
699
|
}
|
|
686
700
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency {
|
|
687
|
-
/**
|
|
701
|
+
/** Optional. Where the artifact files should be placed on the worker. Required when specified in `Build.dependencies`. */
|
|
688
702
|
destPath?: string;
|
|
689
703
|
/** Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
690
704
|
resource?: string;
|
|
@@ -1097,6 +1111,14 @@ declare namespace gapi.client {
|
|
|
1097
1111
|
| 'USER_INTERACTION_NONE'
|
|
1098
1112
|
| 'USER_INTERACTION_REQUIRED';
|
|
1099
1113
|
}
|
|
1114
|
+
interface Dependency {
|
|
1115
|
+
empty?: boolean;
|
|
1116
|
+
genericArtifact?: GenericArtifactDependency;
|
|
1117
|
+
gitSource?: GitSourceDependency;
|
|
1118
|
+
httpsArtifactDependency?: HttpsArtifactDependency;
|
|
1119
|
+
invokeBlaze?: InvokeBlazeDependency;
|
|
1120
|
+
piperSource?: PiperSourceDependency;
|
|
1121
|
+
}
|
|
1100
1122
|
interface DeploymentNote {
|
|
1101
1123
|
/** Required. Resource URI for the artifact being deployed. */
|
|
1102
1124
|
resourceUri?: string[];
|
|
@@ -1117,6 +1139,12 @@ declare namespace gapi.client {
|
|
|
1117
1139
|
/** Identity of the user that triggered this deployment. */
|
|
1118
1140
|
userEmail?: string;
|
|
1119
1141
|
}
|
|
1142
|
+
interface DepotSource {
|
|
1143
|
+
/** The changelist number. If not provided, it will default to piper HEAD. */
|
|
1144
|
+
changelist?: string;
|
|
1145
|
+
/** Optional branch information. */
|
|
1146
|
+
overlayBranch?: OverlayBranchId;
|
|
1147
|
+
}
|
|
1120
1148
|
interface Detail {
|
|
1121
1149
|
/** Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability affects. */
|
|
1122
1150
|
affectedCpeUri?: string;
|
|
@@ -1147,6 +1175,12 @@ declare namespace gapi.client {
|
|
|
1147
1175
|
/** The name of the vendor of the product. */
|
|
1148
1176
|
vendor?: string;
|
|
1149
1177
|
}
|
|
1178
|
+
interface DeveloperConnectSetupData {
|
|
1179
|
+
/** 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. */
|
|
1180
|
+
gitServerIpAddress?: string;
|
|
1181
|
+
/** INTERNAL_ONLY. SSL certificate to use for git operations. */
|
|
1182
|
+
sslCaInfo?: string;
|
|
1183
|
+
}
|
|
1150
1184
|
interface Digest {
|
|
1151
1185
|
/** `SHA1`, `SHA512` etc. */
|
|
1152
1186
|
algo?: string;
|
|
@@ -1319,6 +1353,12 @@ declare namespace gapi.client {
|
|
|
1319
1353
|
/** The total number of vulnerabilities associated with this resource. */
|
|
1320
1354
|
totalCount?: string;
|
|
1321
1355
|
}
|
|
1356
|
+
interface GenericArtifactDependency {
|
|
1357
|
+
/** 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. */
|
|
1358
|
+
destPath?: string;
|
|
1359
|
+
/** The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
1360
|
+
resource?: string;
|
|
1361
|
+
}
|
|
1322
1362
|
interface GerritSourceContext {
|
|
1323
1363
|
/** An alias, which may be a branch or tag. */
|
|
1324
1364
|
aliasContext?: AliasContext;
|
|
@@ -1343,6 +1383,30 @@ declare namespace gapi.client {
|
|
|
1343
1383
|
/** Git repository URL. */
|
|
1344
1384
|
url?: string;
|
|
1345
1385
|
}
|
|
1386
|
+
interface GitSourceDependency {
|
|
1387
|
+
/** How much history should be fetched for the build (default 1, -1 for all history). */
|
|
1388
|
+
depth?: string;
|
|
1389
|
+
/** Where should the files be placed on the worker. */
|
|
1390
|
+
destPath?: string;
|
|
1391
|
+
/** 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. */
|
|
1392
|
+
fetchTags?: boolean;
|
|
1393
|
+
/** True if submodules should be fetched too (default false). */
|
|
1394
|
+
recurseSubmodules?: boolean;
|
|
1395
|
+
/** The kind of repo (url or dev connect) */
|
|
1396
|
+
repository?: GitSourceRepository;
|
|
1397
|
+
/** The revision that we will fetch the repo at. */
|
|
1398
|
+
revision?: string;
|
|
1399
|
+
}
|
|
1400
|
+
interface GitSourceRepository {
|
|
1401
|
+
/** The Developer Connect Git repository link or the url that matches a repository link in the current project, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*` */
|
|
1402
|
+
developerConnect?: string;
|
|
1403
|
+
/** Data needed to setup the Developer Connect repository. */
|
|
1404
|
+
developerConnectSetupData?: DeveloperConnectSetupData;
|
|
1405
|
+
/** Enables the use of the proxy URL returned by DeveloperConnect for git operations, if available. */
|
|
1406
|
+
proxyUrlEnabled?: boolean;
|
|
1407
|
+
/** Location of the Git repository. */
|
|
1408
|
+
url?: string;
|
|
1409
|
+
}
|
|
1346
1410
|
interface GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata {
|
|
1347
1411
|
/** Output only. The time this operation was created. */
|
|
1348
1412
|
createTime?: string;
|
|
@@ -1396,6 +1460,12 @@ declare namespace gapi.client {
|
|
|
1396
1460
|
/** Required. The human readable name of this attestation authority, for example "qa". */
|
|
1397
1461
|
humanReadableName?: string;
|
|
1398
1462
|
}
|
|
1463
|
+
interface HttpsArtifactDependency {
|
|
1464
|
+
/** 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. */
|
|
1465
|
+
destPath?: string;
|
|
1466
|
+
/** The URI to download the artifact file from. */
|
|
1467
|
+
uri?: string;
|
|
1468
|
+
}
|
|
1399
1469
|
interface Identity {
|
|
1400
1470
|
/** The revision number of the update. */
|
|
1401
1471
|
revision?: number;
|
|
@@ -1444,6 +1514,15 @@ declare namespace gapi.client {
|
|
|
1444
1514
|
slsaProvenanceZeroTwo?: SlsaProvenanceZeroTwo;
|
|
1445
1515
|
subject?: Subject[];
|
|
1446
1516
|
}
|
|
1517
|
+
interface InvokeBlazeDependency {
|
|
1518
|
+
/** Only for MPM commands. */
|
|
1519
|
+
architecture?: string;
|
|
1520
|
+
command?: 'UNKNOWN_COMMAND' | 'BUILD' | 'MPM' | 'TEST';
|
|
1521
|
+
destPath?: string;
|
|
1522
|
+
flags?: string[];
|
|
1523
|
+
piperRevision?: PiperRevision;
|
|
1524
|
+
targets?: string[];
|
|
1525
|
+
}
|
|
1447
1526
|
interface Justification {
|
|
1448
1527
|
/** Additional details on why this justification was chosen. */
|
|
1449
1528
|
details?: string;
|
|
@@ -1690,6 +1769,12 @@ declare namespace gapi.client {
|
|
|
1690
1769
|
/** Describes a security vulnerability. */
|
|
1691
1770
|
vulnerability?: VulnerabilityOccurrence;
|
|
1692
1771
|
}
|
|
1772
|
+
interface OverlayBranchId {
|
|
1773
|
+
/** The required prefix, also called branch family. */
|
|
1774
|
+
branchPrefix?: string;
|
|
1775
|
+
/** The optional suffix, also called iteration. */
|
|
1776
|
+
branchSuffix?: string;
|
|
1777
|
+
}
|
|
1693
1778
|
interface PackageIssue {
|
|
1694
1779
|
/** Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in. */
|
|
1695
1780
|
affectedCpeUri?: string;
|
|
@@ -1758,6 +1843,12 @@ declare namespace gapi.client {
|
|
|
1758
1843
|
/** Output only. The version of the package. */
|
|
1759
1844
|
version?: Version;
|
|
1760
1845
|
}
|
|
1846
|
+
interface ParameterDefinition {
|
|
1847
|
+
/** The default value if not provided at runtime. Omission of this parameter indicates the parameter is required. */
|
|
1848
|
+
defaultValue?: string;
|
|
1849
|
+
/** A description of the parameter for UI documentation. */
|
|
1850
|
+
description?: string;
|
|
1851
|
+
}
|
|
1761
1852
|
interface PerScannerVerdict {
|
|
1762
1853
|
/** Malicious Content LLM scan result. */
|
|
1763
1854
|
maliciousContentLlmResult?: MaliciousContentLLMResult;
|
|
@@ -1768,6 +1859,18 @@ declare namespace gapi.client {
|
|
|
1768
1859
|
/** Workspace Policy scan result. */
|
|
1769
1860
|
workspacePolicy?: WorkspacePolicyResult;
|
|
1770
1861
|
}
|
|
1862
|
+
interface PiperRevision {
|
|
1863
|
+
/** Revision is within a CitC workspace. */
|
|
1864
|
+
citcWorkspace?: CitCWorkspace;
|
|
1865
|
+
/** Revision is a specific submitted changelist (possibly on a branch). */
|
|
1866
|
+
depotSource?: DepotSource;
|
|
1867
|
+
}
|
|
1868
|
+
interface PiperSourceDependency {
|
|
1869
|
+
/** 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/". */
|
|
1870
|
+
depotPaths?: string[];
|
|
1871
|
+
/** The piper revision to fetch the depot_paths from. If not provided, it will default to DepotSource with Piper HEAD. */
|
|
1872
|
+
piperRevision?: PiperRevision;
|
|
1873
|
+
}
|
|
1771
1874
|
interface Policy {
|
|
1772
1875
|
/** 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`. */
|
|
1773
1876
|
bindings?: Binding[];
|
|
@@ -2049,6 +2152,57 @@ declare namespace gapi.client {
|
|
|
2049
2152
|
digest?: {[P in string]: string};
|
|
2050
2153
|
name?: string;
|
|
2051
2154
|
}
|
|
2155
|
+
interface Task {
|
|
2156
|
+
/** Data to be passed to the task. */
|
|
2157
|
+
data?: {[P in string]: string};
|
|
2158
|
+
/** Dependencies that the Cloud Build worker will fetch before executing the task. */
|
|
2159
|
+
dependencies?: TaskDependency[];
|
|
2160
|
+
/** Working directory to use when running this task. This value is a relative path to the step's working directory. */
|
|
2161
|
+
dir?: string;
|
|
2162
|
+
/** Environment variables to be set for this task. */
|
|
2163
|
+
envs?: {[P in string]: string};
|
|
2164
|
+
/** Output only. The evaluated parameters for the task. */
|
|
2165
|
+
evaluatedParams?: {[P in string]: string};
|
|
2166
|
+
/** Output only. Return code from running the task. */
|
|
2167
|
+
exitCode?: number;
|
|
2168
|
+
/** ID of the task to be executed. */
|
|
2169
|
+
id?: string;
|
|
2170
|
+
/** Metadata for the task. */
|
|
2171
|
+
metadata?: TaskMetadata;
|
|
2172
|
+
/** Parameters to be passed to the task. */
|
|
2173
|
+
params?: {[P in string]: string};
|
|
2174
|
+
/** Remote configuration for the task. */
|
|
2175
|
+
remoteConfig?: string;
|
|
2176
|
+
/** Output only. The results of the task. */
|
|
2177
|
+
results?: {[P in string]: string};
|
|
2178
|
+
/** A shell script to be executed in the task. */
|
|
2179
|
+
script?: string;
|
|
2180
|
+
/** 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. */
|
|
2181
|
+
snapshot?: Task;
|
|
2182
|
+
/** Output only. Status of the task. */
|
|
2183
|
+
status?:
|
|
2184
|
+
| 'STATUS_UNKNOWN'
|
|
2185
|
+
| 'QUEUED'
|
|
2186
|
+
| 'WORKING'
|
|
2187
|
+
| 'SUCCESS'
|
|
2188
|
+
| 'FAILURE'
|
|
2189
|
+
| 'INTERNAL_ERROR'
|
|
2190
|
+
| 'CANCELLED';
|
|
2191
|
+
}
|
|
2192
|
+
interface TaskDependency {
|
|
2193
|
+
/** Dependency to fetch. */
|
|
2194
|
+
dep?: Dependency;
|
|
2195
|
+
/** ID of the dependency. */
|
|
2196
|
+
id?: string;
|
|
2197
|
+
/** SHA256 digest of the dependency. */
|
|
2198
|
+
sha256?: string;
|
|
2199
|
+
}
|
|
2200
|
+
interface TaskMetadata {
|
|
2201
|
+
/** Description of the task. */
|
|
2202
|
+
description?: string;
|
|
2203
|
+
/** Parameter definitions for the task. */
|
|
2204
|
+
params?: {[P in string]: ParameterDefinition};
|
|
2205
|
+
}
|
|
2052
2206
|
interface TestIamPermissionsRequest {
|
|
2053
2207
|
/** 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). */
|
|
2054
2208
|
permissions?: string[];
|