@maxim_mazurok/gapi.client.containeranalysis-v1 0.0.20260313 → 0.1.20260521

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 +607 -181
  2. package/package.json +1 -1
  3. package/readme.md +17 -0
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: 20260313
12
+ // Revision: 20260521
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -28,9 +28,18 @@ declare namespace gapi.client {
28
28
  ): void;
29
29
 
30
30
  namespace containeranalysis {
31
+ interface AISkillAnalysisNote {}
32
+ interface AISkillAnalysisOccurrence {
33
+ /** Findings produced by the analysis. */
34
+ findings?: Finding[];
35
+ /** Maximum severity found among findings. */
36
+ maxSeverity?: string;
37
+ /** Name of the skill that produced this analysis. */
38
+ skillName?: string;
39
+ }
31
40
  interface AliasContext {
32
41
  /** The alias kind. */
33
- kind?: string;
42
+ kind?: 'KIND_UNSPECIFIED' | 'FIXED' | 'MOVABLE' | 'OTHER';
34
43
  /** The alias name. */
35
44
  name?: string;
36
45
  }
@@ -61,7 +70,12 @@ declare namespace gapi.client {
61
70
  /** A one sentence description of this Vex. */
62
71
  shortDescription?: string;
63
72
  /** Provides the state of this Vulnerability assessment. */
64
- state?: string;
73
+ state?:
74
+ | 'STATE_UNSPECIFIED'
75
+ | 'AFFECTED'
76
+ | 'NOT_AFFECTED'
77
+ | 'FIXED'
78
+ | 'UNDER_INVESTIGATION';
65
79
  /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
66
80
  vulnerabilityId?: string;
67
81
  }
@@ -200,7 +214,18 @@ declare namespace gapi.client {
200
214
  /** 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`. */
201
215
  secretEnv?: string[];
202
216
  /** 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. */
203
- status?: string;
217
+ status?:
218
+ | 'STATUS_UNKNOWN'
219
+ | 'PENDING'
220
+ | 'QUEUING'
221
+ | 'QUEUED'
222
+ | 'WORKING'
223
+ | 'SUCCESS'
224
+ | 'FAILURE'
225
+ | 'INTERNAL_ERROR'
226
+ | 'TIMEOUT'
227
+ | 'CANCELLED'
228
+ | 'EXPIRED';
204
229
  /** Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out. */
205
230
  timeout?: string;
206
231
  /** Output only. Stores timing information for executing this build step. */
@@ -222,7 +247,13 @@ declare namespace gapi.client {
222
247
  }
223
248
  interface CisBenchmark {
224
249
  profileLevel?: number;
225
- severity?: string;
250
+ severity?:
251
+ | 'SEVERITY_UNSPECIFIED'
252
+ | 'MINIMAL'
253
+ | 'LOW'
254
+ | 'MEDIUM'
255
+ | 'HIGH'
256
+ | 'CRITICAL';
226
257
  }
227
258
  interface CloudRepoSourceContext {
228
259
  /** An alias, which may be a branch or tag. */
@@ -297,11 +328,13 @@ declare namespace gapi.client {
297
328
  /** Optional. An optional comment for this manual approval result. */
298
329
  comment?: string;
299
330
  /** Required. The decision of this manual approval. */
300
- decision?: string;
331
+ decision?: 'DECISION_UNSPECIFIED' | 'APPROVED' | 'REJECTED';
301
332
  /** 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 case is a link to an external job that approved this Build. */
302
333
  url?: string;
303
334
  }
304
335
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts {
336
+ /** Optional. A list of generic artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. If any artifacts fail to be pushed, the build is marked FAILURE. */
337
+ genericArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact[];
305
338
  /** Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE. */
306
339
  goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule[];
307
340
  /** 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 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. */
@@ -325,6 +358,12 @@ declare namespace gapi.client {
325
358
  /** Output only. Stores timing information for pushing all artifact objects. */
326
359
  timing?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
327
360
  }
361
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGenericArtifact {
362
+ /** Required. Path to the generic artifact in the build's workspace to be uploaded to Artifact Registry. */
363
+ folder?: string;
364
+ /** Required. Registry path to upload the generic artifact to, in the form projects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/versions/$VERSION */
365
+ registryPath?: string;
366
+ }
328
367
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule {
329
368
  /** Optional. The Go module's "module path". e.g. example.com/foo/v2 */
330
369
  modulePath?: string;
@@ -421,7 +460,17 @@ declare namespace gapi.client {
421
460
  /** Output only. Time at which execution of the build was started. */
422
461
  startTime?: string;
423
462
  /** Output only. Status of the build. */
424
- status?: string;
463
+ status?:
464
+ | 'STATUS_UNKNOWN'
465
+ | 'PENDING'
466
+ | 'QUEUED'
467
+ | 'WORKING'
468
+ | 'SUCCESS'
469
+ | 'FAILURE'
470
+ | 'INTERNAL_ERROR'
471
+ | 'TIMEOUT'
472
+ | 'CANCELLED'
473
+ | 'EXPIRED';
425
474
  /** Output only. Customer-readable message about the current status. */
426
475
  statusDetail?: string;
427
476
  /** Required. The operations to be performed on the workspace. */
@@ -445,19 +494,34 @@ declare namespace gapi.client {
445
494
  /** Output only. Result of manual approval for this Build. */
446
495
  result?: ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult;
447
496
  /** Output only. The state of this build's approval. */
448
- state?: string;
497
+ state?:
498
+ | 'STATE_UNSPECIFIED'
499
+ | 'PENDING'
500
+ | 'APPROVED'
501
+ | 'REJECTED'
502
+ | 'CANCELLED';
449
503
  }
450
504
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo {
451
505
  /** Explains the failure issue in more detail using hard-coded text. */
452
506
  detail?: string;
453
507
  /** The name of the failure. */
454
- type?: string;
508
+ type?:
509
+ | 'FAILURE_TYPE_UNSPECIFIED'
510
+ | 'PUSH_FAILED'
511
+ | 'PUSH_IMAGE_NOT_FOUND'
512
+ | 'PUSH_NOT_AUTHORIZED'
513
+ | 'LOGGING_FAILURE'
514
+ | 'USER_BUILD_STEP'
515
+ | 'FETCH_SOURCE_FAILED';
455
516
  }
456
517
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions {
457
518
  /** Option to include built-in and custom substitutions as env variables for all build steps. */
458
519
  automapSubstitutions?: boolean;
459
520
  /** Optional. Option to specify how default logs buckets are setup. */
460
- defaultLogsBucketBehavior?: string;
521
+ defaultLogsBucketBehavior?:
522
+ | 'DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED'
523
+ | 'REGIONAL_USER_OWNED_BUCKET'
524
+ | 'LEGACY_BUCKET';
461
525
  /** 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 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 4000GB; builds that request more than the maximum are rejected with an error. */
462
526
  diskSizeGb?: string;
463
527
  /** 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 configuration file. */
@@ -467,23 +531,41 @@ declare namespace gapi.client {
467
531
  /** 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 use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". */
468
532
  env?: string[];
469
533
  /** Option to specify the logging mode, which determines if and where build logs are stored. */
470
- logging?: string;
534
+ logging?:
535
+ | 'LOGGING_UNSPECIFIED'
536
+ | 'LEGACY'
537
+ | 'GCS_ONLY'
538
+ | 'STACKDRIVER_ONLY'
539
+ | 'CLOUD_LOGGING_ONLY'
540
+ | 'NONE';
471
541
  /** Option to define build log streaming behavior to Cloud Storage. */
472
- logStreamingOption?: string;
542
+ logStreamingOption?: 'STREAM_DEFAULT' | 'STREAM_ON' | 'STREAM_OFF';
473
543
  /** Compute Engine machine type on which to run the build. */
474
- machineType?: string;
544
+ machineType?:
545
+ | 'UNSPECIFIED'
546
+ | 'N1_HIGHCPU_8'
547
+ | 'N1_HIGHCPU_32'
548
+ | 'E2_HIGHCPU_8'
549
+ | 'E2_HIGHCPU_32'
550
+ | 'E2_MEDIUM';
475
551
  /** 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 more information. */
476
552
  pool?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption;
477
553
  /** Optional. Option to specify the Pub/Sub topic to receive build status updates. */
478
554
  pubsubTopic?: string;
479
555
  /** Requested verifiability options. */
480
- requestedVerifyOption?: string;
556
+ requestedVerifyOption?: 'NOT_VERIFIED' | 'VERIFIED';
481
557
  /** 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 will be available to all build steps in this build. */
482
558
  secretEnv?: string[];
483
559
  /** Requested hash for SourceProvenance. */
484
- sourceProvenanceHash?: string[];
560
+ sourceProvenanceHash?:
561
+ | 'NONE'
562
+ | 'SHA256'
563
+ | 'MD5'
564
+ | 'GO_MODULE_H1'
565
+ | 'SHA512'
566
+ | 'DIRSUM_SHA256'[];
485
567
  /** 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 configuration file. */
486
- substitutionOption?: string;
568
+ substitutionOption?: 'MUST_MATCH' | 'ALLOW_LOOSE';
487
569
  /** 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 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 is indicative of a build request with an incorrect configuration. */
488
570
  volumes?: ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[];
489
571
  /** This field deprecated; please use `pool.name` instead. */
@@ -516,12 +598,24 @@ declare namespace gapi.client {
516
598
  name?: string;
517
599
  /** Output only. Stores timing information for pulling this build step's builder image only. */
518
600
  pullTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
601
+ /** Declaration of results for this build step. */
602
+ results?: ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult[];
519
603
  /** A shell script to be executed in the step. When script is provided, the user cannot specify the entrypoint or args. */
520
604
  script?: string;
521
605
  /** 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`. */
522
606
  secretEnv?: string[];
523
607
  /** 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. */
524
- status?: string;
608
+ status?:
609
+ | 'STATUS_UNKNOWN'
610
+ | 'PENDING'
611
+ | 'QUEUED'
612
+ | 'WORKING'
613
+ | 'SUCCESS'
614
+ | 'FAILURE'
615
+ | 'INTERNAL_ERROR'
616
+ | 'TIMEOUT'
617
+ | 'CANCELLED'
618
+ | 'EXPIRED';
525
619
  /** 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. */
526
620
  timeout?: string;
527
621
  /** Output only. Stores timing information for executing this build step. */
@@ -531,9 +625,13 @@ declare namespace gapi.client {
531
625
  /** 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, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully. */
532
626
  waitFor?: string[];
533
627
  }
628
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults {
629
+ /** Results for a build step. */
630
+ results?: {[P in string]: string};
631
+ }
534
632
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning {
535
633
  /** The priority for this warning. */
536
- priority?: string;
634
+ priority?: 'PRIORITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'ALERT';
537
635
  /** Explanation of the warning generated. */
538
636
  text?: string;
539
637
  }
@@ -545,7 +643,10 @@ declare namespace gapi.client {
545
643
  /** Name used to push the container image to Google Container Registry, as presented to `docker push`. */
546
644
  name?: string;
547
645
  /** Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will have an unspecified value. */
548
- ociMediaType?: string;
646
+ ociMediaType?:
647
+ | 'OCI_MEDIA_TYPE_UNSPECIFIED'
648
+ | 'IMAGE_MANIFEST'
649
+ | 'IMAGE_INDEX';
549
650
  /** Output only. Stores timing information for pushing the specified image. */
550
651
  pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
551
652
  }
@@ -560,9 +661,17 @@ declare namespace gapi.client {
560
661
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency {
561
662
  /** If set to true disable all dependency fetching (ignoring the default source as well). */
562
663
  empty?: boolean;
664
+ /** Represents a generic artifact as a build dependency. */
665
+ genericArtifact?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency;
563
666
  /** Represents a git repository as a build dependency. */
564
667
  gitSource?: ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency;
565
668
  }
669
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGenericArtifactDependency {
670
+ /** Required. Where the artifact files should be placed on the worker. */
671
+ destPath?: string;
672
+ /** Required. The location to download the artifact files from. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
673
+ resource?: string;
674
+ }
566
675
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency {
567
676
  /** Optional. How much history should be fetched for the build (default 1, -1 for all history). */
568
677
  depth?: string;
@@ -611,7 +720,13 @@ declare namespace gapi.client {
611
720
  }
612
721
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Hash {
613
722
  /** The type of hash that was performed. */
614
- type?: string;
723
+ type?:
724
+ | 'NONE'
725
+ | 'SHA256'
726
+ | 'MD5'
727
+ | 'GO_MODULE_H1'
728
+ | 'SHA512'
729
+ | 'DIRSUM_SHA256';
615
730
  /** The hash value. */
616
731
  value?: string;
617
732
  }
@@ -648,6 +763,12 @@ declare namespace gapi.client {
648
763
  buildStepImages?: string[];
649
764
  /** 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) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't be substituted. */
650
765
  buildStepOutputs?: string[];
766
+ /** Results for build steps. step_id -> */
767
+ buildStepResults?: {
768
+ [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStepResults;
769
+ };
770
+ /** Output only. Generic artifacts uploaded to Artifact Registry at the end of the build. */
771
+ genericArtifacts?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact[];
651
772
  /** Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. */
652
773
  goModules?: ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule[];
653
774
  /** Container images that were built as a part of the build. */
@@ -709,6 +830,14 @@ declare namespace gapi.client {
709
830
  /** A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview. */
710
831
  resolvedStorageSourceManifest?: ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest;
711
832
  }
833
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1StepResult {
834
+ /** Optional. The content of the attestation to be generated. */
835
+ attestationContent?: string;
836
+ /** Optional. The type of attestation to be generated. */
837
+ attestationType?: string;
838
+ /** Required. The name of the result. */
839
+ name?: string;
840
+ }
712
841
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource {
713
842
  /** Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
714
843
  bucket?: string;
@@ -717,7 +846,7 @@ declare namespace gapi.client {
717
846
  /** Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build. */
718
847
  object?: string;
719
848
  /** Optional. Option to specify the tool to fetch the source file for the build. */
720
- sourceFetcher?: string;
849
+ sourceFetcher?: 'SOURCE_FETCHER_UNSPECIFIED' | 'GSUTIL' | 'GCS_FETCHER';
721
850
  }
722
851
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest {
723
852
  /** Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
@@ -733,6 +862,20 @@ declare namespace gapi.client {
733
862
  /** Start of time span. */
734
863
  startTime?: string;
735
864
  }
865
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGenericArtifact {
866
+ /** Output only. The hash of the whole artifact. */
867
+ artifactFingerprint?: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
868
+ /** Output only. Path to the artifact in Artifact Registry. */
869
+ artifactRegistryPackage?: string;
870
+ /** Output only. The file hashes that make up the generic artifact. */
871
+ fileHashes?: {
872
+ [P in string]: ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes;
873
+ };
874
+ /** Output only. Stores timing information for pushing the specified artifact. */
875
+ pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
876
+ /** Output only. URI of the uploaded artifact. Ex: projects/p1/locations/us/repositories/r1/packages/p1/versions/v1 */
877
+ uri?: string;
878
+ }
736
879
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule {
737
880
  /** Output only. Path to the artifact in Artifact Registry. */
738
881
  artifactRegistryPackage?: string;
@@ -780,35 +923,163 @@ declare namespace gapi.client {
780
923
  path?: string;
781
924
  }
782
925
  interface CVSS {
783
- attackComplexity?: string;
784
- /** Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. */
785
- attackVector?: string;
786
- authentication?: string;
787
- availabilityImpact?: string;
926
+ /** Attack Complexity (AC). Defined in CVSS v2, v3, v4. */
927
+ attackComplexity?:
928
+ | 'ATTACK_COMPLEXITY_UNSPECIFIED'
929
+ | 'ATTACK_COMPLEXITY_LOW'
930
+ | 'ATTACK_COMPLEXITY_HIGH'
931
+ | 'ATTACK_COMPLEXITY_MEDIUM';
932
+ /** Attack Requirements (AT). Defined in CVSS v4. */
933
+ attackRequirements?:
934
+ | 'ATTACK_REQUIREMENTS_UNSPECIFIED'
935
+ | 'ATTACK_REQUIREMENTS_NONE'
936
+ | 'ATTACK_REQUIREMENTS_PRESENT';
937
+ /** Attack Vector (AV). Defined in CVSS v2, v3, v4. */
938
+ attackVector?:
939
+ | 'ATTACK_VECTOR_UNSPECIFIED'
940
+ | 'ATTACK_VECTOR_NETWORK'
941
+ | 'ATTACK_VECTOR_ADJACENT'
942
+ | 'ATTACK_VECTOR_LOCAL'
943
+ | 'ATTACK_VECTOR_PHYSICAL';
944
+ /** Authentication (Au). Defined in CVSS v2. */
945
+ authentication?:
946
+ | 'AUTHENTICATION_UNSPECIFIED'
947
+ | 'AUTHENTICATION_MULTIPLE'
948
+ | 'AUTHENTICATION_SINGLE'
949
+ | 'AUTHENTICATION_NONE';
950
+ /** Availability Impact (A). Defined in CVSS v2, v3. */
951
+ availabilityImpact?:
952
+ | 'IMPACT_UNSPECIFIED'
953
+ | 'IMPACT_HIGH'
954
+ | 'IMPACT_LOW'
955
+ | 'IMPACT_NONE'
956
+ | 'IMPACT_PARTIAL'
957
+ | 'IMPACT_COMPLETE';
788
958
  /** The base score is a function of the base metric scores. */
789
959
  baseScore?: number;
790
- confidentialityImpact?: string;
960
+ /** Confidentiality Impact (C). Defined in CVSS v2, v3. */
961
+ confidentialityImpact?:
962
+ | 'IMPACT_UNSPECIFIED'
963
+ | 'IMPACT_HIGH'
964
+ | 'IMPACT_LOW'
965
+ | 'IMPACT_NONE'
966
+ | 'IMPACT_PARTIAL'
967
+ | 'IMPACT_COMPLETE';
791
968
  exploitabilityScore?: number;
792
969
  impactScore?: number;
793
- integrityImpact?: string;
794
- privilegesRequired?: string;
795
- scope?: string;
796
- userInteraction?: string;
970
+ /** Integrity Impact (I). Defined in CVSS v2, v3. */
971
+ integrityImpact?:
972
+ | 'IMPACT_UNSPECIFIED'
973
+ | 'IMPACT_HIGH'
974
+ | 'IMPACT_LOW'
975
+ | 'IMPACT_NONE'
976
+ | 'IMPACT_PARTIAL'
977
+ | 'IMPACT_COMPLETE';
978
+ /** Privileges Required (PR). Defined in CVSS v3, v4. */
979
+ privilegesRequired?:
980
+ | 'PRIVILEGES_REQUIRED_UNSPECIFIED'
981
+ | 'PRIVILEGES_REQUIRED_NONE'
982
+ | 'PRIVILEGES_REQUIRED_LOW'
983
+ | 'PRIVILEGES_REQUIRED_HIGH';
984
+ /** Scope (S). Defined in CVSS v3. */
985
+ scope?: 'SCOPE_UNSPECIFIED' | 'SCOPE_UNCHANGED' | 'SCOPE_CHANGED';
986
+ /** Subsequent System Availability Impact (SA). Defined in CVSS v4. */
987
+ subsequentSystemAvailabilityImpact?:
988
+ | 'IMPACT_UNSPECIFIED'
989
+ | 'IMPACT_HIGH'
990
+ | 'IMPACT_LOW'
991
+ | 'IMPACT_NONE'
992
+ | 'IMPACT_PARTIAL'
993
+ | 'IMPACT_COMPLETE';
994
+ /** Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. */
995
+ subsequentSystemConfidentialityImpact?:
996
+ | 'IMPACT_UNSPECIFIED'
997
+ | 'IMPACT_HIGH'
998
+ | 'IMPACT_LOW'
999
+ | 'IMPACT_NONE'
1000
+ | 'IMPACT_PARTIAL'
1001
+ | 'IMPACT_COMPLETE';
1002
+ /** Subsequent System Integrity Impact (SI). Defined in CVSS v4. */
1003
+ subsequentSystemIntegrityImpact?:
1004
+ | 'IMPACT_UNSPECIFIED'
1005
+ | 'IMPACT_HIGH'
1006
+ | 'IMPACT_LOW'
1007
+ | 'IMPACT_NONE'
1008
+ | 'IMPACT_PARTIAL'
1009
+ | 'IMPACT_COMPLETE';
1010
+ /** User Interaction (UI). Defined in CVSS v3, v4. */
1011
+ userInteraction?:
1012
+ | 'USER_INTERACTION_UNSPECIFIED'
1013
+ | 'USER_INTERACTION_NONE'
1014
+ | 'USER_INTERACTION_REQUIRED'
1015
+ | 'USER_INTERACTION_PASSIVE'
1016
+ | 'USER_INTERACTION_ACTIVE';
1017
+ /** Vulnerable System Availability Impact (VA). Defined in CVSS v4. */
1018
+ vulnerableSystemAvailabilityImpact?:
1019
+ | 'IMPACT_UNSPECIFIED'
1020
+ | 'IMPACT_HIGH'
1021
+ | 'IMPACT_LOW'
1022
+ | 'IMPACT_NONE'
1023
+ | 'IMPACT_PARTIAL'
1024
+ | 'IMPACT_COMPLETE';
1025
+ /** Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. */
1026
+ vulnerableSystemConfidentialityImpact?:
1027
+ | 'IMPACT_UNSPECIFIED'
1028
+ | 'IMPACT_HIGH'
1029
+ | 'IMPACT_LOW'
1030
+ | 'IMPACT_NONE'
1031
+ | 'IMPACT_PARTIAL'
1032
+ | 'IMPACT_COMPLETE';
1033
+ /** Vulnerable System Integrity Impact (VI). Defined in CVSS v4. */
1034
+ vulnerableSystemIntegrityImpact?:
1035
+ | 'IMPACT_UNSPECIFIED'
1036
+ | 'IMPACT_HIGH'
1037
+ | 'IMPACT_LOW'
1038
+ | 'IMPACT_NONE'
1039
+ | 'IMPACT_PARTIAL'
1040
+ | 'IMPACT_COMPLETE';
797
1041
  }
798
1042
  interface CVSSv3 {
799
- attackComplexity?: string;
1043
+ attackComplexity?:
1044
+ | 'ATTACK_COMPLEXITY_UNSPECIFIED'
1045
+ | 'ATTACK_COMPLEXITY_LOW'
1046
+ | 'ATTACK_COMPLEXITY_HIGH';
800
1047
  /** Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. */
801
- attackVector?: string;
802
- availabilityImpact?: string;
1048
+ attackVector?:
1049
+ | 'ATTACK_VECTOR_UNSPECIFIED'
1050
+ | 'ATTACK_VECTOR_NETWORK'
1051
+ | 'ATTACK_VECTOR_ADJACENT'
1052
+ | 'ATTACK_VECTOR_LOCAL'
1053
+ | 'ATTACK_VECTOR_PHYSICAL';
1054
+ availabilityImpact?:
1055
+ | 'IMPACT_UNSPECIFIED'
1056
+ | 'IMPACT_HIGH'
1057
+ | 'IMPACT_LOW'
1058
+ | 'IMPACT_NONE';
803
1059
  /** The base score is a function of the base metric scores. */
804
1060
  baseScore?: number;
805
- confidentialityImpact?: string;
1061
+ confidentialityImpact?:
1062
+ | 'IMPACT_UNSPECIFIED'
1063
+ | 'IMPACT_HIGH'
1064
+ | 'IMPACT_LOW'
1065
+ | 'IMPACT_NONE';
806
1066
  exploitabilityScore?: number;
807
1067
  impactScore?: number;
808
- integrityImpact?: string;
809
- privilegesRequired?: string;
810
- scope?: string;
811
- userInteraction?: string;
1068
+ integrityImpact?:
1069
+ | 'IMPACT_UNSPECIFIED'
1070
+ | 'IMPACT_HIGH'
1071
+ | 'IMPACT_LOW'
1072
+ | 'IMPACT_NONE';
1073
+ privilegesRequired?:
1074
+ | 'PRIVILEGES_REQUIRED_UNSPECIFIED'
1075
+ | 'PRIVILEGES_REQUIRED_NONE'
1076
+ | 'PRIVILEGES_REQUIRED_LOW'
1077
+ | 'PRIVILEGES_REQUIRED_HIGH';
1078
+ scope?: 'SCOPE_UNSPECIFIED' | 'SCOPE_UNCHANGED' | 'SCOPE_CHANGED';
1079
+ userInteraction?:
1080
+ | 'USER_INTERACTION_UNSPECIFIED'
1081
+ | 'USER_INTERACTION_NONE'
1082
+ | 'USER_INTERACTION_REQUIRED';
812
1083
  }
813
1084
  interface DeploymentNote {
814
1085
  /** Required. Resource URI for the artifact being deployed. */
@@ -822,7 +1093,7 @@ declare namespace gapi.client {
822
1093
  /** Required. Beginning of the lifetime of this deployment. */
823
1094
  deployTime?: string;
824
1095
  /** Platform hosting this deployment. */
825
- platform?: string;
1096
+ platform?: 'PLATFORM_UNSPECIFIED' | 'GKE' | 'FLEX' | 'CUSTOM';
826
1097
  /** Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. */
827
1098
  resourceUri?: string[];
828
1099
  /** End of the lifetime of this deployment. */
@@ -868,20 +1139,45 @@ declare namespace gapi.client {
868
1139
  }
869
1140
  interface DiscoveryNote {
870
1141
  /** Required. Immutable. The kind of analysis that is handled by this discovery. */
871
- analysisKind?: string;
1142
+ analysisKind?:
1143
+ | 'NOTE_KIND_UNSPECIFIED'
1144
+ | 'VULNERABILITY'
1145
+ | 'BUILD'
1146
+ | 'IMAGE'
1147
+ | 'PACKAGE'
1148
+ | 'DEPLOYMENT'
1149
+ | 'DISCOVERY'
1150
+ | 'ATTESTATION'
1151
+ | 'UPGRADE'
1152
+ | 'COMPLIANCE'
1153
+ | 'DSSE_ATTESTATION'
1154
+ | 'VULNERABILITY_ASSESSMENT'
1155
+ | 'SBOM_REFERENCE'
1156
+ | 'SECRET'
1157
+ | 'AI_SKILL_ANALYSIS';
872
1158
  }
873
1159
  interface DiscoveryOccurrence {
874
1160
  analysisCompleted?: AnalysisCompleted;
875
1161
  /** Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors. */
876
1162
  analysisError?: Status[];
877
1163
  /** The status of discovery for the resource. */
878
- analysisStatus?: string;
1164
+ analysisStatus?:
1165
+ | 'ANALYSIS_STATUS_UNSPECIFIED'
1166
+ | 'PENDING'
1167
+ | 'SCANNING'
1168
+ | 'FINISHED_SUCCESS'
1169
+ | 'COMPLETE'
1170
+ | 'FINISHED_FAILED'
1171
+ | 'FINISHED_UNSUPPORTED';
879
1172
  /** 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. */
880
1173
  analysisStatusError?: Status;
881
1174
  /** Output only. The time occurrences related to this discovery occurrence were archived. */
882
1175
  archiveTime?: string;
883
1176
  /** Whether the resource is continuously analyzed. */
884
- continuousAnalysis?: string;
1177
+ continuousAnalysis?:
1178
+ | 'CONTINUOUS_ANALYSIS_UNSPECIFIED'
1179
+ | 'ACTIVE'
1180
+ | 'INACTIVE';
885
1181
  /** The CPE of the resource being scanned. */
886
1182
  cpe?: string;
887
1183
  /** Files that make up the resource described by the occurrence. */
@@ -895,7 +1191,7 @@ declare namespace gapi.client {
895
1191
  }
896
1192
  interface Distribution {
897
1193
  /** The CPU architecture for which packages in this distribution channel were built. */
898
- architecture?: string;
1194
+ architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
899
1195
  /** Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. */
900
1196
  cpeUri?: string;
901
1197
  /** The distribution channel-specific description of this package. */
@@ -962,6 +1258,22 @@ declare namespace gapi.client {
962
1258
  /** Required. Collection of file hashes. */
963
1259
  fileHash?: Hash[];
964
1260
  }
1261
+ interface Finding {
1262
+ /** Category of the finding. */
1263
+ category?: string;
1264
+ /** Location (path and line) where the finding was detected. */
1265
+ location?: FindingLocation;
1266
+ /** Scanner determines which engine (e.g. static, llm) emitted the finding. */
1267
+ scanner?: string;
1268
+ /** Severity of the finding. */
1269
+ severity?: string;
1270
+ }
1271
+ interface FindingLocation {
1272
+ /** Relative path of the file containing the finding. */
1273
+ filePath?: string;
1274
+ /** Line number (1-based), or 0 if whole File / unknown. */
1275
+ lineNumber?: string;
1276
+ }
965
1277
  interface Fingerprint {
966
1278
  /** Required. The layer ID of the final layer in the Docker image's v1 representation. */
967
1279
  v1Name?: string;
@@ -976,7 +1288,13 @@ declare namespace gapi.client {
976
1288
  /** The affected resource. */
977
1289
  resourceUri?: string;
978
1290
  /** The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. */
979
- severity?: string;
1291
+ severity?:
1292
+ | 'SEVERITY_UNSPECIFIED'
1293
+ | 'MINIMAL'
1294
+ | 'LOW'
1295
+ | 'MEDIUM'
1296
+ | 'HIGH'
1297
+ | 'CRITICAL';
980
1298
  /** The total number of vulnerabilities associated with this resource. */
981
1299
  totalCount?: string;
982
1300
  }
@@ -1109,7 +1427,13 @@ declare namespace gapi.client {
1109
1427
  /** Additional details on why this justification was chosen. */
1110
1428
  details?: string;
1111
1429
  /** The justification type for this vulnerability. */
1112
- justificationType?: string;
1430
+ justificationType?:
1431
+ | 'JUSTIFICATION_TYPE_UNSPECIFIED'
1432
+ | 'COMPONENT_NOT_PRESENT'
1433
+ | 'VULNERABLE_CODE_NOT_PRESENT'
1434
+ | 'VULNERABLE_CODE_NOT_IN_EXECUTE_PATH'
1435
+ | 'VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY'
1436
+ | 'INLINE_MITIGATIONS_ALREADY_EXIST';
1113
1437
  }
1114
1438
  interface Jwt {
1115
1439
  /** 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 */
@@ -1200,6 +1524,8 @@ declare namespace gapi.client {
1200
1524
  reason?: string;
1201
1525
  }
1202
1526
  interface Note {
1527
+ /** A note describing an AI skill analysis. */
1528
+ aiSkillAnalysis?: any;
1203
1529
  /** A note describing an attestation role. */
1204
1530
  attestation?: AttestationNote;
1205
1531
  /** A note describing build provenance for a verifiable build. */
@@ -1219,7 +1545,22 @@ declare namespace gapi.client {
1219
1545
  /** A note describing a base image. */
1220
1546
  image?: ImageNote;
1221
1547
  /** Output only. The type of analysis. This field can be used as a filter in list requests. */
1222
- kind?: string;
1548
+ kind?:
1549
+ | 'NOTE_KIND_UNSPECIFIED'
1550
+ | 'VULNERABILITY'
1551
+ | 'BUILD'
1552
+ | 'IMAGE'
1553
+ | 'PACKAGE'
1554
+ | 'DEPLOYMENT'
1555
+ | 'DISCOVERY'
1556
+ | 'ATTESTATION'
1557
+ | 'UPGRADE'
1558
+ | 'COMPLIANCE'
1559
+ | 'DSSE_ATTESTATION'
1560
+ | 'VULNERABILITY_ASSESSMENT'
1561
+ | 'SBOM_REFERENCE'
1562
+ | 'SECRET'
1563
+ | 'AI_SKILL_ANALYSIS';
1223
1564
  /** A detailed description of this note. */
1224
1565
  longDescription?: string;
1225
1566
  /** Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
@@ -1246,6 +1587,10 @@ declare namespace gapi.client {
1246
1587
  vulnerabilityAssessment?: VulnerabilityAssessmentNote;
1247
1588
  }
1248
1589
  interface Occurrence {
1590
+ /** The time this advisory was published by the source. */
1591
+ advisoryPublishTime?: string;
1592
+ /** Describes an AI skill analysis. */
1593
+ aiSkillAnalysis?: AISkillAnalysisOccurrence;
1249
1594
  /** Describes an attestation of an artifact. */
1250
1595
  attestation?: AttestationOccurrence;
1251
1596
  /** Describes a verifiable build. */
@@ -1265,7 +1610,22 @@ declare namespace gapi.client {
1265
1610
  /** Describes how this resource derives from the basis in the associated note. */
1266
1611
  image?: ImageOccurrence;
1267
1612
  /** Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. */
1268
- kind?: string;
1613
+ kind?:
1614
+ | 'NOTE_KIND_UNSPECIFIED'
1615
+ | 'VULNERABILITY'
1616
+ | 'BUILD'
1617
+ | 'IMAGE'
1618
+ | 'PACKAGE'
1619
+ | 'DEPLOYMENT'
1620
+ | 'DISCOVERY'
1621
+ | 'ATTESTATION'
1622
+ | 'UPGRADE'
1623
+ | 'COMPLIANCE'
1624
+ | 'DSSE_ATTESTATION'
1625
+ | 'VULNERABILITY_ASSESSMENT'
1626
+ | 'SBOM_REFERENCE'
1627
+ | 'SECRET'
1628
+ | 'AI_SKILL_ANALYSIS';
1269
1629
  /** Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
1270
1630
  name?: string;
1271
1631
  /** 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. */
@@ -1295,7 +1655,13 @@ declare namespace gapi.client {
1295
1655
  /** Required. The version of the package that is installed on the resource affected by this vulnerability. */
1296
1656
  affectedVersion?: Version;
1297
1657
  /** 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. */
1298
- effectiveSeverity?: string;
1658
+ effectiveSeverity?:
1659
+ | 'SEVERITY_UNSPECIFIED'
1660
+ | 'MINIMAL'
1661
+ | 'LOW'
1662
+ | 'MEDIUM'
1663
+ | 'HIGH'
1664
+ | 'CRITICAL';
1299
1665
  /** The location at which this package was found. */
1300
1666
  fileLocation?: GrafeasV1FileLocation[];
1301
1667
  /** Output only. Whether a fix is available for this package. */
@@ -1311,7 +1677,7 @@ declare namespace gapi.client {
1311
1677
  }
1312
1678
  interface PackageNote {
1313
1679
  /** The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1314
- architecture?: string;
1680
+ architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
1315
1681
  /** 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. */
1316
1682
  cpeUri?: string;
1317
1683
  /** The description of this package. */
@@ -1335,7 +1701,7 @@ declare namespace gapi.client {
1335
1701
  }
1336
1702
  interface PackageOccurrence {
1337
1703
  /** Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1338
- architecture?: string;
1704
+ architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
1339
1705
  /** 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 packages. */
1340
1706
  cpeUri?: string;
1341
1707
  /** Licenses that have been declared by the authors of the package. */
@@ -1386,13 +1752,13 @@ declare namespace gapi.client {
1386
1752
  }
1387
1753
  interface Recipe {
1388
1754
  /** 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 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 type, this is of form "Any". */
1389
- arguments?: Array<{[P in string]: any}>;
1755
+ arguments?: {[P in string]: any}[];
1390
1756
  /** 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 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. */
1391
1757
  definedInMaterial?: string;
1392
1758
  /** 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 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. */
1393
1759
  entryPoint?: string;
1394
1760
  /** 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 environment field can greatly vary in structure, depending on the builder and recipe type, this is of form "Any". */
1395
- environment?: Array<{[P in string]: any}>;
1761
+ environment?: {[P in string]: any}[];
1396
1762
  /** URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. */
1397
1763
  type?: string;
1398
1764
  }
@@ -1406,7 +1772,13 @@ declare namespace gapi.client {
1406
1772
  /** Contains a comprehensive human-readable discussion of the remediation. */
1407
1773
  details?: string;
1408
1774
  /** The type of remediation that can be applied. */
1409
- remediationType?: string;
1775
+ remediationType?:
1776
+ | 'REMEDIATION_TYPE_UNSPECIFIED'
1777
+ | 'MITIGATION'
1778
+ | 'NO_FIX_PLANNED'
1779
+ | 'NONE_AVAILABLE'
1780
+ | 'VENDOR_FIX'
1781
+ | 'WORKAROUND';
1410
1782
  /** Contains the URL where to obtain the remediation. */
1411
1783
  remediationUri?: RelatedUrl;
1412
1784
  }
@@ -1474,7 +1846,7 @@ declare namespace gapi.client {
1474
1846
  /** If there was an error generating an SBOM, this will indicate what that error was. */
1475
1847
  error?: string;
1476
1848
  /** The progress of the SBOM generation. */
1477
- sbomState?: string;
1849
+ sbomState?: 'SBOM_STATE_UNSPECIFIED' | 'PENDING' | 'COMPLETE';
1478
1850
  }
1479
1851
  interface SecretLocation {
1480
1852
  /** The secret is found from a file. */
@@ -1483,7 +1855,30 @@ declare namespace gapi.client {
1483
1855
  interface SecretNote {}
1484
1856
  interface SecretOccurrence {
1485
1857
  /** Required. Type of secret. */
1486
- kind?: string;
1858
+ kind?:
1859
+ | 'SECRET_KIND_UNSPECIFIED'
1860
+ | 'SECRET_KIND_UNKNOWN'
1861
+ | 'SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY'
1862
+ | 'SECRET_KIND_GCP_API_KEY'
1863
+ | 'SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS'
1864
+ | 'SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN'
1865
+ | 'SECRET_KIND_ANTHROPIC_ADMIN_API_KEY'
1866
+ | 'SECRET_KIND_ANTHROPIC_API_KEY'
1867
+ | 'SECRET_KIND_AZURE_ACCESS_TOKEN'
1868
+ | 'SECRET_KIND_AZURE_IDENTITY_TOKEN'
1869
+ | 'SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN'
1870
+ | 'SECRET_KIND_GITHUB_APP_REFRESH_TOKEN'
1871
+ | 'SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN'
1872
+ | 'SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN'
1873
+ | 'SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN'
1874
+ | 'SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN'
1875
+ | 'SECRET_KIND_GITHUB_OAUTH_TOKEN'
1876
+ | 'SECRET_KIND_HUGGINGFACE_API_KEY'
1877
+ | 'SECRET_KIND_OPENAI_API_KEY'
1878
+ | 'SECRET_KIND_PERPLEXITY_API_KEY'
1879
+ | 'SECRET_KIND_STRIPE_SECRET_KEY'
1880
+ | 'SECRET_KIND_STRIPE_RESTRICTED_KEY'
1881
+ | 'SECRET_KIND_STRIPE_WEBHOOK_SECRET';
1487
1882
  /** Optional. Locations where the secret is detected. */
1488
1883
  locations?: SecretLocation[];
1489
1884
  /** Optional. Status of the secret. */
@@ -1493,7 +1888,7 @@ declare namespace gapi.client {
1493
1888
  /** Optional. Optional message about the status code. */
1494
1889
  message?: string;
1495
1890
  /** Optional. The status of the secret. */
1496
- status?: string;
1891
+ status?: 'STATUS_UNSPECIFIED' | 'UNKNOWN' | 'VALID' | 'INVALID';
1497
1892
  /** Optional. The time the secret status was last updated. */
1498
1893
  updateTime?: string;
1499
1894
  }
@@ -1587,7 +1982,7 @@ declare namespace gapi.client {
1587
1982
  /** The status code, which should be an enum value of google.rpc.Code. */
1588
1983
  code?: number;
1589
1984
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
1590
- details?: Array<{[P in string]: any}>;
1985
+ details?: {[P in string]: any}[];
1591
1986
  /** 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 client. */
1592
1987
  message?: string;
1593
1988
  }
@@ -1653,7 +2048,7 @@ declare namespace gapi.client {
1653
2048
  /** 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 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 to true when the version is included in a range. */
1654
2049
  inclusive?: boolean;
1655
2050
  /** Required. Distinguishes between sentinel MIN/MAX versions and normal versions. */
1656
- kind?: string;
2051
+ kind?: 'VERSION_KIND_UNSPECIFIED' | 'NORMAL' | 'MINIMUM' | 'MAXIMUM';
1657
2052
  /** Required only when version kind is NORMAL. The main part of the version name. */
1658
2053
  name?: string;
1659
2054
  /** The iteration of the package build from the above version. */
@@ -1673,7 +2068,12 @@ declare namespace gapi.client {
1673
2068
  /** Specifies details on how to handle (and presumably, fix) a vulnerability. */
1674
2069
  remediations?: Remediation[];
1675
2070
  /** Provides the state of this Vulnerability assessment. */
1676
- state?: string;
2071
+ state?:
2072
+ | 'STATE_UNSPECIFIED'
2073
+ | 'AFFECTED'
2074
+ | 'NOT_AFFECTED'
2075
+ | 'FIXED'
2076
+ | 'UNDER_INVESTIGATION';
1677
2077
  /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
1678
2078
  vulnerabilityId?: string;
1679
2079
  }
@@ -1709,11 +2109,21 @@ declare namespace gapi.client {
1709
2109
  /** The full description of the CVSSv3 for this vulnerability. */
1710
2110
  cvssV3?: CVSSv3;
1711
2111
  /** CVSS version used to populate cvss_score and severity. */
1712
- cvssVersion?: string;
2112
+ cvssVersion?:
2113
+ | 'CVSS_VERSION_UNSPECIFIED'
2114
+ | 'CVSS_VERSION_2'
2115
+ | 'CVSS_VERSION_3'
2116
+ | 'CVSS_VERSION_4';
1713
2117
  /** Details of all known distros and packages affected by this vulnerability. */
1714
2118
  details?: Detail[];
1715
2119
  /** The note provider assigned severity of this vulnerability. */
1716
- severity?: string;
2120
+ severity?:
2121
+ | 'SEVERITY_UNSPECIFIED'
2122
+ | 'MINIMAL'
2123
+ | 'LOW'
2124
+ | 'MEDIUM'
2125
+ | 'HIGH'
2126
+ | 'CRITICAL';
1717
2127
  /** 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. */
1718
2128
  sourceUpdateTime?: string;
1719
2129
  /** 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 vulnerabilities really are a missing package, rather than a package being at an incorrect version. */
@@ -1727,9 +2137,19 @@ declare namespace gapi.client {
1727
2137
  /** The cvss v3 score for the vulnerability. */
1728
2138
  cvssv3?: CVSS;
1729
2139
  /** Output only. CVSS version used to populate cvss_score and severity. */
1730
- cvssVersion?: string;
2140
+ cvssVersion?:
2141
+ | 'CVSS_VERSION_UNSPECIFIED'
2142
+ | 'CVSS_VERSION_2'
2143
+ | 'CVSS_VERSION_3'
2144
+ | 'CVSS_VERSION_4';
1731
2145
  /** 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 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 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 be the highest severity for any of the PackageIssues. */
1732
- effectiveSeverity?: string;
2146
+ effectiveSeverity?:
2147
+ | 'SEVERITY_UNSPECIFIED'
2148
+ | 'MINIMAL'
2149
+ | 'LOW'
2150
+ | 'MEDIUM'
2151
+ | 'HIGH'
2152
+ | 'CRITICAL';
1733
2153
  /** Occurrence-specific extra details about the vulnerability. */
1734
2154
  extraDetails?: string;
1735
2155
  /** Output only. Whether at least one of the affected packages has a fix available. */
@@ -1743,7 +2163,13 @@ declare namespace gapi.client {
1743
2163
  /** Risk information about the vulnerability, such as CISA, EPSS, etc. */
1744
2164
  risk?: Risk;
1745
2165
  /** Output only. The note provider assigned severity of this vulnerability. */
1746
- severity?: string;
2166
+ severity?:
2167
+ | 'SEVERITY_UNSPECIFIED'
2168
+ | 'MINIMAL'
2169
+ | 'LOW'
2170
+ | 'MEDIUM'
2171
+ | 'HIGH'
2172
+ | 'CRITICAL';
1747
2173
  /** Output only. A one sentence description of this vulnerability. */
1748
2174
  shortDescription?: string;
1749
2175
  /** The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). */
@@ -1786,11 +2212,11 @@ declare namespace gapi.client {
1786
2212
  /** Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. */
1787
2213
  list(request?: {
1788
2214
  /** V1 error format. */
1789
- '$.xgafv'?: string;
2215
+ '$.xgafv'?: '1' | '2';
1790
2216
  /** OAuth access token. */
1791
2217
  access_token?: string;
1792
2218
  /** Data format for response. */
1793
- alt?: string;
2219
+ alt?: 'json' | 'media' | 'proto';
1794
2220
  /** JSONP */
1795
2221
  callback?: string;
1796
2222
  /** Selector specifying which fields to include in a partial response. */
@@ -1821,11 +2247,11 @@ declare namespace gapi.client {
1821
2247
  /** Creates new notes in batch. */
1822
2248
  batchCreate(request: {
1823
2249
  /** V1 error format. */
1824
- '$.xgafv'?: string;
2250
+ '$.xgafv'?: '1' | '2';
1825
2251
  /** OAuth access token. */
1826
2252
  access_token?: string;
1827
2253
  /** Data format for response. */
1828
- alt?: string;
2254
+ alt?: 'json' | 'media' | 'proto';
1829
2255
  /** JSONP */
1830
2256
  callback?: string;
1831
2257
  /** Selector specifying which fields to include in a partial response. */
@@ -1850,11 +2276,11 @@ declare namespace gapi.client {
1850
2276
  batchCreate(
1851
2277
  request: {
1852
2278
  /** V1 error format. */
1853
- '$.xgafv'?: string;
2279
+ '$.xgafv'?: '1' | '2';
1854
2280
  /** OAuth access token. */
1855
2281
  access_token?: string;
1856
2282
  /** Data format for response. */
1857
- alt?: string;
2283
+ alt?: 'json' | 'media' | 'proto';
1858
2284
  /** JSONP */
1859
2285
  callback?: string;
1860
2286
  /** Selector specifying which fields to include in a partial response. */
@@ -1879,11 +2305,11 @@ declare namespace gapi.client {
1879
2305
  /** Creates a new note. */
1880
2306
  create(request: {
1881
2307
  /** V1 error format. */
1882
- '$.xgafv'?: string;
2308
+ '$.xgafv'?: '1' | '2';
1883
2309
  /** OAuth access token. */
1884
2310
  access_token?: string;
1885
2311
  /** Data format for response. */
1886
- alt?: string;
2312
+ alt?: 'json' | 'media' | 'proto';
1887
2313
  /** JSONP */
1888
2314
  callback?: string;
1889
2315
  /** Selector specifying which fields to include in a partial response. */
@@ -1910,11 +2336,11 @@ declare namespace gapi.client {
1910
2336
  create(
1911
2337
  request: {
1912
2338
  /** V1 error format. */
1913
- '$.xgafv'?: string;
2339
+ '$.xgafv'?: '1' | '2';
1914
2340
  /** OAuth access token. */
1915
2341
  access_token?: string;
1916
2342
  /** Data format for response. */
1917
- alt?: string;
2343
+ alt?: 'json' | 'media' | 'proto';
1918
2344
  /** JSONP */
1919
2345
  callback?: string;
1920
2346
  /** Selector specifying which fields to include in a partial response. */
@@ -1941,11 +2367,11 @@ declare namespace gapi.client {
1941
2367
  /** Deletes the specified note. */
1942
2368
  delete(request?: {
1943
2369
  /** V1 error format. */
1944
- '$.xgafv'?: string;
2370
+ '$.xgafv'?: '1' | '2';
1945
2371
  /** OAuth access token. */
1946
2372
  access_token?: string;
1947
2373
  /** Data format for response. */
1948
- alt?: string;
2374
+ alt?: 'json' | 'media' | 'proto';
1949
2375
  /** JSONP */
1950
2376
  callback?: string;
1951
2377
  /** Selector specifying which fields to include in a partial response. */
@@ -1968,11 +2394,11 @@ declare namespace gapi.client {
1968
2394
  /** Gets the specified note. */
1969
2395
  get(request?: {
1970
2396
  /** V1 error format. */
1971
- '$.xgafv'?: string;
2397
+ '$.xgafv'?: '1' | '2';
1972
2398
  /** OAuth access token. */
1973
2399
  access_token?: string;
1974
2400
  /** Data format for response. */
1975
- alt?: string;
2401
+ alt?: 'json' | 'media' | 'proto';
1976
2402
  /** JSONP */
1977
2403
  callback?: string;
1978
2404
  /** Selector specifying which fields to include in a partial response. */
@@ -1996,11 +2422,11 @@ declare namespace gapi.client {
1996
2422
  getIamPolicy(
1997
2423
  request: {
1998
2424
  /** V1 error format. */
1999
- '$.xgafv'?: string;
2425
+ '$.xgafv'?: '1' | '2';
2000
2426
  /** OAuth access token. */
2001
2427
  access_token?: string;
2002
2428
  /** Data format for response. */
2003
- alt?: string;
2429
+ alt?: 'json' | 'media' | 'proto';
2004
2430
  /** JSONP */
2005
2431
  callback?: string;
2006
2432
  /** Selector specifying which fields to include in a partial response. */
@@ -2025,11 +2451,11 @@ declare namespace gapi.client {
2025
2451
  /** Lists notes for the specified project. */
2026
2452
  list(request?: {
2027
2453
  /** V1 error format. */
2028
- '$.xgafv'?: string;
2454
+ '$.xgafv'?: '1' | '2';
2029
2455
  /** OAuth access token. */
2030
2456
  access_token?: string;
2031
2457
  /** Data format for response. */
2032
- alt?: string;
2458
+ alt?: 'json' | 'media' | 'proto';
2033
2459
  /** JSONP */
2034
2460
  callback?: string;
2035
2461
  /** Selector specifying which fields to include in a partial response. */
@@ -2060,11 +2486,11 @@ declare namespace gapi.client {
2060
2486
  /** Updates the specified note. */
2061
2487
  patch(request: {
2062
2488
  /** V1 error format. */
2063
- '$.xgafv'?: string;
2489
+ '$.xgafv'?: '1' | '2';
2064
2490
  /** OAuth access token. */
2065
2491
  access_token?: string;
2066
2492
  /** Data format for response. */
2067
- alt?: string;
2493
+ alt?: 'json' | 'media' | 'proto';
2068
2494
  /** JSONP */
2069
2495
  callback?: string;
2070
2496
  /** Selector specifying which fields to include in a partial response. */
@@ -2091,11 +2517,11 @@ declare namespace gapi.client {
2091
2517
  patch(
2092
2518
  request: {
2093
2519
  /** V1 error format. */
2094
- '$.xgafv'?: string;
2520
+ '$.xgafv'?: '1' | '2';
2095
2521
  /** OAuth access token. */
2096
2522
  access_token?: string;
2097
2523
  /** Data format for response. */
2098
- alt?: string;
2524
+ alt?: 'json' | 'media' | 'proto';
2099
2525
  /** JSONP */
2100
2526
  callback?: string;
2101
2527
  /** Selector specifying which fields to include in a partial response. */
@@ -2123,11 +2549,11 @@ declare namespace gapi.client {
2123
2549
  setIamPolicy(
2124
2550
  request: {
2125
2551
  /** V1 error format. */
2126
- '$.xgafv'?: string;
2552
+ '$.xgafv'?: '1' | '2';
2127
2553
  /** OAuth access token. */
2128
2554
  access_token?: string;
2129
2555
  /** Data format for response. */
2130
- alt?: string;
2556
+ alt?: 'json' | 'media' | 'proto';
2131
2557
  /** JSONP */
2132
2558
  callback?: string;
2133
2559
  /** Selector specifying which fields to include in a partial response. */
@@ -2153,11 +2579,11 @@ declare namespace gapi.client {
2153
2579
  testIamPermissions(
2154
2580
  request: {
2155
2581
  /** V1 error format. */
2156
- '$.xgafv'?: string;
2582
+ '$.xgafv'?: '1' | '2';
2157
2583
  /** OAuth access token. */
2158
2584
  access_token?: string;
2159
2585
  /** Data format for response. */
2160
- alt?: string;
2586
+ alt?: 'json' | 'media' | 'proto';
2161
2587
  /** JSONP */
2162
2588
  callback?: string;
2163
2589
  /** Selector specifying which fields to include in a partial response. */
@@ -2185,11 +2611,11 @@ declare namespace gapi.client {
2185
2611
  /** Creates new occurrences in batch. */
2186
2612
  batchCreate(request: {
2187
2613
  /** V1 error format. */
2188
- '$.xgafv'?: string;
2614
+ '$.xgafv'?: '1' | '2';
2189
2615
  /** OAuth access token. */
2190
2616
  access_token?: string;
2191
2617
  /** Data format for response. */
2192
- alt?: string;
2618
+ alt?: 'json' | 'media' | 'proto';
2193
2619
  /** JSONP */
2194
2620
  callback?: string;
2195
2621
  /** Selector specifying which fields to include in a partial response. */
@@ -2214,11 +2640,11 @@ declare namespace gapi.client {
2214
2640
  batchCreate(
2215
2641
  request: {
2216
2642
  /** V1 error format. */
2217
- '$.xgafv'?: string;
2643
+ '$.xgafv'?: '1' | '2';
2218
2644
  /** OAuth access token. */
2219
2645
  access_token?: string;
2220
2646
  /** Data format for response. */
2221
- alt?: string;
2647
+ alt?: 'json' | 'media' | 'proto';
2222
2648
  /** JSONP */
2223
2649
  callback?: string;
2224
2650
  /** Selector specifying which fields to include in a partial response. */
@@ -2243,11 +2669,11 @@ declare namespace gapi.client {
2243
2669
  /** Creates a new occurrence. */
2244
2670
  create(request: {
2245
2671
  /** V1 error format. */
2246
- '$.xgafv'?: string;
2672
+ '$.xgafv'?: '1' | '2';
2247
2673
  /** OAuth access token. */
2248
2674
  access_token?: string;
2249
2675
  /** Data format for response. */
2250
- alt?: string;
2676
+ alt?: 'json' | 'media' | 'proto';
2251
2677
  /** JSONP */
2252
2678
  callback?: string;
2253
2679
  /** Selector specifying which fields to include in a partial response. */
@@ -2272,11 +2698,11 @@ declare namespace gapi.client {
2272
2698
  create(
2273
2699
  request: {
2274
2700
  /** V1 error format. */
2275
- '$.xgafv'?: string;
2701
+ '$.xgafv'?: '1' | '2';
2276
2702
  /** OAuth access token. */
2277
2703
  access_token?: string;
2278
2704
  /** Data format for response. */
2279
- alt?: string;
2705
+ alt?: 'json' | 'media' | 'proto';
2280
2706
  /** JSONP */
2281
2707
  callback?: string;
2282
2708
  /** Selector specifying which fields to include in a partial response. */
@@ -2301,11 +2727,11 @@ declare namespace gapi.client {
2301
2727
  /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
2302
2728
  delete(request?: {
2303
2729
  /** V1 error format. */
2304
- '$.xgafv'?: string;
2730
+ '$.xgafv'?: '1' | '2';
2305
2731
  /** OAuth access token. */
2306
2732
  access_token?: string;
2307
2733
  /** Data format for response. */
2308
- alt?: string;
2734
+ alt?: 'json' | 'media' | 'proto';
2309
2735
  /** JSONP */
2310
2736
  callback?: string;
2311
2737
  /** Selector specifying which fields to include in a partial response. */
@@ -2328,11 +2754,11 @@ declare namespace gapi.client {
2328
2754
  /** Gets the specified occurrence. */
2329
2755
  get(request?: {
2330
2756
  /** V1 error format. */
2331
- '$.xgafv'?: string;
2757
+ '$.xgafv'?: '1' | '2';
2332
2758
  /** OAuth access token. */
2333
2759
  access_token?: string;
2334
2760
  /** Data format for response. */
2335
- alt?: string;
2761
+ alt?: 'json' | 'media' | 'proto';
2336
2762
  /** JSONP */
2337
2763
  callback?: string;
2338
2764
  /** Selector specifying which fields to include in a partial response. */
@@ -2356,11 +2782,11 @@ declare namespace gapi.client {
2356
2782
  getIamPolicy(
2357
2783
  request: {
2358
2784
  /** V1 error format. */
2359
- '$.xgafv'?: string;
2785
+ '$.xgafv'?: '1' | '2';
2360
2786
  /** OAuth access token. */
2361
2787
  access_token?: string;
2362
2788
  /** Data format for response. */
2363
- alt?: string;
2789
+ alt?: 'json' | 'media' | 'proto';
2364
2790
  /** JSONP */
2365
2791
  callback?: string;
2366
2792
  /** Selector specifying which fields to include in a partial response. */
@@ -2385,11 +2811,11 @@ declare namespace gapi.client {
2385
2811
  /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
2386
2812
  getNotes(request?: {
2387
2813
  /** V1 error format. */
2388
- '$.xgafv'?: string;
2814
+ '$.xgafv'?: '1' | '2';
2389
2815
  /** OAuth access token. */
2390
2816
  access_token?: string;
2391
2817
  /** Data format for response. */
2392
- alt?: string;
2818
+ alt?: 'json' | 'media' | 'proto';
2393
2819
  /** JSONP */
2394
2820
  callback?: string;
2395
2821
  /** Selector specifying which fields to include in a partial response. */
@@ -2412,11 +2838,11 @@ declare namespace gapi.client {
2412
2838
  /** Gets a summary of the number and severity of occurrences. */
2413
2839
  getVulnerabilitySummary(request?: {
2414
2840
  /** V1 error format. */
2415
- '$.xgafv'?: string;
2841
+ '$.xgafv'?: '1' | '2';
2416
2842
  /** OAuth access token. */
2417
2843
  access_token?: string;
2418
2844
  /** Data format for response. */
2419
- alt?: string;
2845
+ alt?: 'json' | 'media' | 'proto';
2420
2846
  /** JSONP */
2421
2847
  callback?: string;
2422
2848
  /** Selector specifying which fields to include in a partial response. */
@@ -2443,11 +2869,11 @@ declare namespace gapi.client {
2443
2869
  /** Lists occurrences for the specified project. */
2444
2870
  list(request?: {
2445
2871
  /** V1 error format. */
2446
- '$.xgafv'?: string;
2872
+ '$.xgafv'?: '1' | '2';
2447
2873
  /** OAuth access token. */
2448
2874
  access_token?: string;
2449
2875
  /** Data format for response. */
2450
- alt?: string;
2876
+ alt?: 'json' | 'media' | 'proto';
2451
2877
  /** JSONP */
2452
2878
  callback?: string;
2453
2879
  /** Selector specifying which fields to include in a partial response. */
@@ -2478,11 +2904,11 @@ declare namespace gapi.client {
2478
2904
  /** Updates the specified occurrence. */
2479
2905
  patch(request: {
2480
2906
  /** V1 error format. */
2481
- '$.xgafv'?: string;
2907
+ '$.xgafv'?: '1' | '2';
2482
2908
  /** OAuth access token. */
2483
2909
  access_token?: string;
2484
2910
  /** Data format for response. */
2485
- alt?: string;
2911
+ alt?: 'json' | 'media' | 'proto';
2486
2912
  /** JSONP */
2487
2913
  callback?: string;
2488
2914
  /** Selector specifying which fields to include in a partial response. */
@@ -2509,11 +2935,11 @@ declare namespace gapi.client {
2509
2935
  patch(
2510
2936
  request: {
2511
2937
  /** V1 error format. */
2512
- '$.xgafv'?: string;
2938
+ '$.xgafv'?: '1' | '2';
2513
2939
  /** OAuth access token. */
2514
2940
  access_token?: string;
2515
2941
  /** Data format for response. */
2516
- alt?: string;
2942
+ alt?: 'json' | 'media' | 'proto';
2517
2943
  /** JSONP */
2518
2944
  callback?: string;
2519
2945
  /** Selector specifying which fields to include in a partial response. */
@@ -2541,11 +2967,11 @@ declare namespace gapi.client {
2541
2967
  setIamPolicy(
2542
2968
  request: {
2543
2969
  /** V1 error format. */
2544
- '$.xgafv'?: string;
2970
+ '$.xgafv'?: '1' | '2';
2545
2971
  /** OAuth access token. */
2546
2972
  access_token?: string;
2547
2973
  /** Data format for response. */
2548
- alt?: string;
2974
+ alt?: 'json' | 'media' | 'proto';
2549
2975
  /** JSONP */
2550
2976
  callback?: string;
2551
2977
  /** Selector specifying which fields to include in a partial response. */
@@ -2571,11 +2997,11 @@ declare namespace gapi.client {
2571
2997
  testIamPermissions(
2572
2998
  request: {
2573
2999
  /** V1 error format. */
2574
- '$.xgafv'?: string;
3000
+ '$.xgafv'?: '1' | '2';
2575
3001
  /** OAuth access token. */
2576
3002
  access_token?: string;
2577
3003
  /** Data format for response. */
2578
- alt?: string;
3004
+ alt?: 'json' | 'media' | 'proto';
2579
3005
  /** JSONP */
2580
3006
  callback?: string;
2581
3007
  /** Selector specifying which fields to include in a partial response. */
@@ -2602,11 +3028,11 @@ declare namespace gapi.client {
2602
3028
  /** Generates an SBOM for the given resource. */
2603
3029
  exportSBOM(request: {
2604
3030
  /** V1 error format. */
2605
- '$.xgafv'?: string;
3031
+ '$.xgafv'?: '1' | '2';
2606
3032
  /** OAuth access token. */
2607
3033
  access_token?: string;
2608
3034
  /** Data format for response. */
2609
- alt?: string;
3035
+ alt?: 'json' | 'media' | 'proto';
2610
3036
  /** JSONP */
2611
3037
  callback?: string;
2612
3038
  /** Selector specifying which fields to include in a partial response. */
@@ -2631,11 +3057,11 @@ declare namespace gapi.client {
2631
3057
  exportSBOM(
2632
3058
  request: {
2633
3059
  /** V1 error format. */
2634
- '$.xgafv'?: string;
3060
+ '$.xgafv'?: '1' | '2';
2635
3061
  /** OAuth access token. */
2636
3062
  access_token?: string;
2637
3063
  /** Data format for response. */
2638
- alt?: string;
3064
+ alt?: 'json' | 'media' | 'proto';
2639
3065
  /** JSONP */
2640
3066
  callback?: string;
2641
3067
  /** Selector specifying which fields to include in a partial response. */
@@ -2667,11 +3093,11 @@ declare namespace gapi.client {
2667
3093
  /** Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. */
2668
3094
  list(request?: {
2669
3095
  /** V1 error format. */
2670
- '$.xgafv'?: string;
3096
+ '$.xgafv'?: '1' | '2';
2671
3097
  /** OAuth access token. */
2672
3098
  access_token?: string;
2673
3099
  /** Data format for response. */
2674
- alt?: string;
3100
+ alt?: 'json' | 'media' | 'proto';
2675
3101
  /** JSONP */
2676
3102
  callback?: string;
2677
3103
  /** Selector specifying which fields to include in a partial response. */
@@ -2702,11 +3128,11 @@ declare namespace gapi.client {
2702
3128
  /** Creates new notes in batch. */
2703
3129
  batchCreate(request: {
2704
3130
  /** V1 error format. */
2705
- '$.xgafv'?: string;
3131
+ '$.xgafv'?: '1' | '2';
2706
3132
  /** OAuth access token. */
2707
3133
  access_token?: string;
2708
3134
  /** Data format for response. */
2709
- alt?: string;
3135
+ alt?: 'json' | 'media' | 'proto';
2710
3136
  /** JSONP */
2711
3137
  callback?: string;
2712
3138
  /** Selector specifying which fields to include in a partial response. */
@@ -2731,11 +3157,11 @@ declare namespace gapi.client {
2731
3157
  batchCreate(
2732
3158
  request: {
2733
3159
  /** V1 error format. */
2734
- '$.xgafv'?: string;
3160
+ '$.xgafv'?: '1' | '2';
2735
3161
  /** OAuth access token. */
2736
3162
  access_token?: string;
2737
3163
  /** Data format for response. */
2738
- alt?: string;
3164
+ alt?: 'json' | 'media' | 'proto';
2739
3165
  /** JSONP */
2740
3166
  callback?: string;
2741
3167
  /** Selector specifying which fields to include in a partial response. */
@@ -2760,11 +3186,11 @@ declare namespace gapi.client {
2760
3186
  /** Creates a new note. */
2761
3187
  create(request: {
2762
3188
  /** V1 error format. */
2763
- '$.xgafv'?: string;
3189
+ '$.xgafv'?: '1' | '2';
2764
3190
  /** OAuth access token. */
2765
3191
  access_token?: string;
2766
3192
  /** Data format for response. */
2767
- alt?: string;
3193
+ alt?: 'json' | 'media' | 'proto';
2768
3194
  /** JSONP */
2769
3195
  callback?: string;
2770
3196
  /** Selector specifying which fields to include in a partial response. */
@@ -2791,11 +3217,11 @@ declare namespace gapi.client {
2791
3217
  create(
2792
3218
  request: {
2793
3219
  /** V1 error format. */
2794
- '$.xgafv'?: string;
3220
+ '$.xgafv'?: '1' | '2';
2795
3221
  /** OAuth access token. */
2796
3222
  access_token?: string;
2797
3223
  /** Data format for response. */
2798
- alt?: string;
3224
+ alt?: 'json' | 'media' | 'proto';
2799
3225
  /** JSONP */
2800
3226
  callback?: string;
2801
3227
  /** Selector specifying which fields to include in a partial response. */
@@ -2822,11 +3248,11 @@ declare namespace gapi.client {
2822
3248
  /** Deletes the specified note. */
2823
3249
  delete(request?: {
2824
3250
  /** V1 error format. */
2825
- '$.xgafv'?: string;
3251
+ '$.xgafv'?: '1' | '2';
2826
3252
  /** OAuth access token. */
2827
3253
  access_token?: string;
2828
3254
  /** Data format for response. */
2829
- alt?: string;
3255
+ alt?: 'json' | 'media' | 'proto';
2830
3256
  /** JSONP */
2831
3257
  callback?: string;
2832
3258
  /** Selector specifying which fields to include in a partial response. */
@@ -2849,11 +3275,11 @@ declare namespace gapi.client {
2849
3275
  /** Gets the specified note. */
2850
3276
  get(request?: {
2851
3277
  /** V1 error format. */
2852
- '$.xgafv'?: string;
3278
+ '$.xgafv'?: '1' | '2';
2853
3279
  /** OAuth access token. */
2854
3280
  access_token?: string;
2855
3281
  /** Data format for response. */
2856
- alt?: string;
3282
+ alt?: 'json' | 'media' | 'proto';
2857
3283
  /** JSONP */
2858
3284
  callback?: string;
2859
3285
  /** Selector specifying which fields to include in a partial response. */
@@ -2877,11 +3303,11 @@ declare namespace gapi.client {
2877
3303
  getIamPolicy(
2878
3304
  request: {
2879
3305
  /** V1 error format. */
2880
- '$.xgafv'?: string;
3306
+ '$.xgafv'?: '1' | '2';
2881
3307
  /** OAuth access token. */
2882
3308
  access_token?: string;
2883
3309
  /** Data format for response. */
2884
- alt?: string;
3310
+ alt?: 'json' | 'media' | 'proto';
2885
3311
  /** JSONP */
2886
3312
  callback?: string;
2887
3313
  /** Selector specifying which fields to include in a partial response. */
@@ -2906,11 +3332,11 @@ declare namespace gapi.client {
2906
3332
  /** Lists notes for the specified project. */
2907
3333
  list(request?: {
2908
3334
  /** V1 error format. */
2909
- '$.xgafv'?: string;
3335
+ '$.xgafv'?: '1' | '2';
2910
3336
  /** OAuth access token. */
2911
3337
  access_token?: string;
2912
3338
  /** Data format for response. */
2913
- alt?: string;
3339
+ alt?: 'json' | 'media' | 'proto';
2914
3340
  /** JSONP */
2915
3341
  callback?: string;
2916
3342
  /** Selector specifying which fields to include in a partial response. */
@@ -2941,11 +3367,11 @@ declare namespace gapi.client {
2941
3367
  /** Updates the specified note. */
2942
3368
  patch(request: {
2943
3369
  /** V1 error format. */
2944
- '$.xgafv'?: string;
3370
+ '$.xgafv'?: '1' | '2';
2945
3371
  /** OAuth access token. */
2946
3372
  access_token?: string;
2947
3373
  /** Data format for response. */
2948
- alt?: string;
3374
+ alt?: 'json' | 'media' | 'proto';
2949
3375
  /** JSONP */
2950
3376
  callback?: string;
2951
3377
  /** Selector specifying which fields to include in a partial response. */
@@ -2972,11 +3398,11 @@ declare namespace gapi.client {
2972
3398
  patch(
2973
3399
  request: {
2974
3400
  /** V1 error format. */
2975
- '$.xgafv'?: string;
3401
+ '$.xgafv'?: '1' | '2';
2976
3402
  /** OAuth access token. */
2977
3403
  access_token?: string;
2978
3404
  /** Data format for response. */
2979
- alt?: string;
3405
+ alt?: 'json' | 'media' | 'proto';
2980
3406
  /** JSONP */
2981
3407
  callback?: string;
2982
3408
  /** Selector specifying which fields to include in a partial response. */
@@ -3004,11 +3430,11 @@ declare namespace gapi.client {
3004
3430
  setIamPolicy(
3005
3431
  request: {
3006
3432
  /** V1 error format. */
3007
- '$.xgafv'?: string;
3433
+ '$.xgafv'?: '1' | '2';
3008
3434
  /** OAuth access token. */
3009
3435
  access_token?: string;
3010
3436
  /** Data format for response. */
3011
- alt?: string;
3437
+ alt?: 'json' | 'media' | 'proto';
3012
3438
  /** JSONP */
3013
3439
  callback?: string;
3014
3440
  /** Selector specifying which fields to include in a partial response. */
@@ -3034,11 +3460,11 @@ declare namespace gapi.client {
3034
3460
  testIamPermissions(
3035
3461
  request: {
3036
3462
  /** V1 error format. */
3037
- '$.xgafv'?: string;
3463
+ '$.xgafv'?: '1' | '2';
3038
3464
  /** OAuth access token. */
3039
3465
  access_token?: string;
3040
3466
  /** Data format for response. */
3041
- alt?: string;
3467
+ alt?: 'json' | 'media' | 'proto';
3042
3468
  /** JSONP */
3043
3469
  callback?: string;
3044
3470
  /** Selector specifying which fields to include in a partial response. */
@@ -3066,11 +3492,11 @@ declare namespace gapi.client {
3066
3492
  /** Creates new occurrences in batch. */
3067
3493
  batchCreate(request: {
3068
3494
  /** V1 error format. */
3069
- '$.xgafv'?: string;
3495
+ '$.xgafv'?: '1' | '2';
3070
3496
  /** OAuth access token. */
3071
3497
  access_token?: string;
3072
3498
  /** Data format for response. */
3073
- alt?: string;
3499
+ alt?: 'json' | 'media' | 'proto';
3074
3500
  /** JSONP */
3075
3501
  callback?: string;
3076
3502
  /** Selector specifying which fields to include in a partial response. */
@@ -3095,11 +3521,11 @@ declare namespace gapi.client {
3095
3521
  batchCreate(
3096
3522
  request: {
3097
3523
  /** V1 error format. */
3098
- '$.xgafv'?: string;
3524
+ '$.xgafv'?: '1' | '2';
3099
3525
  /** OAuth access token. */
3100
3526
  access_token?: string;
3101
3527
  /** Data format for response. */
3102
- alt?: string;
3528
+ alt?: 'json' | 'media' | 'proto';
3103
3529
  /** JSONP */
3104
3530
  callback?: string;
3105
3531
  /** Selector specifying which fields to include in a partial response. */
@@ -3124,11 +3550,11 @@ declare namespace gapi.client {
3124
3550
  /** Creates a new occurrence. */
3125
3551
  create(request: {
3126
3552
  /** V1 error format. */
3127
- '$.xgafv'?: string;
3553
+ '$.xgafv'?: '1' | '2';
3128
3554
  /** OAuth access token. */
3129
3555
  access_token?: string;
3130
3556
  /** Data format for response. */
3131
- alt?: string;
3557
+ alt?: 'json' | 'media' | 'proto';
3132
3558
  /** JSONP */
3133
3559
  callback?: string;
3134
3560
  /** Selector specifying which fields to include in a partial response. */
@@ -3153,11 +3579,11 @@ declare namespace gapi.client {
3153
3579
  create(
3154
3580
  request: {
3155
3581
  /** V1 error format. */
3156
- '$.xgafv'?: string;
3582
+ '$.xgafv'?: '1' | '2';
3157
3583
  /** OAuth access token. */
3158
3584
  access_token?: string;
3159
3585
  /** Data format for response. */
3160
- alt?: string;
3586
+ alt?: 'json' | 'media' | 'proto';
3161
3587
  /** JSONP */
3162
3588
  callback?: string;
3163
3589
  /** Selector specifying which fields to include in a partial response. */
@@ -3182,11 +3608,11 @@ declare namespace gapi.client {
3182
3608
  /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
3183
3609
  delete(request?: {
3184
3610
  /** V1 error format. */
3185
- '$.xgafv'?: string;
3611
+ '$.xgafv'?: '1' | '2';
3186
3612
  /** OAuth access token. */
3187
3613
  access_token?: string;
3188
3614
  /** Data format for response. */
3189
- alt?: string;
3615
+ alt?: 'json' | 'media' | 'proto';
3190
3616
  /** JSONP */
3191
3617
  callback?: string;
3192
3618
  /** Selector specifying which fields to include in a partial response. */
@@ -3209,11 +3635,11 @@ declare namespace gapi.client {
3209
3635
  /** Gets the specified occurrence. */
3210
3636
  get(request?: {
3211
3637
  /** V1 error format. */
3212
- '$.xgafv'?: string;
3638
+ '$.xgafv'?: '1' | '2';
3213
3639
  /** OAuth access token. */
3214
3640
  access_token?: string;
3215
3641
  /** Data format for response. */
3216
- alt?: string;
3642
+ alt?: 'json' | 'media' | 'proto';
3217
3643
  /** JSONP */
3218
3644
  callback?: string;
3219
3645
  /** Selector specifying which fields to include in a partial response. */
@@ -3237,11 +3663,11 @@ declare namespace gapi.client {
3237
3663
  getIamPolicy(
3238
3664
  request: {
3239
3665
  /** V1 error format. */
3240
- '$.xgafv'?: string;
3666
+ '$.xgafv'?: '1' | '2';
3241
3667
  /** OAuth access token. */
3242
3668
  access_token?: string;
3243
3669
  /** Data format for response. */
3244
- alt?: string;
3670
+ alt?: 'json' | 'media' | 'proto';
3245
3671
  /** JSONP */
3246
3672
  callback?: string;
3247
3673
  /** Selector specifying which fields to include in a partial response. */
@@ -3266,11 +3692,11 @@ declare namespace gapi.client {
3266
3692
  /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
3267
3693
  getNotes(request?: {
3268
3694
  /** V1 error format. */
3269
- '$.xgafv'?: string;
3695
+ '$.xgafv'?: '1' | '2';
3270
3696
  /** OAuth access token. */
3271
3697
  access_token?: string;
3272
3698
  /** Data format for response. */
3273
- alt?: string;
3699
+ alt?: 'json' | 'media' | 'proto';
3274
3700
  /** JSONP */
3275
3701
  callback?: string;
3276
3702
  /** Selector specifying which fields to include in a partial response. */
@@ -3293,11 +3719,11 @@ declare namespace gapi.client {
3293
3719
  /** Gets a summary of the number and severity of occurrences. */
3294
3720
  getVulnerabilitySummary(request?: {
3295
3721
  /** V1 error format. */
3296
- '$.xgafv'?: string;
3722
+ '$.xgafv'?: '1' | '2';
3297
3723
  /** OAuth access token. */
3298
3724
  access_token?: string;
3299
3725
  /** Data format for response. */
3300
- alt?: string;
3726
+ alt?: 'json' | 'media' | 'proto';
3301
3727
  /** JSONP */
3302
3728
  callback?: string;
3303
3729
  /** Selector specifying which fields to include in a partial response. */
@@ -3324,11 +3750,11 @@ declare namespace gapi.client {
3324
3750
  /** Lists occurrences for the specified project. */
3325
3751
  list(request?: {
3326
3752
  /** V1 error format. */
3327
- '$.xgafv'?: string;
3753
+ '$.xgafv'?: '1' | '2';
3328
3754
  /** OAuth access token. */
3329
3755
  access_token?: string;
3330
3756
  /** Data format for response. */
3331
- alt?: string;
3757
+ alt?: 'json' | 'media' | 'proto';
3332
3758
  /** JSONP */
3333
3759
  callback?: string;
3334
3760
  /** Selector specifying which fields to include in a partial response. */
@@ -3359,11 +3785,11 @@ declare namespace gapi.client {
3359
3785
  /** Updates the specified occurrence. */
3360
3786
  patch(request: {
3361
3787
  /** V1 error format. */
3362
- '$.xgafv'?: string;
3788
+ '$.xgafv'?: '1' | '2';
3363
3789
  /** OAuth access token. */
3364
3790
  access_token?: string;
3365
3791
  /** Data format for response. */
3366
- alt?: string;
3792
+ alt?: 'json' | 'media' | 'proto';
3367
3793
  /** JSONP */
3368
3794
  callback?: string;
3369
3795
  /** Selector specifying which fields to include in a partial response. */
@@ -3390,11 +3816,11 @@ declare namespace gapi.client {
3390
3816
  patch(
3391
3817
  request: {
3392
3818
  /** V1 error format. */
3393
- '$.xgafv'?: string;
3819
+ '$.xgafv'?: '1' | '2';
3394
3820
  /** OAuth access token. */
3395
3821
  access_token?: string;
3396
3822
  /** Data format for response. */
3397
- alt?: string;
3823
+ alt?: 'json' | 'media' | 'proto';
3398
3824
  /** JSONP */
3399
3825
  callback?: string;
3400
3826
  /** Selector specifying which fields to include in a partial response. */
@@ -3422,11 +3848,11 @@ declare namespace gapi.client {
3422
3848
  setIamPolicy(
3423
3849
  request: {
3424
3850
  /** V1 error format. */
3425
- '$.xgafv'?: string;
3851
+ '$.xgafv'?: '1' | '2';
3426
3852
  /** OAuth access token. */
3427
3853
  access_token?: string;
3428
3854
  /** Data format for response. */
3429
- alt?: string;
3855
+ alt?: 'json' | 'media' | 'proto';
3430
3856
  /** JSONP */
3431
3857
  callback?: string;
3432
3858
  /** Selector specifying which fields to include in a partial response. */
@@ -3452,11 +3878,11 @@ declare namespace gapi.client {
3452
3878
  testIamPermissions(
3453
3879
  request: {
3454
3880
  /** V1 error format. */
3455
- '$.xgafv'?: string;
3881
+ '$.xgafv'?: '1' | '2';
3456
3882
  /** OAuth access token. */
3457
3883
  access_token?: string;
3458
3884
  /** Data format for response. */
3459
- alt?: string;
3885
+ alt?: 'json' | 'media' | 'proto';
3460
3886
  /** JSONP */
3461
3887
  callback?: string;
3462
3888
  /** Selector specifying which fields to include in a partial response. */
@@ -3483,11 +3909,11 @@ declare namespace gapi.client {
3483
3909
  /** Generates an SBOM for the given resource. */
3484
3910
  exportSBOM(request: {
3485
3911
  /** V1 error format. */
3486
- '$.xgafv'?: string;
3912
+ '$.xgafv'?: '1' | '2';
3487
3913
  /** OAuth access token. */
3488
3914
  access_token?: string;
3489
3915
  /** Data format for response. */
3490
- alt?: string;
3916
+ alt?: 'json' | 'media' | 'proto';
3491
3917
  /** JSONP */
3492
3918
  callback?: string;
3493
3919
  /** Selector specifying which fields to include in a partial response. */
@@ -3512,11 +3938,11 @@ declare namespace gapi.client {
3512
3938
  exportSBOM(
3513
3939
  request: {
3514
3940
  /** V1 error format. */
3515
- '$.xgafv'?: string;
3941
+ '$.xgafv'?: '1' | '2';
3516
3942
  /** OAuth access token. */
3517
3943
  access_token?: string;
3518
3944
  /** Data format for response. */
3519
- alt?: string;
3945
+ alt?: 'json' | 'media' | 'proto';
3520
3946
  /** JSONP */
3521
3947
  callback?: string;
3522
3948
  /** Selector specifying which fields to include in a partial response. */