@maxim_mazurok/gapi.client.containeranalysis-v1 0.0.20220805

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 ADDED
@@ -0,0 +1,2340 @@
1
+ /* Type definitions for non-npm package Container Analysis API v1 0.0 */
2
+ // Project: https://cloud.google.com/container-analysis/api/reference/rest/
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://containeranalysis.googleapis.com/$discovery/rest?version=v1
13
+ // Revision: 20220805
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Container Analysis API v1 */
19
+ function load(urlOrObject: "https://containeranalysis.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "containeranalysis", version: "v1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "containeranalysis", version: "v1", callback: () => any): void;
24
+
25
+ namespace containeranalysis {
26
+ interface AliasContext {
27
+ /** The alias kind. */
28
+ kind?: string;
29
+ /** The alias name. */
30
+ name?: string;
31
+ }
32
+ interface AnalysisCompleted {
33
+ analysisType?: string[];
34
+ }
35
+ interface Artifact {
36
+ /** Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. */
37
+ checksum?: string;
38
+ /** Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. */
39
+ id?: string;
40
+ /**
41
+ * Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as
42
+ * presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
43
+ */
44
+ names?: string[];
45
+ }
46
+ interface AttestationNote {
47
+ /** Hint hints at the purpose of the attestation authority. */
48
+ hint?: Hint;
49
+ }
50
+ interface AttestationOccurrence {
51
+ /**
52
+ * One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the
53
+ * `serialized_payload` field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the `serialized_payload` SHOULD be left empty. Each JWT SHOULD
54
+ * encode a claim specific to the `resource_uri` of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
55
+ */
56
+ jwts?: Jwt[];
57
+ /** Required. The serialized payload that is verified by one or more `signatures`. */
58
+ serializedPayload?: string;
59
+ /**
60
+ * One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies
61
+ * `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
62
+ */
63
+ signatures?: Signature[];
64
+ }
65
+ interface BatchCreateNotesRequest {
66
+ /** Required. The notes to create. Max allowed length is 1000. */
67
+ notes?: { [P in string]: Note };
68
+ }
69
+ interface BatchCreateNotesResponse {
70
+ /** The notes that were created. */
71
+ notes?: Note[];
72
+ }
73
+ interface BatchCreateOccurrencesRequest {
74
+ /** Required. The occurrences to create. Max allowed length is 1000. */
75
+ occurrences?: Occurrence[];
76
+ }
77
+ interface BatchCreateOccurrencesResponse {
78
+ /** The occurrences that were created. */
79
+ occurrences?: Occurrence[];
80
+ }
81
+ interface Binding {
82
+ /**
83
+ * The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`,
84
+ * then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which
85
+ * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
86
+ */
87
+ condition?: Expr;
88
+ /**
89
+ * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
90
+ * the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
91
+ * account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
92
+ * represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier
93
+ * for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example,
94
+ * `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. *
95
+ * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
96
+ * `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. *
97
+ * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
98
+ * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
99
+ * account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently
100
+ * deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in
101
+ * the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
102
+ */
103
+ members?: string[];
104
+ /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
105
+ role?: string;
106
+ }
107
+ interface BuilderConfig {
108
+ id?: string;
109
+ }
110
+ interface BuildNote {
111
+ /** Required. Immutable. Version of the builder which produced this build. */
112
+ builderVersion?: string;
113
+ }
114
+ interface BuildOccurrence {
115
+ /** Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec. */
116
+ intotoProvenance?: InTotoProvenance;
117
+ /**
118
+ * In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the
119
+ * Occurrence's envelope.
120
+ */
121
+ intotoStatement?: InTotoStatement;
122
+ /** The actual provenance for the build. */
123
+ provenance?: BuildProvenance;
124
+ /**
125
+ * Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be
126
+ * unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to
127
+ * interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json
128
+ * as well to prevent incompatibilities with future changes.
129
+ */
130
+ provenanceBytes?: string;
131
+ }
132
+ interface BuildProvenance {
133
+ /** Version string of the builder at the time this build was executed. */
134
+ builderVersion?: string;
135
+ /** Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. */
136
+ buildOptions?: { [P in string]: string };
137
+ /** Output of the build. */
138
+ builtArtifacts?: Artifact[];
139
+ /** Commands requested by the build. */
140
+ commands?: Command[];
141
+ /** Time at which the build was created. */
142
+ createTime?: string;
143
+ /**
144
+ * E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same
145
+ * end-user for all time.
146
+ */
147
+ creator?: string;
148
+ /** Time at which execution of the build was finished. */
149
+ endTime?: string;
150
+ /** Required. Unique identifier of the build. */
151
+ id?: string;
152
+ /** URI where any logs for this provenance were written. */
153
+ logsUri?: string;
154
+ /** ID of the project. */
155
+ projectId?: string;
156
+ /** Details of the Source input to the build. */
157
+ sourceProvenance?: Source;
158
+ /** Time at which execution of the build was started. */
159
+ startTime?: string;
160
+ /** Trigger identifier if the build was triggered automatically; empty if not. */
161
+ triggerId?: string;
162
+ }
163
+ interface Category {
164
+ /** The identifier of the category. */
165
+ categoryId?: string;
166
+ /** The localized name of the category. */
167
+ name?: string;
168
+ }
169
+ interface CisBenchmark {
170
+ profileLevel?: number;
171
+ severity?: string;
172
+ }
173
+ interface CloudRepoSourceContext {
174
+ /** An alias, which may be a branch or tag. */
175
+ aliasContext?: AliasContext;
176
+ /** The ID of the repo. */
177
+ repoId?: RepoId;
178
+ /** A revision ID. */
179
+ revisionId?: string;
180
+ }
181
+ interface Command {
182
+ /** Command-line arguments used when executing this command. */
183
+ args?: string[];
184
+ /** Working directory (relative to project source root) used when running this command. */
185
+ dir?: string;
186
+ /** Environment variables set before running this command. */
187
+ env?: string[];
188
+ /** Optional unique identifier for this command, used in wait_for to reference this command as a dependency. */
189
+ id?: string;
190
+ /** Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. */
191
+ name?: string;
192
+ /** The ID(s) of the command(s) that this command depends on. */
193
+ waitFor?: string[];
194
+ }
195
+ interface Completeness {
196
+ /** If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe. */
197
+ arguments?: boolean;
198
+ /** If true, the builder claims that recipe.environment is claimed to be complete. */
199
+ environment?: boolean;
200
+ /** If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called "hermetic". */
201
+ materials?: boolean;
202
+ }
203
+ interface ComplianceNote {
204
+ cisBenchmark?: CisBenchmark;
205
+ /** A description about this compliance check. */
206
+ description?: string;
207
+ /** A rationale for the existence of this compliance check. */
208
+ rationale?: string;
209
+ /** A description of remediation steps if the compliance check fails. */
210
+ remediation?: string;
211
+ /** Serialized scan instructions with a predefined format. */
212
+ scanInstructions?: string;
213
+ /** The title that identifies this compliance check. */
214
+ title?: string;
215
+ /** The OS and config versions the benchmark applies to. */
216
+ version?: ComplianceVersion[];
217
+ }
218
+ interface ComplianceOccurrence {
219
+ nonComplianceReason?: string;
220
+ nonCompliantFiles?: NonCompliantFile[];
221
+ }
222
+ interface ComplianceVersion {
223
+ /** The name of the document that defines this benchmark, e.g. "CIS Container-Optimized OS". */
224
+ benchmarkDocument?: string;
225
+ /** The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to. */
226
+ cpeUri?: string;
227
+ /** The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in. */
228
+ version?: string;
229
+ }
230
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig {
231
+ /** Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start. */
232
+ approvalRequired?: boolean;
233
+ }
234
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult {
235
+ /** Output only. The time when the approval decision was made. */
236
+ approvalTime?: string;
237
+ /** Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called. */
238
+ approverAccount?: string;
239
+ /** Optional. An optional comment for this manual approval result. */
240
+ comment?: string;
241
+ /** Required. The decision of this manual approval. */
242
+ decision?: string;
243
+ /**
244
+ * Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use
245
+ * case is a link to an external job that approved this Build.
246
+ */
247
+ url?: string;
248
+ }
249
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts {
250
+ /**
251
+ * A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed
252
+ * images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.
253
+ */
254
+ images?: string[];
255
+ /**
256
+ * A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the
257
+ * specified Cloud Storage location using the builder service account's credentials. The location and generation of the uploaded objects will be stored in the Build resource's results
258
+ * field. If any objects fail to be pushed, the build is marked FAILURE.
259
+ */
260
+ objects?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects;
261
+ }
262
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects {
263
+ /**
264
+ * Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see [Bucket Name
265
+ * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this
266
+ * location as a prefix.
267
+ */
268
+ location?: string;
269
+ /** Path globs used to match files in the build's workspace. */
270
+ paths?: string[];
271
+ /** Output only. Stores timing information for pushing all artifact objects. */
272
+ timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
273
+ }
274
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1Build {
275
+ /** Output only. Describes this build's approval configuration, status, and result. */
276
+ approval?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval;
277
+ /** Artifacts produced by the build that should be uploaded upon successful completion of all build steps. */
278
+ artifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts;
279
+ /** Secrets and secret environment variables. */
280
+ availableSecrets?: ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets;
281
+ /** Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically. */
282
+ buildTriggerId?: string;
283
+ /** Output only. Time at which the request to create the build was received. */
284
+ createTime?: string;
285
+ /** Output only. Contains information about the build when status=FAILURE. */
286
+ failureInfo?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo;
287
+ /** Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution. */
288
+ finishTime?: string;
289
+ /** Output only. Unique identifier of the build. */
290
+ id?: string;
291
+ /**
292
+ * A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account's credentials. The digests of the pushed
293
+ * images will be stored in the `Build` resource's results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
294
+ */
295
+ images?: string[];
296
+ /**
297
+ * Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be
298
+ * of the format `${logs_bucket}/log-${build_id}.txt`.
299
+ */
300
+ logsBucket?: string;
301
+ /** Output only. URL to logs for this build in Google Cloud Console. */
302
+ logUrl?: string;
303
+ /** Output only. The 'Build' name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service. */
304
+ name?: string;
305
+ /** Special options for this build. */
306
+ options?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions;
307
+ /** Output only. ID of the project. */
308
+ projectId?: string;
309
+ /**
310
+ * TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from
311
+ * create_time.
312
+ */
313
+ queueTtl?: string;
314
+ /** Output only. Results of the build. */
315
+ results?: ContaineranalysisGoogleDevtoolsCloudbuildV1Results;
316
+ /**
317
+ * Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to
318
+ * configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
319
+ */
320
+ secrets?: ContaineranalysisGoogleDevtoolsCloudbuildV1Secret[];
321
+ /**
322
+ * IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or
323
+ * uniqueId of the service account.
324
+ */
325
+ serviceAccount?: string;
326
+ /** The location of the source files to build. */
327
+ source?: ContaineranalysisGoogleDevtoolsCloudbuildV1Source;
328
+ /** Output only. A permanent fixed identifier for source. */
329
+ sourceProvenance?: ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance;
330
+ /** Output only. Time at which execution of the build was started. */
331
+ startTime?: string;
332
+ /** Output only. Status of the build. */
333
+ status?: string;
334
+ /** Output only. Customer-readable message about the current status. */
335
+ statusDetail?: string;
336
+ /** Required. The operations to be performed on the workspace. */
337
+ steps?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep[];
338
+ /** Substitutions data for `Build` resource. */
339
+ substitutions?: { [P in string]: string };
340
+ /** Tags for annotation of a `Build`. These are not docker tags. */
341
+ tags?: string[];
342
+ /**
343
+ * Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`.
344
+ * `timeout` starts ticking from `startTime`. Default time is ten minutes.
345
+ */
346
+ timeout?: string;
347
+ /**
348
+ * Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps. * PUSH: time to push all specified images. * FETCHSOURCE:
349
+ * time to fetch source. * SETUPBUILD: time to set up build. If the build does not specify source or images, these keys will not be included.
350
+ */
351
+ timing?: { [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan };
352
+ /** Output only. Non-fatal problems encountered during the execution of the build. */
353
+ warnings?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning[];
354
+ }
355
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval {
356
+ /** Output only. Configuration for manual approval of this build. */
357
+ config?: ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig;
358
+ /** Output only. Result of manual approval for this Build. */
359
+ result?: ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult;
360
+ /** Output only. The state of this build's approval. */
361
+ state?: string;
362
+ }
363
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo {
364
+ /** Explains the failure issue in more detail using hard-coded text. */
365
+ detail?: string;
366
+ /** The name of the failure. */
367
+ type?: string;
368
+ }
369
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions {
370
+ /**
371
+ * Requested disk size for the VM that runs the build. Note that this is *NOT* "disk free"; some of the space will be used by the operating system and build utilities. Also note that
372
+ * this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that
373
+ * request more than the maximum are rejected with an error.
374
+ */
375
+ diskSizeGb?: string;
376
+ /**
377
+ * Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build
378
+ * configuration file.
379
+ */
380
+ dynamicSubstitutions?: boolean;
381
+ /**
382
+ * A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will
383
+ * use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
384
+ */
385
+ env?: string[];
386
+ /** Option to specify the logging mode, which determines if and where build logs are stored. */
387
+ logging?: string;
388
+ /** Option to define build log streaming behavior to Google Cloud Storage. */
389
+ logStreamingOption?: string;
390
+ /** Compute Engine machine type on which to run the build. */
391
+ machineType?: string;
392
+ /**
393
+ * Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for
394
+ * more information.
395
+ */
396
+ pool?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption;
397
+ /** Requested verifiability options. */
398
+ requestedVerifyOption?: string;
399
+ /**
400
+ * A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables
401
+ * will be available to all build steps in this build.
402
+ */
403
+ secretEnv?: string[];
404
+ /** Requested hash for SourceProvenance. */
405
+ sourceProvenanceHash?: string[];
406
+ /**
407
+ * Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build
408
+ * configuration file.
409
+ */
410
+ substitutionOption?: string;
411
+ /**
412
+ * Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their
413
+ * contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it
414
+ * is indicative of a build request with an incorrect configuration.
415
+ */
416
+ volumes?: ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[];
417
+ /** This field deprecated; please use `pool.name` instead. */
418
+ workerPool?: string;
419
+ }
420
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption {
421
+ /**
422
+ * The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format
423
+ * projects/{project}/locations/{location}/workerPools/{workerPoolId}
424
+ */
425
+ name?: string;
426
+ }
427
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep {
428
+ /**
429
+ * 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
430
+ * 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.
431
+ */
432
+ args?: string[];
433
+ /**
434
+ * 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
435
+ * 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
436
+ * 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.
437
+ */
438
+ dir?: string;
439
+ /** Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used. */
440
+ entrypoint?: string;
441
+ /** 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". */
442
+ env?: string[];
443
+ /** Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency. */
444
+ id?: string;
445
+ /**
446
+ * 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,
447
+ * 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
448
+ * of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also
449
+ * 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
450
+ * 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.
451
+ */
452
+ name?: string;
453
+ /** Output only. Stores timing information for pulling this build step's builder image only. */
454
+ pullTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
455
+ /** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
456
+ script?: string;
457
+ /** 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`. */
458
+ secretEnv?: string[];
459
+ /** 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. */
460
+ status?: string;
461
+ /** 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. */
462
+ timeout?: string;
463
+ /** Output only. Stores timing information for executing this build step. */
464
+ timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
465
+ /**
466
+ * 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
467
+ * 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.
468
+ */
469
+ volumes?: ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[];
470
+ /**
471
+ * 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,
472
+ * this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
473
+ */
474
+ waitFor?: string[];
475
+ }
476
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning {
477
+ /** The priority for this warning. */
478
+ priority?: string;
479
+ /** Explanation of the warning generated. */
480
+ text?: string;
481
+ }
482
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage {
483
+ /** Docker Registry 2.0 digest. */
484
+ digest?: string;
485
+ /** Name used to push the container image to Google Container Registry, as presented to `docker push`. */
486
+ name?: string;
487
+ /** Output only. Stores timing information for pushing the specified image. */
488
+ pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
489
+ }
490
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes {
491
+ /** Collection of file hashes. */
492
+ fileHash?: ContaineranalysisGoogleDevtoolsCloudbuildV1Hash[];
493
+ }
494
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1Hash {
495
+ /** The type of hash that was performed. */
496
+ type?: string;
497
+ /** The hash value. */
498
+ value?: string;
499
+ }
500
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret {
501
+ /**
502
+ * Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step.
503
+ * Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
504
+ */
505
+ envMap?: { [P in string]: string };
506
+ /** Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*‍/locations/*‍/keyRings/*‍/cryptoKeys/* */
507
+ kmsKeyName?: string;
508
+ }
509
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource {
510
+ /** Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */
511
+ branchName?: string;
512
+ /** Explicit commit SHA to build. */
513
+ commitSha?: string;
514
+ /**
515
+ * Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for
516
+ * that step's execution.
517
+ */
518
+ dir?: string;
519
+ /** Only trigger a build if the revision regex does NOT match the revision regex. */
520
+ invertRegex?: boolean;
521
+ /** ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. */
522
+ projectId?: string;
523
+ /** Name of the Cloud Source Repository. */
524
+ repoName?: string;
525
+ /** Substitutions to use in a triggered build. Should only be used with RunBuildTrigger */
526
+ substitutions?: { [P in string]: string };
527
+ /** Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */
528
+ tagName?: string;
529
+ }
530
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1Results {
531
+ /** Path to the artifact manifest. Only populated when artifacts are uploaded. */
532
+ artifactManifest?: string;
533
+ /** Time to push all non-container artifacts. */
534
+ artifactTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
535
+ /** List of build step digests, in the order corresponding to build step indices. */
536
+ buildStepImages?: string[];
537
+ /**
538
+ * List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
539
+ * can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
540
+ */
541
+ buildStepOutputs?: string[];
542
+ /** Container images that were built as a part of the build. */
543
+ images?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[];
544
+ /** Number of artifacts uploaded. Only populated when artifacts are uploaded. */
545
+ numArtifacts?: string;
546
+ }
547
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1Secret {
548
+ /** Cloud KMS key name to use to decrypt these envs. */
549
+ kmsKeyName?: string;
550
+ /**
551
+ * Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step.
552
+ * Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
553
+ */
554
+ secretEnv?: { [P in string]: string };
555
+ }
556
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret {
557
+ /** Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. */
558
+ env?: string;
559
+ /** Resource name of the SecretVersion. In format: projects/*‍/secrets/*‍/versions/* */
560
+ versionName?: string;
561
+ }
562
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets {
563
+ /** Secrets encrypted with KMS key and the associated secret environment variable. */
564
+ inline?: ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret[];
565
+ /** Secrets in Secret Manager and associated secret environment variable. */
566
+ secretManager?: ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret[];
567
+ }
568
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1Source {
569
+ /** If provided, get the source from this location in a Cloud Source Repository. */
570
+ repoSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource;
571
+ /** If provided, get the source from this location in Google Cloud Storage. */
572
+ storageSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource;
573
+ /**
574
+ * If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description
575
+ * [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
576
+ */
577
+ storageSourceManifest?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
578
+ }
579
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance {
580
+ /**
581
+ * Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated
582
+ * if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the
583
+ * build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
584
+ */
585
+ fileHashes?: { [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes };
586
+ /** A copy of the build's `source.repo_source`, if exists, with any revisions resolved. */
587
+ resolvedRepoSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource;
588
+ /** A copy of the build's `source.storage_source`, if exists, with any generations resolved. */
589
+ resolvedStorageSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource;
590
+ /** A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. */
591
+ resolvedStorageSourceManifest?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
592
+ }
593
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource {
594
+ /** Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
595
+ bucket?: string;
596
+ /** Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. */
597
+ generation?: string;
598
+ /** Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build. */
599
+ object?: string;
600
+ }
601
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest {
602
+ /** Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
603
+ bucket?: string;
604
+ /** Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. */
605
+ generation?: string;
606
+ /** Google Cloud Storage object containing the source manifest. This object must be a JSON file. */
607
+ object?: string;
608
+ }
609
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan {
610
+ /** End of time span. */
611
+ endTime?: string;
612
+ /** Start of time span. */
613
+ startTime?: string;
614
+ }
615
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1Volume {
616
+ /** 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. */
617
+ name?: string;
618
+ /** 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. */
619
+ path?: string;
620
+ }
621
+ interface CVSS {
622
+ attackComplexity?: string;
623
+ /** Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. */
624
+ attackVector?: string;
625
+ authentication?: string;
626
+ availabilityImpact?: string;
627
+ /** The base score is a function of the base metric scores. */
628
+ baseScore?: number;
629
+ confidentialityImpact?: string;
630
+ exploitabilityScore?: number;
631
+ impactScore?: number;
632
+ integrityImpact?: string;
633
+ privilegesRequired?: string;
634
+ scope?: string;
635
+ userInteraction?: string;
636
+ }
637
+ interface CVSSv3 {
638
+ attackComplexity?: string;
639
+ /** Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. */
640
+ attackVector?: string;
641
+ availabilityImpact?: string;
642
+ /** The base score is a function of the base metric scores. */
643
+ baseScore?: number;
644
+ confidentialityImpact?: string;
645
+ exploitabilityScore?: number;
646
+ impactScore?: number;
647
+ integrityImpact?: string;
648
+ privilegesRequired?: string;
649
+ scope?: string;
650
+ userInteraction?: string;
651
+ }
652
+ interface DeploymentNote {
653
+ /** Required. Resource URI for the artifact being deployed. */
654
+ resourceUri?: string[];
655
+ }
656
+ interface DeploymentOccurrence {
657
+ /** Address of the runtime element hosting this deployment. */
658
+ address?: string;
659
+ /** Configuration used to create this deployment. */
660
+ config?: string;
661
+ /** Required. Beginning of the lifetime of this deployment. */
662
+ deployTime?: string;
663
+ /** Platform hosting this deployment. */
664
+ platform?: string;
665
+ /** Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. */
666
+ resourceUri?: string[];
667
+ /** End of the lifetime of this deployment. */
668
+ undeployTime?: string;
669
+ /** Identity of the user that triggered this deployment. */
670
+ userEmail?: string;
671
+ }
672
+ interface Detail {
673
+ /** Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability affects. */
674
+ affectedCpeUri?: string;
675
+ /** Required. The package this vulnerability affects. */
676
+ affectedPackage?: string;
677
+ /**
678
+ * The version number at the end of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals
679
+ * (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability
680
+ * database, affected_version_start and affected_version_end will be the same in that Detail.
681
+ */
682
+ affectedVersionEnd?: Version;
683
+ /**
684
+ * The version number at the start of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals
685
+ * (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability
686
+ * database, affected_version_start and affected_version_end will be the same in that Detail.
687
+ */
688
+ affectedVersionStart?: Version;
689
+ /** A vendor-specific description of this vulnerability. */
690
+ description?: string;
691
+ /**
692
+ * The distro recommended [CPE URI](https://cpe.mitre.org/specification/) to update to that contains a fix for this vulnerability. It is possible for this to be different from the
693
+ * affected_cpe_uri.
694
+ */
695
+ fixedCpeUri?: string;
696
+ /** The distro recommended package to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_package. */
697
+ fixedPackage?: string;
698
+ /** The distro recommended version to update to that contains a fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no such version is yet available. */
699
+ fixedVersion?: Version;
700
+ /** Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. */
701
+ isObsolete?: boolean;
702
+ /** The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). */
703
+ packageType?: string;
704
+ /** The distro assigned severity of this vulnerability. */
705
+ severityName?: string;
706
+ /** The source from which the information in this Detail was obtained. */
707
+ source?: string;
708
+ /** The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. */
709
+ sourceUpdateTime?: string;
710
+ /** The name of the vendor of the product. */
711
+ vendor?: string;
712
+ }
713
+ interface Digest {
714
+ /** `SHA1`, `SHA512` etc. */
715
+ algo?: string;
716
+ /** Value of the digest. */
717
+ digestBytes?: string;
718
+ }
719
+ interface DiscoveryNote {
720
+ /** Required. Immutable. The kind of analysis that is handled by this discovery. */
721
+ analysisKind?: string;
722
+ }
723
+ interface DiscoveryOccurrence {
724
+ analysisCompleted?: AnalysisCompleted;
725
+ /** Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors. */
726
+ analysisError?: Status[];
727
+ /** The status of discovery for the resource. */
728
+ analysisStatus?: string;
729
+ /** When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. */
730
+ analysisStatusError?: Status;
731
+ /** Output only. The time occurrences related to this discovery occurrence were archived. */
732
+ archiveTime?: string;
733
+ /** Whether the resource is continuously analyzed. */
734
+ continuousAnalysis?: string;
735
+ /** The CPE of the resource being scanned. */
736
+ cpe?: string;
737
+ /** The last time this resource was scanned. */
738
+ lastScanTime?: string;
739
+ }
740
+ interface Distribution {
741
+ /** The CPU architecture for which packages in this distribution channel were built. */
742
+ architecture?: string;
743
+ /** Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. */
744
+ cpeUri?: string;
745
+ /** The distribution channel-specific description of this package. */
746
+ description?: string;
747
+ /** The latest available version of this package in this distribution channel. */
748
+ latestVersion?: Version;
749
+ /** A freeform string denoting the maintainer of this package. */
750
+ maintainer?: string;
751
+ /** The distribution channel-specific homepage for this package. */
752
+ url?: string;
753
+ }
754
+ interface DSSEAttestationNote {
755
+ /** DSSEHint hints at the purpose of the attestation authority. */
756
+ hint?: DSSEHint;
757
+ }
758
+ interface DSSEAttestationOccurrence {
759
+ /** If doing something security critical, make sure to verify the signatures in this metadata. */
760
+ envelope?: Envelope;
761
+ statement?: InTotoStatement;
762
+ }
763
+ interface DSSEHint {
764
+ /** Required. The human readable name of this attestation authority, for example "cloudbuild-prod". */
765
+ humanReadableName?: string;
766
+ }
767
+ // tslint:disable-next-line:no-empty-interface
768
+ interface Empty {
769
+ }
770
+ interface Envelope {
771
+ payload?: string;
772
+ payloadType?: string;
773
+ signatures?: EnvelopeSignature[];
774
+ }
775
+ interface EnvelopeSignature {
776
+ keyid?: string;
777
+ sig?: string;
778
+ }
779
+ interface Expr {
780
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
781
+ description?: string;
782
+ /** Textual representation of an expression in Common Expression Language syntax. */
783
+ expression?: string;
784
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
785
+ location?: string;
786
+ /** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
787
+ title?: string;
788
+ }
789
+ interface FileHashes {
790
+ /** Required. Collection of file hashes. */
791
+ fileHash?: Hash[];
792
+ }
793
+ interface Fingerprint {
794
+ /** Required. The layer ID of the final layer in the Docker image's v1 representation. */
795
+ v1Name?: string;
796
+ /** Required. The ordered list of v2 blobs that represent a given image. */
797
+ v2Blob?: string[];
798
+ /** 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. */
799
+ v2Name?: string;
800
+ }
801
+ interface FixableTotalByDigest {
802
+ /** The number of fixable vulnerabilities associated with this resource. */
803
+ fixableCount?: string;
804
+ /** The affected resource. */
805
+ resourceUri?: string;
806
+ /** The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. */
807
+ severity?: string;
808
+ /** The total number of vulnerabilities associated with this resource. */
809
+ totalCount?: string;
810
+ }
811
+ interface GerritSourceContext {
812
+ /** An alias, which may be a branch or tag. */
813
+ aliasContext?: AliasContext;
814
+ /** The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. */
815
+ gerritProject?: string;
816
+ /** The URI of a running Gerrit instance. */
817
+ hostUri?: string;
818
+ /** A revision (commit) ID. */
819
+ revisionId?: string;
820
+ }
821
+ interface GetIamPolicyRequest {
822
+ /** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
823
+ options?: GetPolicyOptions;
824
+ }
825
+ interface GetPolicyOptions {
826
+ /**
827
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
828
+ * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in
829
+ * the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role
830
+ * bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
831
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
832
+ */
833
+ requestedPolicyVersion?: number;
834
+ }
835
+ interface GitSourceContext {
836
+ /** Git commit hash. */
837
+ revisionId?: string;
838
+ /** Git repository URL. */
839
+ url?: string;
840
+ }
841
+ interface GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata {
842
+ /** Output only. The time this operation was created. */
843
+ createTime?: string;
844
+ /** Output only. The time that this operation was marked completed or failed. */
845
+ endTime?: string;
846
+ }
847
+ interface GrafeasV1FileLocation {
848
+ /** For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file. */
849
+ filePath?: string;
850
+ }
851
+ interface GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder {
852
+ id?: string;
853
+ }
854
+ interface GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness {
855
+ environment?: boolean;
856
+ materials?: boolean;
857
+ parameters?: boolean;
858
+ }
859
+ interface GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource {
860
+ digest?: { [P in string]: string };
861
+ entryPoint?: string;
862
+ uri?: string;
863
+ }
864
+ interface GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation {
865
+ configSource?: GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource;
866
+ environment?: { [P in string]: any };
867
+ parameters?: { [P in string]: any };
868
+ }
869
+ interface GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial {
870
+ digest?: { [P in string]: string };
871
+ uri?: string;
872
+ }
873
+ interface GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata {
874
+ buildFinishedOn?: string;
875
+ buildInvocationId?: string;
876
+ buildStartedOn?: string;
877
+ completeness?: GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness;
878
+ reproducible?: boolean;
879
+ }
880
+ interface Hash {
881
+ /** Required. The type of hash that was performed, e.g. "SHA-256". */
882
+ type?: string;
883
+ /** Required. The hash value. */
884
+ value?: string;
885
+ }
886
+ interface Hint {
887
+ /** Required. The human readable name of this attestation authority, for example "qa". */
888
+ humanReadableName?: string;
889
+ }
890
+ interface Identity {
891
+ /** The revision number of the update. */
892
+ revision?: number;
893
+ /** The revision independent identifier of the update. */
894
+ updateId?: string;
895
+ }
896
+ interface ImageNote {
897
+ /** Required. Immutable. The fingerprint of the base image. */
898
+ fingerprint?: Fingerprint;
899
+ /** Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. */
900
+ resourceUrl?: string;
901
+ }
902
+ interface ImageOccurrence {
903
+ /** Output only. This contains the base image URL for the derived image occurrence. */
904
+ baseResourceUrl?: string;
905
+ /** Output only. The number of layers by which this image differs from the associated image basis. */
906
+ distance?: number;
907
+ /** Required. The fingerprint of the derived image. */
908
+ fingerprint?: Fingerprint;
909
+ /**
910
+ * This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the
911
+ * final layer.
912
+ */
913
+ layerInfo?: Layer[];
914
+ }
915
+ interface InTotoProvenance {
916
+ /** required */
917
+ builderConfig?: BuilderConfig;
918
+ /**
919
+ * The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless
920
+ * metadata.completeness.materials is true. Unset or null is equivalent to empty.
921
+ */
922
+ materials?: string[];
923
+ metadata?: Metadata;
924
+ /**
925
+ * Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit
926
+ * identical output (if the build is reproducible). required
927
+ */
928
+ recipe?: Recipe;
929
+ }
930
+ interface InTotoStatement {
931
+ /** Always `https://in-toto.io/Statement/v0.1`. */
932
+ _type?: string;
933
+ /** `https://slsa.dev/provenance/v0.1` for SlsaProvenance. */
934
+ predicateType?: string;
935
+ provenance?: InTotoProvenance;
936
+ slsaProvenance?: SlsaProvenance;
937
+ slsaProvenanceZeroTwo?: SlsaProvenanceZeroTwo;
938
+ subject?: Subject[];
939
+ }
940
+ interface Jwt {
941
+ /** The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1 */
942
+ compactJwt?: string;
943
+ }
944
+ interface KnowledgeBase {
945
+ /** The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). */
946
+ name?: string;
947
+ /** A link to the KB in the [Windows update catalog] (https://www.catalog.update.microsoft.com/). */
948
+ url?: string;
949
+ }
950
+ interface Layer {
951
+ /** The recovered arguments to the Dockerfile directive. */
952
+ arguments?: string;
953
+ /** Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information. */
954
+ directive?: string;
955
+ }
956
+ interface License {
957
+ /** Comments */
958
+ comments?: string;
959
+ /**
960
+ * Often a single license can be used to represent the licensing terms. Sometimes it is necessary to include a choice of one or more licenses or some combination of license
961
+ * identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
962
+ */
963
+ expression?: string;
964
+ }
965
+ interface ListNoteOccurrencesResponse {
966
+ /** Token to provide to skip to a particular spot in the list. */
967
+ nextPageToken?: string;
968
+ /** The occurrences attached to the specified note. */
969
+ occurrences?: Occurrence[];
970
+ }
971
+ interface ListNotesResponse {
972
+ /** 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. */
973
+ nextPageToken?: string;
974
+ /** The notes requested. */
975
+ notes?: Note[];
976
+ }
977
+ interface ListOccurrencesResponse {
978
+ /** 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. */
979
+ nextPageToken?: string;
980
+ /** The occurrences requested. */
981
+ occurrences?: Occurrence[];
982
+ }
983
+ interface Location {
984
+ /** Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) */
985
+ cpeUri?: string;
986
+ /** The path from which we gathered that this package/version is installed. */
987
+ path?: string;
988
+ /** Deprecated. The version installed at this location. */
989
+ version?: Version;
990
+ }
991
+ interface Material {
992
+ digest?: { [P in string]: string };
993
+ uri?: string;
994
+ }
995
+ interface Metadata {
996
+ /** The timestamp of when the build completed. */
997
+ buildFinishedOn?: string;
998
+ /**
999
+ * Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance
1000
+ * spec.
1001
+ */
1002
+ buildInvocationId?: string;
1003
+ /** The timestamp of when the build started. */
1004
+ buildStartedOn?: string;
1005
+ /** Indicates that the builder claims certain fields in this message to be complete. */
1006
+ completeness?: Completeness;
1007
+ /** If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output. */
1008
+ reproducible?: boolean;
1009
+ }
1010
+ interface NonCompliantFile {
1011
+ /** Command to display the non-compliant files. */
1012
+ displayCommand?: string;
1013
+ /** Empty if `display_command` is set. */
1014
+ path?: string;
1015
+ /** Explains why a file is non compliant for a CIS check. */
1016
+ reason?: string;
1017
+ }
1018
+ interface Note {
1019
+ /** A note describing an attestation role. */
1020
+ attestation?: AttestationNote;
1021
+ /** A note describing build provenance for a verifiable build. */
1022
+ build?: BuildNote;
1023
+ /** A note describing a compliance check. */
1024
+ compliance?: ComplianceNote;
1025
+ /** Output only. The time this note was created. This field can be used as a filter in list requests. */
1026
+ createTime?: string;
1027
+ /** A note describing something that can be deployed. */
1028
+ deployment?: DeploymentNote;
1029
+ /** A note describing the initial analysis of a resource. */
1030
+ discovery?: DiscoveryNote;
1031
+ /** A note describing a dsse attestation note. */
1032
+ dsseAttestation?: DSSEAttestationNote;
1033
+ /** Time of expiration for this note. Empty if note does not expire. */
1034
+ expirationTime?: string;
1035
+ /** A note describing a base image. */
1036
+ image?: ImageNote;
1037
+ /** Output only. The type of analysis. This field can be used as a filter in list requests. */
1038
+ kind?: string;
1039
+ /** A detailed description of this note. */
1040
+ longDescription?: string;
1041
+ /** Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1042
+ name?: string;
1043
+ /** A note describing a package hosted by various package managers. */
1044
+ package?: PackageNote;
1045
+ /** Other notes related to this note. */
1046
+ relatedNoteNames?: string[];
1047
+ /** URLs associated with this note. */
1048
+ relatedUrl?: RelatedUrl[];
1049
+ /** A one sentence description of this note. */
1050
+ shortDescription?: string;
1051
+ /** Output only. The time this note was last updated. This field can be used as a filter in list requests. */
1052
+ updateTime?: string;
1053
+ /** A note describing available package upgrades. */
1054
+ upgrade?: UpgradeNote;
1055
+ /** A note describing a package vulnerability. */
1056
+ vulnerability?: VulnerabilityNote;
1057
+ }
1058
+ interface Occurrence {
1059
+ /** Describes an attestation of an artifact. */
1060
+ attestation?: AttestationOccurrence;
1061
+ /** Describes a verifiable build. */
1062
+ build?: BuildOccurrence;
1063
+ /** Describes a compliance violation on a linked resource. */
1064
+ compliance?: ComplianceOccurrence;
1065
+ /** Output only. The time this occurrence was created. */
1066
+ createTime?: string;
1067
+ /** Describes the deployment of an artifact on a runtime. */
1068
+ deployment?: DeploymentOccurrence;
1069
+ /** Describes when a resource was discovered. */
1070
+ discovery?: DiscoveryOccurrence;
1071
+ /** Describes an attestation of an artifact using dsse. */
1072
+ dsseAttestation?: DSSEAttestationOccurrence;
1073
+ /** https://github.com/secure-systems-lab/dsse */
1074
+ envelope?: Envelope;
1075
+ /** Describes how this resource derives from the basis in the associated note. */
1076
+ image?: ImageOccurrence;
1077
+ /** Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. */
1078
+ kind?: string;
1079
+ /** Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
1080
+ name?: string;
1081
+ /** Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. */
1082
+ noteName?: string;
1083
+ /** Describes the installation of a package on the linked resource. */
1084
+ package?: PackageOccurrence;
1085
+ /** A description of actions that can be taken to remedy the note. */
1086
+ remediation?: string;
1087
+ /** Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image. */
1088
+ resourceUri?: string;
1089
+ /** Output only. The time this occurrence was last updated. */
1090
+ updateTime?: string;
1091
+ /** Describes an available package upgrade on the linked resource. */
1092
+ upgrade?: UpgradeOccurrence;
1093
+ /** Describes a security vulnerability. */
1094
+ vulnerability?: VulnerabilityOccurrence;
1095
+ }
1096
+ interface PackageIssue {
1097
+ /** Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in. */
1098
+ affectedCpeUri?: string;
1099
+ /** Required. The package this vulnerability was found in. */
1100
+ affectedPackage?: string;
1101
+ /** Required. The version of the package that is installed on the resource affected by this vulnerability. */
1102
+ affectedVersion?: Version;
1103
+ /** Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available. */
1104
+ effectiveSeverity?: string;
1105
+ /** The location at which this package was found. */
1106
+ fileLocation?: GrafeasV1FileLocation[];
1107
+ /** Output only. Whether a fix is available for this package. */
1108
+ fixAvailable?: boolean;
1109
+ /** The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri. */
1110
+ fixedCpeUri?: string;
1111
+ /** The package this vulnerability was fixed in. It is possible for this to be different from the affected_package. */
1112
+ fixedPackage?: string;
1113
+ /** Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available. */
1114
+ fixedVersion?: Version;
1115
+ /** The type of package (e.g. OS, MAVEN, GO). */
1116
+ packageType?: string;
1117
+ }
1118
+ interface PackageNote {
1119
+ /** The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1120
+ architecture?: string;
1121
+ /** The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages. */
1122
+ cpeUri?: string;
1123
+ /** The description of this package. */
1124
+ description?: string;
1125
+ /** Hash value, typically a file digest, that allows unique identification a specific package. */
1126
+ digest?: Digest[];
1127
+ /** Deprecated. The various channels by which a package is distributed. */
1128
+ distribution?: Distribution[];
1129
+ /** Licenses that have been declared by the authors of the package. */
1130
+ license?: License;
1131
+ /** A freeform text denoting the maintainer of this package. */
1132
+ maintainer?: string;
1133
+ /** Required. Immutable. The name of the package. */
1134
+ name?: string;
1135
+ /** The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). */
1136
+ packageType?: string;
1137
+ /** The homepage for this package. */
1138
+ url?: string;
1139
+ /** The version of the package. */
1140
+ version?: Version;
1141
+ }
1142
+ interface PackageOccurrence {
1143
+ /** Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1144
+ architecture?: string;
1145
+ /**
1146
+ * Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language
1147
+ * packages.
1148
+ */
1149
+ cpeUri?: string;
1150
+ /** Licenses that have been declared by the authors of the package. */
1151
+ license?: License;
1152
+ /** All of the places within the filesystem versions of this package have been found. */
1153
+ location?: Location[];
1154
+ /** Required. Output only. The name of the installed package. */
1155
+ name?: string;
1156
+ /** Output only. The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). */
1157
+ packageType?: string;
1158
+ /** Output only. The version of the package. */
1159
+ version?: Version;
1160
+ }
1161
+ interface Policy {
1162
+ /**
1163
+ * 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`
1164
+ * 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
1165
+ * 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
1166
+ * 1,450 principals to the `bindings` in the `Policy`.
1167
+ */
1168
+ bindings?: Binding[];
1169
+ /**
1170
+ * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make
1171
+ * use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems
1172
+ * are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM
1173
+ * Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
1174
+ * policy, and all of the conditions in the version `3` policy are lost.
1175
+ */
1176
+ etag?: string;
1177
+ /**
1178
+ * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings
1179
+ * must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a
1180
+ * policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use
1181
+ * IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
1182
+ * policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave
1183
+ * the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1184
+ */
1185
+ version?: number;
1186
+ }
1187
+ interface ProjectRepoId {
1188
+ /** The ID of the project. */
1189
+ projectId?: string;
1190
+ /** The name of the repo. Leave empty for the default repo. */
1191
+ repoName?: string;
1192
+ }
1193
+ interface Recipe {
1194
+ /**
1195
+ * Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be
1196
+ * the flags passed to make aside from the target, which is captured in recipe.entryPoint. Since the arguments field can greatly vary in structure, depending on the builder and recipe
1197
+ * type, this is of form "Any".
1198
+ */
1199
+ arguments?: Array<{ [P in string]: any }>;
1200
+ /**
1201
+ * Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were "make", then this would point to the source containing the
1202
+ * Makefile, not the make program itself. Set to -1 if the recipe doesn't come from a material, as zero is default unset value for int64.
1203
+ */
1204
+ definedInMaterial?: string;
1205
+ /**
1206
+ * String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by
1207
+ * recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use.
1208
+ */
1209
+ entryPoint?: string;
1210
+ /**
1211
+ * Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Since the
1212
+ * environment field can greatly vary in structure, depending on the builder and recipe type, this is of form "Any".
1213
+ */
1214
+ environment?: Array<{ [P in string]: any }>;
1215
+ /** URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. */
1216
+ type?: string;
1217
+ }
1218
+ interface RelatedUrl {
1219
+ /** Label to describe usage of the URL. */
1220
+ label?: string;
1221
+ /** Specific URL associated with the resource. */
1222
+ url?: string;
1223
+ }
1224
+ interface RepoId {
1225
+ /** A combination of a project ID and a repo name. */
1226
+ projectRepoId?: ProjectRepoId;
1227
+ /** A server-assigned, globally unique identifier. */
1228
+ uid?: string;
1229
+ }
1230
+ interface SetIamPolicyRequest {
1231
+ /**
1232
+ * 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
1233
+ * services (such as Projects) might reject them.
1234
+ */
1235
+ policy?: Policy;
1236
+ }
1237
+ interface Signature {
1238
+ /**
1239
+ * The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the
1240
+ * `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: *
1241
+ * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named
1242
+ * SubjectPublicKeyInfo (digest of the DER serialization): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" *
1243
+ * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5"
1244
+ */
1245
+ publicKeyId?: string;
1246
+ /**
1247
+ * The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message
1248
+ * might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
1249
+ */
1250
+ signature?: string;
1251
+ }
1252
+ interface SlsaBuilder {
1253
+ id?: string;
1254
+ }
1255
+ interface SlsaCompleteness {
1256
+ /** If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe. */
1257
+ arguments?: boolean;
1258
+ /** If true, the builder claims that recipe.environment is claimed to be complete. */
1259
+ environment?: boolean;
1260
+ /** If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called "hermetic". */
1261
+ materials?: boolean;
1262
+ }
1263
+ interface SlsaMetadata {
1264
+ /** The timestamp of when the build completed. */
1265
+ buildFinishedOn?: string;
1266
+ /**
1267
+ * Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance
1268
+ * spec.
1269
+ */
1270
+ buildInvocationId?: string;
1271
+ /** The timestamp of when the build started. */
1272
+ buildStartedOn?: string;
1273
+ /** Indicates that the builder claims certain fields in this message to be complete. */
1274
+ completeness?: SlsaCompleteness;
1275
+ /** If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output. */
1276
+ reproducible?: boolean;
1277
+ }
1278
+ interface SlsaProvenance {
1279
+ /** required */
1280
+ builder?: SlsaBuilder;
1281
+ /**
1282
+ * The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless
1283
+ * metadata.completeness.materials is true. Unset or null is equivalent to empty.
1284
+ */
1285
+ materials?: Material[];
1286
+ metadata?: SlsaMetadata;
1287
+ /**
1288
+ * Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit
1289
+ * identical output (if the build is reproducible). required
1290
+ */
1291
+ recipe?: SlsaRecipe;
1292
+ }
1293
+ interface SlsaProvenanceZeroTwo {
1294
+ buildConfig?: { [P in string]: any };
1295
+ builder?: GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder;
1296
+ buildType?: string;
1297
+ invocation?: GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation;
1298
+ materials?: GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial[];
1299
+ metadata?: GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata;
1300
+ }
1301
+ interface SlsaRecipe {
1302
+ /**
1303
+ * Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be
1304
+ * the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.
1305
+ */
1306
+ arguments?: { [P in string]: any };
1307
+ /**
1308
+ * Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were "make", then this would point to the source containing the
1309
+ * Makefile, not the make program itself. Set to -1 if the recipe doesn't come from a material, as zero is default unset value for int64.
1310
+ */
1311
+ definedInMaterial?: string;
1312
+ /**
1313
+ * String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by
1314
+ * recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use.
1315
+ */
1316
+ entryPoint?: string;
1317
+ /**
1318
+ * Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on
1319
+ * the recipe Type, the structure may be different.
1320
+ */
1321
+ environment?: { [P in string]: any };
1322
+ /** URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. */
1323
+ type?: string;
1324
+ }
1325
+ interface Source {
1326
+ /**
1327
+ * If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will
1328
+ * not include the context specified in the context field.
1329
+ */
1330
+ additionalContexts?: SourceContext[];
1331
+ /** If provided, the input binary artifacts for the build came from this location. */
1332
+ artifactStorageSourceUri?: string;
1333
+ /** If provided, the source code used for the build came from this location. */
1334
+ context?: SourceContext;
1335
+ /**
1336
+ * Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source
1337
+ * and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to
1338
+ * that file.
1339
+ */
1340
+ fileHashes?: { [P in string]: FileHashes };
1341
+ }
1342
+ interface SourceContext {
1343
+ /** A SourceContext referring to a revision in a Google Cloud Source Repo. */
1344
+ cloudRepo?: CloudRepoSourceContext;
1345
+ /** A SourceContext referring to a Gerrit project. */
1346
+ gerrit?: GerritSourceContext;
1347
+ /** A SourceContext referring to any third party Git repo (e.g., GitHub). */
1348
+ git?: GitSourceContext;
1349
+ /** Labels with user defined metadata. */
1350
+ labels?: { [P in string]: string };
1351
+ }
1352
+ interface Status {
1353
+ /** The status code, which should be an enum value of google.rpc.Code. */
1354
+ code?: number;
1355
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
1356
+ details?: Array<{ [P in string]: any }>;
1357
+ /**
1358
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
1359
+ * client.
1360
+ */
1361
+ message?: string;
1362
+ }
1363
+ interface Subject {
1364
+ /** `"": ""` Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet */
1365
+ digest?: { [P in string]: string };
1366
+ name?: string;
1367
+ }
1368
+ interface TestIamPermissionsRequest {
1369
+ /**
1370
+ * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
1371
+ * Overview](https://cloud.google.com/iam/docs/overview#permissions).
1372
+ */
1373
+ permissions?: string[];
1374
+ }
1375
+ interface TestIamPermissionsResponse {
1376
+ /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
1377
+ permissions?: string[];
1378
+ }
1379
+ interface UpgradeDistribution {
1380
+ /**
1381
+ * 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
1382
+ * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
1383
+ */
1384
+ classification?: string;
1385
+ /** Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/. */
1386
+ cpeUri?: string;
1387
+ /** The cve tied to this Upgrade. */
1388
+ cve?: string[];
1389
+ /** The severity as specified by the upstream operating system. */
1390
+ severity?: string;
1391
+ }
1392
+ interface UpgradeNote {
1393
+ /** Metadata about the upgrade for each specific operating system. */
1394
+ distributions?: UpgradeDistribution[];
1395
+ /** Required for non-Windows OS. The package this Upgrade is for. */
1396
+ package?: string;
1397
+ /** Required for non-Windows OS. The version of the package in machine + human readable form. */
1398
+ version?: Version;
1399
+ /** Required for Windows OS. Represents the metadata about the Windows update. */
1400
+ windowsUpdate?: WindowsUpdate;
1401
+ }
1402
+ interface UpgradeOccurrence {
1403
+ /** Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence. */
1404
+ distribution?: UpgradeDistribution;
1405
+ /** Required for non-Windows OS. The package this Upgrade is for. */
1406
+ package?: string;
1407
+ /** Required for non-Windows OS. The version of the package in a machine + human readable form. */
1408
+ parsedVersion?: Version;
1409
+ /** Required for Windows OS. Represents the metadata about the Windows update. */
1410
+ windowsUpdate?: WindowsUpdate;
1411
+ }
1412
+ interface Version {
1413
+ /** Used to correct mistakes in the version numbering scheme. */
1414
+ epoch?: number;
1415
+ /** Human readable version string. This string is of the form :- and is only set when kind is NORMAL. */
1416
+ fullName?: string;
1417
+ /**
1418
+ * Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and
1419
+ * end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set
1420
+ * to true when the version is included in a range.
1421
+ */
1422
+ inclusive?: boolean;
1423
+ /** Required. Distinguishes between sentinel MIN/MAX versions and normal versions. */
1424
+ kind?: string;
1425
+ /** Required only when version kind is NORMAL. The main part of the version name. */
1426
+ name?: string;
1427
+ /** The iteration of the package build from the above version. */
1428
+ revision?: string;
1429
+ }
1430
+ interface VulnerabilityNote {
1431
+ /** 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. */
1432
+ cvssScore?: number;
1433
+ /** The full description of the CVSSv3 for this vulnerability. */
1434
+ cvssV3?: CVSSv3;
1435
+ /** Details of all known distros and packages affected by this vulnerability. */
1436
+ details?: Detail[];
1437
+ /** The note provider assigned severity of this vulnerability. */
1438
+ severity?: string;
1439
+ /** The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. */
1440
+ sourceUpdateTime?: string;
1441
+ /**
1442
+ * Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows
1443
+ * vulnerabilities really are a missing package, rather than a package being at an incorrect version.
1444
+ */
1445
+ windowsDetails?: WindowsDetail[];
1446
+ }
1447
+ interface VulnerabilityOccurrence {
1448
+ /** Output only. 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. */
1449
+ cvssScore?: number;
1450
+ /** The cvss v3 score for the vulnerability. */
1451
+ cvssv3?: CVSS;
1452
+ /**
1453
+ * The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this
1454
+ * vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For
1455
+ * this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should
1456
+ * be the highest severity for any of the PackageIssues.
1457
+ */
1458
+ effectiveSeverity?: string;
1459
+ /** Output only. Whether at least one of the affected packages has a fix available. */
1460
+ fixAvailable?: boolean;
1461
+ /** Output only. A detailed description of this vulnerability. */
1462
+ longDescription?: string;
1463
+ /** Required. The set of affected locations and their fixes (if available) within the associated resource. */
1464
+ packageIssue?: PackageIssue[];
1465
+ /** Output only. URLs related to this vulnerability. */
1466
+ relatedUrls?: RelatedUrl[];
1467
+ /** Output only. The note provider assigned severity of this vulnerability. */
1468
+ severity?: string;
1469
+ /** Output only. A one sentence description of this vulnerability. */
1470
+ shortDescription?: string;
1471
+ /** The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). */
1472
+ type?: string;
1473
+ }
1474
+ interface VulnerabilityOccurrencesSummary {
1475
+ /** A listing by resource of the number of fixable and total vulnerabilities. */
1476
+ counts?: FixableTotalByDigest[];
1477
+ }
1478
+ interface WindowsDetail {
1479
+ /** Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability affects. */
1480
+ cpeUri?: string;
1481
+ /** The description of this vulnerability. */
1482
+ description?: string;
1483
+ /**
1484
+ * Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given
1485
+ * vulnerability. Currently any listed KBs presence is considered a fix.
1486
+ */
1487
+ fixingKbs?: KnowledgeBase[];
1488
+ /** Required. The name of this vulnerability. */
1489
+ name?: string;
1490
+ }
1491
+ interface WindowsUpdate {
1492
+ /** The list of categories to which the update belongs. */
1493
+ categories?: Category[];
1494
+ /** The localized description of the update. */
1495
+ description?: string;
1496
+ /** Required - The unique identifier for the update. */
1497
+ identity?: Identity;
1498
+ /** The Microsoft Knowledge Base article IDs that are associated with the update. */
1499
+ kbArticleIds?: string[];
1500
+ /** The last published timestamp of the update. */
1501
+ lastPublishedTimestamp?: string;
1502
+ /** The hyperlink to the support information for the update. */
1503
+ supportUrl?: string;
1504
+ /** The localized title of the update. */
1505
+ title?: string;
1506
+ }
1507
+ interface OccurrencesResource {
1508
+ /** Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. */
1509
+ list(request?: {
1510
+ /** V1 error format. */
1511
+ "$.xgafv"?: string;
1512
+ /** OAuth access token. */
1513
+ access_token?: string;
1514
+ /** Data format for response. */
1515
+ alt?: string;
1516
+ /** JSONP */
1517
+ callback?: string;
1518
+ /** Selector specifying which fields to include in a partial response. */
1519
+ fields?: string;
1520
+ /** The filter expression. */
1521
+ filter?: string;
1522
+ /** 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. */
1523
+ key?: string;
1524
+ /** Required. The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1525
+ name: string;
1526
+ /** OAuth 2.0 token for the current user. */
1527
+ oauth_token?: string;
1528
+ /** Number of occurrences to return in the list. */
1529
+ pageSize?: number;
1530
+ /** Token to provide to skip to a particular spot in the list. */
1531
+ pageToken?: string;
1532
+ /** Returns response with indentations and line breaks. */
1533
+ prettyPrint?: boolean;
1534
+ /** 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. */
1535
+ quotaUser?: string;
1536
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1537
+ upload_protocol?: string;
1538
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1539
+ uploadType?: string;
1540
+ }): Request<ListNoteOccurrencesResponse>;
1541
+ }
1542
+ interface NotesResource {
1543
+ /** Creates new notes in batch. */
1544
+ batchCreate(request: {
1545
+ /** V1 error format. */
1546
+ "$.xgafv"?: string;
1547
+ /** OAuth access token. */
1548
+ access_token?: string;
1549
+ /** Data format for response. */
1550
+ alt?: string;
1551
+ /** JSONP */
1552
+ callback?: string;
1553
+ /** Selector specifying which fields to include in a partial response. */
1554
+ fields?: string;
1555
+ /** 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. */
1556
+ key?: string;
1557
+ /** OAuth 2.0 token for the current user. */
1558
+ oauth_token?: string;
1559
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
1560
+ parent: string;
1561
+ /** Returns response with indentations and line breaks. */
1562
+ prettyPrint?: boolean;
1563
+ /** 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. */
1564
+ quotaUser?: string;
1565
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1566
+ upload_protocol?: string;
1567
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1568
+ uploadType?: string;
1569
+ /** Request body */
1570
+ resource: BatchCreateNotesRequest;
1571
+ }): Request<BatchCreateNotesResponse>;
1572
+ batchCreate(request: {
1573
+ /** V1 error format. */
1574
+ "$.xgafv"?: string;
1575
+ /** OAuth access token. */
1576
+ access_token?: string;
1577
+ /** Data format for response. */
1578
+ alt?: string;
1579
+ /** JSONP */
1580
+ callback?: string;
1581
+ /** Selector specifying which fields to include in a partial response. */
1582
+ fields?: string;
1583
+ /** 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. */
1584
+ key?: string;
1585
+ /** OAuth 2.0 token for the current user. */
1586
+ oauth_token?: string;
1587
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
1588
+ parent: string;
1589
+ /** Returns response with indentations and line breaks. */
1590
+ prettyPrint?: boolean;
1591
+ /** 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. */
1592
+ quotaUser?: string;
1593
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1594
+ upload_protocol?: string;
1595
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1596
+ uploadType?: string;
1597
+ },
1598
+ body: BatchCreateNotesRequest): Request<BatchCreateNotesResponse>;
1599
+ /** Creates a new note. */
1600
+ create(request: {
1601
+ /** V1 error format. */
1602
+ "$.xgafv"?: string;
1603
+ /** OAuth access token. */
1604
+ access_token?: string;
1605
+ /** Data format for response. */
1606
+ alt?: string;
1607
+ /** JSONP */
1608
+ callback?: string;
1609
+ /** Selector specifying which fields to include in a partial response. */
1610
+ fields?: string;
1611
+ /** 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. */
1612
+ key?: string;
1613
+ /** Required. The ID to use for this note. */
1614
+ noteId?: string;
1615
+ /** OAuth 2.0 token for the current user. */
1616
+ oauth_token?: string;
1617
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
1618
+ parent: string;
1619
+ /** Returns response with indentations and line breaks. */
1620
+ prettyPrint?: boolean;
1621
+ /** 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. */
1622
+ quotaUser?: string;
1623
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1624
+ upload_protocol?: string;
1625
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1626
+ uploadType?: string;
1627
+ /** Request body */
1628
+ resource: Note;
1629
+ }): Request<Note>;
1630
+ create(request: {
1631
+ /** V1 error format. */
1632
+ "$.xgafv"?: string;
1633
+ /** OAuth access token. */
1634
+ access_token?: string;
1635
+ /** Data format for response. */
1636
+ alt?: string;
1637
+ /** JSONP */
1638
+ callback?: string;
1639
+ /** Selector specifying which fields to include in a partial response. */
1640
+ fields?: string;
1641
+ /** 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. */
1642
+ key?: string;
1643
+ /** Required. The ID to use for this note. */
1644
+ noteId?: string;
1645
+ /** OAuth 2.0 token for the current user. */
1646
+ oauth_token?: string;
1647
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
1648
+ parent: string;
1649
+ /** Returns response with indentations and line breaks. */
1650
+ prettyPrint?: boolean;
1651
+ /** 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. */
1652
+ quotaUser?: string;
1653
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1654
+ upload_protocol?: string;
1655
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1656
+ uploadType?: string;
1657
+ },
1658
+ body: Note): Request<Note>;
1659
+ /** Deletes the specified note. */
1660
+ delete(request?: {
1661
+ /** V1 error format. */
1662
+ "$.xgafv"?: string;
1663
+ /** OAuth access token. */
1664
+ access_token?: string;
1665
+ /** Data format for response. */
1666
+ alt?: string;
1667
+ /** JSONP */
1668
+ callback?: string;
1669
+ /** Selector specifying which fields to include in a partial response. */
1670
+ fields?: string;
1671
+ /** 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. */
1672
+ key?: string;
1673
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1674
+ name: string;
1675
+ /** OAuth 2.0 token for the current user. */
1676
+ oauth_token?: string;
1677
+ /** Returns response with indentations and line breaks. */
1678
+ prettyPrint?: boolean;
1679
+ /** 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. */
1680
+ quotaUser?: string;
1681
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1682
+ upload_protocol?: string;
1683
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1684
+ uploadType?: string;
1685
+ }): Request<{}>;
1686
+ /** Gets the specified note. */
1687
+ get(request?: {
1688
+ /** V1 error format. */
1689
+ "$.xgafv"?: string;
1690
+ /** OAuth access token. */
1691
+ access_token?: string;
1692
+ /** Data format for response. */
1693
+ alt?: string;
1694
+ /** JSONP */
1695
+ callback?: string;
1696
+ /** Selector specifying which fields to include in a partial response. */
1697
+ fields?: string;
1698
+ /** 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. */
1699
+ key?: string;
1700
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1701
+ name: string;
1702
+ /** OAuth 2.0 token for the current user. */
1703
+ oauth_token?: string;
1704
+ /** Returns response with indentations and line breaks. */
1705
+ prettyPrint?: boolean;
1706
+ /** 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. */
1707
+ quotaUser?: string;
1708
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1709
+ upload_protocol?: string;
1710
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1711
+ uploadType?: string;
1712
+ }): Request<Note>;
1713
+ /**
1714
+ * Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if
1715
+ * the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
1716
+ * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
1717
+ */
1718
+ getIamPolicy(request: {
1719
+ /** V1 error format. */
1720
+ "$.xgafv"?: string;
1721
+ /** OAuth access token. */
1722
+ access_token?: string;
1723
+ /** Data format for response. */
1724
+ alt?: string;
1725
+ /** JSONP */
1726
+ callback?: string;
1727
+ /** Selector specifying which fields to include in a partial response. */
1728
+ fields?: string;
1729
+ /** 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. */
1730
+ key?: string;
1731
+ /** OAuth 2.0 token for the current user. */
1732
+ oauth_token?: string;
1733
+ /** Returns response with indentations and line breaks. */
1734
+ prettyPrint?: boolean;
1735
+ /** 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. */
1736
+ quotaUser?: string;
1737
+ /**
1738
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1739
+ * field.
1740
+ */
1741
+ resource: string;
1742
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1743
+ upload_protocol?: string;
1744
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1745
+ uploadType?: string;
1746
+ },
1747
+ body: GetIamPolicyRequest): Request<Policy>;
1748
+ /** Lists notes for the specified project. */
1749
+ list(request?: {
1750
+ /** V1 error format. */
1751
+ "$.xgafv"?: string;
1752
+ /** OAuth access token. */
1753
+ access_token?: string;
1754
+ /** Data format for response. */
1755
+ alt?: string;
1756
+ /** JSONP */
1757
+ callback?: string;
1758
+ /** Selector specifying which fields to include in a partial response. */
1759
+ fields?: string;
1760
+ /** The filter expression. */
1761
+ filter?: string;
1762
+ /** 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. */
1763
+ key?: string;
1764
+ /** OAuth 2.0 token for the current user. */
1765
+ oauth_token?: string;
1766
+ /** Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
1767
+ pageSize?: number;
1768
+ /** Token to provide to skip to a particular spot in the list. */
1769
+ pageToken?: string;
1770
+ /** Required. The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. */
1771
+ parent: string;
1772
+ /** Returns response with indentations and line breaks. */
1773
+ prettyPrint?: boolean;
1774
+ /** 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. */
1775
+ quotaUser?: string;
1776
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1777
+ upload_protocol?: string;
1778
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1779
+ uploadType?: string;
1780
+ }): Request<ListNotesResponse>;
1781
+ /** Updates the specified note. */
1782
+ patch(request: {
1783
+ /** V1 error format. */
1784
+ "$.xgafv"?: string;
1785
+ /** OAuth access token. */
1786
+ access_token?: string;
1787
+ /** Data format for response. */
1788
+ alt?: string;
1789
+ /** JSONP */
1790
+ callback?: string;
1791
+ /** Selector specifying which fields to include in a partial response. */
1792
+ fields?: string;
1793
+ /** 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. */
1794
+ key?: string;
1795
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1796
+ name: string;
1797
+ /** OAuth 2.0 token for the current user. */
1798
+ oauth_token?: string;
1799
+ /** Returns response with indentations and line breaks. */
1800
+ prettyPrint?: boolean;
1801
+ /** 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. */
1802
+ quotaUser?: string;
1803
+ /** The fields to update. */
1804
+ updateMask?: string;
1805
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1806
+ upload_protocol?: string;
1807
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1808
+ uploadType?: string;
1809
+ /** Request body */
1810
+ resource: Note;
1811
+ }): Request<Note>;
1812
+ patch(request: {
1813
+ /** V1 error format. */
1814
+ "$.xgafv"?: string;
1815
+ /** OAuth access token. */
1816
+ access_token?: string;
1817
+ /** Data format for response. */
1818
+ alt?: string;
1819
+ /** JSONP */
1820
+ callback?: string;
1821
+ /** Selector specifying which fields to include in a partial response. */
1822
+ fields?: string;
1823
+ /** 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. */
1824
+ key?: string;
1825
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1826
+ name: string;
1827
+ /** OAuth 2.0 token for the current user. */
1828
+ oauth_token?: string;
1829
+ /** Returns response with indentations and line breaks. */
1830
+ prettyPrint?: boolean;
1831
+ /** 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. */
1832
+ quotaUser?: string;
1833
+ /** The fields to update. */
1834
+ updateMask?: string;
1835
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1836
+ upload_protocol?: string;
1837
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1838
+ uploadType?: string;
1839
+ },
1840
+ body: Note): Request<Note>;
1841
+ /**
1842
+ * Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the
1843
+ * resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
1844
+ * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
1845
+ */
1846
+ setIamPolicy(request: {
1847
+ /** V1 error format. */
1848
+ "$.xgafv"?: string;
1849
+ /** OAuth access token. */
1850
+ access_token?: string;
1851
+ /** Data format for response. */
1852
+ alt?: string;
1853
+ /** JSONP */
1854
+ callback?: string;
1855
+ /** Selector specifying which fields to include in a partial response. */
1856
+ fields?: string;
1857
+ /** 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. */
1858
+ key?: string;
1859
+ /** OAuth 2.0 token for the current user. */
1860
+ oauth_token?: string;
1861
+ /** Returns response with indentations and line breaks. */
1862
+ prettyPrint?: boolean;
1863
+ /** 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. */
1864
+ quotaUser?: string;
1865
+ /**
1866
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1867
+ * field.
1868
+ */
1869
+ resource: string;
1870
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1871
+ upload_protocol?: string;
1872
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1873
+ uploadType?: string;
1874
+ },
1875
+ body: SetIamPolicyRequest): Request<Policy>;
1876
+ /**
1877
+ * Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource
1878
+ * takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
1879
+ */
1880
+ testIamPermissions(request: {
1881
+ /** V1 error format. */
1882
+ "$.xgafv"?: string;
1883
+ /** OAuth access token. */
1884
+ access_token?: string;
1885
+ /** Data format for response. */
1886
+ alt?: string;
1887
+ /** JSONP */
1888
+ callback?: string;
1889
+ /** Selector specifying which fields to include in a partial response. */
1890
+ fields?: string;
1891
+ /** 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. */
1892
+ key?: string;
1893
+ /** OAuth 2.0 token for the current user. */
1894
+ oauth_token?: string;
1895
+ /** Returns response with indentations and line breaks. */
1896
+ prettyPrint?: boolean;
1897
+ /** 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. */
1898
+ quotaUser?: string;
1899
+ /**
1900
+ * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
1901
+ * this field.
1902
+ */
1903
+ resource: string;
1904
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1905
+ upload_protocol?: string;
1906
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1907
+ uploadType?: string;
1908
+ },
1909
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1910
+ occurrences: OccurrencesResource;
1911
+ }
1912
+ interface OccurrencesResource {
1913
+ /** Creates new occurrences in batch. */
1914
+ batchCreate(request: {
1915
+ /** V1 error format. */
1916
+ "$.xgafv"?: string;
1917
+ /** OAuth access token. */
1918
+ access_token?: string;
1919
+ /** Data format for response. */
1920
+ alt?: string;
1921
+ /** JSONP */
1922
+ callback?: string;
1923
+ /** Selector specifying which fields to include in a partial response. */
1924
+ fields?: string;
1925
+ /** 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. */
1926
+ key?: string;
1927
+ /** OAuth 2.0 token for the current user. */
1928
+ oauth_token?: string;
1929
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
1930
+ parent: string;
1931
+ /** Returns response with indentations and line breaks. */
1932
+ prettyPrint?: boolean;
1933
+ /** 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. */
1934
+ quotaUser?: string;
1935
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1936
+ upload_protocol?: string;
1937
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1938
+ uploadType?: string;
1939
+ /** Request body */
1940
+ resource: BatchCreateOccurrencesRequest;
1941
+ }): Request<BatchCreateOccurrencesResponse>;
1942
+ batchCreate(request: {
1943
+ /** V1 error format. */
1944
+ "$.xgafv"?: string;
1945
+ /** OAuth access token. */
1946
+ access_token?: string;
1947
+ /** Data format for response. */
1948
+ alt?: string;
1949
+ /** JSONP */
1950
+ callback?: string;
1951
+ /** Selector specifying which fields to include in a partial response. */
1952
+ fields?: string;
1953
+ /** 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. */
1954
+ key?: string;
1955
+ /** OAuth 2.0 token for the current user. */
1956
+ oauth_token?: string;
1957
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
1958
+ parent: string;
1959
+ /** Returns response with indentations and line breaks. */
1960
+ prettyPrint?: boolean;
1961
+ /** 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. */
1962
+ quotaUser?: string;
1963
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1964
+ upload_protocol?: string;
1965
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1966
+ uploadType?: string;
1967
+ },
1968
+ body: BatchCreateOccurrencesRequest): Request<BatchCreateOccurrencesResponse>;
1969
+ /** Creates a new occurrence. */
1970
+ create(request: {
1971
+ /** V1 error format. */
1972
+ "$.xgafv"?: string;
1973
+ /** OAuth access token. */
1974
+ access_token?: string;
1975
+ /** Data format for response. */
1976
+ alt?: string;
1977
+ /** JSONP */
1978
+ callback?: string;
1979
+ /** Selector specifying which fields to include in a partial response. */
1980
+ fields?: string;
1981
+ /** 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. */
1982
+ key?: string;
1983
+ /** OAuth 2.0 token for the current user. */
1984
+ oauth_token?: string;
1985
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
1986
+ parent: string;
1987
+ /** Returns response with indentations and line breaks. */
1988
+ prettyPrint?: boolean;
1989
+ /** 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. */
1990
+ quotaUser?: string;
1991
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1992
+ upload_protocol?: string;
1993
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1994
+ uploadType?: string;
1995
+ /** Request body */
1996
+ resource: Occurrence;
1997
+ }): Request<Occurrence>;
1998
+ create(request: {
1999
+ /** V1 error format. */
2000
+ "$.xgafv"?: string;
2001
+ /** OAuth access token. */
2002
+ access_token?: string;
2003
+ /** Data format for response. */
2004
+ alt?: string;
2005
+ /** JSONP */
2006
+ callback?: string;
2007
+ /** Selector specifying which fields to include in a partial response. */
2008
+ fields?: string;
2009
+ /** 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. */
2010
+ key?: string;
2011
+ /** OAuth 2.0 token for the current user. */
2012
+ oauth_token?: string;
2013
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
2014
+ parent: string;
2015
+ /** Returns response with indentations and line breaks. */
2016
+ prettyPrint?: boolean;
2017
+ /** 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. */
2018
+ quotaUser?: string;
2019
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2020
+ upload_protocol?: string;
2021
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2022
+ uploadType?: string;
2023
+ },
2024
+ body: Occurrence): Request<Occurrence>;
2025
+ /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
2026
+ delete(request?: {
2027
+ /** V1 error format. */
2028
+ "$.xgafv"?: string;
2029
+ /** OAuth access token. */
2030
+ access_token?: string;
2031
+ /** Data format for response. */
2032
+ alt?: string;
2033
+ /** JSONP */
2034
+ callback?: string;
2035
+ /** Selector specifying which fields to include in a partial response. */
2036
+ fields?: string;
2037
+ /** 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. */
2038
+ key?: string;
2039
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2040
+ name: string;
2041
+ /** OAuth 2.0 token for the current user. */
2042
+ oauth_token?: string;
2043
+ /** Returns response with indentations and line breaks. */
2044
+ prettyPrint?: boolean;
2045
+ /** 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. */
2046
+ quotaUser?: string;
2047
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2048
+ upload_protocol?: string;
2049
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2050
+ uploadType?: string;
2051
+ }): Request<{}>;
2052
+ /** Gets the specified occurrence. */
2053
+ get(request?: {
2054
+ /** V1 error format. */
2055
+ "$.xgafv"?: string;
2056
+ /** OAuth access token. */
2057
+ access_token?: string;
2058
+ /** Data format for response. */
2059
+ alt?: string;
2060
+ /** JSONP */
2061
+ callback?: string;
2062
+ /** Selector specifying which fields to include in a partial response. */
2063
+ fields?: string;
2064
+ /** 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. */
2065
+ key?: string;
2066
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2067
+ name: string;
2068
+ /** OAuth 2.0 token for the current user. */
2069
+ oauth_token?: string;
2070
+ /** Returns response with indentations and line breaks. */
2071
+ prettyPrint?: boolean;
2072
+ /** 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. */
2073
+ quotaUser?: string;
2074
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2075
+ upload_protocol?: string;
2076
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2077
+ uploadType?: string;
2078
+ }): Request<Occurrence>;
2079
+ /**
2080
+ * Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if
2081
+ * the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
2082
+ * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
2083
+ */
2084
+ getIamPolicy(request: {
2085
+ /** V1 error format. */
2086
+ "$.xgafv"?: string;
2087
+ /** OAuth access token. */
2088
+ access_token?: string;
2089
+ /** Data format for response. */
2090
+ alt?: string;
2091
+ /** JSONP */
2092
+ callback?: string;
2093
+ /** Selector specifying which fields to include in a partial response. */
2094
+ fields?: string;
2095
+ /** 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. */
2096
+ key?: string;
2097
+ /** OAuth 2.0 token for the current user. */
2098
+ oauth_token?: string;
2099
+ /** Returns response with indentations and line breaks. */
2100
+ prettyPrint?: boolean;
2101
+ /** 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. */
2102
+ quotaUser?: string;
2103
+ /**
2104
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
2105
+ * field.
2106
+ */
2107
+ resource: string;
2108
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2109
+ upload_protocol?: string;
2110
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2111
+ uploadType?: string;
2112
+ },
2113
+ body: GetIamPolicyRequest): Request<Policy>;
2114
+ /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
2115
+ getNotes(request?: {
2116
+ /** V1 error format. */
2117
+ "$.xgafv"?: string;
2118
+ /** OAuth access token. */
2119
+ access_token?: string;
2120
+ /** Data format for response. */
2121
+ alt?: string;
2122
+ /** JSONP */
2123
+ callback?: string;
2124
+ /** Selector specifying which fields to include in a partial response. */
2125
+ fields?: string;
2126
+ /** 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. */
2127
+ key?: string;
2128
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2129
+ name: string;
2130
+ /** OAuth 2.0 token for the current user. */
2131
+ oauth_token?: string;
2132
+ /** Returns response with indentations and line breaks. */
2133
+ prettyPrint?: boolean;
2134
+ /** 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. */
2135
+ quotaUser?: string;
2136
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2137
+ upload_protocol?: string;
2138
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2139
+ uploadType?: string;
2140
+ }): Request<Note>;
2141
+ /** Gets a summary of the number and severity of occurrences. */
2142
+ getVulnerabilitySummary(request?: {
2143
+ /** V1 error format. */
2144
+ "$.xgafv"?: string;
2145
+ /** OAuth access token. */
2146
+ access_token?: string;
2147
+ /** Data format for response. */
2148
+ alt?: string;
2149
+ /** JSONP */
2150
+ callback?: string;
2151
+ /** Selector specifying which fields to include in a partial response. */
2152
+ fields?: string;
2153
+ /** The filter expression. */
2154
+ filter?: string;
2155
+ /** 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. */
2156
+ key?: string;
2157
+ /** OAuth 2.0 token for the current user. */
2158
+ oauth_token?: string;
2159
+ /** Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. */
2160
+ parent: string;
2161
+ /** Returns response with indentations and line breaks. */
2162
+ prettyPrint?: boolean;
2163
+ /** 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. */
2164
+ quotaUser?: string;
2165
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2166
+ upload_protocol?: string;
2167
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2168
+ uploadType?: string;
2169
+ }): Request<VulnerabilityOccurrencesSummary>;
2170
+ /** Lists occurrences for the specified project. */
2171
+ list(request?: {
2172
+ /** V1 error format. */
2173
+ "$.xgafv"?: string;
2174
+ /** OAuth access token. */
2175
+ access_token?: string;
2176
+ /** Data format for response. */
2177
+ alt?: string;
2178
+ /** JSONP */
2179
+ callback?: string;
2180
+ /** Selector specifying which fields to include in a partial response. */
2181
+ fields?: string;
2182
+ /** The filter expression. */
2183
+ filter?: string;
2184
+ /** 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. */
2185
+ key?: string;
2186
+ /** OAuth 2.0 token for the current user. */
2187
+ oauth_token?: string;
2188
+ /** Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
2189
+ pageSize?: number;
2190
+ /** Token to provide to skip to a particular spot in the list. */
2191
+ pageToken?: string;
2192
+ /** Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. */
2193
+ parent: string;
2194
+ /** Returns response with indentations and line breaks. */
2195
+ prettyPrint?: boolean;
2196
+ /** 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. */
2197
+ quotaUser?: string;
2198
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2199
+ upload_protocol?: string;
2200
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2201
+ uploadType?: string;
2202
+ }): Request<ListOccurrencesResponse>;
2203
+ /** Updates the specified occurrence. */
2204
+ patch(request: {
2205
+ /** V1 error format. */
2206
+ "$.xgafv"?: string;
2207
+ /** OAuth access token. */
2208
+ access_token?: string;
2209
+ /** Data format for response. */
2210
+ alt?: string;
2211
+ /** JSONP */
2212
+ callback?: string;
2213
+ /** Selector specifying which fields to include in a partial response. */
2214
+ fields?: string;
2215
+ /** 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. */
2216
+ key?: string;
2217
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2218
+ name: string;
2219
+ /** OAuth 2.0 token for the current user. */
2220
+ oauth_token?: string;
2221
+ /** Returns response with indentations and line breaks. */
2222
+ prettyPrint?: boolean;
2223
+ /** 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. */
2224
+ quotaUser?: string;
2225
+ /** The fields to update. */
2226
+ updateMask?: string;
2227
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2228
+ upload_protocol?: string;
2229
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2230
+ uploadType?: string;
2231
+ /** Request body */
2232
+ resource: Occurrence;
2233
+ }): Request<Occurrence>;
2234
+ patch(request: {
2235
+ /** V1 error format. */
2236
+ "$.xgafv"?: string;
2237
+ /** OAuth access token. */
2238
+ access_token?: string;
2239
+ /** Data format for response. */
2240
+ alt?: string;
2241
+ /** JSONP */
2242
+ callback?: string;
2243
+ /** Selector specifying which fields to include in a partial response. */
2244
+ fields?: string;
2245
+ /** 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. */
2246
+ key?: string;
2247
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2248
+ name: string;
2249
+ /** OAuth 2.0 token for the current user. */
2250
+ oauth_token?: string;
2251
+ /** Returns response with indentations and line breaks. */
2252
+ prettyPrint?: boolean;
2253
+ /** 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. */
2254
+ quotaUser?: string;
2255
+ /** The fields to update. */
2256
+ updateMask?: string;
2257
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2258
+ upload_protocol?: string;
2259
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2260
+ uploadType?: string;
2261
+ },
2262
+ body: Occurrence): Request<Occurrence>;
2263
+ /**
2264
+ * Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the
2265
+ * resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
2266
+ * `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
2267
+ */
2268
+ setIamPolicy(request: {
2269
+ /** V1 error format. */
2270
+ "$.xgafv"?: string;
2271
+ /** OAuth access token. */
2272
+ access_token?: string;
2273
+ /** Data format for response. */
2274
+ alt?: string;
2275
+ /** JSONP */
2276
+ callback?: string;
2277
+ /** Selector specifying which fields to include in a partial response. */
2278
+ fields?: string;
2279
+ /** 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. */
2280
+ key?: string;
2281
+ /** OAuth 2.0 token for the current user. */
2282
+ oauth_token?: string;
2283
+ /** Returns response with indentations and line breaks. */
2284
+ prettyPrint?: boolean;
2285
+ /** 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. */
2286
+ quotaUser?: string;
2287
+ /**
2288
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
2289
+ * field.
2290
+ */
2291
+ resource: string;
2292
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2293
+ upload_protocol?: string;
2294
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2295
+ uploadType?: string;
2296
+ },
2297
+ body: SetIamPolicyRequest): Request<Policy>;
2298
+ /**
2299
+ * Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource
2300
+ * takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
2301
+ */
2302
+ testIamPermissions(request: {
2303
+ /** V1 error format. */
2304
+ "$.xgafv"?: string;
2305
+ /** OAuth access token. */
2306
+ access_token?: string;
2307
+ /** Data format for response. */
2308
+ alt?: string;
2309
+ /** JSONP */
2310
+ callback?: string;
2311
+ /** Selector specifying which fields to include in a partial response. */
2312
+ fields?: string;
2313
+ /** 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. */
2314
+ key?: string;
2315
+ /** OAuth 2.0 token for the current user. */
2316
+ oauth_token?: string;
2317
+ /** Returns response with indentations and line breaks. */
2318
+ prettyPrint?: boolean;
2319
+ /** 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. */
2320
+ quotaUser?: string;
2321
+ /**
2322
+ * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
2323
+ * this field.
2324
+ */
2325
+ resource: string;
2326
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2327
+ upload_protocol?: string;
2328
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2329
+ uploadType?: string;
2330
+ },
2331
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2332
+ }
2333
+ interface ProjectsResource {
2334
+ notes: NotesResource;
2335
+ occurrences: OccurrencesResource;
2336
+ }
2337
+
2338
+ const projects: ProjectsResource;
2339
+ }
2340
+ }