@maxim_mazurok/gapi.client.containeranalysis-v1 0.0.20230421 → 0.0.20230505

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.
Files changed (3) hide show
  1. package/index.d.ts +1954 -951
  2. package/package.json +1 -1
  3. package/tests.ts +100 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://containeranalysis.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230421
12
+ // Revision: 20230505
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,48 +24,63 @@ declare namespace gapi.client {
24
24
  namespace containeranalysis {
25
25
  interface AliasContext {
26
26
  /** The alias kind. */
27
- kind?: string;
27
+ kind?:
28
+ string;
28
29
  /** The alias name. */
29
- name?: string;
30
+ name?:
31
+ string;
30
32
  }
31
33
  interface AnalysisCompleted {
32
- analysisType?: string[];
34
+ analysisType?:
35
+ string[];
33
36
  }
34
37
  interface Artifact {
35
38
  /** Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. */
36
- checksum?: string;
39
+ checksum?:
40
+ string;
37
41
  /** Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. */
38
- id?: string;
42
+ id?:
43
+ string;
39
44
  /**
40
45
  * 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
41
46
  * presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
42
47
  */
43
- names?: string[];
48
+ names?:
49
+ string[];
44
50
  }
45
51
  interface Assessment {
46
52
  /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
47
- cve?: string;
53
+ cve?:
54
+ string;
48
55
  /** Contains information about the impact of this vulnerability, this will change with time. */
49
- impacts?: string[];
56
+ impacts?:
57
+ string[];
50
58
  /** Justification provides the justification when the state of the assessment if NOT_AFFECTED. */
51
- justification?: Justification;
59
+ justification?:
60
+ Justification;
52
61
  /** A detailed description of this Vex. */
53
- longDescription?: string;
62
+ longDescription?:
63
+ string;
54
64
  /**
55
65
  * Holds a list of references associated with this vulnerability item and assessment. These uris have additional information about the vulnerability and the assessment itself. E.g.
56
66
  * Link to a document which details how this assessment concluded the state of this vulnerability.
57
67
  */
58
- relatedUris?: RelatedUrl[];
68
+ relatedUris?:
69
+ RelatedUrl[];
59
70
  /** Specifies details on how to handle (and presumably, fix) a vulnerability. */
60
- remediations?: Remediation[];
71
+ remediations?:
72
+ Remediation[];
61
73
  /** A one sentence description of this Vex. */
62
- shortDescription?: string;
74
+ shortDescription?:
75
+ string;
63
76
  /** Provides the state of this Vulnerability assessment. */
64
- state?: string;
77
+ state?:
78
+ string;
65
79
  }
66
80
  interface AttestationNote {
67
81
  /** Hint hints at the purpose of the attestation authority. */
68
- hint?: Hint;
82
+ hint?:
83
+ Hint;
69
84
  }
70
85
  interface AttestationOccurrence {
71
86
  /**
@@ -73,30 +88,37 @@ declare namespace gapi.client {
73
88
  * `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
74
89
  * 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.
75
90
  */
76
- jwts?: Jwt[];
91
+ jwts?:
92
+ Jwt[];
77
93
  /** Required. The serialized payload that is verified by one or more `signatures`. */
78
- serializedPayload?: string;
94
+ serializedPayload?:
95
+ string;
79
96
  /**
80
97
  * One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies
81
98
  * `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
82
99
  */
83
- signatures?: Signature[];
100
+ signatures?:
101
+ Signature[];
84
102
  }
85
103
  interface BatchCreateNotesRequest {
86
104
  /** Required. The notes to create. Max allowed length is 1000. */
87
- notes?: { [P in string]: Note };
105
+ notes?:
106
+ { [P in string]: Note };
88
107
  }
89
108
  interface BatchCreateNotesResponse {
90
109
  /** The notes that were created. */
91
- notes?: Note[];
110
+ notes?:
111
+ Note[];
92
112
  }
93
113
  interface BatchCreateOccurrencesRequest {
94
114
  /** Required. The occurrences to create. Max allowed length is 1000. */
95
- occurrences?: Occurrence[];
115
+ occurrences?:
116
+ Occurrence[];
96
117
  }
97
118
  interface BatchCreateOccurrencesResponse {
98
119
  /** The occurrences that were created. */
99
- occurrences?: Occurrence[];
120
+ occurrences?:
121
+ Occurrence[];
100
122
  }
101
123
  interface Binding {
102
124
  /**
@@ -104,7 +126,8 @@ declare namespace gapi.client {
104
126
  * 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
105
127
  * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
106
128
  */
107
- condition?: Expr;
129
+ condition?:
130
+ Expr;
108
131
  /**
109
132
  * 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
110
133
  * 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
@@ -121,96 +144,125 @@ declare namespace gapi.client {
121
144
  * has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
122
145
  * retains the role in the binding.
123
146
  */
124
- members?: string[];
147
+ members?:
148
+ string[];
125
149
  /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
126
- role?: string;
150
+ role?:
151
+ string;
127
152
  }
128
153
  interface BuilderConfig {
129
- id?: string;
154
+ id?:
155
+ string;
130
156
  }
131
157
  interface BuildNote {
132
158
  /** Required. Immutable. Version of the builder which produced this build. */
133
- builderVersion?: string;
159
+ builderVersion?:
160
+ string;
134
161
  }
135
162
  interface BuildOccurrence {
136
163
  /** Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec. */
137
- intotoProvenance?: InTotoProvenance;
164
+ intotoProvenance?:
165
+ InTotoProvenance;
138
166
  /**
139
167
  * 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
140
168
  * Occurrence's envelope.
141
169
  */
142
- intotoStatement?: InTotoStatement;
170
+ intotoStatement?:
171
+ InTotoStatement;
143
172
  /** The actual provenance for the build. */
144
- provenance?: BuildProvenance;
173
+ provenance?:
174
+ BuildProvenance;
145
175
  /**
146
176
  * 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
147
177
  * 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
148
178
  * 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
149
179
  * as well to prevent incompatibilities with future changes.
150
180
  */
151
- provenanceBytes?: string;
181
+ provenanceBytes?:
182
+ string;
152
183
  }
153
184
  interface BuildProvenance {
154
185
  /** Version string of the builder at the time this build was executed. */
155
- builderVersion?: string;
186
+ builderVersion?:
187
+ string;
156
188
  /** Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. */
157
- buildOptions?: { [P in string]: string };
189
+ buildOptions?:
190
+ { [P in string]: string };
158
191
  /** Output of the build. */
159
- builtArtifacts?: Artifact[];
192
+ builtArtifacts?:
193
+ Artifact[];
160
194
  /** Commands requested by the build. */
161
- commands?: Command[];
195
+ commands?:
196
+ Command[];
162
197
  /** Time at which the build was created. */
163
- createTime?: string;
198
+ createTime?:
199
+ string;
164
200
  /**
165
201
  * 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
166
202
  * end-user for all time.
167
203
  */
168
- creator?: string;
204
+ creator?:
205
+ string;
169
206
  /** Time at which execution of the build was finished. */
170
- endTime?: string;
207
+ endTime?:
208
+ string;
171
209
  /** Required. Unique identifier of the build. */
172
- id?: string;
210
+ id?:
211
+ string;
173
212
  /** URI where any logs for this provenance were written. */
174
- logsUri?: string;
213
+ logsUri?:
214
+ string;
175
215
  /** ID of the project. */
176
- projectId?: string;
216
+ projectId?:
217
+ string;
177
218
  /** Details of the Source input to the build. */
178
- sourceProvenance?: Source;
219
+ sourceProvenance?:
220
+ Source;
179
221
  /** Time at which execution of the build was started. */
180
- startTime?: string;
222
+ startTime?:
223
+ string;
181
224
  /** Trigger identifier if the build was triggered automatically; empty if not. */
182
- triggerId?: string;
225
+ triggerId?:
226
+ string;
183
227
  }
184
228
  interface BuildStep {
185
229
  /**
186
230
  * Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take
187
231
  * precedence.
188
232
  */
189
- allowExitCodes?: number[];
233
+ allowExitCodes?:
234
+ number[];
190
235
  /**
191
236
  * Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still
192
237
  * have a failure status. Error information will be reported in the failure_detail field.
193
238
  */
194
- allowFailure?: boolean;
239
+ allowFailure?:
240
+ boolean;
195
241
  /**
196
242
  * 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
197
243
  * 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.
198
244
  */
199
- args?: string[];
245
+ args?:
246
+ string[];
200
247
  /**
201
248
  * 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
202
249
  * 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
203
250
  * 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.
204
251
  */
205
- dir?: string;
252
+ dir?:
253
+ string;
206
254
  /** Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used. */
207
- entrypoint?: string;
255
+ entrypoint?:
256
+ string;
208
257
  /** 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". */
209
- env?: string[];
258
+ env?:
259
+ string[];
210
260
  /** Output only. Return code from running the step. */
211
- exitCode?: number;
261
+ exitCode?:
262
+ number;
212
263
  /** Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency. */
213
- id?: string;
264
+ id?:
265
+ string;
214
266
  /**
215
267
  * 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,
216
268
  * 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
@@ -218,143 +270,191 @@ declare namespace gapi.client {
218
270
  * 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
219
271
  * 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.
220
272
  */
221
- name?: string;
273
+ name?:
274
+ string;
222
275
  /** Output only. Stores timing information for pulling this build step's builder image only. */
223
- pullTiming?: TimeSpan;
276
+ pullTiming?:
277
+ TimeSpan;
224
278
  /** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
225
- script?: string;
279
+ script?:
280
+ string;
226
281
  /** 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`. */
227
- secretEnv?: string[];
282
+ secretEnv?:
283
+ string[];
228
284
  /** 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. */
229
- status?: string;
285
+ status?:
286
+ string;
230
287
  /** 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. */
231
- timeout?: string;
288
+ timeout?:
289
+ string;
232
290
  /** Output only. Stores timing information for executing this build step. */
233
- timing?: TimeSpan;
291
+ timing?:
292
+ TimeSpan;
234
293
  /**
235
294
  * 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
236
295
  * 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.
237
296
  */
238
- volumes?: Volume[];
297
+ volumes?:
298
+ Volume[];
239
299
  /**
240
300
  * 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,
241
301
  * this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
242
302
  */
243
- waitFor?: string[];
303
+ waitFor?:
304
+ string[];
244
305
  }
245
306
  interface Category {
246
307
  /** The identifier of the category. */
247
- categoryId?: string;
308
+ categoryId?:
309
+ string;
248
310
  /** The localized name of the category. */
249
- name?: string;
311
+ name?:
312
+ string;
250
313
  }
251
314
  interface CisBenchmark {
252
- profileLevel?: number;
253
- severity?: string;
315
+ profileLevel?:
316
+ number;
317
+ severity?:
318
+ string;
254
319
  }
255
320
  interface CloudRepoSourceContext {
256
321
  /** An alias, which may be a branch or tag. */
257
- aliasContext?: AliasContext;
322
+ aliasContext?:
323
+ AliasContext;
258
324
  /** The ID of the repo. */
259
- repoId?: RepoId;
325
+ repoId?:
326
+ RepoId;
260
327
  /** A revision ID. */
261
- revisionId?: string;
328
+ revisionId?:
329
+ string;
262
330
  }
263
331
  interface Command {
264
332
  /** Command-line arguments used when executing this command. */
265
- args?: string[];
333
+ args?:
334
+ string[];
266
335
  /** Working directory (relative to project source root) used when running this command. */
267
- dir?: string;
336
+ dir?:
337
+ string;
268
338
  /** Environment variables set before running this command. */
269
- env?: string[];
339
+ env?:
340
+ string[];
270
341
  /** Optional unique identifier for this command, used in wait_for to reference this command as a dependency. */
271
- id?: string;
342
+ id?:
343
+ string;
272
344
  /** 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`. */
273
- name?: string;
345
+ name?:
346
+ string;
274
347
  /** The ID(s) of the command(s) that this command depends on. */
275
- waitFor?: string[];
348
+ waitFor?:
349
+ string[];
276
350
  }
277
351
  interface Completeness {
278
352
  /** If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe. */
279
- arguments?: boolean;
353
+ arguments?:
354
+ boolean;
280
355
  /** If true, the builder claims that recipe.environment is claimed to be complete. */
281
- environment?: boolean;
356
+ environment?:
357
+ boolean;
282
358
  /** If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called "hermetic". */
283
- materials?: boolean;
359
+ materials?:
360
+ boolean;
284
361
  }
285
362
  interface ComplianceNote {
286
- cisBenchmark?: CisBenchmark;
363
+ cisBenchmark?:
364
+ CisBenchmark;
287
365
  /** A description about this compliance check. */
288
- description?: string;
366
+ description?:
367
+ string;
289
368
  /** A rationale for the existence of this compliance check. */
290
- rationale?: string;
369
+ rationale?:
370
+ string;
291
371
  /** A description of remediation steps if the compliance check fails. */
292
- remediation?: string;
372
+ remediation?:
373
+ string;
293
374
  /** Serialized scan instructions with a predefined format. */
294
- scanInstructions?: string;
375
+ scanInstructions?:
376
+ string;
295
377
  /** The title that identifies this compliance check. */
296
- title?: string;
378
+ title?:
379
+ string;
297
380
  /** The OS and config versions the benchmark applies to. */
298
- version?: ComplianceVersion[];
381
+ version?:
382
+ ComplianceVersion[];
299
383
  }
300
384
  interface ComplianceOccurrence {
301
- nonComplianceReason?: string;
302
- nonCompliantFiles?: NonCompliantFile[];
385
+ nonComplianceReason?:
386
+ string;
387
+ nonCompliantFiles?:
388
+ NonCompliantFile[];
303
389
  }
304
390
  interface ComplianceVersion {
305
391
  /** The name of the document that defines this benchmark, e.g. "CIS Container-Optimized OS". */
306
- benchmarkDocument?: string;
392
+ benchmarkDocument?:
393
+ string;
307
394
  /** The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to. */
308
- cpeUri?: string;
395
+ cpeUri?:
396
+ string;
309
397
  /** The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in. */
310
- version?: string;
398
+ version?:
399
+ string;
311
400
  }
312
401
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig {
313
402
  /** 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. */
314
- approvalRequired?: boolean;
403
+ approvalRequired?:
404
+ boolean;
315
405
  }
316
406
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult {
317
407
  /** Output only. The time when the approval decision was made. */
318
- approvalTime?: string;
408
+ approvalTime?:
409
+ string;
319
410
  /** 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. */
320
- approverAccount?: string;
411
+ approverAccount?:
412
+ string;
321
413
  /** Optional. An optional comment for this manual approval result. */
322
- comment?: string;
414
+ comment?:
415
+ string;
323
416
  /** Required. The decision of this manual approval. */
324
- decision?: string;
417
+ decision?:
418
+ string;
325
419
  /**
326
420
  * 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
327
421
  * case is a link to an external job that approved this Build.
328
422
  */
329
- url?: string;
423
+ url?:
424
+ string;
330
425
  }
331
426
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts {
332
427
  /**
333
428
  * 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
334
429
  * 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.
335
430
  */
336
- images?: string[];
431
+ images?:
432
+ string[];
337
433
  /**
338
434
  * A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be
339
435
  * uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE.
340
436
  */
341
- mavenArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact[];
437
+ mavenArtifacts?:
438
+ ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact[];
342
439
  /**
343
440
  * A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps. Npm packages in the specified paths will be uploaded to the specified
344
441
  * Artifact Registry repository using the builder service account's credentials. If any packages fail to be pushed, the build is marked FAILURE.
345
442
  */
346
- npmPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage[];
443
+ npmPackages?:
444
+ ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage[];
347
445
  /**
348
446
  * 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
349
447
  * 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
350
448
  * field. If any objects fail to be pushed, the build is marked FAILURE.
351
449
  */
352
- objects?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects;
450
+ objects?:
451
+ ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects;
353
452
  /**
354
453
  * A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps. The build service account credentials will be used to perform the
355
454
  * upload. If any objects fail to be pushed, the build is marked FAILURE.
356
455
  */
357
- pythonPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage[];
456
+ pythonPackages?:
457
+ ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage[];
358
458
  }
359
459
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects {
360
460
  /**
@@ -362,233 +462,302 @@ declare namespace gapi.client {
362
462
  * 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
363
463
  * location as a prefix.
364
464
  */
365
- location?: string;
465
+ location?:
466
+ string;
366
467
  /** Path globs used to match files in the build's workspace. */
367
- paths?: string[];
468
+ paths?:
469
+ string[];
368
470
  /** Output only. Stores timing information for pushing all artifact objects. */
369
- timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
471
+ timing?:
472
+ ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
370
473
  }
371
474
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact {
372
475
  /** Maven `artifactId` value used when uploading the artifact to Artifact Registry. */
373
- artifactId?: string;
476
+ artifactId?:
477
+ string;
374
478
  /** Maven `groupId` value used when uploading the artifact to Artifact Registry. */
375
- groupId?: string;
479
+ groupId?:
480
+ string;
376
481
  /**
377
482
  * Path to an artifact in the build's workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a
378
483
  * relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
379
484
  */
380
- path?: string;
485
+ path?:
486
+ string;
381
487
  /**
382
488
  * Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be uploaded to Artifact Registry with
383
489
  * this location as a prefix.
384
490
  */
385
- repository?: string;
491
+ repository?:
492
+ string;
386
493
  /** Maven `version` value used when uploading the artifact to Artifact Registry. */
387
- version?: string;
494
+ version?:
495
+ string;
388
496
  }
389
497
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage {
390
498
  /** Path to the package.json. e.g. workspace/path/to/package */
391
- packagePath?: string;
499
+ packagePath?:
500
+ string;
392
501
  /**
393
502
  * Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact
394
503
  * Registry with this location as a prefix.
395
504
  */
396
- repository?: string;
505
+ repository?:
506
+ string;
397
507
  }
398
508
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage {
399
509
  /** Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. */
400
- paths?: string[];
510
+ paths?:
511
+ string[];
401
512
  /**
402
513
  * Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be uploaded to Artifact
403
514
  * Registry with this location as a prefix.
404
515
  */
405
- repository?: string;
516
+ repository?:
517
+ string;
406
518
  }
407
519
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Build {
408
520
  /** Output only. Describes this build's approval configuration, status, and result. */
409
- approval?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval;
521
+ approval?:
522
+ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval;
410
523
  /** Artifacts produced by the build that should be uploaded upon successful completion of all build steps. */
411
- artifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts;
524
+ artifacts?:
525
+ ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts;
412
526
  /** Secrets and secret environment variables. */
413
- availableSecrets?: ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets;
527
+ availableSecrets?:
528
+ ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets;
414
529
  /** Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically. */
415
- buildTriggerId?: string;
530
+ buildTriggerId?:
531
+ string;
416
532
  /** Output only. Time at which the request to create the build was received. */
417
- createTime?: string;
533
+ createTime?:
534
+ string;
418
535
  /** Output only. Contains information about the build when status=FAILURE. */
419
- failureInfo?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo;
536
+ failureInfo?:
537
+ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo;
420
538
  /** 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. */
421
- finishTime?: string;
539
+ finishTime?:
540
+ string;
422
541
  /** Output only. Unique identifier of the build. */
423
- id?: string;
542
+ id?:
543
+ string;
424
544
  /**
425
545
  * 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
426
546
  * 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`.
427
547
  */
428
- images?: string[];
548
+ images?:
549
+ string[];
429
550
  /**
430
551
  * 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
431
552
  * of the format `${logs_bucket}/log-${build_id}.txt`.
432
553
  */
433
- logsBucket?: string;
554
+ logsBucket?:
555
+ string;
434
556
  /** Output only. URL to logs for this build in Google Cloud Console. */
435
- logUrl?: string;
557
+ logUrl?:
558
+ string;
436
559
  /** Output only. The 'Build' name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service. */
437
- name?: string;
560
+ name?:
561
+ string;
438
562
  /** Special options for this build. */
439
- options?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions;
563
+ options?:
564
+ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions;
440
565
  /** Output only. ID of the project. */
441
- projectId?: string;
566
+ projectId?:
567
+ string;
442
568
  /**
443
569
  * 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
444
570
  * create_time.
445
571
  */
446
- queueTtl?: string;
572
+ queueTtl?:
573
+ string;
447
574
  /** Output only. Results of the build. */
448
- results?: ContaineranalysisGoogleDevtoolsCloudbuildV1Results;
575
+ results?:
576
+ ContaineranalysisGoogleDevtoolsCloudbuildV1Results;
449
577
  /**
450
578
  * 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
451
579
  * configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
452
580
  */
453
- secrets?: ContaineranalysisGoogleDevtoolsCloudbuildV1Secret[];
581
+ secrets?:
582
+ ContaineranalysisGoogleDevtoolsCloudbuildV1Secret[];
454
583
  /**
455
584
  * 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
456
585
  * uniqueId of the service account.
457
586
  */
458
- serviceAccount?: string;
587
+ serviceAccount?:
588
+ string;
459
589
  /** The location of the source files to build. */
460
- source?: ContaineranalysisGoogleDevtoolsCloudbuildV1Source;
590
+ source?:
591
+ ContaineranalysisGoogleDevtoolsCloudbuildV1Source;
461
592
  /** Output only. A permanent fixed identifier for source. */
462
- sourceProvenance?: ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance;
593
+ sourceProvenance?:
594
+ ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance;
463
595
  /** Output only. Time at which execution of the build was started. */
464
- startTime?: string;
596
+ startTime?:
597
+ string;
465
598
  /** Output only. Status of the build. */
466
- status?: string;
599
+ status?:
600
+ string;
467
601
  /** Output only. Customer-readable message about the current status. */
468
- statusDetail?: string;
602
+ statusDetail?:
603
+ string;
469
604
  /** Required. The operations to be performed on the workspace. */
470
- steps?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep[];
605
+ steps?:
606
+ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep[];
471
607
  /** Substitutions data for `Build` resource. */
472
- substitutions?: { [P in string]: string };
608
+ substitutions?:
609
+ { [P in string]: string };
473
610
  /** Tags for annotation of a `Build`. These are not docker tags. */
474
- tags?: string[];
611
+ tags?:
612
+ string[];
475
613
  /**
476
614
  * 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`.
477
615
  * `timeout` starts ticking from `startTime`. Default time is 60 minutes.
478
616
  */
479
- timeout?: string;
617
+ timeout?:
618
+ string;
480
619
  /**
481
620
  * 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 artifacts including docker images
482
621
  * and non docker artifacts. * FETCHSOURCE: 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.
483
622
  */
484
- timing?: { [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan };
623
+ timing?:
624
+ { [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan };
485
625
  /** Output only. Non-fatal problems encountered during the execution of the build. */
486
- warnings?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning[];
626
+ warnings?:
627
+ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning[];
487
628
  }
488
629
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildApproval {
489
630
  /** Output only. Configuration for manual approval of this build. */
490
- config?: ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig;
631
+ config?:
632
+ ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig;
491
633
  /** Output only. Result of manual approval for this Build. */
492
- result?: ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult;
634
+ result?:
635
+ ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult;
493
636
  /** Output only. The state of this build's approval. */
494
- state?: string;
637
+ state?:
638
+ string;
495
639
  }
496
640
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo {
497
641
  /** Explains the failure issue in more detail using hard-coded text. */
498
- detail?: string;
642
+ detail?:
643
+ string;
499
644
  /** The name of the failure. */
500
- type?: string;
645
+ type?:
646
+ string;
501
647
  }
502
648
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions {
503
649
  /** Optional. Option to specify how default logs buckets are setup. */
504
- defaultLogsBucketBehavior?: string;
650
+ defaultLogsBucketBehavior?:
651
+ string;
505
652
  /**
506
653
  * 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
507
654
  * 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 2000GB; builds that
508
655
  * request more than the maximum are rejected with an error.
509
656
  */
510
- diskSizeGb?: string;
657
+ diskSizeGb?:
658
+ string;
511
659
  /**
512
660
  * 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
513
661
  * configuration file.
514
662
  */
515
- dynamicSubstitutions?: boolean;
663
+ dynamicSubstitutions?:
664
+ boolean;
516
665
  /**
517
666
  * 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
518
667
  * use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
519
668
  */
520
- env?: string[];
669
+ env?:
670
+ string[];
521
671
  /** Option to specify the logging mode, which determines if and where build logs are stored. */
522
- logging?: string;
672
+ logging?:
673
+ string;
523
674
  /** Option to define build log streaming behavior to Google Cloud Storage. */
524
- logStreamingOption?: string;
675
+ logStreamingOption?:
676
+ string;
525
677
  /** Compute Engine machine type on which to run the build. */
526
- machineType?: string;
678
+ machineType?:
679
+ string;
527
680
  /**
528
681
  * 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
529
682
  * more information.
530
683
  */
531
- pool?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption;
684
+ pool?:
685
+ ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption;
532
686
  /** Requested verifiability options. */
533
- requestedVerifyOption?: string;
687
+ requestedVerifyOption?:
688
+ string;
534
689
  /**
535
690
  * 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
536
691
  * will be available to all build steps in this build.
537
692
  */
538
- secretEnv?: string[];
693
+ secretEnv?:
694
+ string[];
539
695
  /** Requested hash for SourceProvenance. */
540
- sourceProvenanceHash?: string[];
696
+ sourceProvenanceHash?:
697
+ string[];
541
698
  /**
542
699
  * 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
543
700
  * configuration file.
544
701
  */
545
- substitutionOption?: string;
702
+ substitutionOption?:
703
+ string;
546
704
  /**
547
705
  * 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
548
706
  * 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
549
707
  * is indicative of a build request with an incorrect configuration.
550
708
  */
551
- volumes?: ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[];
709
+ volumes?:
710
+ ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[];
552
711
  /** This field deprecated; please use `pool.name` instead. */
553
- workerPool?: string;
712
+ workerPool?:
713
+ string;
554
714
  }
555
715
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption {
556
716
  /**
557
717
  * The `WorkerPool` resource to execute the build on. You must have `cloudbuild.workerpools.use` on the project hosting the WorkerPool. Format
558
718
  * projects/{project}/locations/{location}/workerPools/{workerPoolId}
559
719
  */
560
- name?: string;
720
+ name?:
721
+ string;
561
722
  }
562
723
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep {
563
724
  /**
564
725
  * Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take
565
726
  * precedence.
566
727
  */
567
- allowExitCodes?: number[];
728
+ allowExitCodes?:
729
+ number[];
568
730
  /**
569
731
  * Allow this build step to fail without failing the entire build. If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still
570
732
  * have a failure status. Error information will be reported in the failure_detail field.
571
733
  */
572
- allowFailure?: boolean;
734
+ allowFailure?:
735
+ boolean;
573
736
  /**
574
737
  * 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
575
738
  * 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.
576
739
  */
577
- args?: string[];
740
+ args?:
741
+ string[];
578
742
  /**
579
743
  * 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
580
744
  * 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
581
745
  * 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.
582
746
  */
583
- dir?: string;
747
+ dir?:
748
+ string;
584
749
  /** Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used. */
585
- entrypoint?: string;
750
+ entrypoint?:
751
+ string;
586
752
  /** 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". */
587
- env?: string[];
753
+ env?:
754
+ string[];
588
755
  /** Output only. Return code from running the step. */
589
- exitCode?: number;
756
+ exitCode?:
757
+ number;
590
758
  /** Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency. */
591
- id?: string;
759
+ id?:
760
+ string;
592
761
  /**
593
762
  * 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,
594
763
  * 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
@@ -596,155 +765,204 @@ declare namespace gapi.client {
596
765
  * 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
597
766
  * 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.
598
767
  */
599
- name?: string;
768
+ name?:
769
+ string;
600
770
  /** Output only. Stores timing information for pulling this build step's builder image only. */
601
- pullTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
771
+ pullTiming?:
772
+ ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
602
773
  /** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
603
- script?: string;
774
+ script?:
775
+ string;
604
776
  /** 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`. */
605
- secretEnv?: string[];
777
+ secretEnv?:
778
+ string[];
606
779
  /** 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. */
607
- status?: string;
780
+ status?:
781
+ string;
608
782
  /** 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. */
609
- timeout?: string;
783
+ timeout?:
784
+ string;
610
785
  /** Output only. Stores timing information for executing this build step. */
611
- timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
786
+ timing?:
787
+ ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
612
788
  /**
613
789
  * 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
614
790
  * 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.
615
791
  */
616
- volumes?: ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[];
792
+ volumes?:
793
+ ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[];
617
794
  /**
618
795
  * 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,
619
796
  * this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
620
797
  */
621
- waitFor?: string[];
798
+ waitFor?:
799
+ string[];
622
800
  }
623
801
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning {
624
802
  /** The priority for this warning. */
625
- priority?: string;
803
+ priority?:
804
+ string;
626
805
  /** Explanation of the warning generated. */
627
- text?: string;
806
+ text?:
807
+ string;
628
808
  }
629
809
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage {
630
810
  /** Docker Registry 2.0 digest. */
631
- digest?: string;
811
+ digest?:
812
+ string;
632
813
  /** Name used to push the container image to Google Container Registry, as presented to `docker push`. */
633
- name?: string;
814
+ name?:
815
+ string;
634
816
  /** Output only. Stores timing information for pushing the specified image. */
635
- pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
817
+ pushTiming?:
818
+ ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
636
819
  }
637
820
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes {
638
821
  /** Collection of file hashes. */
639
- fileHash?: ContaineranalysisGoogleDevtoolsCloudbuildV1Hash[];
822
+ fileHash?:
823
+ ContaineranalysisGoogleDevtoolsCloudbuildV1Hash[];
640
824
  }
641
825
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource {
642
826
  /**
643
827
  * 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
644
828
  * that step's execution.
645
829
  */
646
- dir?: string;
830
+ dir?:
831
+ string;
647
832
  /**
648
833
  * The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref. Cloud Build uses `git fetch` to fetch the revision from the Git repository;
649
834
  * therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see
650
835
  * https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.
651
836
  */
652
- revision?: string;
837
+ revision?:
838
+ string;
653
839
  /** Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote. */
654
- url?: string;
840
+ url?:
841
+ string;
655
842
  }
656
843
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Hash {
657
844
  /** The type of hash that was performed. */
658
- type?: string;
845
+ type?:
846
+ string;
659
847
  /** The hash value. */
660
- value?: string;
848
+ value?:
849
+ string;
661
850
  }
662
851
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret {
663
852
  /**
664
853
  * 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.
665
854
  * Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
666
855
  */
667
- envMap?: { [P in string]: string };
856
+ envMap?:
857
+ { [P in string]: string };
668
858
  /** Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*‍/locations/*‍/keyRings/*‍/cryptoKeys/* */
669
- kmsKeyName?: string;
859
+ kmsKeyName?:
860
+ string;
670
861
  }
671
862
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource {
672
863
  /** 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 */
673
- branchName?: string;
864
+ branchName?:
865
+ string;
674
866
  /** Explicit commit SHA to build. */
675
- commitSha?: string;
867
+ commitSha?:
868
+ string;
676
869
  /**
677
870
  * 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
678
871
  * that step's execution.
679
872
  */
680
- dir?: string;
873
+ dir?:
874
+ string;
681
875
  /** Only trigger a build if the revision regex does NOT match the revision regex. */
682
- invertRegex?: boolean;
876
+ invertRegex?:
877
+ boolean;
683
878
  /** ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed. */
684
- projectId?: string;
879
+ projectId?:
880
+ string;
685
881
  /** Name of the Cloud Source Repository. */
686
- repoName?: string;
882
+ repoName?:
883
+ string;
687
884
  /** Substitutions to use in a triggered build. Should only be used with RunBuildTrigger */
688
- substitutions?: { [P in string]: string };
885
+ substitutions?:
886
+ { [P in string]: string };
689
887
  /** 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 */
690
- tagName?: string;
888
+ tagName?:
889
+ string;
691
890
  }
692
891
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Results {
693
892
  /** Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
694
- artifactManifest?: string;
893
+ artifactManifest?:
894
+ string;
695
895
  /** Time to push all non-container artifacts to Cloud Storage. */
696
- artifactTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
896
+ artifactTiming?:
897
+ ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
697
898
  /** List of build step digests, in the order corresponding to build step indices. */
698
- buildStepImages?: string[];
899
+ buildStepImages?:
900
+ string[];
699
901
  /**
700
902
  * 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)
701
903
  * can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
702
904
  */
703
- buildStepOutputs?: string[];
905
+ buildStepOutputs?:
906
+ string[];
704
907
  /** Container images that were built as a part of the build. */
705
- images?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[];
908
+ images?:
909
+ ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage[];
706
910
  /** Maven artifacts uploaded to Artifact Registry at the end of the build. */
707
- mavenArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact[];
911
+ mavenArtifacts?:
912
+ ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact[];
708
913
  /** Npm packages uploaded to Artifact Registry at the end of the build. */
709
- npmPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage[];
914
+ npmPackages?:
915
+ ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage[];
710
916
  /** Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage. */
711
- numArtifacts?: string;
917
+ numArtifacts?:
918
+ string;
712
919
  /** Python artifacts uploaded to Artifact Registry at the end of the build. */
713
- pythonPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage[];
920
+ pythonPackages?:
921
+ ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage[];
714
922
  }
715
923
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Secret {
716
924
  /** Cloud KMS key name to use to decrypt these envs. */
717
- kmsKeyName?: string;
925
+ kmsKeyName?:
926
+ string;
718
927
  /**
719
928
  * 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.
720
929
  * Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
721
930
  */
722
- secretEnv?: { [P in string]: string };
931
+ secretEnv?:
932
+ { [P in string]: string };
723
933
  }
724
934
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret {
725
935
  /** 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. */
726
- env?: string;
936
+ env?:
937
+ string;
727
938
  /** Resource name of the SecretVersion. In format: projects/*‍/secrets/*‍/versions/* */
728
- versionName?: string;
939
+ versionName?:
940
+ string;
729
941
  }
730
942
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Secrets {
731
943
  /** Secrets encrypted with KMS key and the associated secret environment variable. */
732
- inline?: ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret[];
944
+ inline?:
945
+ ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret[];
733
946
  /** Secrets in Secret Manager and associated secret environment variable. */
734
- secretManager?: ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret[];
947
+ secretManager?:
948
+ ContaineranalysisGoogleDevtoolsCloudbuildV1SecretManagerSecret[];
735
949
  }
736
950
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Source {
737
951
  /** If provided, get the source from this Git repository. */
738
- gitSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource;
952
+ gitSource?:
953
+ ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource;
739
954
  /** If provided, get the source from this location in a Cloud Source Repository. */
740
- repoSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource;
955
+ repoSource?:
956
+ ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource;
741
957
  /** If provided, get the source from this location in Google Cloud Storage. */
742
- storageSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource;
958
+ storageSource?:
959
+ ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource;
743
960
  /**
744
961
  * If provided, get the source from this manifest in Google Cloud Storage. This feature is in Preview; see description
745
962
  * [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
746
963
  */
747
- storageSourceManifest?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
964
+ storageSourceManifest?:
965
+ ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
748
966
  }
749
967
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1SourceProvenance {
750
968
  /**
@@ -752,269 +970,380 @@ declare namespace gapi.client {
752
970
  * 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
753
971
  * 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.
754
972
  */
755
- fileHashes?: { [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes };
973
+ fileHashes?:
974
+ { [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes };
756
975
  /** A copy of the build's `source.repo_source`, if exists, with any revisions resolved. */
757
- resolvedRepoSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource;
976
+ resolvedRepoSource?:
977
+ ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource;
758
978
  /** A copy of the build's `source.storage_source`, if exists, with any generations resolved. */
759
- resolvedStorageSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource;
979
+ resolvedStorageSource?:
980
+ ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource;
760
981
  /** A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. */
761
- resolvedStorageSourceManifest?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
982
+ resolvedStorageSourceManifest?:
983
+ ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
762
984
  }
763
985
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource {
764
986
  /** Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
765
- bucket?: string;
987
+ bucket?:
988
+ string;
766
989
  /** Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. */
767
- generation?: string;
990
+ generation?:
991
+ string;
768
992
  /** Google Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build. */
769
- object?: string;
993
+ object?:
994
+ string;
770
995
  }
771
996
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest {
772
997
  /** Google Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
773
- bucket?: string;
998
+ bucket?:
999
+ string;
774
1000
  /** Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used. */
775
- generation?: string;
1001
+ generation?:
1002
+ string;
776
1003
  /** Google Cloud Storage object containing the source manifest. This object must be a JSON file. */
777
- object?: string;
1004
+ object?:
1005
+ string;
778
1006
  }
779
1007
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan {
780
1008
  /** End of time span. */
781
- endTime?: string;
1009
+ endTime?:
1010
+ string;
782
1011
  /** Start of time span. */
783
- startTime?: string;
1012
+ startTime?:
1013
+ string;
784
1014
  }
785
1015
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact {
786
1016
  /** Hash types and values of the Maven Artifact. */
787
- fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
1017
+ fileHashes?:
1018
+ ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
788
1019
  /** Output only. Stores timing information for pushing the specified artifact. */
789
- pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
1020
+ pushTiming?:
1021
+ ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
790
1022
  /** URI of the uploaded artifact. */
791
- uri?: string;
1023
+ uri?:
1024
+ string;
792
1025
  }
793
1026
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedNpmPackage {
794
1027
  /** Hash types and values of the npm package. */
795
- fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
1028
+ fileHashes?:
1029
+ ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
796
1030
  /** Output only. Stores timing information for pushing the specified artifact. */
797
- pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
1031
+ pushTiming?:
1032
+ ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
798
1033
  /** URI of the uploaded npm package. */
799
- uri?: string;
1034
+ uri?:
1035
+ string;
800
1036
  }
801
1037
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedPythonPackage {
802
1038
  /** Hash types and values of the Python Artifact. */
803
- fileHashes?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
1039
+ fileHashes?:
1040
+ ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
804
1041
  /** Output only. Stores timing information for pushing the specified artifact. */
805
- pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
1042
+ pushTiming?:
1043
+ ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
806
1044
  /** URI of the uploaded artifact. */
807
- uri?: string;
1045
+ uri?:
1046
+ string;
808
1047
  }
809
1048
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Volume {
810
1049
  /** 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. */
811
- name?: string;
1050
+ name?:
1051
+ string;
812
1052
  /** 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. */
813
- path?: string;
1053
+ path?:
1054
+ string;
814
1055
  }
815
1056
  interface CVSS {
816
- attackComplexity?: string;
1057
+ attackComplexity?:
1058
+ string;
817
1059
  /** Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. */
818
- attackVector?: string;
819
- authentication?: string;
820
- availabilityImpact?: string;
1060
+ attackVector?:
1061
+ string;
1062
+ authentication?:
1063
+ string;
1064
+ availabilityImpact?:
1065
+ string;
821
1066
  /** The base score is a function of the base metric scores. */
822
- baseScore?: number;
823
- confidentialityImpact?: string;
824
- exploitabilityScore?: number;
825
- impactScore?: number;
826
- integrityImpact?: string;
827
- privilegesRequired?: string;
828
- scope?: string;
829
- userInteraction?: string;
1067
+ baseScore?:
1068
+ number;
1069
+ confidentialityImpact?:
1070
+ string;
1071
+ exploitabilityScore?:
1072
+ number;
1073
+ impactScore?:
1074
+ number;
1075
+ integrityImpact?:
1076
+ string;
1077
+ privilegesRequired?:
1078
+ string;
1079
+ scope?:
1080
+ string;
1081
+ userInteraction?:
1082
+ string;
830
1083
  }
831
1084
  interface CVSSv3 {
832
- attackComplexity?: string;
1085
+ attackComplexity?:
1086
+ string;
833
1087
  /** Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. */
834
- attackVector?: string;
835
- availabilityImpact?: string;
1088
+ attackVector?:
1089
+ string;
1090
+ availabilityImpact?:
1091
+ string;
836
1092
  /** The base score is a function of the base metric scores. */
837
- baseScore?: number;
838
- confidentialityImpact?: string;
839
- exploitabilityScore?: number;
840
- impactScore?: number;
841
- integrityImpact?: string;
842
- privilegesRequired?: string;
843
- scope?: string;
844
- userInteraction?: string;
1093
+ baseScore?:
1094
+ number;
1095
+ confidentialityImpact?:
1096
+ string;
1097
+ exploitabilityScore?:
1098
+ number;
1099
+ impactScore?:
1100
+ number;
1101
+ integrityImpact?:
1102
+ string;
1103
+ privilegesRequired?:
1104
+ string;
1105
+ scope?:
1106
+ string;
1107
+ userInteraction?:
1108
+ string;
845
1109
  }
846
1110
  interface DeploymentNote {
847
1111
  /** Required. Resource URI for the artifact being deployed. */
848
- resourceUri?: string[];
1112
+ resourceUri?:
1113
+ string[];
849
1114
  }
850
1115
  interface DeploymentOccurrence {
851
1116
  /** Address of the runtime element hosting this deployment. */
852
- address?: string;
1117
+ address?:
1118
+ string;
853
1119
  /** Configuration used to create this deployment. */
854
- config?: string;
1120
+ config?:
1121
+ string;
855
1122
  /** Required. Beginning of the lifetime of this deployment. */
856
- deployTime?: string;
1123
+ deployTime?:
1124
+ string;
857
1125
  /** Platform hosting this deployment. */
858
- platform?: string;
1126
+ platform?:
1127
+ string;
859
1128
  /** Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. */
860
- resourceUri?: string[];
1129
+ resourceUri?:
1130
+ string[];
861
1131
  /** End of the lifetime of this deployment. */
862
- undeployTime?: string;
1132
+ undeployTime?:
1133
+ string;
863
1134
  /** Identity of the user that triggered this deployment. */
864
- userEmail?: string;
1135
+ userEmail?:
1136
+ string;
865
1137
  }
866
1138
  interface Detail {
867
1139
  /** Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability affects. */
868
- affectedCpeUri?: string;
1140
+ affectedCpeUri?:
1141
+ string;
869
1142
  /** Required. The package this vulnerability affects. */
870
- affectedPackage?: string;
1143
+ affectedPackage?:
1144
+ string;
871
1145
  /**
872
1146
  * 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
873
1147
  * (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
874
1148
  * database, affected_version_start and affected_version_end will be the same in that Detail.
875
1149
  */
876
- affectedVersionEnd?: Version;
1150
+ affectedVersionEnd?:
1151
+ Version;
877
1152
  /**
878
1153
  * 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
879
1154
  * (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
880
1155
  * database, affected_version_start and affected_version_end will be the same in that Detail.
881
1156
  */
882
- affectedVersionStart?: Version;
1157
+ affectedVersionStart?:
1158
+ Version;
883
1159
  /** A vendor-specific description of this vulnerability. */
884
- description?: string;
1160
+ description?:
1161
+ string;
885
1162
  /**
886
1163
  * 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
887
1164
  * affected_cpe_uri.
888
1165
  */
889
- fixedCpeUri?: string;
1166
+ fixedCpeUri?:
1167
+ string;
890
1168
  /** 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. */
891
- fixedPackage?: string;
1169
+ fixedPackage?:
1170
+ string;
892
1171
  /** 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. */
893
- fixedVersion?: Version;
1172
+ fixedVersion?:
1173
+ Version;
894
1174
  /** Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. */
895
- isObsolete?: boolean;
1175
+ isObsolete?:
1176
+ boolean;
896
1177
  /** The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). */
897
- packageType?: string;
1178
+ packageType?:
1179
+ string;
898
1180
  /** The distro assigned severity of this vulnerability. */
899
- severityName?: string;
1181
+ severityName?:
1182
+ string;
900
1183
  /** The source from which the information in this Detail was obtained. */
901
- source?: string;
1184
+ source?:
1185
+ string;
902
1186
  /** 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. */
903
- sourceUpdateTime?: string;
1187
+ sourceUpdateTime?:
1188
+ string;
904
1189
  /** The name of the vendor of the product. */
905
- vendor?: string;
1190
+ vendor?:
1191
+ string;
906
1192
  }
907
1193
  interface Digest {
908
1194
  /** `SHA1`, `SHA512` etc. */
909
- algo?: string;
1195
+ algo?:
1196
+ string;
910
1197
  /** Value of the digest. */
911
- digestBytes?: string;
1198
+ digestBytes?:
1199
+ string;
912
1200
  }
913
1201
  interface DiscoveryNote {
914
1202
  /** Required. Immutable. The kind of analysis that is handled by this discovery. */
915
- analysisKind?: string;
1203
+ analysisKind?:
1204
+ string;
916
1205
  }
917
1206
  interface DiscoveryOccurrence {
918
- analysisCompleted?: AnalysisCompleted;
1207
+ analysisCompleted?:
1208
+ AnalysisCompleted;
919
1209
  /** Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors. */
920
- analysisError?: Status[];
1210
+ analysisError?:
1211
+ Status[];
921
1212
  /** The status of discovery for the resource. */
922
- analysisStatus?: string;
1213
+ analysisStatus?:
1214
+ string;
923
1215
  /** 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. */
924
- analysisStatusError?: Status;
1216
+ analysisStatusError?:
1217
+ Status;
925
1218
  /** Output only. The time occurrences related to this discovery occurrence were archived. */
926
- archiveTime?: string;
1219
+ archiveTime?:
1220
+ string;
927
1221
  /** Whether the resource is continuously analyzed. */
928
- continuousAnalysis?: string;
1222
+ continuousAnalysis?:
1223
+ string;
929
1224
  /** The CPE of the resource being scanned. */
930
- cpe?: string;
1225
+ cpe?:
1226
+ string;
931
1227
  /** The last time this resource was scanned. */
932
- lastScanTime?: string;
1228
+ lastScanTime?:
1229
+ string;
933
1230
  }
934
1231
  interface Distribution {
935
1232
  /** The CPU architecture for which packages in this distribution channel were built. */
936
- architecture?: string;
1233
+ architecture?:
1234
+ string;
937
1235
  /** Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. */
938
- cpeUri?: string;
1236
+ cpeUri?:
1237
+ string;
939
1238
  /** The distribution channel-specific description of this package. */
940
- description?: string;
1239
+ description?:
1240
+ string;
941
1241
  /** The latest available version of this package in this distribution channel. */
942
- latestVersion?: Version;
1242
+ latestVersion?:
1243
+ Version;
943
1244
  /** A freeform string denoting the maintainer of this package. */
944
- maintainer?: string;
1245
+ maintainer?:
1246
+ string;
945
1247
  /** The distribution channel-specific homepage for this package. */
946
- url?: string;
1248
+ url?:
1249
+ string;
947
1250
  }
948
1251
  interface DSSEAttestationNote {
949
1252
  /** DSSEHint hints at the purpose of the attestation authority. */
950
- hint?: DSSEHint;
1253
+ hint?:
1254
+ DSSEHint;
951
1255
  }
952
1256
  interface DSSEAttestationOccurrence {
953
1257
  /** If doing something security critical, make sure to verify the signatures in this metadata. */
954
- envelope?: Envelope;
955
- statement?: InTotoStatement;
1258
+ envelope?:
1259
+ Envelope;
1260
+ statement?:
1261
+ InTotoStatement;
956
1262
  }
957
1263
  interface DSSEHint {
958
1264
  /** Required. The human readable name of this attestation authority, for example "cloudbuild-prod". */
959
- humanReadableName?: string;
1265
+ humanReadableName?:
1266
+ string;
960
1267
  }
961
1268
  // tslint:disable-next-line:no-empty-interface
962
1269
  interface Empty {
963
1270
  }
964
1271
  interface Envelope {
965
- payload?: string;
966
- payloadType?: string;
967
- signatures?: EnvelopeSignature[];
1272
+ payload?:
1273
+ string;
1274
+ payloadType?:
1275
+ string;
1276
+ signatures?:
1277
+ EnvelopeSignature[];
968
1278
  }
969
1279
  interface EnvelopeSignature {
970
- keyid?: string;
971
- sig?: string;
1280
+ keyid?:
1281
+ string;
1282
+ sig?:
1283
+ string;
972
1284
  }
973
1285
  interface Expr {
974
1286
  /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
975
- description?: string;
1287
+ description?:
1288
+ string;
976
1289
  /** Textual representation of an expression in Common Expression Language syntax. */
977
- expression?: string;
1290
+ expression?:
1291
+ string;
978
1292
  /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
979
- location?: string;
1293
+ location?:
1294
+ string;
980
1295
  /** 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. */
981
- title?: string;
1296
+ title?:
1297
+ string;
982
1298
  }
983
1299
  interface FileHashes {
984
1300
  /** Required. Collection of file hashes. */
985
- fileHash?: Hash[];
1301
+ fileHash?:
1302
+ Hash[];
986
1303
  }
987
1304
  interface Fingerprint {
988
1305
  /** Required. The layer ID of the final layer in the Docker image's v1 representation. */
989
- v1Name?: string;
1306
+ v1Name?:
1307
+ string;
990
1308
  /** Required. The ordered list of v2 blobs that represent a given image. */
991
- v2Blob?: string[];
1309
+ v2Blob?:
1310
+ string[];
992
1311
  /** 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. */
993
- v2Name?: string;
1312
+ v2Name?:
1313
+ string;
994
1314
  }
995
1315
  interface FixableTotalByDigest {
996
1316
  /** The number of fixable vulnerabilities associated with this resource. */
997
- fixableCount?: string;
1317
+ fixableCount?:
1318
+ string;
998
1319
  /** The affected resource. */
999
- resourceUri?: string;
1320
+ resourceUri?:
1321
+ string;
1000
1322
  /** The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. */
1001
- severity?: string;
1323
+ severity?:
1324
+ string;
1002
1325
  /** The total number of vulnerabilities associated with this resource. */
1003
- totalCount?: string;
1326
+ totalCount?:
1327
+ string;
1004
1328
  }
1005
1329
  interface GerritSourceContext {
1006
1330
  /** An alias, which may be a branch or tag. */
1007
- aliasContext?: AliasContext;
1331
+ aliasContext?:
1332
+ AliasContext;
1008
1333
  /** 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. */
1009
- gerritProject?: string;
1334
+ gerritProject?:
1335
+ string;
1010
1336
  /** The URI of a running Gerrit instance. */
1011
- hostUri?: string;
1337
+ hostUri?:
1338
+ string;
1012
1339
  /** A revision (commit) ID. */
1013
- revisionId?: string;
1340
+ revisionId?:
1341
+ string;
1014
1342
  }
1015
1343
  interface GetIamPolicyRequest {
1016
1344
  /** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
1017
- options?: GetPolicyOptions;
1345
+ options?:
1346
+ GetPolicyOptions;
1018
1347
  }
1019
1348
  interface GetPolicyOptions {
1020
1349
  /**
@@ -1024,341 +1353,485 @@ declare namespace gapi.client {
1024
1353
  * bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
1025
1354
  * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1026
1355
  */
1027
- requestedPolicyVersion?: number;
1356
+ requestedPolicyVersion?:
1357
+ number;
1028
1358
  }
1029
1359
  interface GitSourceContext {
1030
1360
  /** Git commit hash. */
1031
- revisionId?: string;
1361
+ revisionId?:
1362
+ string;
1032
1363
  /** Git repository URL. */
1033
- url?: string;
1364
+ url?:
1365
+ string;
1034
1366
  }
1035
1367
  interface GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata {
1036
1368
  /** Output only. The time this operation was created. */
1037
- createTime?: string;
1369
+ createTime?:
1370
+ string;
1038
1371
  /** Output only. The time that this operation was marked completed or failed. */
1039
- endTime?: string;
1372
+ endTime?:
1373
+ string;
1040
1374
  }
1041
1375
  interface GrafeasV1FileLocation {
1042
1376
  /** For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file. */
1043
- filePath?: string;
1377
+ filePath?:
1378
+ string;
1044
1379
  }
1045
1380
  interface GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder {
1046
- id?: string;
1381
+ id?:
1382
+ string;
1047
1383
  }
1048
1384
  interface GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness {
1049
- environment?: boolean;
1050
- materials?: boolean;
1051
- parameters?: boolean;
1385
+ environment?:
1386
+ boolean;
1387
+ materials?:
1388
+ boolean;
1389
+ parameters?:
1390
+ boolean;
1052
1391
  }
1053
1392
  interface GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource {
1054
- digest?: { [P in string]: string };
1055
- entryPoint?: string;
1056
- uri?: string;
1393
+ digest?:
1394
+ { [P in string]: string };
1395
+ entryPoint?:
1396
+ string;
1397
+ uri?:
1398
+ string;
1057
1399
  }
1058
1400
  interface GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation {
1059
- configSource?: GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource;
1060
- environment?: { [P in string]: any };
1061
- parameters?: { [P in string]: any };
1401
+ configSource?:
1402
+ GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource;
1403
+ environment?:
1404
+ { [P in string]: any };
1405
+ parameters?:
1406
+ { [P in string]: any };
1062
1407
  }
1063
1408
  interface GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial {
1064
- digest?: { [P in string]: string };
1065
- uri?: string;
1409
+ digest?:
1410
+ { [P in string]: string };
1411
+ uri?:
1412
+ string;
1066
1413
  }
1067
1414
  interface GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata {
1068
- buildFinishedOn?: string;
1069
- buildInvocationId?: string;
1070
- buildStartedOn?: string;
1071
- completeness?: GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness;
1072
- reproducible?: boolean;
1415
+ buildFinishedOn?:
1416
+ string;
1417
+ buildInvocationId?:
1418
+ string;
1419
+ buildStartedOn?:
1420
+ string;
1421
+ completeness?:
1422
+ GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness;
1423
+ reproducible?:
1424
+ boolean;
1073
1425
  }
1074
1426
  interface Hash {
1075
1427
  /** Required. The type of hash that was performed, e.g. "SHA-256". */
1076
- type?: string;
1428
+ type?:
1429
+ string;
1077
1430
  /** Required. The hash value. */
1078
- value?: string;
1431
+ value?:
1432
+ string;
1079
1433
  }
1080
1434
  interface Hint {
1081
1435
  /** Required. The human readable name of this attestation authority, for example "qa". */
1082
- humanReadableName?: string;
1436
+ humanReadableName?:
1437
+ string;
1083
1438
  }
1084
1439
  interface Identity {
1085
1440
  /** The revision number of the update. */
1086
- revision?: number;
1441
+ revision?:
1442
+ number;
1087
1443
  /** The revision independent identifier of the update. */
1088
- updateId?: string;
1444
+ updateId?:
1445
+ string;
1089
1446
  }
1090
1447
  interface ImageNote {
1091
1448
  /** Required. Immutable. The fingerprint of the base image. */
1092
- fingerprint?: Fingerprint;
1449
+ fingerprint?:
1450
+ Fingerprint;
1093
1451
  /** Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. */
1094
- resourceUrl?: string;
1452
+ resourceUrl?:
1453
+ string;
1095
1454
  }
1096
1455
  interface ImageOccurrence {
1097
1456
  /** Output only. This contains the base image URL for the derived image occurrence. */
1098
- baseResourceUrl?: string;
1457
+ baseResourceUrl?:
1458
+ string;
1099
1459
  /** Output only. The number of layers by which this image differs from the associated image basis. */
1100
- distance?: number;
1460
+ distance?:
1461
+ number;
1101
1462
  /** Required. The fingerprint of the derived image. */
1102
- fingerprint?: Fingerprint;
1463
+ fingerprint?:
1464
+ Fingerprint;
1103
1465
  /**
1104
1466
  * 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
1105
1467
  * final layer.
1106
1468
  */
1107
- layerInfo?: Layer[];
1469
+ layerInfo?:
1470
+ Layer[];
1108
1471
  }
1109
1472
  interface InTotoProvenance {
1110
1473
  /** required */
1111
- builderConfig?: BuilderConfig;
1474
+ builderConfig?:
1475
+ BuilderConfig;
1112
1476
  /**
1113
1477
  * 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
1114
1478
  * metadata.completeness.materials is true. Unset or null is equivalent to empty.
1115
1479
  */
1116
- materials?: string[];
1117
- metadata?: Metadata;
1480
+ materials?:
1481
+ string[];
1482
+ metadata?:
1483
+ Metadata;
1118
1484
  /**
1119
1485
  * 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
1120
1486
  * identical output (if the build is reproducible). required
1121
1487
  */
1122
- recipe?: Recipe;
1488
+ recipe?:
1489
+ Recipe;
1123
1490
  }
1124
1491
  interface InTotoStatement {
1125
1492
  /** Always `https://in-toto.io/Statement/v0.1`. */
1126
- _type?: string;
1493
+ _type?:
1494
+ string;
1127
1495
  /** `https://slsa.dev/provenance/v0.1` for SlsaProvenance. */
1128
- predicateType?: string;
1129
- provenance?: InTotoProvenance;
1130
- slsaProvenance?: SlsaProvenance;
1131
- slsaProvenanceZeroTwo?: SlsaProvenanceZeroTwo;
1132
- subject?: Subject[];
1496
+ predicateType?:
1497
+ string;
1498
+ provenance?:
1499
+ InTotoProvenance;
1500
+ slsaProvenance?:
1501
+ SlsaProvenance;
1502
+ slsaProvenanceZeroTwo?:
1503
+ SlsaProvenanceZeroTwo;
1504
+ subject?:
1505
+ Subject[];
1133
1506
  }
1134
1507
  interface Justification {
1135
1508
  /** Additional details on why this justification was chosen. */
1136
- details?: string;
1509
+ details?:
1510
+ string;
1137
1511
  /** The justification type for this vulnerability. */
1138
- justificationType?: string;
1512
+ justificationType?:
1513
+ string;
1139
1514
  }
1140
1515
  interface Jwt {
1141
1516
  /** 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 */
1142
- compactJwt?: string;
1517
+ compactJwt?:
1518
+ string;
1143
1519
  }
1144
1520
  interface KnowledgeBase {
1145
1521
  /** The KB name (generally of the form KB[0-9]+ (e.g., KB123456)). */
1146
- name?: string;
1522
+ name?:
1523
+ string;
1147
1524
  /** A link to the KB in the [Windows update catalog] (https://www.catalog.update.microsoft.com/). */
1148
- url?: string;
1525
+ url?:
1526
+ string;
1149
1527
  }
1150
1528
  interface Layer {
1151
1529
  /** The recovered arguments to the Dockerfile directive. */
1152
- arguments?: string;
1530
+ arguments?:
1531
+ string;
1153
1532
  /** Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information. */
1154
- directive?: string;
1533
+ directive?:
1534
+ string;
1155
1535
  }
1156
1536
  interface License {
1157
1537
  /** Comments */
1158
- comments?: string;
1538
+ comments?:
1539
+ string;
1159
1540
  /**
1160
1541
  * 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
1161
1542
  * identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
1162
1543
  */
1163
- expression?: string;
1544
+ expression?:
1545
+ string;
1164
1546
  }
1165
1547
  interface ListNoteOccurrencesResponse {
1166
1548
  /** Token to provide to skip to a particular spot in the list. */
1167
- nextPageToken?: string;
1549
+ nextPageToken?:
1550
+ string;
1168
1551
  /** The occurrences attached to the specified note. */
1169
- occurrences?: Occurrence[];
1552
+ occurrences?:
1553
+ Occurrence[];
1170
1554
  }
1171
1555
  interface ListNotesResponse {
1172
1556
  /** 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. */
1173
- nextPageToken?: string;
1557
+ nextPageToken?:
1558
+ string;
1174
1559
  /** The notes requested. */
1175
- notes?: Note[];
1560
+ notes?:
1561
+ Note[];
1176
1562
  }
1177
1563
  interface ListOccurrencesResponse {
1178
1564
  /** 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. */
1179
- nextPageToken?: string;
1565
+ nextPageToken?:
1566
+ string;
1180
1567
  /** The occurrences requested. */
1181
- occurrences?: Occurrence[];
1568
+ occurrences?:
1569
+ Occurrence[];
1182
1570
  }
1183
1571
  interface Location {
1184
1572
  /** Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) */
1185
- cpeUri?: string;
1573
+ cpeUri?:
1574
+ string;
1186
1575
  /** The path from which we gathered that this package/version is installed. */
1187
- path?: string;
1576
+ path?:
1577
+ string;
1188
1578
  /** Deprecated. The version installed at this location. */
1189
- version?: Version;
1579
+ version?:
1580
+ Version;
1190
1581
  }
1191
1582
  interface Material {
1192
- digest?: { [P in string]: string };
1193
- uri?: string;
1583
+ digest?:
1584
+ { [P in string]: string };
1585
+ uri?:
1586
+ string;
1194
1587
  }
1195
1588
  interface Metadata {
1196
1589
  /** The timestamp of when the build completed. */
1197
- buildFinishedOn?: string;
1590
+ buildFinishedOn?:
1591
+ string;
1198
1592
  /**
1199
1593
  * 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
1200
1594
  * spec.
1201
1595
  */
1202
- buildInvocationId?: string;
1596
+ buildInvocationId?:
1597
+ string;
1203
1598
  /** The timestamp of when the build started. */
1204
- buildStartedOn?: string;
1599
+ buildStartedOn?:
1600
+ string;
1205
1601
  /** Indicates that the builder claims certain fields in this message to be complete. */
1206
- completeness?: Completeness;
1602
+ completeness?:
1603
+ Completeness;
1207
1604
  /** If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output. */
1208
- reproducible?: boolean;
1605
+ reproducible?:
1606
+ boolean;
1209
1607
  }
1210
1608
  interface NonCompliantFile {
1211
1609
  /** Command to display the non-compliant files. */
1212
- displayCommand?: string;
1610
+ displayCommand?:
1611
+ string;
1213
1612
  /** Empty if `display_command` is set. */
1214
- path?: string;
1613
+ path?:
1614
+ string;
1215
1615
  /** Explains why a file is non compliant for a CIS check. */
1216
- reason?: string;
1616
+ reason?:
1617
+ string;
1217
1618
  }
1218
1619
  interface Note {
1219
1620
  /** A note describing an attestation role. */
1220
- attestation?: AttestationNote;
1621
+ attestation?:
1622
+ AttestationNote;
1221
1623
  /** A note describing build provenance for a verifiable build. */
1222
- build?: BuildNote;
1624
+ build?:
1625
+ BuildNote;
1223
1626
  /** A note describing a compliance check. */
1224
- compliance?: ComplianceNote;
1627
+ compliance?:
1628
+ ComplianceNote;
1225
1629
  /** Output only. The time this note was created. This field can be used as a filter in list requests. */
1226
- createTime?: string;
1630
+ createTime?:
1631
+ string;
1227
1632
  /** A note describing something that can be deployed. */
1228
- deployment?: DeploymentNote;
1633
+ deployment?:
1634
+ DeploymentNote;
1229
1635
  /** A note describing the initial analysis of a resource. */
1230
- discovery?: DiscoveryNote;
1636
+ discovery?:
1637
+ DiscoveryNote;
1231
1638
  /** A note describing a dsse attestation note. */
1232
- dsseAttestation?: DSSEAttestationNote;
1639
+ dsseAttestation?:
1640
+ DSSEAttestationNote;
1233
1641
  /** Time of expiration for this note. Empty if note does not expire. */
1234
- expirationTime?: string;
1642
+ expirationTime?:
1643
+ string;
1235
1644
  /** A note describing a base image. */
1236
- image?: ImageNote;
1645
+ image?:
1646
+ ImageNote;
1237
1647
  /** Output only. The type of analysis. This field can be used as a filter in list requests. */
1238
- kind?: string;
1648
+ kind?:
1649
+ string;
1239
1650
  /** A detailed description of this note. */
1240
- longDescription?: string;
1651
+ longDescription?:
1652
+ string;
1241
1653
  /** Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1242
- name?: string;
1654
+ name?:
1655
+ string;
1243
1656
  /** A note describing a package hosted by various package managers. */
1244
- package?: PackageNote;
1657
+ package?:
1658
+ PackageNote;
1245
1659
  /** Other notes related to this note. */
1246
- relatedNoteNames?: string[];
1660
+ relatedNoteNames?:
1661
+ string[];
1247
1662
  /** URLs associated with this note. */
1248
- relatedUrl?: RelatedUrl[];
1663
+ relatedUrl?:
1664
+ RelatedUrl[];
1665
+ /** A note describing an SBOM reference. */
1666
+ sbomReference?:
1667
+ SBOMReferenceNote;
1249
1668
  /** A one sentence description of this note. */
1250
- shortDescription?: string;
1669
+ shortDescription?:
1670
+ string;
1251
1671
  /** Output only. The time this note was last updated. This field can be used as a filter in list requests. */
1252
- updateTime?: string;
1672
+ updateTime?:
1673
+ string;
1253
1674
  /** A note describing available package upgrades. */
1254
- upgrade?: UpgradeNote;
1675
+ upgrade?:
1676
+ UpgradeNote;
1255
1677
  /** A note describing a package vulnerability. */
1256
- vulnerability?: VulnerabilityNote;
1678
+ vulnerability?:
1679
+ VulnerabilityNote;
1257
1680
  /** A note describing a vulnerability assessment. */
1258
- vulnerabilityAssessment?: VulnerabilityAssessmentNote;
1681
+ vulnerabilityAssessment?:
1682
+ VulnerabilityAssessmentNote;
1259
1683
  }
1260
1684
  interface Occurrence {
1261
1685
  /** Describes an attestation of an artifact. */
1262
- attestation?: AttestationOccurrence;
1686
+ attestation?:
1687
+ AttestationOccurrence;
1263
1688
  /** Describes a verifiable build. */
1264
- build?: BuildOccurrence;
1689
+ build?:
1690
+ BuildOccurrence;
1265
1691
  /** Describes a compliance violation on a linked resource. */
1266
- compliance?: ComplianceOccurrence;
1692
+ compliance?:
1693
+ ComplianceOccurrence;
1267
1694
  /** Output only. The time this occurrence was created. */
1268
- createTime?: string;
1695
+ createTime?:
1696
+ string;
1269
1697
  /** Describes the deployment of an artifact on a runtime. */
1270
- deployment?: DeploymentOccurrence;
1698
+ deployment?:
1699
+ DeploymentOccurrence;
1271
1700
  /** Describes when a resource was discovered. */
1272
- discovery?: DiscoveryOccurrence;
1701
+ discovery?:
1702
+ DiscoveryOccurrence;
1273
1703
  /** Describes an attestation of an artifact using dsse. */
1274
- dsseAttestation?: DSSEAttestationOccurrence;
1704
+ dsseAttestation?:
1705
+ DSSEAttestationOccurrence;
1275
1706
  /** https://github.com/secure-systems-lab/dsse */
1276
- envelope?: Envelope;
1707
+ envelope?:
1708
+ Envelope;
1277
1709
  /** Describes how this resource derives from the basis in the associated note. */
1278
- image?: ImageOccurrence;
1710
+ image?:
1711
+ ImageOccurrence;
1279
1712
  /** Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. */
1280
- kind?: string;
1713
+ kind?:
1714
+ string;
1281
1715
  /** Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
1282
- name?: string;
1716
+ name?:
1717
+ string;
1283
1718
  /** 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. */
1284
- noteName?: string;
1719
+ noteName?:
1720
+ string;
1285
1721
  /** Describes the installation of a package on the linked resource. */
1286
- package?: PackageOccurrence;
1722
+ package?:
1723
+ PackageOccurrence;
1287
1724
  /** A description of actions that can be taken to remedy the note. */
1288
- remediation?: string;
1725
+ remediation?:
1726
+ string;
1289
1727
  /** 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. */
1290
- resourceUri?: string;
1728
+ resourceUri?:
1729
+ string;
1730
+ /** Describes a specific SBOM reference occurrences. */
1731
+ sbomReference?:
1732
+ SBOMReferenceOccurrence;
1291
1733
  /** Output only. The time this occurrence was last updated. */
1292
- updateTime?: string;
1734
+ updateTime?:
1735
+ string;
1293
1736
  /** Describes an available package upgrade on the linked resource. */
1294
- upgrade?: UpgradeOccurrence;
1737
+ upgrade?:
1738
+ UpgradeOccurrence;
1295
1739
  /** Describes a security vulnerability. */
1296
- vulnerability?: VulnerabilityOccurrence;
1740
+ vulnerability?:
1741
+ VulnerabilityOccurrence;
1297
1742
  }
1298
1743
  interface PackageIssue {
1299
1744
  /** Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in. */
1300
- affectedCpeUri?: string;
1745
+ affectedCpeUri?:
1746
+ string;
1301
1747
  /** Required. The package this vulnerability was found in. */
1302
- affectedPackage?: string;
1748
+ affectedPackage?:
1749
+ string;
1303
1750
  /** Required. The version of the package that is installed on the resource affected by this vulnerability. */
1304
- affectedVersion?: Version;
1751
+ affectedVersion?:
1752
+ Version;
1305
1753
  /** 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. */
1306
- effectiveSeverity?: string;
1754
+ effectiveSeverity?:
1755
+ string;
1307
1756
  /** The location at which this package was found. */
1308
- fileLocation?: GrafeasV1FileLocation[];
1757
+ fileLocation?:
1758
+ GrafeasV1FileLocation[];
1309
1759
  /** Output only. Whether a fix is available for this package. */
1310
- fixAvailable?: boolean;
1760
+ fixAvailable?:
1761
+ boolean;
1311
1762
  /** 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. */
1312
- fixedCpeUri?: string;
1763
+ fixedCpeUri?:
1764
+ string;
1313
1765
  /** The package this vulnerability was fixed in. It is possible for this to be different from the affected_package. */
1314
- fixedPackage?: string;
1766
+ fixedPackage?:
1767
+ string;
1315
1768
  /** Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available. */
1316
- fixedVersion?: Version;
1769
+ fixedVersion?:
1770
+ Version;
1317
1771
  /** The type of package (e.g. OS, MAVEN, GO). */
1318
- packageType?: string;
1772
+ packageType?:
1773
+ string;
1319
1774
  }
1320
1775
  interface PackageNote {
1321
1776
  /** The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1322
- architecture?: string;
1777
+ architecture?:
1778
+ string;
1323
1779
  /** 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. */
1324
- cpeUri?: string;
1780
+ cpeUri?:
1781
+ string;
1325
1782
  /** The description of this package. */
1326
- description?: string;
1783
+ description?:
1784
+ string;
1327
1785
  /** Hash value, typically a file digest, that allows unique identification a specific package. */
1328
- digest?: Digest[];
1786
+ digest?:
1787
+ Digest[];
1329
1788
  /** Deprecated. The various channels by which a package is distributed. */
1330
- distribution?: Distribution[];
1789
+ distribution?:
1790
+ Distribution[];
1331
1791
  /** Licenses that have been declared by the authors of the package. */
1332
- license?: License;
1792
+ license?:
1793
+ License;
1333
1794
  /** A freeform text denoting the maintainer of this package. */
1334
- maintainer?: string;
1795
+ maintainer?:
1796
+ string;
1335
1797
  /** Required. Immutable. The name of the package. */
1336
- name?: string;
1798
+ name?:
1799
+ string;
1337
1800
  /** The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). */
1338
- packageType?: string;
1801
+ packageType?:
1802
+ string;
1339
1803
  /** The homepage for this package. */
1340
- url?: string;
1804
+ url?:
1805
+ string;
1341
1806
  /** The version of the package. */
1342
- version?: Version;
1807
+ version?:
1808
+ Version;
1343
1809
  }
1344
1810
  interface PackageOccurrence {
1345
1811
  /** Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1346
- architecture?: string;
1812
+ architecture?:
1813
+ string;
1347
1814
  /**
1348
1815
  * 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
1349
1816
  * packages.
1350
1817
  */
1351
- cpeUri?: string;
1818
+ cpeUri?:
1819
+ string;
1352
1820
  /** Licenses that have been declared by the authors of the package. */
1353
- license?: License;
1821
+ license?:
1822
+ License;
1354
1823
  /** All of the places within the filesystem versions of this package have been found. */
1355
- location?: Location[];
1824
+ location?:
1825
+ Location[];
1356
1826
  /** Required. Output only. The name of the installed package. */
1357
- name?: string;
1827
+ name?:
1828
+ string;
1358
1829
  /** Output only. The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). */
1359
- packageType?: string;
1830
+ packageType?:
1831
+ string;
1360
1832
  /** Output only. The version of the package. */
1361
- version?: Version;
1833
+ version?:
1834
+ Version;
1362
1835
  }
1363
1836
  interface Policy {
1364
1837
  /**
@@ -1367,7 +1840,8 @@ declare namespace gapi.client {
1367
1840
  * 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
1368
1841
  * 1,450 principals to the `bindings` in the `Policy`.
1369
1842
  */
1370
- bindings?: Binding[];
1843
+ bindings?:
1844
+ Binding[];
1371
1845
  /**
1372
1846
  * `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
1373
1847
  * 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
@@ -1375,7 +1849,8 @@ declare namespace gapi.client {
1375
1849
  * 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`
1376
1850
  * policy, and all of the conditions in the version `3` policy are lost.
1377
1851
  */
1378
- etag?: string;
1852
+ etag?:
1853
+ string;
1379
1854
  /**
1380
1855
  * 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
1381
1856
  * 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
@@ -1384,32 +1859,41 @@ declare namespace gapi.client {
1384
1859
  * 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
1385
1860
  * 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).
1386
1861
  */
1387
- version?: number;
1862
+ version?:
1863
+ number;
1388
1864
  }
1389
1865
  interface Product {
1390
1866
  /** Contains a URI which is vendor-specific. Example: The artifact repository URL of an image. */
1391
- genericUri?: string;
1867
+ genericUri?:
1868
+ string;
1392
1869
  /**
1393
1870
  * Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the
1394
1871
  * context of the current document.
1395
1872
  */
1396
- id?: string;
1873
+ id?:
1874
+ string;
1397
1875
  /** Name of the product. */
1398
- name?: string;
1876
+ name?:
1877
+ string;
1399
1878
  }
1400
1879
  interface ProjectRepoId {
1401
1880
  /** The ID of the project. */
1402
- projectId?: string;
1881
+ projectId?:
1882
+ string;
1403
1883
  /** The name of the repo. Leave empty for the default repo. */
1404
- repoName?: string;
1884
+ repoName?:
1885
+ string;
1405
1886
  }
1406
1887
  interface Publisher {
1407
1888
  /** Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. */
1408
- issuingAuthority?: string;
1889
+ issuingAuthority?:
1890
+ string;
1409
1891
  /** Name of the publisher. Examples: 'Google', 'Google Cloud Platform'. */
1410
- name?: string;
1892
+ name?:
1893
+ string;
1411
1894
  /** The context or namespace. Contains a URL which is under control of the issuing party and can be used as a globally unique identifier for that issuing party. Example: https://csaf.io */
1412
- publisherNamespace?: string;
1895
+ publisherNamespace?:
1896
+ string;
1413
1897
  }
1414
1898
  interface Recipe {
1415
1899
  /**
@@ -1417,51 +1901,111 @@ declare namespace gapi.client {
1417
1901
  * 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
1418
1902
  * type, this is of form "Any".
1419
1903
  */
1420
- arguments?: Array<{ [P in string]: any }>;
1904
+ arguments?:
1905
+ Array<{ [P in string]: any }>;
1421
1906
  /**
1422
1907
  * 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
1423
1908
  * 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.
1424
1909
  */
1425
- definedInMaterial?: string;
1910
+ definedInMaterial?:
1911
+ string;
1426
1912
  /**
1427
1913
  * 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
1428
1914
  * 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.
1429
1915
  */
1430
- entryPoint?: string;
1916
+ entryPoint?:
1917
+ string;
1431
1918
  /**
1432
1919
  * 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
1433
1920
  * environment field can greatly vary in structure, depending on the builder and recipe type, this is of form "Any".
1434
1921
  */
1435
- environment?: Array<{ [P in string]: any }>;
1922
+ environment?:
1923
+ Array<{ [P in string]: any }>;
1436
1924
  /** URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. */
1437
- type?: string;
1925
+ type?:
1926
+ string;
1438
1927
  }
1439
1928
  interface RelatedUrl {
1440
1929
  /** Label to describe usage of the URL. */
1441
- label?: string;
1930
+ label?:
1931
+ string;
1442
1932
  /** Specific URL associated with the resource. */
1443
- url?: string;
1933
+ url?:
1934
+ string;
1444
1935
  }
1445
1936
  interface Remediation {
1446
1937
  /** Contains a comprehensive human-readable discussion of the remediation. */
1447
- details?: string;
1938
+ details?:
1939
+ string;
1448
1940
  /** The type of remediation that can be applied. */
1449
- remediationType?: string;
1941
+ remediationType?:
1942
+ string;
1450
1943
  /** Contains the URL where to obtain the remediation. */
1451
- remediationUri?: RelatedUrl;
1944
+ remediationUri?:
1945
+ RelatedUrl;
1452
1946
  }
1453
1947
  interface RepoId {
1454
1948
  /** A combination of a project ID and a repo name. */
1455
- projectRepoId?: ProjectRepoId;
1949
+ projectRepoId?:
1950
+ ProjectRepoId;
1456
1951
  /** A server-assigned, globally unique identifier. */
1457
- uid?: string;
1952
+ uid?:
1953
+ string;
1954
+ }
1955
+ interface SbomReferenceIntotoPayload {
1956
+ /** Identifier for the schema of the Statement. */
1957
+ _type?:
1958
+ string;
1959
+ /** Additional parameters of the Predicate. Includes the actual data about the SBOM. */
1960
+ predicate?:
1961
+ SbomReferenceIntotoPredicate;
1962
+ /** URI identifying the type of the Predicate. */
1963
+ predicateType?:
1964
+ string;
1965
+ /** Set of software artifacts that the attestation applies to. Each element represents a single software artifact. */
1966
+ subject?:
1967
+ Subject[];
1968
+ }
1969
+ interface SbomReferenceIntotoPredicate {
1970
+ /** A map of algorithm to digest of the contents of the SBOM. */
1971
+ digest?:
1972
+ { [P in string]: string };
1973
+ /** The location of the SBOM. */
1974
+ location?:
1975
+ string;
1976
+ /** The mime type of the SBOM. */
1977
+ mimeType?:
1978
+ string;
1979
+ /** The person or system referring this predicate to the consumer. */
1980
+ referrerId?:
1981
+ string;
1982
+ }
1983
+ interface SBOMReferenceNote {
1984
+ /** The format that SBOM takes. E.g. may be spdx, cyclonedx, etc... */
1985
+ format?:
1986
+ string;
1987
+ /** The version of the format that the SBOM takes. E.g. if the format is spdx, the version may be 2.3. */
1988
+ version?:
1989
+ string;
1990
+ }
1991
+ interface SBOMReferenceOccurrence {
1992
+ /** The actual payload that contains the SBOM reference data. */
1993
+ payload?:
1994
+ SbomReferenceIntotoPayload;
1995
+ /** The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'. */
1996
+ payloadType?:
1997
+ string;
1998
+ /** The signatures over the payload. */
1999
+ signatures?:
2000
+ EnvelopeSignature[];
1458
2001
  }
1459
2002
  interface SetIamPolicyRequest {
1460
2003
  /**
1461
2004
  * 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
1462
2005
  * services (such as Projects) might reject them.
1463
2006
  */
1464
- policy?: Policy;
2007
+ policy?:
2008
+ Policy;
1465
2009
  }
1466
2010
  interface Signature {
1467
2011
  /**
@@ -1471,526 +2015,727 @@ declare namespace gapi.client {
1471
2015
  * SubjectPublicKeyInfo (digest of the DER serialization): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" *
1472
2016
  * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5"
1473
2017
  */
1474
- publicKeyId?: string;
2018
+ publicKeyId?:
2019
+ string;
1475
2020
  /**
1476
2021
  * 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
1477
2022
  * might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
1478
2023
  */
1479
- signature?: string;
2024
+ signature?:
2025
+ string;
1480
2026
  }
1481
2027
  interface SlsaBuilder {
1482
- id?: string;
2028
+ id?:
2029
+ string;
1483
2030
  }
1484
2031
  interface SlsaCompleteness {
1485
2032
  /** If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe. */
1486
- arguments?: boolean;
2033
+ arguments?:
2034
+ boolean;
1487
2035
  /** If true, the builder claims that recipe.environment is claimed to be complete. */
1488
- environment?: boolean;
2036
+ environment?:
2037
+ boolean;
1489
2038
  /** If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called "hermetic". */
1490
- materials?: boolean;
2039
+ materials?:
2040
+ boolean;
1491
2041
  }
1492
2042
  interface SlsaMetadata {
1493
2043
  /** The timestamp of when the build completed. */
1494
- buildFinishedOn?: string;
2044
+ buildFinishedOn?:
2045
+ string;
1495
2046
  /**
1496
2047
  * 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
1497
2048
  * spec.
1498
2049
  */
1499
- buildInvocationId?: string;
2050
+ buildInvocationId?:
2051
+ string;
1500
2052
  /** The timestamp of when the build started. */
1501
- buildStartedOn?: string;
2053
+ buildStartedOn?:
2054
+ string;
1502
2055
  /** Indicates that the builder claims certain fields in this message to be complete. */
1503
- completeness?: SlsaCompleteness;
2056
+ completeness?:
2057
+ SlsaCompleteness;
1504
2058
  /** If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output. */
1505
- reproducible?: boolean;
2059
+ reproducible?:
2060
+ boolean;
1506
2061
  }
1507
2062
  interface SlsaProvenance {
1508
2063
  /** required */
1509
- builder?: SlsaBuilder;
2064
+ builder?:
2065
+ SlsaBuilder;
1510
2066
  /**
1511
2067
  * 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
1512
2068
  * metadata.completeness.materials is true. Unset or null is equivalent to empty.
1513
2069
  */
1514
- materials?: Material[];
1515
- metadata?: SlsaMetadata;
2070
+ materials?:
2071
+ Material[];
2072
+ metadata?:
2073
+ SlsaMetadata;
1516
2074
  /**
1517
2075
  * 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
1518
2076
  * identical output (if the build is reproducible). required
1519
2077
  */
1520
- recipe?: SlsaRecipe;
2078
+ recipe?:
2079
+ SlsaRecipe;
1521
2080
  }
1522
2081
  interface SlsaProvenanceZeroTwo {
1523
- buildConfig?: { [P in string]: any };
1524
- builder?: GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder;
1525
- buildType?: string;
1526
- invocation?: GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation;
1527
- materials?: GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial[];
1528
- metadata?: GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata;
2082
+ buildConfig?:
2083
+ { [P in string]: any };
2084
+ builder?:
2085
+ GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder;
2086
+ buildType?:
2087
+ string;
2088
+ invocation?:
2089
+ GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation;
2090
+ materials?:
2091
+ GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial[];
2092
+ metadata?:
2093
+ GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata;
1529
2094
  }
1530
2095
  interface SlsaRecipe {
1531
2096
  /**
1532
2097
  * 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
1533
2098
  * 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.
1534
2099
  */
1535
- arguments?: { [P in string]: any };
2100
+ arguments?:
2101
+ { [P in string]: any };
1536
2102
  /**
1537
2103
  * 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
1538
2104
  * 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.
1539
2105
  */
1540
- definedInMaterial?: string;
2106
+ definedInMaterial?:
2107
+ string;
1541
2108
  /**
1542
2109
  * 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
1543
2110
  * 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.
1544
2111
  */
1545
- entryPoint?: string;
2112
+ entryPoint?:
2113
+ string;
1546
2114
  /**
1547
2115
  * 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
1548
2116
  * the recipe Type, the structure may be different.
1549
2117
  */
1550
- environment?: { [P in string]: any };
2118
+ environment?:
2119
+ { [P in string]: any };
1551
2120
  /** URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. */
1552
- type?: string;
2121
+ type?:
2122
+ string;
1553
2123
  }
1554
2124
  interface Source {
1555
2125
  /**
1556
2126
  * 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
1557
2127
  * not include the context specified in the context field.
1558
2128
  */
1559
- additionalContexts?: SourceContext[];
2129
+ additionalContexts?:
2130
+ SourceContext[];
1560
2131
  /** If provided, the input binary artifacts for the build came from this location. */
1561
- artifactStorageSourceUri?: string;
2132
+ artifactStorageSourceUri?:
2133
+ string;
1562
2134
  /** If provided, the source code used for the build came from this location. */
1563
- context?: SourceContext;
2135
+ context?:
2136
+ SourceContext;
1564
2137
  /**
1565
2138
  * 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
1566
2139
  * 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
1567
2140
  * that file.
1568
2141
  */
1569
- fileHashes?: { [P in string]: FileHashes };
2142
+ fileHashes?:
2143
+ { [P in string]: FileHashes };
1570
2144
  }
1571
2145
  interface SourceContext {
1572
2146
  /** A SourceContext referring to a revision in a Google Cloud Source Repo. */
1573
- cloudRepo?: CloudRepoSourceContext;
2147
+ cloudRepo?:
2148
+ CloudRepoSourceContext;
1574
2149
  /** A SourceContext referring to a Gerrit project. */
1575
- gerrit?: GerritSourceContext;
2150
+ gerrit?:
2151
+ GerritSourceContext;
1576
2152
  /** A SourceContext referring to any third party Git repo (e.g., GitHub). */
1577
- git?: GitSourceContext;
2153
+ git?:
2154
+ GitSourceContext;
1578
2155
  /** Labels with user defined metadata. */
1579
- labels?: { [P in string]: string };
2156
+ labels?:
2157
+ { [P in string]: string };
1580
2158
  }
1581
2159
  interface Status {
1582
2160
  /** The status code, which should be an enum value of google.rpc.Code. */
1583
- code?: number;
2161
+ code?:
2162
+ number;
1584
2163
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
1585
- details?: Array<{ [P in string]: any }>;
2164
+ details?:
2165
+ Array<{ [P in string]: any }>;
1586
2166
  /**
1587
2167
  * 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
1588
2168
  * client.
1589
2169
  */
1590
- message?: string;
2170
+ message?:
2171
+ string;
1591
2172
  }
1592
2173
  interface Subject {
1593
2174
  /** `"": ""` Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet */
1594
- digest?: { [P in string]: string };
1595
- name?: string;
2175
+ digest?:
2176
+ { [P in string]: string };
2177
+ name?:
2178
+ string;
1596
2179
  }
1597
2180
  interface TestIamPermissionsRequest {
1598
2181
  /**
1599
2182
  * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
1600
2183
  * Overview](https://cloud.google.com/iam/docs/overview#permissions).
1601
2184
  */
1602
- permissions?: string[];
2185
+ permissions?:
2186
+ string[];
1603
2187
  }
1604
2188
  interface TestIamPermissionsResponse {
1605
2189
  /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
1606
- permissions?: string[];
2190
+ permissions?:
2191
+ string[];
1607
2192
  }
1608
2193
  interface TimeSpan {
1609
2194
  /** End of time span. */
1610
- endTime?: string;
2195
+ endTime?:
2196
+ string;
1611
2197
  /** Start of time span. */
1612
- startTime?: string;
2198
+ startTime?:
2199
+ string;
1613
2200
  }
1614
2201
  interface UpgradeDistribution {
1615
2202
  /**
1616
2203
  * 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
1617
2204
  * https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
1618
2205
  */
1619
- classification?: string;
2206
+ classification?:
2207
+ string;
1620
2208
  /** Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/. */
1621
- cpeUri?: string;
2209
+ cpeUri?:
2210
+ string;
1622
2211
  /** The cve tied to this Upgrade. */
1623
- cve?: string[];
2212
+ cve?:
2213
+ string[];
1624
2214
  /** The severity as specified by the upstream operating system. */
1625
- severity?: string;
2215
+ severity?:
2216
+ string;
1626
2217
  }
1627
2218
  interface UpgradeNote {
1628
2219
  /** Metadata about the upgrade for each specific operating system. */
1629
- distributions?: UpgradeDistribution[];
2220
+ distributions?:
2221
+ UpgradeDistribution[];
1630
2222
  /** Required for non-Windows OS. The package this Upgrade is for. */
1631
- package?: string;
2223
+ package?:
2224
+ string;
1632
2225
  /** Required for non-Windows OS. The version of the package in machine + human readable form. */
1633
- version?: Version;
2226
+ version?:
2227
+ Version;
1634
2228
  /** Required for Windows OS. Represents the metadata about the Windows update. */
1635
- windowsUpdate?: WindowsUpdate;
2229
+ windowsUpdate?:
2230
+ WindowsUpdate;
1636
2231
  }
1637
2232
  interface UpgradeOccurrence {
1638
2233
  /** 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. */
1639
- distribution?: UpgradeDistribution;
2234
+ distribution?:
2235
+ UpgradeDistribution;
1640
2236
  /** Required for non-Windows OS. The package this Upgrade is for. */
1641
- package?: string;
2237
+ package?:
2238
+ string;
1642
2239
  /** Required for non-Windows OS. The version of the package in a machine + human readable form. */
1643
- parsedVersion?: Version;
2240
+ parsedVersion?:
2241
+ Version;
1644
2242
  /** Required for Windows OS. Represents the metadata about the Windows update. */
1645
- windowsUpdate?: WindowsUpdate;
2243
+ windowsUpdate?:
2244
+ WindowsUpdate;
1646
2245
  }
1647
2246
  interface Version {
1648
2247
  /** Used to correct mistakes in the version numbering scheme. */
1649
- epoch?: number;
2248
+ epoch?:
2249
+ number;
1650
2250
  /** Human readable version string. This string is of the form :- and is only set when kind is NORMAL. */
1651
- fullName?: string;
2251
+ fullName?:
2252
+ string;
1652
2253
  /**
1653
2254
  * 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
1654
2255
  * 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
1655
2256
  * to true when the version is included in a range.
1656
2257
  */
1657
- inclusive?: boolean;
2258
+ inclusive?:
2259
+ boolean;
1658
2260
  /** Required. Distinguishes between sentinel MIN/MAX versions and normal versions. */
1659
- kind?: string;
2261
+ kind?:
2262
+ string;
1660
2263
  /** Required only when version kind is NORMAL. The main part of the version name. */
1661
- name?: string;
2264
+ name?:
2265
+ string;
1662
2266
  /** The iteration of the package build from the above version. */
1663
- revision?: string;
2267
+ revision?:
2268
+ string;
1664
2269
  }
1665
2270
  interface VexAssessment {
1666
2271
  /** Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. */
1667
- cve?: string;
2272
+ cve?:
2273
+ string;
1668
2274
  /** Contains information about the impact of this vulnerability, this will change with time. */
1669
- impacts?: string[];
2275
+ impacts?:
2276
+ string[];
1670
2277
  /** Justification provides the justification when the state of the assessment if NOT_AFFECTED. */
1671
- justification?: Justification;
2278
+ justification?:
2279
+ Justification;
1672
2280
  /** The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`. */
1673
- noteName?: string;
2281
+ noteName?:
2282
+ string;
1674
2283
  /** Holds a list of references associated with this vulnerability item and assessment. */
1675
- relatedUris?: RelatedUrl[];
2284
+ relatedUris?:
2285
+ RelatedUrl[];
1676
2286
  /** Specifies details on how to handle (and presumably, fix) a vulnerability. */
1677
- remediations?: Remediation[];
2287
+ remediations?:
2288
+ Remediation[];
1678
2289
  /** Provides the state of this Vulnerability assessment. */
1679
- state?: string;
2290
+ state?:
2291
+ string;
1680
2292
  }
1681
2293
  interface Volume {
1682
2294
  /** 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. */
1683
- name?: string;
2295
+ name?:
2296
+ string;
1684
2297
  /** 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. */
1685
- path?: string;
2298
+ path?:
2299
+ string;
1686
2300
  }
1687
2301
  interface VulnerabilityAssessmentNote {
1688
2302
  /** Represents a vulnerability assessment for the product. */
1689
- assessment?: Assessment;
2303
+ assessment?:
2304
+ Assessment;
1690
2305
  /** Identifies the language used by this document, corresponding to IETF BCP 47 / RFC 5646. */
1691
- languageCode?: string;
2306
+ languageCode?:
2307
+ string;
1692
2308
  /** A detailed description of this Vex. */
1693
- longDescription?: string;
2309
+ longDescription?:
2310
+ string;
1694
2311
  /** The product affected by this vex. */
1695
- product?: Product;
2312
+ product?:
2313
+ Product;
1696
2314
  /** Publisher details of this Note. */
1697
- publisher?: Publisher;
2315
+ publisher?:
2316
+ Publisher;
1698
2317
  /** A one sentence description of this Vex. */
1699
- shortDescription?: string;
2318
+ shortDescription?:
2319
+ string;
1700
2320
  /** The title of the note. E.g. `Vex-Debian-11.4` */
1701
- title?: string;
2321
+ title?:
2322
+ string;
1702
2323
  }
1703
2324
  interface VulnerabilityNote {
1704
2325
  /** 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. */
1705
- cvssScore?: number;
2326
+ cvssScore?:
2327
+ number;
1706
2328
  /** The full description of the v2 CVSS for this vulnerability. */
1707
- cvssV2?: CVSS;
2329
+ cvssV2?:
2330
+ CVSS;
1708
2331
  /** The full description of the CVSSv3 for this vulnerability. */
1709
- cvssV3?: CVSSv3;
2332
+ cvssV3?:
2333
+ CVSSv3;
1710
2334
  /** CVSS version used to populate cvss_score and severity. */
1711
- cvssVersion?: string;
2335
+ cvssVersion?:
2336
+ string;
1712
2337
  /** Details of all known distros and packages affected by this vulnerability. */
1713
- details?: Detail[];
2338
+ details?:
2339
+ Detail[];
1714
2340
  /** The note provider assigned severity of this vulnerability. */
1715
- severity?: string;
2341
+ severity?:
2342
+ string;
1716
2343
  /** 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. */
1717
- sourceUpdateTime?: string;
2344
+ sourceUpdateTime?:
2345
+ string;
1718
2346
  /**
1719
2347
  * 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
1720
2348
  * vulnerabilities really are a missing package, rather than a package being at an incorrect version.
1721
2349
  */
1722
- windowsDetails?: WindowsDetail[];
2350
+ windowsDetails?:
2351
+ WindowsDetail[];
1723
2352
  }
1724
2353
  interface VulnerabilityOccurrence {
1725
2354
  /** 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. */
1726
- cvssScore?: number;
2355
+ cvssScore?:
2356
+ number;
1727
2357
  /** The cvss v2 score for the vulnerability. */
1728
- cvssV2?: CVSS;
2358
+ cvssV2?:
2359
+ CVSS;
1729
2360
  /** The cvss v3 score for the vulnerability. */
1730
- cvssv3?: CVSS;
2361
+ cvssv3?:
2362
+ CVSS;
1731
2363
  /** Output only. CVSS version used to populate cvss_score and severity. */
1732
- cvssVersion?: string;
2364
+ cvssVersion?:
2365
+ string;
1733
2366
  /**
1734
2367
  * 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
1735
2368
  * 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
1736
2369
  * 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
1737
2370
  * be the highest severity for any of the PackageIssues.
1738
2371
  */
1739
- effectiveSeverity?: string;
2372
+ effectiveSeverity?:
2373
+ string;
1740
2374
  /** Output only. Whether at least one of the affected packages has a fix available. */
1741
- fixAvailable?: boolean;
2375
+ fixAvailable?:
2376
+ boolean;
1742
2377
  /** Output only. A detailed description of this vulnerability. */
1743
- longDescription?: string;
2378
+ longDescription?:
2379
+ string;
1744
2380
  /** Required. The set of affected locations and their fixes (if available) within the associated resource. */
1745
- packageIssue?: PackageIssue[];
2381
+ packageIssue?:
2382
+ PackageIssue[];
1746
2383
  /** Output only. URLs related to this vulnerability. */
1747
- relatedUrls?: RelatedUrl[];
2384
+ relatedUrls?:
2385
+ RelatedUrl[];
1748
2386
  /** Output only. The note provider assigned severity of this vulnerability. */
1749
- severity?: string;
2387
+ severity?:
2388
+ string;
1750
2389
  /** Output only. A one sentence description of this vulnerability. */
1751
- shortDescription?: string;
2390
+ shortDescription?:
2391
+ string;
1752
2392
  /** The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). */
1753
- type?: string;
1754
- vexAssessment?: VexAssessment;
2393
+ type?:
2394
+ string;
2395
+ vexAssessment?:
2396
+ VexAssessment;
1755
2397
  }
1756
2398
  interface VulnerabilityOccurrencesSummary {
1757
2399
  /** A listing by resource of the number of fixable and total vulnerabilities. */
1758
- counts?: FixableTotalByDigest[];
2400
+ counts?:
2401
+ FixableTotalByDigest[];
1759
2402
  }
1760
2403
  interface WindowsDetail {
1761
2404
  /** Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability affects. */
1762
- cpeUri?: string;
2405
+ cpeUri?:
2406
+ string;
1763
2407
  /** The description of this vulnerability. */
1764
- description?: string;
2408
+ description?:
2409
+ string;
1765
2410
  /**
1766
2411
  * 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
1767
2412
  * vulnerability. Currently any listed KBs presence is considered a fix.
1768
2413
  */
1769
- fixingKbs?: KnowledgeBase[];
2414
+ fixingKbs?:
2415
+ KnowledgeBase[];
1770
2416
  /** Required. The name of this vulnerability. */
1771
- name?: string;
2417
+ name?:
2418
+ string;
1772
2419
  }
1773
2420
  interface WindowsUpdate {
1774
2421
  /** The list of categories to which the update belongs. */
1775
- categories?: Category[];
2422
+ categories?:
2423
+ Category[];
1776
2424
  /** The localized description of the update. */
1777
- description?: string;
2425
+ description?:
2426
+ string;
1778
2427
  /** Required - The unique identifier for the update. */
1779
- identity?: Identity;
2428
+ identity?:
2429
+ Identity;
1780
2430
  /** The Microsoft Knowledge Base article IDs that are associated with the update. */
1781
- kbArticleIds?: string[];
2431
+ kbArticleIds?:
2432
+ string[];
1782
2433
  /** The last published timestamp of the update. */
1783
- lastPublishedTimestamp?: string;
2434
+ lastPublishedTimestamp?:
2435
+ string;
1784
2436
  /** The hyperlink to the support information for the update. */
1785
- supportUrl?: string;
2437
+ supportUrl?:
2438
+ string;
1786
2439
  /** The localized title of the update. */
1787
- title?: string;
2440
+ title?:
2441
+ string;
1788
2442
  }
1789
2443
  interface OccurrencesResource {
1790
2444
  /** Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. */
1791
2445
  list(request?: {
1792
2446
  /** V1 error format. */
1793
- "$.xgafv"?: string;
2447
+ "$.xgafv"?:
2448
+ string;
1794
2449
  /** OAuth access token. */
1795
- access_token?: string;
2450
+ access_token?:
2451
+ string;
1796
2452
  /** Data format for response. */
1797
- alt?: string;
2453
+ alt?:
2454
+ string;
1798
2455
  /** JSONP */
1799
- callback?: string;
2456
+ callback?:
2457
+ string;
1800
2458
  /** Selector specifying which fields to include in a partial response. */
1801
- fields?: string;
2459
+ fields?:
2460
+ string;
1802
2461
  /** The filter expression. */
1803
- filter?: string;
2462
+ filter?:
2463
+ string;
1804
2464
  /** 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. */
1805
- key?: string;
2465
+ key?:
2466
+ string;
1806
2467
  /** Required. The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1807
- name: string;
2468
+ name:
2469
+ string;
1808
2470
  /** OAuth 2.0 token for the current user. */
1809
- oauth_token?: string;
2471
+ oauth_token?:
2472
+ string;
1810
2473
  /** Number of occurrences to return in the list. */
1811
- pageSize?: number;
2474
+ pageSize?:
2475
+ number;
1812
2476
  /** Token to provide to skip to a particular spot in the list. */
1813
- pageToken?: string;
2477
+ pageToken?:
2478
+ string;
1814
2479
  /** Returns response with indentations and line breaks. */
1815
- prettyPrint?: boolean;
2480
+ prettyPrint?:
2481
+ boolean;
1816
2482
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1817
- quotaUser?: string;
2483
+ quotaUser?:
2484
+ string;
1818
2485
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1819
- upload_protocol?: string;
2486
+ upload_protocol?:
2487
+ string;
1820
2488
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1821
- uploadType?: string;
2489
+ uploadType?:
2490
+ string;
1822
2491
  }): Request<ListNoteOccurrencesResponse>;
1823
2492
  }
1824
2493
  interface NotesResource {
1825
2494
  /** Creates new notes in batch. */
1826
2495
  batchCreate(request: {
1827
2496
  /** V1 error format. */
1828
- "$.xgafv"?: string;
2497
+ "$.xgafv"?:
2498
+ string;
1829
2499
  /** OAuth access token. */
1830
- access_token?: string;
2500
+ access_token?:
2501
+ string;
1831
2502
  /** Data format for response. */
1832
- alt?: string;
2503
+ alt?:
2504
+ string;
1833
2505
  /** JSONP */
1834
- callback?: string;
2506
+ callback?:
2507
+ string;
1835
2508
  /** Selector specifying which fields to include in a partial response. */
1836
- fields?: string;
2509
+ fields?:
2510
+ string;
1837
2511
  /** 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. */
1838
- key?: string;
2512
+ key?:
2513
+ string;
1839
2514
  /** OAuth 2.0 token for the current user. */
1840
- oauth_token?: string;
2515
+ oauth_token?:
2516
+ string;
1841
2517
  /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
1842
- parent: string;
2518
+ parent:
2519
+ string;
1843
2520
  /** Returns response with indentations and line breaks. */
1844
- prettyPrint?: boolean;
2521
+ prettyPrint?:
2522
+ boolean;
1845
2523
  /** 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. */
1846
- quotaUser?: string;
2524
+ quotaUser?:
2525
+ string;
1847
2526
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1848
- upload_protocol?: string;
2527
+ upload_protocol?:
2528
+ string;
1849
2529
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1850
- uploadType?: string;
2530
+ uploadType?:
2531
+ string;
1851
2532
  /** Request body */
1852
- resource: BatchCreateNotesRequest;
2533
+ resource:
2534
+ BatchCreateNotesRequest;
1853
2535
  }): Request<BatchCreateNotesResponse>;
1854
2536
  batchCreate(request: {
1855
2537
  /** V1 error format. */
1856
- "$.xgafv"?: string;
2538
+ "$.xgafv"?:
2539
+ string;
1857
2540
  /** OAuth access token. */
1858
- access_token?: string;
2541
+ access_token?:
2542
+ string;
1859
2543
  /** Data format for response. */
1860
- alt?: string;
2544
+ alt?:
2545
+ string;
1861
2546
  /** JSONP */
1862
- callback?: string;
2547
+ callback?:
2548
+ string;
1863
2549
  /** Selector specifying which fields to include in a partial response. */
1864
- fields?: string;
2550
+ fields?:
2551
+ string;
1865
2552
  /** 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. */
1866
- key?: string;
2553
+ key?:
2554
+ string;
1867
2555
  /** OAuth 2.0 token for the current user. */
1868
- oauth_token?: string;
2556
+ oauth_token?:
2557
+ string;
1869
2558
  /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
1870
- parent: string;
2559
+ parent:
2560
+ string;
1871
2561
  /** Returns response with indentations and line breaks. */
1872
- prettyPrint?: boolean;
2562
+ prettyPrint?:
2563
+ boolean;
1873
2564
  /** 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. */
1874
- quotaUser?: string;
2565
+ quotaUser?:
2566
+ string;
1875
2567
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1876
- upload_protocol?: string;
2568
+ upload_protocol?:
2569
+ string;
1877
2570
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1878
- uploadType?: string;
2571
+ uploadType?:
2572
+ string;
1879
2573
  },
1880
2574
  body: BatchCreateNotesRequest): Request<BatchCreateNotesResponse>;
1881
2575
  /** Creates a new note. */
1882
2576
  create(request: {
1883
2577
  /** V1 error format. */
1884
- "$.xgafv"?: string;
2578
+ "$.xgafv"?:
2579
+ string;
1885
2580
  /** OAuth access token. */
1886
- access_token?: string;
2581
+ access_token?:
2582
+ string;
1887
2583
  /** Data format for response. */
1888
- alt?: string;
2584
+ alt?:
2585
+ string;
1889
2586
  /** JSONP */
1890
- callback?: string;
2587
+ callback?:
2588
+ string;
1891
2589
  /** Selector specifying which fields to include in a partial response. */
1892
- fields?: string;
2590
+ fields?:
2591
+ string;
1893
2592
  /** 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. */
1894
- key?: string;
2593
+ key?:
2594
+ string;
1895
2595
  /** Required. The ID to use for this note. */
1896
- noteId?: string;
2596
+ noteId?:
2597
+ string;
1897
2598
  /** OAuth 2.0 token for the current user. */
1898
- oauth_token?: string;
2599
+ oauth_token?:
2600
+ string;
1899
2601
  /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
1900
- parent: string;
2602
+ parent:
2603
+ string;
1901
2604
  /** Returns response with indentations and line breaks. */
1902
- prettyPrint?: boolean;
2605
+ prettyPrint?:
2606
+ boolean;
1903
2607
  /** 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. */
1904
- quotaUser?: string;
2608
+ quotaUser?:
2609
+ string;
1905
2610
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1906
- upload_protocol?: string;
2611
+ upload_protocol?:
2612
+ string;
1907
2613
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1908
- uploadType?: string;
2614
+ uploadType?:
2615
+ string;
1909
2616
  /** Request body */
1910
- resource: Note;
2617
+ resource:
2618
+ Note;
1911
2619
  }): Request<Note>;
1912
2620
  create(request: {
1913
2621
  /** V1 error format. */
1914
- "$.xgafv"?: string;
2622
+ "$.xgafv"?:
2623
+ string;
1915
2624
  /** OAuth access token. */
1916
- access_token?: string;
2625
+ access_token?:
2626
+ string;
1917
2627
  /** Data format for response. */
1918
- alt?: string;
2628
+ alt?:
2629
+ string;
1919
2630
  /** JSONP */
1920
- callback?: string;
2631
+ callback?:
2632
+ string;
1921
2633
  /** Selector specifying which fields to include in a partial response. */
1922
- fields?: string;
2634
+ fields?:
2635
+ string;
1923
2636
  /** 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. */
1924
- key?: string;
2637
+ key?:
2638
+ string;
1925
2639
  /** Required. The ID to use for this note. */
1926
- noteId?: string;
2640
+ noteId?:
2641
+ string;
1927
2642
  /** OAuth 2.0 token for the current user. */
1928
- oauth_token?: string;
2643
+ oauth_token?:
2644
+ string;
1929
2645
  /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
1930
- parent: string;
2646
+ parent:
2647
+ string;
1931
2648
  /** Returns response with indentations and line breaks. */
1932
- prettyPrint?: boolean;
2649
+ prettyPrint?:
2650
+ boolean;
1933
2651
  /** 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;
2652
+ quotaUser?:
2653
+ string;
1935
2654
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1936
- upload_protocol?: string;
2655
+ upload_protocol?:
2656
+ string;
1937
2657
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1938
- uploadType?: string;
2658
+ uploadType?:
2659
+ string;
1939
2660
  },
1940
2661
  body: Note): Request<Note>;
1941
2662
  /** Deletes the specified note. */
1942
2663
  delete(request?: {
1943
2664
  /** V1 error format. */
1944
- "$.xgafv"?: string;
2665
+ "$.xgafv"?:
2666
+ string;
1945
2667
  /** OAuth access token. */
1946
- access_token?: string;
2668
+ access_token?:
2669
+ string;
1947
2670
  /** Data format for response. */
1948
- alt?: string;
2671
+ alt?:
2672
+ string;
1949
2673
  /** JSONP */
1950
- callback?: string;
2674
+ callback?:
2675
+ string;
1951
2676
  /** Selector specifying which fields to include in a partial response. */
1952
- fields?: string;
2677
+ fields?:
2678
+ string;
1953
2679
  /** 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;
2680
+ key?:
2681
+ string;
1955
2682
  /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1956
- name: string;
2683
+ name:
2684
+ string;
1957
2685
  /** OAuth 2.0 token for the current user. */
1958
- oauth_token?: string;
2686
+ oauth_token?:
2687
+ string;
1959
2688
  /** Returns response with indentations and line breaks. */
1960
- prettyPrint?: boolean;
2689
+ prettyPrint?:
2690
+ boolean;
1961
2691
  /** 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;
2692
+ quotaUser?:
2693
+ string;
1963
2694
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1964
- upload_protocol?: string;
2695
+ upload_protocol?:
2696
+ string;
1965
2697
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1966
- uploadType?: string;
2698
+ uploadType?:
2699
+ string;
1967
2700
  }): Request<{}>;
1968
2701
  /** Gets the specified note. */
1969
2702
  get(request?: {
1970
2703
  /** V1 error format. */
1971
- "$.xgafv"?: string;
2704
+ "$.xgafv"?:
2705
+ string;
1972
2706
  /** OAuth access token. */
1973
- access_token?: string;
2707
+ access_token?:
2708
+ string;
1974
2709
  /** Data format for response. */
1975
- alt?: string;
2710
+ alt?:
2711
+ string;
1976
2712
  /** JSONP */
1977
- callback?: string;
2713
+ callback?:
2714
+ string;
1978
2715
  /** Selector specifying which fields to include in a partial response. */
1979
- fields?: string;
2716
+ fields?:
2717
+ string;
1980
2718
  /** 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. */
1981
- key?: string;
2719
+ key?:
2720
+ string;
1982
2721
  /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
1983
- name: string;
2722
+ name:
2723
+ string;
1984
2724
  /** OAuth 2.0 token for the current user. */
1985
- oauth_token?: string;
2725
+ oauth_token?:
2726
+ string;
1986
2727
  /** Returns response with indentations and line breaks. */
1987
- prettyPrint?: boolean;
2728
+ prettyPrint?:
2729
+ boolean;
1988
2730
  /** 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. */
1989
- quotaUser?: string;
2731
+ quotaUser?:
2732
+ string;
1990
2733
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1991
- upload_protocol?: string;
2734
+ upload_protocol?:
2735
+ string;
1992
2736
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1993
- uploadType?: string;
2737
+ uploadType?:
2738
+ string;
1994
2739
  }): Request<Note>;
1995
2740
  /**
1996
2741
  * Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if
@@ -1999,125 +2744,179 @@ declare namespace gapi.client {
1999
2744
  */
2000
2745
  getIamPolicy(request: {
2001
2746
  /** V1 error format. */
2002
- "$.xgafv"?: string;
2747
+ "$.xgafv"?:
2748
+ string;
2003
2749
  /** OAuth access token. */
2004
- access_token?: string;
2750
+ access_token?:
2751
+ string;
2005
2752
  /** Data format for response. */
2006
- alt?: string;
2753
+ alt?:
2754
+ string;
2007
2755
  /** JSONP */
2008
- callback?: string;
2756
+ callback?:
2757
+ string;
2009
2758
  /** Selector specifying which fields to include in a partial response. */
2010
- fields?: string;
2759
+ fields?:
2760
+ string;
2011
2761
  /** 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. */
2012
- key?: string;
2762
+ key?:
2763
+ string;
2013
2764
  /** OAuth 2.0 token for the current user. */
2014
- oauth_token?: string;
2765
+ oauth_token?:
2766
+ string;
2015
2767
  /** Returns response with indentations and line breaks. */
2016
- prettyPrint?: boolean;
2768
+ prettyPrint?:
2769
+ boolean;
2017
2770
  /** 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;
2771
+ quotaUser?:
2772
+ string;
2019
2773
  /**
2020
2774
  * 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
2021
2775
  * field.
2022
2776
  */
2023
- resource: string;
2777
+ resource:
2778
+ string;
2024
2779
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2025
- upload_protocol?: string;
2780
+ upload_protocol?:
2781
+ string;
2026
2782
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2027
- uploadType?: string;
2783
+ uploadType?:
2784
+ string;
2028
2785
  },
2029
2786
  body: GetIamPolicyRequest): Request<Policy>;
2030
2787
  /** Lists notes for the specified project. */
2031
2788
  list(request?: {
2032
2789
  /** V1 error format. */
2033
- "$.xgafv"?: string;
2790
+ "$.xgafv"?:
2791
+ string;
2034
2792
  /** OAuth access token. */
2035
- access_token?: string;
2793
+ access_token?:
2794
+ string;
2036
2795
  /** Data format for response. */
2037
- alt?: string;
2796
+ alt?:
2797
+ string;
2038
2798
  /** JSONP */
2039
- callback?: string;
2799
+ callback?:
2800
+ string;
2040
2801
  /** Selector specifying which fields to include in a partial response. */
2041
- fields?: string;
2802
+ fields?:
2803
+ string;
2042
2804
  /** The filter expression. */
2043
- filter?: string;
2805
+ filter?:
2806
+ string;
2044
2807
  /** 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. */
2045
- key?: string;
2808
+ key?:
2809
+ string;
2046
2810
  /** OAuth 2.0 token for the current user. */
2047
- oauth_token?: string;
2811
+ oauth_token?:
2812
+ string;
2048
2813
  /** 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. */
2049
- pageSize?: number;
2814
+ pageSize?:
2815
+ number;
2050
2816
  /** Token to provide to skip to a particular spot in the list. */
2051
- pageToken?: string;
2817
+ pageToken?:
2818
+ string;
2052
2819
  /** Required. The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. */
2053
- parent: string;
2820
+ parent:
2821
+ string;
2054
2822
  /** Returns response with indentations and line breaks. */
2055
- prettyPrint?: boolean;
2823
+ prettyPrint?:
2824
+ boolean;
2056
2825
  /** 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. */
2057
- quotaUser?: string;
2826
+ quotaUser?:
2827
+ string;
2058
2828
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2059
- upload_protocol?: string;
2829
+ upload_protocol?:
2830
+ string;
2060
2831
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2061
- uploadType?: string;
2832
+ uploadType?:
2833
+ string;
2062
2834
  }): Request<ListNotesResponse>;
2063
2835
  /** Updates the specified note. */
2064
2836
  patch(request: {
2065
2837
  /** V1 error format. */
2066
- "$.xgafv"?: string;
2838
+ "$.xgafv"?:
2839
+ string;
2067
2840
  /** OAuth access token. */
2068
- access_token?: string;
2841
+ access_token?:
2842
+ string;
2069
2843
  /** Data format for response. */
2070
- alt?: string;
2844
+ alt?:
2845
+ string;
2071
2846
  /** JSONP */
2072
- callback?: string;
2847
+ callback?:
2848
+ string;
2073
2849
  /** Selector specifying which fields to include in a partial response. */
2074
- fields?: string;
2850
+ fields?:
2851
+ string;
2075
2852
  /** 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. */
2076
- key?: string;
2853
+ key?:
2854
+ string;
2077
2855
  /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2078
- name: string;
2856
+ name:
2857
+ string;
2079
2858
  /** OAuth 2.0 token for the current user. */
2080
- oauth_token?: string;
2859
+ oauth_token?:
2860
+ string;
2081
2861
  /** Returns response with indentations and line breaks. */
2082
- prettyPrint?: boolean;
2862
+ prettyPrint?:
2863
+ boolean;
2083
2864
  /** 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. */
2084
- quotaUser?: string;
2865
+ quotaUser?:
2866
+ string;
2085
2867
  /** The fields to update. */
2086
- updateMask?: string;
2868
+ updateMask?:
2869
+ string;
2087
2870
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2088
- upload_protocol?: string;
2871
+ upload_protocol?:
2872
+ string;
2089
2873
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2090
- uploadType?: string;
2874
+ uploadType?:
2875
+ string;
2091
2876
  /** Request body */
2092
- resource: Note;
2877
+ resource:
2878
+ Note;
2093
2879
  }): Request<Note>;
2094
2880
  patch(request: {
2095
2881
  /** V1 error format. */
2096
- "$.xgafv"?: string;
2882
+ "$.xgafv"?:
2883
+ string;
2097
2884
  /** OAuth access token. */
2098
- access_token?: string;
2885
+ access_token?:
2886
+ string;
2099
2887
  /** Data format for response. */
2100
- alt?: string;
2888
+ alt?:
2889
+ string;
2101
2890
  /** JSONP */
2102
- callback?: string;
2891
+ callback?:
2892
+ string;
2103
2893
  /** Selector specifying which fields to include in a partial response. */
2104
- fields?: string;
2894
+ fields?:
2895
+ string;
2105
2896
  /** 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. */
2106
- key?: string;
2897
+ key?:
2898
+ string;
2107
2899
  /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2108
- name: string;
2900
+ name:
2901
+ string;
2109
2902
  /** OAuth 2.0 token for the current user. */
2110
- oauth_token?: string;
2903
+ oauth_token?:
2904
+ string;
2111
2905
  /** Returns response with indentations and line breaks. */
2112
- prettyPrint?: boolean;
2906
+ prettyPrint?:
2907
+ boolean;
2113
2908
  /** 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. */
2114
- quotaUser?: string;
2909
+ quotaUser?:
2910
+ string;
2115
2911
  /** The fields to update. */
2116
- updateMask?: string;
2912
+ updateMask?:
2913
+ string;
2117
2914
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2118
- upload_protocol?: string;
2915
+ upload_protocol?:
2916
+ string;
2119
2917
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2120
- uploadType?: string;
2918
+ uploadType?:
2919
+ string;
2121
2920
  },
2122
2921
  body: Note): Request<Note>;
2123
2922
  /**
@@ -2127,32 +2926,44 @@ declare namespace gapi.client {
2127
2926
  */
2128
2927
  setIamPolicy(request: {
2129
2928
  /** V1 error format. */
2130
- "$.xgafv"?: string;
2929
+ "$.xgafv"?:
2930
+ string;
2131
2931
  /** OAuth access token. */
2132
- access_token?: string;
2932
+ access_token?:
2933
+ string;
2133
2934
  /** Data format for response. */
2134
- alt?: string;
2935
+ alt?:
2936
+ string;
2135
2937
  /** JSONP */
2136
- callback?: string;
2938
+ callback?:
2939
+ string;
2137
2940
  /** Selector specifying which fields to include in a partial response. */
2138
- fields?: string;
2941
+ fields?:
2942
+ string;
2139
2943
  /** 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. */
2140
- key?: string;
2944
+ key?:
2945
+ string;
2141
2946
  /** OAuth 2.0 token for the current user. */
2142
- oauth_token?: string;
2947
+ oauth_token?:
2948
+ string;
2143
2949
  /** Returns response with indentations and line breaks. */
2144
- prettyPrint?: boolean;
2950
+ prettyPrint?:
2951
+ boolean;
2145
2952
  /** 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. */
2146
- quotaUser?: string;
2953
+ quotaUser?:
2954
+ string;
2147
2955
  /**
2148
2956
  * 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
2149
2957
  * field.
2150
2958
  */
2151
- resource: string;
2959
+ resource:
2960
+ string;
2152
2961
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2153
- upload_protocol?: string;
2962
+ upload_protocol?:
2963
+ string;
2154
2964
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2155
- uploadType?: string;
2965
+ uploadType?:
2966
+ string;
2156
2967
  },
2157
2968
  body: SetIamPolicyRequest): Request<Policy>;
2158
2969
  /**
@@ -2161,202 +2972,289 @@ declare namespace gapi.client {
2161
2972
  */
2162
2973
  testIamPermissions(request: {
2163
2974
  /** V1 error format. */
2164
- "$.xgafv"?: string;
2975
+ "$.xgafv"?:
2976
+ string;
2165
2977
  /** OAuth access token. */
2166
- access_token?: string;
2978
+ access_token?:
2979
+ string;
2167
2980
  /** Data format for response. */
2168
- alt?: string;
2981
+ alt?:
2982
+ string;
2169
2983
  /** JSONP */
2170
- callback?: string;
2984
+ callback?:
2985
+ string;
2171
2986
  /** Selector specifying which fields to include in a partial response. */
2172
- fields?: string;
2987
+ fields?:
2988
+ string;
2173
2989
  /** 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. */
2174
- key?: string;
2990
+ key?:
2991
+ string;
2175
2992
  /** OAuth 2.0 token for the current user. */
2176
- oauth_token?: string;
2993
+ oauth_token?:
2994
+ string;
2177
2995
  /** Returns response with indentations and line breaks. */
2178
- prettyPrint?: boolean;
2996
+ prettyPrint?:
2997
+ boolean;
2179
2998
  /** 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. */
2180
- quotaUser?: string;
2999
+ quotaUser?:
3000
+ string;
2181
3001
  /**
2182
3002
  * 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
2183
3003
  * this field.
2184
3004
  */
2185
- resource: string;
3005
+ resource:
3006
+ string;
2186
3007
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2187
- upload_protocol?: string;
3008
+ upload_protocol?:
3009
+ string;
2188
3010
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2189
- uploadType?: string;
3011
+ uploadType?:
3012
+ string;
2190
3013
  },
2191
3014
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2192
- occurrences: OccurrencesResource;
3015
+ occurrences:
3016
+ OccurrencesResource;
2193
3017
  }
2194
3018
  interface OccurrencesResource {
2195
3019
  /** Creates new occurrences in batch. */
2196
3020
  batchCreate(request: {
2197
3021
  /** V1 error format. */
2198
- "$.xgafv"?: string;
3022
+ "$.xgafv"?:
3023
+ string;
2199
3024
  /** OAuth access token. */
2200
- access_token?: string;
3025
+ access_token?:
3026
+ string;
2201
3027
  /** Data format for response. */
2202
- alt?: string;
3028
+ alt?:
3029
+ string;
2203
3030
  /** JSONP */
2204
- callback?: string;
3031
+ callback?:
3032
+ string;
2205
3033
  /** Selector specifying which fields to include in a partial response. */
2206
- fields?: string;
3034
+ fields?:
3035
+ string;
2207
3036
  /** 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. */
2208
- key?: string;
3037
+ key?:
3038
+ string;
2209
3039
  /** OAuth 2.0 token for the current user. */
2210
- oauth_token?: string;
3040
+ oauth_token?:
3041
+ string;
2211
3042
  /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
2212
- parent: string;
3043
+ parent:
3044
+ string;
2213
3045
  /** Returns response with indentations and line breaks. */
2214
- prettyPrint?: boolean;
3046
+ prettyPrint?:
3047
+ boolean;
2215
3048
  /** 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. */
2216
- quotaUser?: string;
3049
+ quotaUser?:
3050
+ string;
2217
3051
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2218
- upload_protocol?: string;
3052
+ upload_protocol?:
3053
+ string;
2219
3054
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2220
- uploadType?: string;
3055
+ uploadType?:
3056
+ string;
2221
3057
  /** Request body */
2222
- resource: BatchCreateOccurrencesRequest;
3058
+ resource:
3059
+ BatchCreateOccurrencesRequest;
2223
3060
  }): Request<BatchCreateOccurrencesResponse>;
2224
3061
  batchCreate(request: {
2225
3062
  /** V1 error format. */
2226
- "$.xgafv"?: string;
3063
+ "$.xgafv"?:
3064
+ string;
2227
3065
  /** OAuth access token. */
2228
- access_token?: string;
3066
+ access_token?:
3067
+ string;
2229
3068
  /** Data format for response. */
2230
- alt?: string;
3069
+ alt?:
3070
+ string;
2231
3071
  /** JSONP */
2232
- callback?: string;
3072
+ callback?:
3073
+ string;
2233
3074
  /** Selector specifying which fields to include in a partial response. */
2234
- fields?: string;
3075
+ fields?:
3076
+ string;
2235
3077
  /** 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. */
2236
- key?: string;
3078
+ key?:
3079
+ string;
2237
3080
  /** OAuth 2.0 token for the current user. */
2238
- oauth_token?: string;
3081
+ oauth_token?:
3082
+ string;
2239
3083
  /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
2240
- parent: string;
3084
+ parent:
3085
+ string;
2241
3086
  /** Returns response with indentations and line breaks. */
2242
- prettyPrint?: boolean;
3087
+ prettyPrint?:
3088
+ boolean;
2243
3089
  /** 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. */
2244
- quotaUser?: string;
3090
+ quotaUser?:
3091
+ string;
2245
3092
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2246
- upload_protocol?: string;
3093
+ upload_protocol?:
3094
+ string;
2247
3095
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2248
- uploadType?: string;
3096
+ uploadType?:
3097
+ string;
2249
3098
  },
2250
3099
  body: BatchCreateOccurrencesRequest): Request<BatchCreateOccurrencesResponse>;
2251
3100
  /** Creates a new occurrence. */
2252
3101
  create(request: {
2253
3102
  /** V1 error format. */
2254
- "$.xgafv"?: string;
3103
+ "$.xgafv"?:
3104
+ string;
2255
3105
  /** OAuth access token. */
2256
- access_token?: string;
3106
+ access_token?:
3107
+ string;
2257
3108
  /** Data format for response. */
2258
- alt?: string;
3109
+ alt?:
3110
+ string;
2259
3111
  /** JSONP */
2260
- callback?: string;
3112
+ callback?:
3113
+ string;
2261
3114
  /** Selector specifying which fields to include in a partial response. */
2262
- fields?: string;
3115
+ fields?:
3116
+ string;
2263
3117
  /** 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. */
2264
- key?: string;
3118
+ key?:
3119
+ string;
2265
3120
  /** OAuth 2.0 token for the current user. */
2266
- oauth_token?: string;
3121
+ oauth_token?:
3122
+ string;
2267
3123
  /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
2268
- parent: string;
3124
+ parent:
3125
+ string;
2269
3126
  /** Returns response with indentations and line breaks. */
2270
- prettyPrint?: boolean;
3127
+ prettyPrint?:
3128
+ boolean;
2271
3129
  /** 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. */
2272
- quotaUser?: string;
3130
+ quotaUser?:
3131
+ string;
2273
3132
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2274
- upload_protocol?: string;
3133
+ upload_protocol?:
3134
+ string;
2275
3135
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2276
- uploadType?: string;
3136
+ uploadType?:
3137
+ string;
2277
3138
  /** Request body */
2278
- resource: Occurrence;
3139
+ resource:
3140
+ Occurrence;
2279
3141
  }): Request<Occurrence>;
2280
3142
  create(request: {
2281
3143
  /** V1 error format. */
2282
- "$.xgafv"?: string;
3144
+ "$.xgafv"?:
3145
+ string;
2283
3146
  /** OAuth access token. */
2284
- access_token?: string;
3147
+ access_token?:
3148
+ string;
2285
3149
  /** Data format for response. */
2286
- alt?: string;
3150
+ alt?:
3151
+ string;
2287
3152
  /** JSONP */
2288
- callback?: string;
3153
+ callback?:
3154
+ string;
2289
3155
  /** Selector specifying which fields to include in a partial response. */
2290
- fields?: string;
3156
+ fields?:
3157
+ string;
2291
3158
  /** 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. */
2292
- key?: string;
3159
+ key?:
3160
+ string;
2293
3161
  /** OAuth 2.0 token for the current user. */
2294
- oauth_token?: string;
3162
+ oauth_token?:
3163
+ string;
2295
3164
  /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
2296
- parent: string;
3165
+ parent:
3166
+ string;
2297
3167
  /** Returns response with indentations and line breaks. */
2298
- prettyPrint?: boolean;
3168
+ prettyPrint?:
3169
+ boolean;
2299
3170
  /** 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. */
2300
- quotaUser?: string;
3171
+ quotaUser?:
3172
+ string;
2301
3173
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2302
- upload_protocol?: string;
3174
+ upload_protocol?:
3175
+ string;
2303
3176
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2304
- uploadType?: string;
3177
+ uploadType?:
3178
+ string;
2305
3179
  },
2306
3180
  body: Occurrence): Request<Occurrence>;
2307
3181
  /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
2308
3182
  delete(request?: {
2309
3183
  /** V1 error format. */
2310
- "$.xgafv"?: string;
3184
+ "$.xgafv"?:
3185
+ string;
2311
3186
  /** OAuth access token. */
2312
- access_token?: string;
3187
+ access_token?:
3188
+ string;
2313
3189
  /** Data format for response. */
2314
- alt?: string;
3190
+ alt?:
3191
+ string;
2315
3192
  /** JSONP */
2316
- callback?: string;
3193
+ callback?:
3194
+ string;
2317
3195
  /** Selector specifying which fields to include in a partial response. */
2318
- fields?: string;
3196
+ fields?:
3197
+ string;
2319
3198
  /** 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. */
2320
- key?: string;
3199
+ key?:
3200
+ string;
2321
3201
  /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2322
- name: string;
3202
+ name:
3203
+ string;
2323
3204
  /** OAuth 2.0 token for the current user. */
2324
- oauth_token?: string;
3205
+ oauth_token?:
3206
+ string;
2325
3207
  /** Returns response with indentations and line breaks. */
2326
- prettyPrint?: boolean;
3208
+ prettyPrint?:
3209
+ boolean;
2327
3210
  /** 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. */
2328
- quotaUser?: string;
3211
+ quotaUser?:
3212
+ string;
2329
3213
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2330
- upload_protocol?: string;
3214
+ upload_protocol?:
3215
+ string;
2331
3216
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2332
- uploadType?: string;
3217
+ uploadType?:
3218
+ string;
2333
3219
  }): Request<{}>;
2334
3220
  /** Gets the specified occurrence. */
2335
3221
  get(request?: {
2336
3222
  /** V1 error format. */
2337
- "$.xgafv"?: string;
3223
+ "$.xgafv"?:
3224
+ string;
2338
3225
  /** OAuth access token. */
2339
- access_token?: string;
3226
+ access_token?:
3227
+ string;
2340
3228
  /** Data format for response. */
2341
- alt?: string;
3229
+ alt?:
3230
+ string;
2342
3231
  /** JSONP */
2343
- callback?: string;
3232
+ callback?:
3233
+ string;
2344
3234
  /** Selector specifying which fields to include in a partial response. */
2345
- fields?: string;
3235
+ fields?:
3236
+ string;
2346
3237
  /** 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. */
2347
- key?: string;
3238
+ key?:
3239
+ string;
2348
3240
  /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2349
- name: string;
3241
+ name:
3242
+ string;
2350
3243
  /** OAuth 2.0 token for the current user. */
2351
- oauth_token?: string;
3244
+ oauth_token?:
3245
+ string;
2352
3246
  /** Returns response with indentations and line breaks. */
2353
- prettyPrint?: boolean;
3247
+ prettyPrint?:
3248
+ boolean;
2354
3249
  /** 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. */
2355
- quotaUser?: string;
3250
+ quotaUser?:
3251
+ string;
2356
3252
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2357
- upload_protocol?: string;
3253
+ upload_protocol?:
3254
+ string;
2358
3255
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2359
- uploadType?: string;
3256
+ uploadType?:
3257
+ string;
2360
3258
  }): Request<Occurrence>;
2361
3259
  /**
2362
3260
  * Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if
@@ -2365,181 +3263,260 @@ declare namespace gapi.client {
2365
3263
  */
2366
3264
  getIamPolicy(request: {
2367
3265
  /** V1 error format. */
2368
- "$.xgafv"?: string;
3266
+ "$.xgafv"?:
3267
+ string;
2369
3268
  /** OAuth access token. */
2370
- access_token?: string;
3269
+ access_token?:
3270
+ string;
2371
3271
  /** Data format for response. */
2372
- alt?: string;
3272
+ alt?:
3273
+ string;
2373
3274
  /** JSONP */
2374
- callback?: string;
3275
+ callback?:
3276
+ string;
2375
3277
  /** Selector specifying which fields to include in a partial response. */
2376
- fields?: string;
3278
+ fields?:
3279
+ string;
2377
3280
  /** 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. */
2378
- key?: string;
3281
+ key?:
3282
+ string;
2379
3283
  /** OAuth 2.0 token for the current user. */
2380
- oauth_token?: string;
3284
+ oauth_token?:
3285
+ string;
2381
3286
  /** Returns response with indentations and line breaks. */
2382
- prettyPrint?: boolean;
3287
+ prettyPrint?:
3288
+ boolean;
2383
3289
  /** 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. */
2384
- quotaUser?: string;
3290
+ quotaUser?:
3291
+ string;
2385
3292
  /**
2386
3293
  * 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
2387
3294
  * field.
2388
3295
  */
2389
- resource: string;
3296
+ resource:
3297
+ string;
2390
3298
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2391
- upload_protocol?: string;
3299
+ upload_protocol?:
3300
+ string;
2392
3301
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2393
- uploadType?: string;
3302
+ uploadType?:
3303
+ string;
2394
3304
  },
2395
3305
  body: GetIamPolicyRequest): Request<Policy>;
2396
3306
  /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
2397
3307
  getNotes(request?: {
2398
3308
  /** V1 error format. */
2399
- "$.xgafv"?: string;
3309
+ "$.xgafv"?:
3310
+ string;
2400
3311
  /** OAuth access token. */
2401
- access_token?: string;
3312
+ access_token?:
3313
+ string;
2402
3314
  /** Data format for response. */
2403
- alt?: string;
3315
+ alt?:
3316
+ string;
2404
3317
  /** JSONP */
2405
- callback?: string;
3318
+ callback?:
3319
+ string;
2406
3320
  /** Selector specifying which fields to include in a partial response. */
2407
- fields?: string;
3321
+ fields?:
3322
+ string;
2408
3323
  /** 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. */
2409
- key?: string;
3324
+ key?:
3325
+ string;
2410
3326
  /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2411
- name: string;
3327
+ name:
3328
+ string;
2412
3329
  /** OAuth 2.0 token for the current user. */
2413
- oauth_token?: string;
3330
+ oauth_token?:
3331
+ string;
2414
3332
  /** Returns response with indentations and line breaks. */
2415
- prettyPrint?: boolean;
3333
+ prettyPrint?:
3334
+ boolean;
2416
3335
  /** 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. */
2417
- quotaUser?: string;
3336
+ quotaUser?:
3337
+ string;
2418
3338
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2419
- upload_protocol?: string;
3339
+ upload_protocol?:
3340
+ string;
2420
3341
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2421
- uploadType?: string;
3342
+ uploadType?:
3343
+ string;
2422
3344
  }): Request<Note>;
2423
3345
  /** Gets a summary of the number and severity of occurrences. */
2424
3346
  getVulnerabilitySummary(request?: {
2425
3347
  /** V1 error format. */
2426
- "$.xgafv"?: string;
3348
+ "$.xgafv"?:
3349
+ string;
2427
3350
  /** OAuth access token. */
2428
- access_token?: string;
3351
+ access_token?:
3352
+ string;
2429
3353
  /** Data format for response. */
2430
- alt?: string;
3354
+ alt?:
3355
+ string;
2431
3356
  /** JSONP */
2432
- callback?: string;
3357
+ callback?:
3358
+ string;
2433
3359
  /** Selector specifying which fields to include in a partial response. */
2434
- fields?: string;
3360
+ fields?:
3361
+ string;
2435
3362
  /** The filter expression. */
2436
- filter?: string;
3363
+ filter?:
3364
+ string;
2437
3365
  /** 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. */
2438
- key?: string;
3366
+ key?:
3367
+ string;
2439
3368
  /** OAuth 2.0 token for the current user. */
2440
- oauth_token?: string;
3369
+ oauth_token?:
3370
+ string;
2441
3371
  /** Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. */
2442
- parent: string;
3372
+ parent:
3373
+ string;
2443
3374
  /** Returns response with indentations and line breaks. */
2444
- prettyPrint?: boolean;
3375
+ prettyPrint?:
3376
+ boolean;
2445
3377
  /** 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. */
2446
- quotaUser?: string;
3378
+ quotaUser?:
3379
+ string;
2447
3380
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2448
- upload_protocol?: string;
3381
+ upload_protocol?:
3382
+ string;
2449
3383
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2450
- uploadType?: string;
3384
+ uploadType?:
3385
+ string;
2451
3386
  }): Request<VulnerabilityOccurrencesSummary>;
2452
3387
  /** Lists occurrences for the specified project. */
2453
3388
  list(request?: {
2454
3389
  /** V1 error format. */
2455
- "$.xgafv"?: string;
3390
+ "$.xgafv"?:
3391
+ string;
2456
3392
  /** OAuth access token. */
2457
- access_token?: string;
3393
+ access_token?:
3394
+ string;
2458
3395
  /** Data format for response. */
2459
- alt?: string;
3396
+ alt?:
3397
+ string;
2460
3398
  /** JSONP */
2461
- callback?: string;
3399
+ callback?:
3400
+ string;
2462
3401
  /** Selector specifying which fields to include in a partial response. */
2463
- fields?: string;
3402
+ fields?:
3403
+ string;
2464
3404
  /** The filter expression. */
2465
- filter?: string;
3405
+ filter?:
3406
+ string;
2466
3407
  /** 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. */
2467
- key?: string;
3408
+ key?:
3409
+ string;
2468
3410
  /** OAuth 2.0 token for the current user. */
2469
- oauth_token?: string;
3411
+ oauth_token?:
3412
+ string;
2470
3413
  /** 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. */
2471
- pageSize?: number;
3414
+ pageSize?:
3415
+ number;
2472
3416
  /** Token to provide to skip to a particular spot in the list. */
2473
- pageToken?: string;
3417
+ pageToken?:
3418
+ string;
2474
3419
  /** Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. */
2475
- parent: string;
3420
+ parent:
3421
+ string;
2476
3422
  /** Returns response with indentations and line breaks. */
2477
- prettyPrint?: boolean;
3423
+ prettyPrint?:
3424
+ boolean;
2478
3425
  /** 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. */
2479
- quotaUser?: string;
3426
+ quotaUser?:
3427
+ string;
2480
3428
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2481
- upload_protocol?: string;
3429
+ upload_protocol?:
3430
+ string;
2482
3431
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2483
- uploadType?: string;
3432
+ uploadType?:
3433
+ string;
2484
3434
  }): Request<ListOccurrencesResponse>;
2485
3435
  /** Updates the specified occurrence. */
2486
3436
  patch(request: {
2487
3437
  /** V1 error format. */
2488
- "$.xgafv"?: string;
3438
+ "$.xgafv"?:
3439
+ string;
2489
3440
  /** OAuth access token. */
2490
- access_token?: string;
3441
+ access_token?:
3442
+ string;
2491
3443
  /** Data format for response. */
2492
- alt?: string;
3444
+ alt?:
3445
+ string;
2493
3446
  /** JSONP */
2494
- callback?: string;
3447
+ callback?:
3448
+ string;
2495
3449
  /** Selector specifying which fields to include in a partial response. */
2496
- fields?: string;
3450
+ fields?:
3451
+ string;
2497
3452
  /** 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. */
2498
- key?: string;
3453
+ key?:
3454
+ string;
2499
3455
  /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2500
- name: string;
3456
+ name:
3457
+ string;
2501
3458
  /** OAuth 2.0 token for the current user. */
2502
- oauth_token?: string;
3459
+ oauth_token?:
3460
+ string;
2503
3461
  /** Returns response with indentations and line breaks. */
2504
- prettyPrint?: boolean;
3462
+ prettyPrint?:
3463
+ boolean;
2505
3464
  /** 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. */
2506
- quotaUser?: string;
3465
+ quotaUser?:
3466
+ string;
2507
3467
  /** The fields to update. */
2508
- updateMask?: string;
3468
+ updateMask?:
3469
+ string;
2509
3470
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2510
- upload_protocol?: string;
3471
+ upload_protocol?:
3472
+ string;
2511
3473
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2512
- uploadType?: string;
3474
+ uploadType?:
3475
+ string;
2513
3476
  /** Request body */
2514
- resource: Occurrence;
3477
+ resource:
3478
+ Occurrence;
2515
3479
  }): Request<Occurrence>;
2516
3480
  patch(request: {
2517
3481
  /** V1 error format. */
2518
- "$.xgafv"?: string;
3482
+ "$.xgafv"?:
3483
+ string;
2519
3484
  /** OAuth access token. */
2520
- access_token?: string;
3485
+ access_token?:
3486
+ string;
2521
3487
  /** Data format for response. */
2522
- alt?: string;
3488
+ alt?:
3489
+ string;
2523
3490
  /** JSONP */
2524
- callback?: string;
3491
+ callback?:
3492
+ string;
2525
3493
  /** Selector specifying which fields to include in a partial response. */
2526
- fields?: string;
3494
+ fields?:
3495
+ string;
2527
3496
  /** 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. */
2528
- key?: string;
3497
+ key?:
3498
+ string;
2529
3499
  /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
2530
- name: string;
3500
+ name:
3501
+ string;
2531
3502
  /** OAuth 2.0 token for the current user. */
2532
- oauth_token?: string;
3503
+ oauth_token?:
3504
+ string;
2533
3505
  /** Returns response with indentations and line breaks. */
2534
- prettyPrint?: boolean;
3506
+ prettyPrint?:
3507
+ boolean;
2535
3508
  /** 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. */
2536
- quotaUser?: string;
3509
+ quotaUser?:
3510
+ string;
2537
3511
  /** The fields to update. */
2538
- updateMask?: string;
3512
+ updateMask?:
3513
+ string;
2539
3514
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2540
- upload_protocol?: string;
3515
+ upload_protocol?:
3516
+ string;
2541
3517
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2542
- uploadType?: string;
3518
+ uploadType?:
3519
+ string;
2543
3520
  },
2544
3521
  body: Occurrence): Request<Occurrence>;
2545
3522
  /**
@@ -2549,32 +3526,44 @@ declare namespace gapi.client {
2549
3526
  */
2550
3527
  setIamPolicy(request: {
2551
3528
  /** V1 error format. */
2552
- "$.xgafv"?: string;
3529
+ "$.xgafv"?:
3530
+ string;
2553
3531
  /** OAuth access token. */
2554
- access_token?: string;
3532
+ access_token?:
3533
+ string;
2555
3534
  /** Data format for response. */
2556
- alt?: string;
3535
+ alt?:
3536
+ string;
2557
3537
  /** JSONP */
2558
- callback?: string;
3538
+ callback?:
3539
+ string;
2559
3540
  /** Selector specifying which fields to include in a partial response. */
2560
- fields?: string;
3541
+ fields?:
3542
+ string;
2561
3543
  /** 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. */
2562
- key?: string;
3544
+ key?:
3545
+ string;
2563
3546
  /** OAuth 2.0 token for the current user. */
2564
- oauth_token?: string;
3547
+ oauth_token?:
3548
+ string;
2565
3549
  /** Returns response with indentations and line breaks. */
2566
- prettyPrint?: boolean;
3550
+ prettyPrint?:
3551
+ boolean;
2567
3552
  /** 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. */
2568
- quotaUser?: string;
3553
+ quotaUser?:
3554
+ string;
2569
3555
  /**
2570
3556
  * 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
2571
3557
  * field.
2572
3558
  */
2573
- resource: string;
3559
+ resource:
3560
+ string;
2574
3561
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2575
- upload_protocol?: string;
3562
+ upload_protocol?:
3563
+ string;
2576
3564
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2577
- uploadType?: string;
3565
+ uploadType?:
3566
+ string;
2578
3567
  },
2579
3568
  body: SetIamPolicyRequest): Request<Policy>;
2580
3569
  /**
@@ -2583,38 +3572,52 @@ declare namespace gapi.client {
2583
3572
  */
2584
3573
  testIamPermissions(request: {
2585
3574
  /** V1 error format. */
2586
- "$.xgafv"?: string;
3575
+ "$.xgafv"?:
3576
+ string;
2587
3577
  /** OAuth access token. */
2588
- access_token?: string;
3578
+ access_token?:
3579
+ string;
2589
3580
  /** Data format for response. */
2590
- alt?: string;
3581
+ alt?:
3582
+ string;
2591
3583
  /** JSONP */
2592
- callback?: string;
3584
+ callback?:
3585
+ string;
2593
3586
  /** Selector specifying which fields to include in a partial response. */
2594
- fields?: string;
3587
+ fields?:
3588
+ string;
2595
3589
  /** 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. */
2596
- key?: string;
3590
+ key?:
3591
+ string;
2597
3592
  /** OAuth 2.0 token for the current user. */
2598
- oauth_token?: string;
3593
+ oauth_token?:
3594
+ string;
2599
3595
  /** Returns response with indentations and line breaks. */
2600
- prettyPrint?: boolean;
3596
+ prettyPrint?:
3597
+ boolean;
2601
3598
  /** 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. */
2602
- quotaUser?: string;
3599
+ quotaUser?:
3600
+ string;
2603
3601
  /**
2604
3602
  * 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
2605
3603
  * this field.
2606
3604
  */
2607
- resource: string;
3605
+ resource:
3606
+ string;
2608
3607
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2609
- upload_protocol?: string;
3608
+ upload_protocol?:
3609
+ string;
2610
3610
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2611
- uploadType?: string;
3611
+ uploadType?:
3612
+ string;
2612
3613
  },
2613
3614
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2614
3615
  }
2615
3616
  interface ProjectsResource {
2616
- notes: NotesResource;
2617
- occurrences: OccurrencesResource;
3617
+ notes:
3618
+ NotesResource;
3619
+ occurrences:
3620
+ OccurrencesResource;
2618
3621
  }
2619
3622
 
2620
3623
  const projects: ProjectsResource;