@maxim_mazurok/gapi.client.containeranalysis-v1beta1 0.3.20261002 → 0.3.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=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20261016
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -224,6 +224,8 @@ declare namespace gapi.client {
|
|
|
224
224
|
| 'TIMEOUT'
|
|
225
225
|
| 'CANCELLED'
|
|
226
226
|
| 'EXPIRED';
|
|
227
|
+
/** Tasks to be executed in the build step. */
|
|
228
|
+
tasks?: Task[];
|
|
227
229
|
/** 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. */
|
|
228
230
|
timeout?: string;
|
|
229
231
|
/** Output only. Stores timing information for executing this build step. */
|
|
@@ -236,6 +238,12 @@ declare namespace gapi.client {
|
|
|
236
238
|
interface ByProducts {
|
|
237
239
|
customValues?: {[P in string]: string};
|
|
238
240
|
}
|
|
241
|
+
interface CitCWorkspace {
|
|
242
|
+
/** e.g., 45 */
|
|
243
|
+
snapshotVersion?: string;
|
|
244
|
+
/** e.g., "user/123" */
|
|
245
|
+
workspaceId?: string;
|
|
246
|
+
}
|
|
239
247
|
interface CloudRepoSourceContext {
|
|
240
248
|
/** An alias, which may be a branch or tag. */
|
|
241
249
|
aliasContext?: AliasContext;
|
|
@@ -491,6 +499,12 @@ declare namespace gapi.client {
|
|
|
491
499
|
pool?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption;
|
|
492
500
|
/** Optional. Option to specify the Pub/Sub topic to receive build status updates. */
|
|
493
501
|
pubsubTopic?: string;
|
|
502
|
+
/** 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. */
|
|
503
|
+
rankedMachineSeries?:
|
|
504
|
+
| 'MACHINE_SERIES_UNSPECIFIED'
|
|
505
|
+
| 'MACHINE_SERIES_E'
|
|
506
|
+
| 'MACHINE_SERIES_N'
|
|
507
|
+
| 'MACHINE_SERIES_C'[];
|
|
494
508
|
/** Requested verifiability options. */
|
|
495
509
|
requestedVerifyOption?: 'NOT_VERIFIED' | 'VERIFIED' | 'BEST_EFFORT';
|
|
496
510
|
/** Output only. Worker release resolved from the release channel. */
|
|
@@ -624,7 +638,7 @@ declare namespace gapi.client {
|
|
|
624
638
|
gitSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency;
|
|
625
639
|
}
|
|
626
640
|
interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency {
|
|
627
|
-
/**
|
|
641
|
+
/** Optional. Where the artifact files should be placed on the worker. Required when specified in `Build.dependencies`. */
|
|
628
642
|
destPath?: string;
|
|
629
643
|
/** Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
630
644
|
resource?: string;
|
|
@@ -1037,6 +1051,14 @@ declare namespace gapi.client {
|
|
|
1037
1051
|
| 'USER_INTERACTION_NONE'
|
|
1038
1052
|
| 'USER_INTERACTION_REQUIRED';
|
|
1039
1053
|
}
|
|
1054
|
+
interface Dependency {
|
|
1055
|
+
empty?: boolean;
|
|
1056
|
+
genericArtifact?: GenericArtifactDependency;
|
|
1057
|
+
gitSource?: GitSourceDependency;
|
|
1058
|
+
httpsArtifactDependency?: HttpsArtifactDependency;
|
|
1059
|
+
invokeBlaze?: InvokeBlazeDependency;
|
|
1060
|
+
piperSource?: PiperSourceDependency;
|
|
1061
|
+
}
|
|
1040
1062
|
interface Deployable {
|
|
1041
1063
|
/** Required. Resource URI for the artifact being deployed. */
|
|
1042
1064
|
resourceUri?: string[];
|
|
@@ -1057,6 +1079,12 @@ declare namespace gapi.client {
|
|
|
1057
1079
|
/** Identity of the user that triggered this deployment. */
|
|
1058
1080
|
userEmail?: string;
|
|
1059
1081
|
}
|
|
1082
|
+
interface DepotSource {
|
|
1083
|
+
/** The changelist number. If not provided, it will default to piper HEAD. */
|
|
1084
|
+
changelist?: string;
|
|
1085
|
+
/** Optional branch information. */
|
|
1086
|
+
overlayBranch?: OverlayBranchId;
|
|
1087
|
+
}
|
|
1060
1088
|
interface Derived {
|
|
1061
1089
|
/** Output only. This contains the base image URL for the derived image occurrence. */
|
|
1062
1090
|
baseResourceUrl?: string;
|
|
@@ -1097,6 +1125,12 @@ declare namespace gapi.client {
|
|
|
1097
1125
|
/** Required. Attestation for the resource. */
|
|
1098
1126
|
attestation?: Attestation;
|
|
1099
1127
|
}
|
|
1128
|
+
interface DeveloperConnectSetupData {
|
|
1129
|
+
/** 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. */
|
|
1130
|
+
gitServerIpAddress?: string;
|
|
1131
|
+
/** INTERNAL_ONLY. SSL certificate to use for git operations. */
|
|
1132
|
+
sslCaInfo?: string;
|
|
1133
|
+
}
|
|
1100
1134
|
interface Digest {
|
|
1101
1135
|
/** `SHA1`, `SHA512` etc. */
|
|
1102
1136
|
algo?: string;
|
|
@@ -1334,6 +1368,12 @@ declare namespace gapi.client {
|
|
|
1334
1368
|
totalCount?: string;
|
|
1335
1369
|
}
|
|
1336
1370
|
interface GeneratePackagesSummaryRequest {}
|
|
1371
|
+
interface GenericArtifactDependency {
|
|
1372
|
+
/** 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. */
|
|
1373
|
+
destPath?: string;
|
|
1374
|
+
/** The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
|
|
1375
|
+
resource?: string;
|
|
1376
|
+
}
|
|
1337
1377
|
interface GenericSignedAttestation {
|
|
1338
1378
|
/** Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). */
|
|
1339
1379
|
contentType?: 'CONTENT_TYPE_UNSPECIFIED' | 'SIMPLE_SIGNING_JSON';
|
|
@@ -1366,6 +1406,30 @@ declare namespace gapi.client {
|
|
|
1366
1406
|
/** Git repository URL. */
|
|
1367
1407
|
url?: string;
|
|
1368
1408
|
}
|
|
1409
|
+
interface GitSourceDependency {
|
|
1410
|
+
/** How much history should be fetched for the build (default 1, -1 for all history). */
|
|
1411
|
+
depth?: string;
|
|
1412
|
+
/** Where should the files be placed on the worker. */
|
|
1413
|
+
destPath?: string;
|
|
1414
|
+
/** 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. */
|
|
1415
|
+
fetchTags?: boolean;
|
|
1416
|
+
/** True if submodules should be fetched too (default false). */
|
|
1417
|
+
recurseSubmodules?: boolean;
|
|
1418
|
+
/** The kind of repo (url or dev connect) */
|
|
1419
|
+
repository?: GitSourceRepository;
|
|
1420
|
+
/** The revision that we will fetch the repo at. */
|
|
1421
|
+
revision?: string;
|
|
1422
|
+
}
|
|
1423
|
+
interface GitSourceRepository {
|
|
1424
|
+
/** The Developer Connect Git repository link or the url that matches a repository link in the current project, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*` */
|
|
1425
|
+
developerConnect?: string;
|
|
1426
|
+
/** Data needed to setup the Developer Connect repository. */
|
|
1427
|
+
developerConnectSetupData?: DeveloperConnectSetupData;
|
|
1428
|
+
/** Enables the use of the proxy URL returned by DeveloperConnect for git operations, if available. */
|
|
1429
|
+
proxyUrlEnabled?: boolean;
|
|
1430
|
+
/** Location of the Git repository. */
|
|
1431
|
+
url?: string;
|
|
1432
|
+
}
|
|
1369
1433
|
interface GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata {
|
|
1370
1434
|
/** Output only. The time this operation was created. */
|
|
1371
1435
|
createTime?: string;
|
|
@@ -1467,6 +1531,12 @@ declare namespace gapi.client {
|
|
|
1467
1531
|
/** Required. The human readable name of this attestation authority, for example "qa". */
|
|
1468
1532
|
humanReadableName?: string;
|
|
1469
1533
|
}
|
|
1534
|
+
interface HttpsArtifactDependency {
|
|
1535
|
+
/** 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. */
|
|
1536
|
+
destPath?: string;
|
|
1537
|
+
/** The URI to download the artifact file from. */
|
|
1538
|
+
uri?: string;
|
|
1539
|
+
}
|
|
1470
1540
|
interface Installation {
|
|
1471
1541
|
/** Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
|
|
1472
1542
|
architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
|
|
@@ -1503,6 +1573,15 @@ declare namespace gapi.client {
|
|
|
1503
1573
|
predicateType?: string;
|
|
1504
1574
|
subject?: Subject[];
|
|
1505
1575
|
}
|
|
1576
|
+
interface InvokeBlazeDependency {
|
|
1577
|
+
/** Only for MPM commands. */
|
|
1578
|
+
architecture?: string;
|
|
1579
|
+
command?: 'UNKNOWN_COMMAND' | 'BUILD' | 'MPM' | 'TEST';
|
|
1580
|
+
destPath?: string;
|
|
1581
|
+
flags?: string[];
|
|
1582
|
+
piperRevision?: PiperRevision;
|
|
1583
|
+
targets?: string[];
|
|
1584
|
+
}
|
|
1506
1585
|
interface Justification {
|
|
1507
1586
|
/** Additional details on why this justification was chosen. */
|
|
1508
1587
|
details?: string;
|
|
@@ -1755,6 +1834,12 @@ declare namespace gapi.client {
|
|
|
1755
1834
|
/** Describes a security vulnerability. */
|
|
1756
1835
|
vulnerability?: GrafeasV1beta1VulnerabilityDetails;
|
|
1757
1836
|
}
|
|
1837
|
+
interface OverlayBranchId {
|
|
1838
|
+
/** The required prefix, also called branch family. */
|
|
1839
|
+
branchPrefix?: string;
|
|
1840
|
+
/** The optional suffix, also called iteration. */
|
|
1841
|
+
branchSuffix?: string;
|
|
1842
|
+
}
|
|
1758
1843
|
interface Package {
|
|
1759
1844
|
/** The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
|
|
1760
1845
|
architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
|
|
@@ -1861,6 +1946,12 @@ declare namespace gapi.client {
|
|
|
1861
1946
|
/** The unique URL of the image or the container for which this summary applies. */
|
|
1862
1947
|
resourceUrl?: string;
|
|
1863
1948
|
}
|
|
1949
|
+
interface ParameterDefinition {
|
|
1950
|
+
/** The default value if not provided at runtime. Omission of this parameter indicates the parameter is required. */
|
|
1951
|
+
defaultValue?: string;
|
|
1952
|
+
/** A description of the parameter for UI documentation. */
|
|
1953
|
+
description?: string;
|
|
1954
|
+
}
|
|
1864
1955
|
interface PerScannerVerdict {
|
|
1865
1956
|
/** Malicious Content LLM scan result. */
|
|
1866
1957
|
maliciousContentLlmResult?: MaliciousContentLLMResult;
|
|
@@ -1879,6 +1970,18 @@ declare namespace gapi.client {
|
|
|
1879
1970
|
/** Required. 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. */
|
|
1880
1971
|
signature?: string;
|
|
1881
1972
|
}
|
|
1973
|
+
interface PiperRevision {
|
|
1974
|
+
/** Revision is within a CitC workspace. */
|
|
1975
|
+
citcWorkspace?: CitCWorkspace;
|
|
1976
|
+
/** Revision is a specific submitted changelist (possibly on a branch). */
|
|
1977
|
+
depotSource?: DepotSource;
|
|
1978
|
+
}
|
|
1979
|
+
interface PiperSourceDependency {
|
|
1980
|
+
/** 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/". */
|
|
1981
|
+
depotPaths?: string[];
|
|
1982
|
+
/** The piper revision to fetch the depot_paths from. If not provided, it will default to DepotSource with Piper HEAD. */
|
|
1983
|
+
piperRevision?: PiperRevision;
|
|
1984
|
+
}
|
|
1882
1985
|
interface Policy {
|
|
1883
1986
|
/** 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`. */
|
|
1884
1987
|
bindings?: Binding[];
|
|
@@ -2211,6 +2314,57 @@ declare namespace gapi.client {
|
|
|
2211
2314
|
/** Identifier to distinguish this artifact from others within the subject. */
|
|
2212
2315
|
name?: string;
|
|
2213
2316
|
}
|
|
2317
|
+
interface Task {
|
|
2318
|
+
/** Data to be passed to the task. */
|
|
2319
|
+
data?: {[P in string]: string};
|
|
2320
|
+
/** Dependencies that the Cloud Build worker will fetch before executing the task. */
|
|
2321
|
+
dependencies?: TaskDependency[];
|
|
2322
|
+
/** Working directory to use when running this task. This value is a relative path to the step's working directory. */
|
|
2323
|
+
dir?: string;
|
|
2324
|
+
/** Environment variables to be set for this task. */
|
|
2325
|
+
envs?: {[P in string]: string};
|
|
2326
|
+
/** Output only. The evaluated parameters for the task. */
|
|
2327
|
+
evaluatedParams?: {[P in string]: string};
|
|
2328
|
+
/** Output only. Return code from running the task. */
|
|
2329
|
+
exitCode?: number;
|
|
2330
|
+
/** ID of the task to be executed. */
|
|
2331
|
+
id?: string;
|
|
2332
|
+
/** Metadata for the task. */
|
|
2333
|
+
metadata?: TaskMetadata;
|
|
2334
|
+
/** Parameters to be passed to the task. */
|
|
2335
|
+
params?: {[P in string]: string};
|
|
2336
|
+
/** Remote configuration for the task. */
|
|
2337
|
+
remoteConfig?: string;
|
|
2338
|
+
/** Output only. The results of the task. */
|
|
2339
|
+
results?: {[P in string]: string};
|
|
2340
|
+
/** A shell script to be executed in the task. */
|
|
2341
|
+
script?: string;
|
|
2342
|
+
/** 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. */
|
|
2343
|
+
snapshot?: Task;
|
|
2344
|
+
/** Output only. Status of the task. */
|
|
2345
|
+
status?:
|
|
2346
|
+
| 'STATUS_UNKNOWN'
|
|
2347
|
+
| 'QUEUED'
|
|
2348
|
+
| 'WORKING'
|
|
2349
|
+
| 'SUCCESS'
|
|
2350
|
+
| 'FAILURE'
|
|
2351
|
+
| 'INTERNAL_ERROR'
|
|
2352
|
+
| 'CANCELLED';
|
|
2353
|
+
}
|
|
2354
|
+
interface TaskDependency {
|
|
2355
|
+
/** Dependency to fetch. */
|
|
2356
|
+
dep?: Dependency;
|
|
2357
|
+
/** ID of the dependency. */
|
|
2358
|
+
id?: string;
|
|
2359
|
+
/** SHA256 digest of the dependency. */
|
|
2360
|
+
sha256?: string;
|
|
2361
|
+
}
|
|
2362
|
+
interface TaskMetadata {
|
|
2363
|
+
/** Description of the task. */
|
|
2364
|
+
description?: string;
|
|
2365
|
+
/** Parameter definitions for the task. */
|
|
2366
|
+
params?: {[P in string]: ParameterDefinition};
|
|
2367
|
+
}
|
|
2214
2368
|
interface TestIamPermissionsRequest {
|
|
2215
2369
|
/** 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). */
|
|
2216
2370
|
permissions?: string[];
|