@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 0.1.20260305 → 0.2.20260313

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 (2) hide show
  1. package/index.d.ts +567 -147
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://containeranalysis.googleapis.com/$discovery/rest?version=v1alpha1
12
- // Revision: 20260305
12
+ // Revision: 20260313
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -58,7 +58,12 @@ declare namespace gapi.client {
58
58
  /** A one sentence description of this Vex. */
59
59
  shortDescription?: string;
60
60
  /** Provides the state of this Vulnerability assessment. */
61
- state?: string;
61
+ state?:
62
+ | 'STATE_UNSPECIFIED'
63
+ | 'AFFECTED'
64
+ | 'NOT_AFFECTED'
65
+ | 'FIXED'
66
+ | 'UNDER_INVESTIGATION';
62
67
  /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
63
68
  vulnerabilityId?: string;
64
69
  }
@@ -154,7 +159,7 @@ declare namespace gapi.client {
154
159
  /** An Id for the key used to sign. This could be either an Id for the key stored in `public_key` (such as the Id or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service). */
155
160
  keyId?: string;
156
161
  /** The type of the key, either stored in `public_key` or referenced in `key_id` */
157
- keyType?: string;
162
+ keyType?: 'KEY_TYPE_UNSPECIFIED' | 'PGP_ASCII_ARMORED' | 'PKIX_PEM';
158
163
  /** Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin` */
159
164
  publicKey?: string;
160
165
  /** Signature of the related `BuildProvenance`, encoded in a base64 string. */
@@ -191,7 +196,18 @@ declare namespace gapi.client {
191
196
  /** 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`. */
192
197
  secretEnv?: string[];
193
198
  /** 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. */
194
- status?: string;
199
+ status?:
200
+ | 'STATUS_UNKNOWN'
201
+ | 'PENDING'
202
+ | 'QUEUING'
203
+ | 'QUEUED'
204
+ | 'WORKING'
205
+ | 'SUCCESS'
206
+ | 'FAILURE'
207
+ | 'INTERNAL_ERROR'
208
+ | 'TIMEOUT'
209
+ | 'CANCELLED'
210
+ | 'EXPIRED';
195
211
  /** 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. */
196
212
  timeout?: string;
197
213
  /** Output only. Stores timing information for executing this build step. */
@@ -215,7 +231,13 @@ declare namespace gapi.client {
215
231
  /** The profile level of this CIS benchmark check. */
216
232
  profileLevel?: number;
217
233
  /** The severity level of this CIS benchmark check. */
218
- severity?: string;
234
+ severity?:
235
+ | 'SEVERITY_UNSPECIFIED'
236
+ | 'MINIMAL'
237
+ | 'LOW'
238
+ | 'MEDIUM'
239
+ | 'HIGH'
240
+ | 'CRITICAL';
219
241
  }
220
242
  interface Command {
221
243
  /** Command-line arguments used when executing this Command. */
@@ -285,7 +307,7 @@ declare namespace gapi.client {
285
307
  /** Optional. An optional comment for this manual approval result. */
286
308
  comment?: string;
287
309
  /** Required. The decision of this manual approval. */
288
- decision?: string;
310
+ decision?: 'DECISION_UNSPECIFIED' | 'APPROVED' | 'REJECTED';
289
311
  /** 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. */
290
312
  url?: string;
291
313
  }
@@ -300,6 +322,8 @@ declare namespace gapi.client {
300
322
  npmPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsNpmPackage[];
301
323
  /** 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 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 field. If any objects fail to be pushed, the build is marked FAILURE. */
302
324
  objects?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsArtifactObjects;
325
+ /** Optional. A list of OCI images to be uploaded to Artifact Registry upon successful completion of all build steps. OCI images in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any images fail to be pushed, the build is marked FAILURE. */
326
+ oci?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci[];
303
327
  /** 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 upload. If any objects fail to be pushed, the build is marked FAILURE. */
304
328
  pythonPackages?: ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage[];
305
329
  }
@@ -345,6 +369,14 @@ declare namespace gapi.client {
345
369
  /** 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 Registry with this location as a prefix. */
346
370
  repository?: string;
347
371
  }
372
+ interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsOci {
373
+ /** Required. Path on the local file system where to find the container to upload. e.g. /workspace/my-image.tar */
374
+ file?: string;
375
+ /** Required. Registry path to upload the container to. e.g. us-east1-docker.pkg.dev/my-project/my-repo/my-image */
376
+ registryPath?: string;
377
+ /** Optional. Tags to apply to the uploaded image. e.g. latest, 1.0.0 */
378
+ tags?: string[];
379
+ }
348
380
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsPythonPackage {
349
381
  /** Path globs used to match files in the build's workspace. For Python/ Twine, this is usually `dist/*`, and sometimes additionally an `.asc` file. */
350
382
  paths?: string[];
@@ -399,7 +431,17 @@ declare namespace gapi.client {
399
431
  /** Output only. Time at which execution of the build was started. */
400
432
  startTime?: string;
401
433
  /** Output only. Status of the build. */
402
- status?: string;
434
+ status?:
435
+ | 'STATUS_UNKNOWN'
436
+ | 'PENDING'
437
+ | 'QUEUED'
438
+ | 'WORKING'
439
+ | 'SUCCESS'
440
+ | 'FAILURE'
441
+ | 'INTERNAL_ERROR'
442
+ | 'TIMEOUT'
443
+ | 'CANCELLED'
444
+ | 'EXPIRED';
403
445
  /** Output only. Customer-readable message about the current status. */
404
446
  statusDetail?: string;
405
447
  /** Required. The operations to be performed on the workspace. */
@@ -423,19 +465,34 @@ declare namespace gapi.client {
423
465
  /** Output only. Result of manual approval for this Build. */
424
466
  result?: ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult;
425
467
  /** Output only. The state of this build's approval. */
426
- state?: string;
468
+ state?:
469
+ | 'STATE_UNSPECIFIED'
470
+ | 'PENDING'
471
+ | 'APPROVED'
472
+ | 'REJECTED'
473
+ | 'CANCELLED';
427
474
  }
428
475
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo {
429
476
  /** Explains the failure issue in more detail using hard-coded text. */
430
477
  detail?: string;
431
478
  /** The name of the failure. */
432
- type?: string;
479
+ type?:
480
+ | 'FAILURE_TYPE_UNSPECIFIED'
481
+ | 'PUSH_FAILED'
482
+ | 'PUSH_IMAGE_NOT_FOUND'
483
+ | 'PUSH_NOT_AUTHORIZED'
484
+ | 'LOGGING_FAILURE'
485
+ | 'USER_BUILD_STEP'
486
+ | 'FETCH_SOURCE_FAILED';
433
487
  }
434
488
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions {
435
489
  /** Option to include built-in and custom substitutions as env variables for all build steps. */
436
490
  automapSubstitutions?: boolean;
437
491
  /** Optional. Option to specify how default logs buckets are setup. */
438
- defaultLogsBucketBehavior?: string;
492
+ defaultLogsBucketBehavior?:
493
+ | 'DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED'
494
+ | 'REGIONAL_USER_OWNED_BUCKET'
495
+ | 'LEGACY_BUCKET';
439
496
  /** 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. */
440
497
  diskSizeGb?: string;
441
498
  /** 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. */
@@ -445,23 +502,41 @@ declare namespace gapi.client {
445
502
  /** 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". */
446
503
  env?: string[];
447
504
  /** Option to specify the logging mode, which determines if and where build logs are stored. */
448
- logging?: string;
505
+ logging?:
506
+ | 'LOGGING_UNSPECIFIED'
507
+ | 'LEGACY'
508
+ | 'GCS_ONLY'
509
+ | 'STACKDRIVER_ONLY'
510
+ | 'CLOUD_LOGGING_ONLY'
511
+ | 'NONE';
449
512
  /** Option to define build log streaming behavior to Cloud Storage. */
450
- logStreamingOption?: string;
513
+ logStreamingOption?: 'STREAM_DEFAULT' | 'STREAM_ON' | 'STREAM_OFF';
451
514
  /** Compute Engine machine type on which to run the build. */
452
- machineType?: string;
515
+ machineType?:
516
+ | 'UNSPECIFIED'
517
+ | 'N1_HIGHCPU_8'
518
+ | 'N1_HIGHCPU_32'
519
+ | 'E2_HIGHCPU_8'
520
+ | 'E2_HIGHCPU_32'
521
+ | 'E2_MEDIUM';
453
522
  /** 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. */
454
523
  pool?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption;
455
524
  /** Optional. Option to specify the Pub/Sub topic to receive build status updates. */
456
525
  pubsubTopic?: string;
457
526
  /** Requested verifiability options. */
458
- requestedVerifyOption?: string;
527
+ requestedVerifyOption?: 'NOT_VERIFIED' | 'VERIFIED';
459
528
  /** 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. */
460
529
  secretEnv?: string[];
461
530
  /** Requested hash for SourceProvenance. */
462
- sourceProvenanceHash?: string[];
531
+ sourceProvenanceHash?:
532
+ | 'NONE'
533
+ | 'SHA256'
534
+ | 'MD5'
535
+ | 'GO_MODULE_H1'
536
+ | 'SHA512'
537
+ | 'DIRSUM_SHA256'[];
463
538
  /** 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. */
464
- substitutionOption?: string;
539
+ substitutionOption?: 'MUST_MATCH' | 'ALLOW_LOOSE';
465
540
  /** 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. */
466
541
  volumes?: ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[];
467
542
  /** This field deprecated; please use `pool.name` instead. */
@@ -499,7 +574,17 @@ declare namespace gapi.client {
499
574
  /** 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`. */
500
575
  secretEnv?: string[];
501
576
  /** 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. */
502
- status?: string;
577
+ status?:
578
+ | 'STATUS_UNKNOWN'
579
+ | 'PENDING'
580
+ | 'QUEUED'
581
+ | 'WORKING'
582
+ | 'SUCCESS'
583
+ | 'FAILURE'
584
+ | 'INTERNAL_ERROR'
585
+ | 'TIMEOUT'
586
+ | 'CANCELLED'
587
+ | 'EXPIRED';
503
588
  /** 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. */
504
589
  timeout?: string;
505
590
  /** Output only. Stores timing information for executing this build step. */
@@ -511,7 +596,7 @@ declare namespace gapi.client {
511
596
  }
512
597
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning {
513
598
  /** The priority for this warning. */
514
- priority?: string;
599
+ priority?: 'PRIORITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'ALERT';
515
600
  /** Explanation of the warning generated. */
516
601
  text?: string;
517
602
  }
@@ -522,6 +607,11 @@ declare namespace gapi.client {
522
607
  digest?: string;
523
608
  /** Name used to push the container image to Google Container Registry, as presented to `docker push`. */
524
609
  name?: string;
610
+ /** Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will have an unspecified value. */
611
+ ociMediaType?:
612
+ | 'OCI_MEDIA_TYPE_UNSPECIFIED'
613
+ | 'IMAGE_MANIFEST'
614
+ | 'IMAGE_INDEX';
525
615
  /** Output only. Stores timing information for pushing the specified image. */
526
616
  pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
527
617
  }
@@ -587,7 +677,13 @@ declare namespace gapi.client {
587
677
  }
588
678
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Hash {
589
679
  /** The type of hash that was performed. */
590
- type?: string;
680
+ type?:
681
+ | 'NONE'
682
+ | 'SHA256'
683
+ | 'MD5'
684
+ | 'GO_MODULE_H1'
685
+ | 'SHA512'
686
+ | 'DIRSUM_SHA256';
591
687
  /** The hash value. */
592
688
  value?: string;
593
689
  }
@@ -693,7 +789,7 @@ declare namespace gapi.client {
693
789
  /** Required. Cloud Storage object containing the source. This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build. */
694
790
  object?: string;
695
791
  /** Optional. Option to specify the tool to fetch the source file for the build. */
696
- sourceFetcher?: string;
792
+ sourceFetcher?: 'SOURCE_FETCHER_UNSPECIFIED' | 'GSUTIL' | 'GCS_FETCHER';
697
793
  }
698
794
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest {
699
795
  /** Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
@@ -763,27 +859,65 @@ declare namespace gapi.client {
763
859
  }
764
860
  interface CVSS {
765
861
  /** Defined in CVSS v3, CVSS v2 */
766
- attackComplexity?: string;
862
+ attackComplexity?:
863
+ | 'ATTACK_COMPLEXITY_UNSPECIFIED'
864
+ | 'ATTACK_COMPLEXITY_LOW'
865
+ | 'ATTACK_COMPLEXITY_HIGH'
866
+ | 'ATTACK_COMPLEXITY_MEDIUM';
767
867
  /** Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. Defined in CVSS v3, CVSS v2 */
768
- attackVector?: string;
868
+ attackVector?:
869
+ | 'ATTACK_VECTOR_UNSPECIFIED'
870
+ | 'ATTACK_VECTOR_NETWORK'
871
+ | 'ATTACK_VECTOR_ADJACENT'
872
+ | 'ATTACK_VECTOR_LOCAL'
873
+ | 'ATTACK_VECTOR_PHYSICAL';
769
874
  /** Defined in CVSS v2 */
770
- authentication?: string;
875
+ authentication?:
876
+ | 'AUTHENTICATION_UNSPECIFIED'
877
+ | 'AUTHENTICATION_MULTIPLE'
878
+ | 'AUTHENTICATION_SINGLE'
879
+ | 'AUTHENTICATION_NONE';
771
880
  /** Defined in CVSS v3, CVSS v2 */
772
- availabilityImpact?: string;
881
+ availabilityImpact?:
882
+ | 'IMPACT_UNSPECIFIED'
883
+ | 'IMPACT_HIGH'
884
+ | 'IMPACT_LOW'
885
+ | 'IMPACT_NONE'
886
+ | 'IMPACT_PARTIAL'
887
+ | 'IMPACT_COMPLETE';
773
888
  /** The base score is a function of the base metric scores. */
774
889
  baseScore?: number;
775
890
  /** Defined in CVSS v3, CVSS v2 */
776
- confidentialityImpact?: string;
891
+ confidentialityImpact?:
892
+ | 'IMPACT_UNSPECIFIED'
893
+ | 'IMPACT_HIGH'
894
+ | 'IMPACT_LOW'
895
+ | 'IMPACT_NONE'
896
+ | 'IMPACT_PARTIAL'
897
+ | 'IMPACT_COMPLETE';
777
898
  exploitabilityScore?: number;
778
899
  impactScore?: number;
779
900
  /** Defined in CVSS v3, CVSS v2 */
780
- integrityImpact?: string;
901
+ integrityImpact?:
902
+ | 'IMPACT_UNSPECIFIED'
903
+ | 'IMPACT_HIGH'
904
+ | 'IMPACT_LOW'
905
+ | 'IMPACT_NONE'
906
+ | 'IMPACT_PARTIAL'
907
+ | 'IMPACT_COMPLETE';
781
908
  /** Defined in CVSS v3 */
782
- privilegesRequired?: string;
909
+ privilegesRequired?:
910
+ | 'PRIVILEGES_REQUIRED_UNSPECIFIED'
911
+ | 'PRIVILEGES_REQUIRED_NONE'
912
+ | 'PRIVILEGES_REQUIRED_LOW'
913
+ | 'PRIVILEGES_REQUIRED_HIGH';
783
914
  /** Defined in CVSS v3 */
784
- scope?: string;
915
+ scope?: 'SCOPE_UNSPECIFIED' | 'SCOPE_UNCHANGED' | 'SCOPE_CHANGED';
785
916
  /** Defined in CVSS v3 */
786
- userInteraction?: string;
917
+ userInteraction?:
918
+ | 'USER_INTERACTION_UNSPECIFIED'
919
+ | 'USER_INTERACTION_NONE'
920
+ | 'USER_INTERACTION_REQUIRED';
787
921
  }
788
922
  interface Deployable {
789
923
  /** Resource URI for the artifact being deployed. */
@@ -797,7 +931,7 @@ declare namespace gapi.client {
797
931
  /** Beginning of the lifetime of this deployment. */
798
932
  deployTime?: string;
799
933
  /** Platform hosting this deployment. */
800
- platform?: string;
934
+ platform?: 'PLATFORM_UNSPECIFIED' | 'GKE' | 'FLEX' | 'CUSTOM';
801
935
  /** Resource URI for the artifact being deployed taken from the deployable field with the same name. */
802
936
  resourceUri?: string[];
803
937
  /** End of the lifetime of this deployment. */
@@ -851,13 +985,23 @@ declare namespace gapi.client {
851
985
  /** Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors. */
852
986
  analysisError?: Status[];
853
987
  /** The status of discovery for the resource. */
854
- analysisStatus?: string;
988
+ analysisStatus?:
989
+ | 'ANALYSIS_STATUS_UNSPECIFIED'
990
+ | 'PENDING'
991
+ | 'SCANNING'
992
+ | 'COMPLETE'
993
+ | 'FINISHED_SUCCESS'
994
+ | 'FINISHED_FAILED'
995
+ | 'FINISHED_UNSUPPORTED';
855
996
  /** When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API. */
856
997
  analysisStatusError?: Status;
857
998
  /** The time occurrences related to this discovery occurrence were archived. */
858
999
  archiveTime?: string;
859
1000
  /** Whether the resource is continuously analyzed. */
860
- continuousAnalysis?: string;
1001
+ continuousAnalysis?:
1002
+ | 'CONTINUOUS_ANALYSIS_UNSPECIFIED'
1003
+ | 'ACTIVE'
1004
+ | 'INACTIVE';
861
1005
  /** The CPE of the resource being scanned. */
862
1006
  cpe?: string;
863
1007
  /** Optional. Files that make up the resource described by the occurrence. */
@@ -875,11 +1019,29 @@ declare namespace gapi.client {
875
1019
  }
876
1020
  interface Discovery {
877
1021
  /** The kind of analysis that is handled by this discovery. */
878
- analysisKind?: string;
1022
+ analysisKind?:
1023
+ | 'KIND_UNSPECIFIED'
1024
+ | 'PACKAGE_VULNERABILITY'
1025
+ | 'BUILD_DETAILS'
1026
+ | 'IMAGE_BASIS'
1027
+ | 'PACKAGE_MANAGER'
1028
+ | 'DEPLOYABLE'
1029
+ | 'DISCOVERY'
1030
+ | 'ATTESTATION_AUTHORITY'
1031
+ | 'UPGRADE'
1032
+ | 'COMPLIANCE'
1033
+ | 'SBOM'
1034
+ | 'SPDX_PACKAGE'
1035
+ | 'SPDX_FILE'
1036
+ | 'SPDX_RELATIONSHIP'
1037
+ | 'DSSE_ATTESTATION'
1038
+ | 'VULNERABILITY_ASSESSMENT'
1039
+ | 'SBOM_REFERENCE'
1040
+ | 'SECRET';
879
1041
  }
880
1042
  interface Distribution {
881
1043
  /** The CPU architecture for which packages in this distribution channel were built */
882
- architecture?: string;
1044
+ architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
883
1045
  /** The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. */
884
1046
  cpeUri?: string;
885
1047
  /** The distribution channel-specific description of this package. */
@@ -963,7 +1125,12 @@ declare namespace gapi.client {
963
1125
  }
964
1126
  interface ExternalRef {
965
1127
  /** An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package */
966
- category?: string;
1128
+ category?:
1129
+ | 'CATEGORY_UNSPECIFIED'
1130
+ | 'SECURITY'
1131
+ | 'PACKAGE_MANAGER'
1132
+ | 'PERSISTENT_ID'
1133
+ | 'OTHER';
967
1134
  /** Human-readable information about the purpose and target of the reference */
968
1135
  comment?: string;
969
1136
  /** The unique string with no spaces necessary to access the package-specific information, metadata, or content within the target location */
@@ -986,12 +1153,26 @@ declare namespace gapi.client {
986
1153
  filePath?: string;
987
1154
  /** Each package found in a file should have its own layer metadata (that is, information from the origin layer of the package). */
988
1155
  layerDetails?: LayerDetails;
1156
+ /** Line number in the file where the package is found. Optional field that only applies to source repository scanning. */
1157
+ lineNumber?: number;
989
1158
  }
990
1159
  interface FileNote {
991
1160
  /** Provide a unique identifier to match analysis information on each specific file in a package */
992
1161
  checksum?: string[];
993
1162
  /** This field provides information about the type of file identified */
994
- fileType?: string;
1163
+ fileType?:
1164
+ | 'FILE_TYPE_UNSPECIFIED'
1165
+ | 'SOURCE'
1166
+ | 'BINARY'
1167
+ | 'ARCHIVE'
1168
+ | 'APPLICATION'
1169
+ | 'AUDIO'
1170
+ | 'IMAGE'
1171
+ | 'TEXT'
1172
+ | 'VIDEO'
1173
+ | 'DOCUMENTATION'
1174
+ | 'SPDX'
1175
+ | 'OTHER';
995
1176
  /** Identify the full path and filename that corresponds to the file information in this section */
996
1177
  title?: string;
997
1178
  }
@@ -1035,7 +1216,7 @@ declare namespace gapi.client {
1035
1216
  }
1036
1217
  interface GoogleDevtoolsContaineranalysisV1alpha1AliasContext {
1037
1218
  /** The alias kind. */
1038
- kind?: string;
1219
+ kind?: 'KIND_UNSPECIFIED' | 'FIXED' | 'MOVABLE' | 'OTHER';
1039
1220
  /** The alias name. */
1040
1221
  name?: string;
1041
1222
  }
@@ -1139,19 +1320,19 @@ declare namespace gapi.client {
1139
1320
  }
1140
1321
  interface Hash {
1141
1322
  /** The type of hash that was performed. */
1142
- type?: string;
1323
+ type?: 'NONE' | 'SHA256' | 'GO_MODULE_H1' | 'DIRSUM_SHA256';
1143
1324
  /** The hash value. */
1144
1325
  value?: string;
1145
1326
  }
1146
1327
  interface IdentifierHelper {
1147
1328
  /** The field that is set in the API proto. */
1148
- field?: string;
1329
+ field?: 'IDENTIFIER_HELPER_FIELD_UNSPECIFIED' | 'GENERIC_URI';
1149
1330
  /** Contains a URI which is vendor-specific. Example: The artifact repository URL of an image. */
1150
1331
  genericUri?: string;
1151
1332
  }
1152
1333
  interface Installation {
1153
1334
  /** Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1154
- architecture?: string;
1335
+ architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
1155
1336
  /** 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. */
1156
1337
  cpeUri?: string;
1157
1338
  /** Licenses that have been declared by the authors of the package. */
@@ -1199,13 +1380,37 @@ declare namespace gapi.client {
1199
1380
  /** Additional details on why this justification was chosen. */
1200
1381
  details?: string;
1201
1382
  /** The justification type for this vulnerability. */
1202
- justificationType?: string;
1383
+ justificationType?:
1384
+ | 'JUSTIFICATION_TYPE_UNSPECIFIED'
1385
+ | 'COMPONENT_NOT_PRESENT'
1386
+ | 'VULNERABLE_CODE_NOT_PRESENT'
1387
+ | 'VULNERABLE_CODE_NOT_IN_EXECUTE_PATH'
1388
+ | 'VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY'
1389
+ | 'INLINE_MITIGATIONS_ALREADY_EXIST';
1203
1390
  }
1204
1391
  interface Layer {
1205
1392
  /** The recovered arguments to the Dockerfile directive. */
1206
1393
  arguments?: string;
1207
1394
  /** The recovered Dockerfile directive used to construct this layer. */
1208
- directive?: string;
1395
+ directive?:
1396
+ | 'DIRECTIVE_UNSPECIFIED'
1397
+ | 'MAINTAINER'
1398
+ | 'RUN'
1399
+ | 'CMD'
1400
+ | 'LABEL'
1401
+ | 'EXPOSE'
1402
+ | 'ENV'
1403
+ | 'ADD'
1404
+ | 'COPY'
1405
+ | 'ENTRYPOINT'
1406
+ | 'VOLUME'
1407
+ | 'USER'
1408
+ | 'WORKDIR'
1409
+ | 'ARG'
1410
+ | 'ONBUILD'
1411
+ | 'STOPSIGNAL'
1412
+ | 'HEALTHCHECK'
1413
+ | 'SHELL';
1209
1414
  }
1210
1415
  interface LayerDetails {
1211
1416
  /** The base images the layer is found within. */
@@ -1303,7 +1508,25 @@ declare namespace gapi.client {
1303
1508
  /** Time of expiration for this note, null if note does not expire. */
1304
1509
  expirationTime?: string;
1305
1510
  /** Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests. */
1306
- kind?: string;
1511
+ kind?:
1512
+ | 'KIND_UNSPECIFIED'
1513
+ | 'PACKAGE_VULNERABILITY'
1514
+ | 'BUILD_DETAILS'
1515
+ | 'IMAGE_BASIS'
1516
+ | 'PACKAGE_MANAGER'
1517
+ | 'DEPLOYABLE'
1518
+ | 'DISCOVERY'
1519
+ | 'ATTESTATION_AUTHORITY'
1520
+ | 'UPGRADE'
1521
+ | 'COMPLIANCE'
1522
+ | 'SBOM'
1523
+ | 'SPDX_PACKAGE'
1524
+ | 'SPDX_FILE'
1525
+ | 'SPDX_RELATIONSHIP'
1526
+ | 'DSSE_ATTESTATION'
1527
+ | 'VULNERABILITY_ASSESSMENT'
1528
+ | 'SBOM_REFERENCE'
1529
+ | 'SECRET';
1307
1530
  /** A detailed description of this `Note`. */
1308
1531
  longDescription?: string;
1309
1532
  /** The name of the note in the form "projects/{provider_project_id}/notes/{NOTE_ID}" */
@@ -1357,7 +1580,25 @@ declare namespace gapi.client {
1357
1580
  /** Describes the installation of a package on the linked resource. */
1358
1581
  installation?: Installation;
1359
1582
  /** Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests. */
1360
- kind?: string;
1583
+ kind?:
1584
+ | 'KIND_UNSPECIFIED'
1585
+ | 'PACKAGE_VULNERABILITY'
1586
+ | 'BUILD_DETAILS'
1587
+ | 'IMAGE_BASIS'
1588
+ | 'PACKAGE_MANAGER'
1589
+ | 'DEPLOYABLE'
1590
+ | 'DISCOVERY'
1591
+ | 'ATTESTATION_AUTHORITY'
1592
+ | 'UPGRADE'
1593
+ | 'COMPLIANCE'
1594
+ | 'SBOM'
1595
+ | 'SPDX_PACKAGE'
1596
+ | 'SPDX_FILE'
1597
+ | 'SPDX_RELATIONSHIP'
1598
+ | 'DSSE_ATTESTATION'
1599
+ | 'VULNERABILITY_ASSESSMENT'
1600
+ | 'SBOM_REFERENCE'
1601
+ | 'SECRET';
1361
1602
  /** Output only. The name of the `Occurrence` in the form "projects/{project_id}/occurrences/{OCCURRENCE_ID}" */
1362
1603
  name?: string;
1363
1604
  /** An analysis note associated with this image, in the form "providers/{provider_id}/notes/{NOTE_ID}" This field can be used as a filter in list requests. */
@@ -1401,7 +1642,7 @@ declare namespace gapi.client {
1401
1642
  }
1402
1643
  interface Package {
1403
1644
  /** The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1404
- architecture?: string;
1645
+ architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
1405
1646
  /** 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. */
1406
1647
  cpeUri?: string;
1407
1648
  /** The description of this package. */
@@ -1485,7 +1726,13 @@ declare namespace gapi.client {
1485
1726
  /** The location of the vulnerability. */
1486
1727
  affectedLocation?: VulnerabilityLocation;
1487
1728
  /** Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability. */
1488
- effectiveSeverity?: string;
1729
+ effectiveSeverity?:
1730
+ | 'SEVERITY_UNSPECIFIED'
1731
+ | 'MINIMAL'
1732
+ | 'LOW'
1733
+ | 'MEDIUM'
1734
+ | 'HIGH'
1735
+ | 'CRITICAL';
1489
1736
  /** The location of the available fix for vulnerability. */
1490
1737
  fixedLocation?: VulnerabilityLocation;
1491
1738
  /** The type of package (e.g. OS, MAVEN, GO). */
@@ -1494,7 +1741,7 @@ declare namespace gapi.client {
1494
1741
  }
1495
1742
  interface PgpSignedAttestation {
1496
1743
  /** Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). */
1497
- contentType?: string;
1744
+ contentType?: 'CONTENT_TYPE_UNSPECIFIED' | 'SIMPLE_SIGNING_JSON';
1498
1745
  /** The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. */
1499
1746
  pgpKeyId?: string;
1500
1747
  /** The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. */
@@ -1549,7 +1796,51 @@ declare namespace gapi.client {
1549
1796
  }
1550
1797
  interface RelationshipNote {
1551
1798
  /** The type of relationship between the source and target SPDX elements */
1552
- type?: string;
1799
+ type?:
1800
+ | 'RELATIONSHIP_TYPE_UNSPECIFIED'
1801
+ | 'DESCRIBES'
1802
+ | 'DESCRIBED_BY'
1803
+ | 'CONTAINS'
1804
+ | 'CONTAINED_BY'
1805
+ | 'DEPENDS_ON'
1806
+ | 'DEPENDENCY_OF'
1807
+ | 'DEPENDENCY_MANIFEST_OF'
1808
+ | 'BUILD_DEPENDENCY_OF'
1809
+ | 'DEV_DEPENDENCY_OF'
1810
+ | 'OPTIONAL_DEPENDENCY_OF'
1811
+ | 'PROVIDED_DEPENDENCY_OF'
1812
+ | 'TEST_DEPENDENCY_OF'
1813
+ | 'RUNTIME_DEPENDENCY_OF'
1814
+ | 'EXAMPLE_OF'
1815
+ | 'GENERATES'
1816
+ | 'GENERATED_FROM'
1817
+ | 'ANCESTOR_OF'
1818
+ | 'DESCENDANT_OF'
1819
+ | 'VARIANT_OF'
1820
+ | 'DISTRIBUTION_ARTIFACT'
1821
+ | 'PATCH_FOR'
1822
+ | 'PATCH_APPLIED'
1823
+ | 'COPY_OF'
1824
+ | 'FILE_ADDED'
1825
+ | 'FILE_DELETED'
1826
+ | 'FILE_MODIFIED'
1827
+ | 'EXPANDED_FROM_ARCHIVE'
1828
+ | 'DYNAMIC_LINK'
1829
+ | 'STATIC_LINK'
1830
+ | 'DATA_FILE_OF'
1831
+ | 'TEST_CASE_OF'
1832
+ | 'BUILD_TOOL_OF'
1833
+ | 'DEV_TOOL_OF'
1834
+ | 'TEST_OF'
1835
+ | 'TEST_TOOL_OF'
1836
+ | 'DOCUMENTATION_OF'
1837
+ | 'OPTIONAL_COMPONENT_OF'
1838
+ | 'METAFILE_OF'
1839
+ | 'PACKAGE_OF'
1840
+ | 'AMENDS'
1841
+ | 'PREREQUISITE_FOR'
1842
+ | 'HAS_PREREQUISITE'
1843
+ | 'OTHER';
1553
1844
  }
1554
1845
  interface RelationshipOccurrence {
1555
1846
  /** A place for the SPDX file creator to record any general comments about the relationship */
@@ -1559,13 +1850,63 @@ declare namespace gapi.client {
1559
1850
  /** Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are "known unknowns", the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it */
1560
1851
  target?: string;
1561
1852
  /** Output only. The type of relationship between the source and target SPDX elements */
1562
- type?: string;
1853
+ type?:
1854
+ | 'RELATIONSHIP_TYPE_UNSPECIFIED'
1855
+ | 'DESCRIBES'
1856
+ | 'DESCRIBED_BY'
1857
+ | 'CONTAINS'
1858
+ | 'CONTAINED_BY'
1859
+ | 'DEPENDS_ON'
1860
+ | 'DEPENDENCY_OF'
1861
+ | 'DEPENDENCY_MANIFEST_OF'
1862
+ | 'BUILD_DEPENDENCY_OF'
1863
+ | 'DEV_DEPENDENCY_OF'
1864
+ | 'OPTIONAL_DEPENDENCY_OF'
1865
+ | 'PROVIDED_DEPENDENCY_OF'
1866
+ | 'TEST_DEPENDENCY_OF'
1867
+ | 'RUNTIME_DEPENDENCY_OF'
1868
+ | 'EXAMPLE_OF'
1869
+ | 'GENERATES'
1870
+ | 'GENERATED_FROM'
1871
+ | 'ANCESTOR_OF'
1872
+ | 'DESCENDANT_OF'
1873
+ | 'VARIANT_OF'
1874
+ | 'DISTRIBUTION_ARTIFACT'
1875
+ | 'PATCH_FOR'
1876
+ | 'PATCH_APPLIED'
1877
+ | 'COPY_OF'
1878
+ | 'FILE_ADDED'
1879
+ | 'FILE_DELETED'
1880
+ | 'FILE_MODIFIED'
1881
+ | 'EXPANDED_FROM_ARCHIVE'
1882
+ | 'DYNAMIC_LINK'
1883
+ | 'STATIC_LINK'
1884
+ | 'DATA_FILE_OF'
1885
+ | 'TEST_CASE_OF'
1886
+ | 'BUILD_TOOL_OF'
1887
+ | 'DEV_TOOL_OF'
1888
+ | 'TEST_OF'
1889
+ | 'TEST_TOOL_OF'
1890
+ | 'DOCUMENTATION_OF'
1891
+ | 'OPTIONAL_COMPONENT_OF'
1892
+ | 'METAFILE_OF'
1893
+ | 'PACKAGE_OF'
1894
+ | 'AMENDS'
1895
+ | 'PREREQUISITE_FOR'
1896
+ | 'HAS_PREREQUISITE'
1897
+ | 'OTHER';
1563
1898
  }
1564
1899
  interface Remediation {
1565
1900
  /** Contains a comprehensive human-readable discussion of the remediation. */
1566
1901
  details?: string;
1567
1902
  /** The type of remediation that can be applied. */
1568
- remediationType?: string;
1903
+ remediationType?:
1904
+ | 'REMEDIATION_TYPE_UNSPECIFIED'
1905
+ | 'MITIGATION'
1906
+ | 'NO_FIX_PLANNED'
1907
+ | 'NONE_AVAILABLE'
1908
+ | 'VENDOR_FIX'
1909
+ | 'WORKAROUND';
1569
1910
  /** Contains the URL where to obtain the remediation. */
1570
1911
  remediationUri?: URI;
1571
1912
  }
@@ -1647,7 +1988,7 @@ declare namespace gapi.client {
1647
1988
  /** Output only. If there was an error generating an SBOM, this will indicate what that error was. */
1648
1989
  error?: string;
1649
1990
  /** Output only. The progress of the SBOM generation. */
1650
- sbomState?: string;
1991
+ sbomState?: 'SBOM_STATE_UNSPECIFIED' | 'PENDING' | 'COMPLETE';
1651
1992
  }
1652
1993
  interface ScanConfig {
1653
1994
  /** Output only. The time this scan config was created. */
@@ -1668,7 +2009,30 @@ declare namespace gapi.client {
1668
2009
  interface SecretNote {}
1669
2010
  interface SecretOccurrence {
1670
2011
  /** Required. Type of secret. */
1671
- kind?: string;
2012
+ kind?:
2013
+ | 'SECRET_KIND_UNSPECIFIED'
2014
+ | 'SECRET_KIND_UNKNOWN'
2015
+ | 'SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY'
2016
+ | 'SECRET_KIND_GCP_API_KEY'
2017
+ | 'SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS'
2018
+ | 'SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN'
2019
+ | 'SECRET_KIND_ANTHROPIC_ADMIN_API_KEY'
2020
+ | 'SECRET_KIND_ANTHROPIC_API_KEY'
2021
+ | 'SECRET_KIND_AZURE_ACCESS_TOKEN'
2022
+ | 'SECRET_KIND_AZURE_IDENTITY_TOKEN'
2023
+ | 'SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN'
2024
+ | 'SECRET_KIND_GITHUB_APP_REFRESH_TOKEN'
2025
+ | 'SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN'
2026
+ | 'SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN'
2027
+ | 'SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN'
2028
+ | 'SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN'
2029
+ | 'SECRET_KIND_GITHUB_OAUTH_TOKEN'
2030
+ | 'SECRET_KIND_HUGGINGFACE_API_KEY'
2031
+ | 'SECRET_KIND_OPENAI_API_KEY'
2032
+ | 'SECRET_KIND_PERPLEXITY_API_KEY'
2033
+ | 'SECRET_KIND_STRIPE_SECRET_KEY'
2034
+ | 'SECRET_KIND_STRIPE_RESTRICTED_KEY'
2035
+ | 'SECRET_KIND_STRIPE_WEBHOOK_SECRET';
1672
2036
  /** Optional. Locations where the secret is detected. */
1673
2037
  locations?: SecretLocation[];
1674
2038
  /** Optional. Status of the secret. */
@@ -1678,7 +2042,7 @@ declare namespace gapi.client {
1678
2042
  /** Optional. Optional message about the status code. */
1679
2043
  message?: string;
1680
2044
  /** Optional. The status of the secret. */
1681
- status?: string;
2045
+ status?: 'STATUS_UNSPECIFIED' | 'UNKNOWN' | 'VALID' | 'INVALID';
1682
2046
  /** Optional. The time the secret status was last updated. */
1683
2047
  updateTime?: string;
1684
2048
  }
@@ -1690,7 +2054,13 @@ declare namespace gapi.client {
1690
2054
  /** The number of occurrences with the severity. */
1691
2055
  count?: string;
1692
2056
  /** The severity of the occurrences. */
1693
- severity?: string;
2057
+ severity?:
2058
+ | 'SEVERITY_UNSPECIFIED'
2059
+ | 'MINIMAL'
2060
+ | 'LOW'
2061
+ | 'MEDIUM'
2062
+ | 'HIGH'
2063
+ | 'CRITICAL';
1694
2064
  }
1695
2065
  interface SlsaBuilder {
1696
2066
  /** id is the id of the slsa provenance builder */
@@ -1855,7 +2225,7 @@ declare namespace gapi.client {
1855
2225
  /** Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it's not */
1856
2226
  inclusive?: boolean;
1857
2227
  /** Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored. */
1858
- kind?: string;
2228
+ kind?: 'NORMAL' | 'MINIMUM' | 'MAXIMUM';
1859
2229
  /** The main part of the version name. */
1860
2230
  name?: string;
1861
2231
  /** The iteration of the package build from the above version. */
@@ -1875,7 +2245,12 @@ declare namespace gapi.client {
1875
2245
  /** Specifies details on how to handle (and presumably, fix) a vulnerability. */
1876
2246
  remediations?: Remediation[];
1877
2247
  /** Provides the state of this Vulnerability assessment. */
1878
- state?: string;
2248
+ state?:
2249
+ | 'STATE_UNSPECIFIED'
2250
+ | 'AFFECTED'
2251
+ | 'NOT_AFFECTED'
2252
+ | 'FIXED'
2253
+ | 'UNDER_INVESTIGATION';
1879
2254
  /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
1880
2255
  vulnerabilityId?: string;
1881
2256
  }
@@ -1907,7 +2282,10 @@ declare namespace gapi.client {
1907
2282
  /** Output only. The last time we attempted to generate an attestation. */
1908
2283
  lastAttemptTime?: string;
1909
2284
  /** Output only. The success/failure state of the latest attestation attempt. */
1910
- state?: string;
2285
+ state?:
2286
+ | 'VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED'
2287
+ | 'SUCCESS'
2288
+ | 'FAILURE';
1911
2289
  }
1912
2290
  interface VulnerabilityDetails {
1913
2291
  /** 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. */
@@ -1917,9 +2295,18 @@ declare namespace gapi.client {
1917
2295
  /** The CVSS v3 score of this vulnerability. */
1918
2296
  cvssV3?: CVSS;
1919
2297
  /** Output only. CVSS version used to populate cvss_score and severity. */
1920
- cvssVersion?: string;
2298
+ cvssVersion?:
2299
+ | 'CVSS_VERSION_UNSPECIFIED'
2300
+ | 'CVSS_VERSION_2'
2301
+ | 'CVSS_VERSION_3';
1921
2302
  /** The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues. */
1922
- effectiveSeverity?: string;
2303
+ effectiveSeverity?:
2304
+ | 'SEVERITY_UNSPECIFIED'
2305
+ | 'MINIMAL'
2306
+ | 'LOW'
2307
+ | 'MEDIUM'
2308
+ | 'HIGH'
2309
+ | 'CRITICAL';
1923
2310
  /** Occurrence-specific extra details about the vulnerability. */
1924
2311
  extraDetails?: string;
1925
2312
  /** The set of affected locations and their fixes (if available) within the associated resource. */
@@ -1927,7 +2314,13 @@ declare namespace gapi.client {
1927
2314
  /** Risk information about the vulnerability, such as CISA, EPSS, etc. */
1928
2315
  risk?: Risk;
1929
2316
  /** Output only. The note provider assigned Severity of the vulnerability. */
1930
- severity?: string;
2317
+ severity?:
2318
+ | 'SEVERITY_UNSPECIFIED'
2319
+ | 'MINIMAL'
2320
+ | 'LOW'
2321
+ | 'MEDIUM'
2322
+ | 'HIGH'
2323
+ | 'CRITICAL';
1931
2324
  /** The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types. */
1932
2325
  type?: string;
1933
2326
  /** VexAssessment provides all publisher provided Vex information that is related to this vulnerability for this resource. */
@@ -1951,23 +2344,32 @@ declare namespace gapi.client {
1951
2344
  /** The full description of the CVSS for version 2. */
1952
2345
  cvssV2?: CVSS;
1953
2346
  /** CVSS version used to populate cvss_score and severity. */
1954
- cvssVersion?: string;
2347
+ cvssVersion?:
2348
+ | 'CVSS_VERSION_UNSPECIFIED'
2349
+ | 'CVSS_VERSION_2'
2350
+ | 'CVSS_VERSION_3';
1955
2351
  /** A list of CWE for this vulnerability. For details, see: https://cwe.mitre.org/index.html */
1956
2352
  cwe?: string[];
1957
2353
  /** All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. */
1958
2354
  details?: Detail[];
1959
2355
  /** Note provider assigned impact of the vulnerability */
1960
- severity?: string;
2356
+ severity?:
2357
+ | 'SEVERITY_UNSPECIFIED'
2358
+ | 'MINIMAL'
2359
+ | 'LOW'
2360
+ | 'MEDIUM'
2361
+ | 'HIGH'
2362
+ | 'CRITICAL';
1961
2363
  }
1962
2364
  interface OccurrencesResource {
1963
2365
  /** Lists `Occurrences` referencing the specified `Note`. Use this method to get all occurrences referencing your `Note` across all your customer projects. */
1964
2366
  list(request?: {
1965
2367
  /** V1 error format. */
1966
- '$.xgafv'?: string;
2368
+ '$.xgafv'?: '1' | '2';
1967
2369
  /** OAuth access token. */
1968
2370
  access_token?: string;
1969
2371
  /** Data format for response. */
1970
- alt?: string;
2372
+ alt?: 'json' | 'media' | 'proto';
1971
2373
  /** JSONP */
1972
2374
  callback?: string;
1973
2375
  /** Selector specifying which fields to include in a partial response. */
@@ -1998,11 +2400,11 @@ declare namespace gapi.client {
1998
2400
  /** Creates a new `Note`. */
1999
2401
  create(request: {
2000
2402
  /** V1 error format. */
2001
- '$.xgafv'?: string;
2403
+ '$.xgafv'?: '1' | '2';
2002
2404
  /** OAuth access token. */
2003
2405
  access_token?: string;
2004
2406
  /** Data format for response. */
2005
- alt?: string;
2407
+ alt?: 'json' | 'media' | 'proto';
2006
2408
  /** JSONP */
2007
2409
  callback?: string;
2008
2410
  /** Selector specifying which fields to include in a partial response. */
@@ -2031,11 +2433,11 @@ declare namespace gapi.client {
2031
2433
  create(
2032
2434
  request: {
2033
2435
  /** V1 error format. */
2034
- '$.xgafv'?: string;
2436
+ '$.xgafv'?: '1' | '2';
2035
2437
  /** OAuth access token. */
2036
2438
  access_token?: string;
2037
2439
  /** Data format for response. */
2038
- alt?: string;
2440
+ alt?: 'json' | 'media' | 'proto';
2039
2441
  /** JSONP */
2040
2442
  callback?: string;
2041
2443
  /** Selector specifying which fields to include in a partial response. */
@@ -2064,11 +2466,11 @@ declare namespace gapi.client {
2064
2466
  /** Deletes the given `Note` from the system. */
2065
2467
  delete(request?: {
2066
2468
  /** V1 error format. */
2067
- '$.xgafv'?: string;
2469
+ '$.xgafv'?: '1' | '2';
2068
2470
  /** OAuth access token. */
2069
2471
  access_token?: string;
2070
2472
  /** Data format for response. */
2071
- alt?: string;
2473
+ alt?: 'json' | 'media' | 'proto';
2072
2474
  /** JSONP */
2073
2475
  callback?: string;
2074
2476
  /** Selector specifying which fields to include in a partial response. */
@@ -2091,11 +2493,11 @@ declare namespace gapi.client {
2091
2493
  /** Returns the requested `Note`. */
2092
2494
  get(request?: {
2093
2495
  /** V1 error format. */
2094
- '$.xgafv'?: string;
2496
+ '$.xgafv'?: '1' | '2';
2095
2497
  /** OAuth access token. */
2096
2498
  access_token?: string;
2097
2499
  /** Data format for response. */
2098
- alt?: string;
2500
+ alt?: 'json' | 'media' | 'proto';
2099
2501
  /** JSONP */
2100
2502
  callback?: string;
2101
2503
  /** Selector specifying which fields to include in a partial response. */
@@ -2119,11 +2521,11 @@ declare namespace gapi.client {
2119
2521
  getIamPolicy(
2120
2522
  request: {
2121
2523
  /** V1 error format. */
2122
- '$.xgafv'?: string;
2524
+ '$.xgafv'?: '1' | '2';
2123
2525
  /** OAuth access token. */
2124
2526
  access_token?: string;
2125
2527
  /** Data format for response. */
2126
- alt?: string;
2528
+ alt?: 'json' | 'media' | 'proto';
2127
2529
  /** JSONP */
2128
2530
  callback?: string;
2129
2531
  /** Selector specifying which fields to include in a partial response. */
@@ -2148,11 +2550,11 @@ declare namespace gapi.client {
2148
2550
  /** Lists all `Notes` for a given project. */
2149
2551
  list(request?: {
2150
2552
  /** V1 error format. */
2151
- '$.xgafv'?: string;
2553
+ '$.xgafv'?: '1' | '2';
2152
2554
  /** OAuth access token. */
2153
2555
  access_token?: string;
2154
2556
  /** Data format for response. */
2155
- alt?: string;
2557
+ alt?: 'json' | 'media' | 'proto';
2156
2558
  /** JSONP */
2157
2559
  callback?: string;
2158
2560
  /** Selector specifying which fields to include in a partial response. */
@@ -2183,11 +2585,11 @@ declare namespace gapi.client {
2183
2585
  /** Updates an existing `Note`. */
2184
2586
  patch(request: {
2185
2587
  /** V1 error format. */
2186
- '$.xgafv'?: string;
2588
+ '$.xgafv'?: '1' | '2';
2187
2589
  /** OAuth access token. */
2188
2590
  access_token?: string;
2189
2591
  /** Data format for response. */
2190
- alt?: string;
2592
+ alt?: 'json' | 'media' | 'proto';
2191
2593
  /** JSONP */
2192
2594
  callback?: string;
2193
2595
  /** Selector specifying which fields to include in a partial response. */
@@ -2214,11 +2616,11 @@ declare namespace gapi.client {
2214
2616
  patch(
2215
2617
  request: {
2216
2618
  /** V1 error format. */
2217
- '$.xgafv'?: string;
2619
+ '$.xgafv'?: '1' | '2';
2218
2620
  /** OAuth access token. */
2219
2621
  access_token?: string;
2220
2622
  /** Data format for response. */
2221
- alt?: string;
2623
+ alt?: 'json' | 'media' | 'proto';
2222
2624
  /** JSONP */
2223
2625
  callback?: string;
2224
2626
  /** Selector specifying which fields to include in a partial response. */
@@ -2246,11 +2648,11 @@ declare namespace gapi.client {
2246
2648
  setIamPolicy(
2247
2649
  request: {
2248
2650
  /** V1 error format. */
2249
- '$.xgafv'?: string;
2651
+ '$.xgafv'?: '1' | '2';
2250
2652
  /** OAuth access token. */
2251
2653
  access_token?: string;
2252
2654
  /** Data format for response. */
2253
- alt?: string;
2655
+ alt?: 'json' | 'media' | 'proto';
2254
2656
  /** JSONP */
2255
2657
  callback?: string;
2256
2658
  /** Selector specifying which fields to include in a partial response. */
@@ -2276,11 +2678,11 @@ declare namespace gapi.client {
2276
2678
  testIamPermissions(
2277
2679
  request: {
2278
2680
  /** V1 error format. */
2279
- '$.xgafv'?: string;
2681
+ '$.xgafv'?: '1' | '2';
2280
2682
  /** OAuth access token. */
2281
2683
  access_token?: string;
2282
2684
  /** Data format for response. */
2283
- alt?: string;
2685
+ alt?: 'json' | 'media' | 'proto';
2284
2686
  /** JSONP */
2285
2687
  callback?: string;
2286
2688
  /** Selector specifying which fields to include in a partial response. */
@@ -2308,11 +2710,11 @@ declare namespace gapi.client {
2308
2710
  /** Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource. */
2309
2711
  create(request: {
2310
2712
  /** V1 error format. */
2311
- '$.xgafv'?: string;
2713
+ '$.xgafv'?: '1' | '2';
2312
2714
  /** OAuth access token. */
2313
2715
  access_token?: string;
2314
2716
  /** Data format for response. */
2315
- alt?: string;
2717
+ alt?: 'json' | 'media' | 'proto';
2316
2718
  /** JSONP */
2317
2719
  callback?: string;
2318
2720
  /** Selector specifying which fields to include in a partial response. */
@@ -2339,11 +2741,11 @@ declare namespace gapi.client {
2339
2741
  create(
2340
2742
  request: {
2341
2743
  /** V1 error format. */
2342
- '$.xgafv'?: string;
2744
+ '$.xgafv'?: '1' | '2';
2343
2745
  /** OAuth access token. */
2344
2746
  access_token?: string;
2345
2747
  /** Data format for response. */
2346
- alt?: string;
2748
+ alt?: 'json' | 'media' | 'proto';
2347
2749
  /** JSONP */
2348
2750
  callback?: string;
2349
2751
  /** Selector specifying which fields to include in a partial response. */
@@ -2370,11 +2772,11 @@ declare namespace gapi.client {
2370
2772
  /** Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource. */
2371
2773
  delete(request?: {
2372
2774
  /** V1 error format. */
2373
- '$.xgafv'?: string;
2775
+ '$.xgafv'?: '1' | '2';
2374
2776
  /** OAuth access token. */
2375
2777
  access_token?: string;
2376
2778
  /** Data format for response. */
2377
- alt?: string;
2779
+ alt?: 'json' | 'media' | 'proto';
2378
2780
  /** JSONP */
2379
2781
  callback?: string;
2380
2782
  /** Selector specifying which fields to include in a partial response. */
@@ -2397,11 +2799,11 @@ declare namespace gapi.client {
2397
2799
  /** Returns the requested `Occurrence`. */
2398
2800
  get(request?: {
2399
2801
  /** V1 error format. */
2400
- '$.xgafv'?: string;
2802
+ '$.xgafv'?: '1' | '2';
2401
2803
  /** OAuth access token. */
2402
2804
  access_token?: string;
2403
2805
  /** Data format for response. */
2404
- alt?: string;
2806
+ alt?: 'json' | 'media' | 'proto';
2405
2807
  /** JSONP */
2406
2808
  callback?: string;
2407
2809
  /** Selector specifying which fields to include in a partial response. */
@@ -2425,11 +2827,11 @@ declare namespace gapi.client {
2425
2827
  getIamPolicy(
2426
2828
  request: {
2427
2829
  /** V1 error format. */
2428
- '$.xgafv'?: string;
2830
+ '$.xgafv'?: '1' | '2';
2429
2831
  /** OAuth access token. */
2430
2832
  access_token?: string;
2431
2833
  /** Data format for response. */
2432
- alt?: string;
2834
+ alt?: 'json' | 'media' | 'proto';
2433
2835
  /** JSONP */
2434
2836
  callback?: string;
2435
2837
  /** Selector specifying which fields to include in a partial response. */
@@ -2454,11 +2856,11 @@ declare namespace gapi.client {
2454
2856
  /** Gets the `Note` attached to the given `Occurrence`. */
2455
2857
  getNotes(request?: {
2456
2858
  /** V1 error format. */
2457
- '$.xgafv'?: string;
2859
+ '$.xgafv'?: '1' | '2';
2458
2860
  /** OAuth access token. */
2459
2861
  access_token?: string;
2460
2862
  /** Data format for response. */
2461
- alt?: string;
2863
+ alt?: 'json' | 'media' | 'proto';
2462
2864
  /** JSONP */
2463
2865
  callback?: string;
2464
2866
  /** Selector specifying which fields to include in a partial response. */
@@ -2481,11 +2883,11 @@ declare namespace gapi.client {
2481
2883
  /** Gets a summary of the number and severity of occurrences. */
2482
2884
  getVulnerabilitySummary(request?: {
2483
2885
  /** V1 error format. */
2484
- '$.xgafv'?: string;
2886
+ '$.xgafv'?: '1' | '2';
2485
2887
  /** OAuth access token. */
2486
2888
  access_token?: string;
2487
2889
  /** Data format for response. */
2488
- alt?: string;
2890
+ alt?: 'json' | 'media' | 'proto';
2489
2891
  /** JSONP */
2490
2892
  callback?: string;
2491
2893
  /** Selector specifying which fields to include in a partial response. */
@@ -2510,11 +2912,11 @@ declare namespace gapi.client {
2510
2912
  /** Lists active `Occurrences` for a given project matching the filters. */
2511
2913
  list(request?: {
2512
2914
  /** V1 error format. */
2513
- '$.xgafv'?: string;
2915
+ '$.xgafv'?: '1' | '2';
2514
2916
  /** OAuth access token. */
2515
2917
  access_token?: string;
2516
2918
  /** Data format for response. */
2517
- alt?: string;
2919
+ alt?: 'json' | 'media' | 'proto';
2518
2920
  /** JSONP */
2519
2921
  callback?: string;
2520
2922
  /** Selector specifying which fields to include in a partial response. */
@@ -2524,7 +2926,25 @@ declare namespace gapi.client {
2524
2926
  /** 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. */
2525
2927
  key?: string;
2526
2928
  /** The kind of occurrences to filter on. */
2527
- kind?: string;
2929
+ kind?:
2930
+ | 'KIND_UNSPECIFIED'
2931
+ | 'PACKAGE_VULNERABILITY'
2932
+ | 'BUILD_DETAILS'
2933
+ | 'IMAGE_BASIS'
2934
+ | 'PACKAGE_MANAGER'
2935
+ | 'DEPLOYABLE'
2936
+ | 'DISCOVERY'
2937
+ | 'ATTESTATION_AUTHORITY'
2938
+ | 'UPGRADE'
2939
+ | 'COMPLIANCE'
2940
+ | 'SBOM'
2941
+ | 'SPDX_PACKAGE'
2942
+ | 'SPDX_FILE'
2943
+ | 'SPDX_RELATIONSHIP'
2944
+ | 'DSSE_ATTESTATION'
2945
+ | 'VULNERABILITY_ASSESSMENT'
2946
+ | 'SBOM_REFERENCE'
2947
+ | 'SECRET';
2528
2948
  /** The name field contains the project Id. For example: "projects/{project_id} @Deprecated */
2529
2949
  name?: string;
2530
2950
  /** OAuth 2.0 token for the current user. */
@@ -2547,11 +2967,11 @@ declare namespace gapi.client {
2547
2967
  /** Updates an existing occurrence. */
2548
2968
  patch(request: {
2549
2969
  /** V1 error format. */
2550
- '$.xgafv'?: string;
2970
+ '$.xgafv'?: '1' | '2';
2551
2971
  /** OAuth access token. */
2552
2972
  access_token?: string;
2553
2973
  /** Data format for response. */
2554
- alt?: string;
2974
+ alt?: 'json' | 'media' | 'proto';
2555
2975
  /** JSONP */
2556
2976
  callback?: string;
2557
2977
  /** Selector specifying which fields to include in a partial response. */
@@ -2578,11 +2998,11 @@ declare namespace gapi.client {
2578
2998
  patch(
2579
2999
  request: {
2580
3000
  /** V1 error format. */
2581
- '$.xgafv'?: string;
3001
+ '$.xgafv'?: '1' | '2';
2582
3002
  /** OAuth access token. */
2583
3003
  access_token?: string;
2584
3004
  /** Data format for response. */
2585
- alt?: string;
3005
+ alt?: 'json' | 'media' | 'proto';
2586
3006
  /** JSONP */
2587
3007
  callback?: string;
2588
3008
  /** Selector specifying which fields to include in a partial response. */
@@ -2610,11 +3030,11 @@ declare namespace gapi.client {
2610
3030
  setIamPolicy(
2611
3031
  request: {
2612
3032
  /** V1 error format. */
2613
- '$.xgafv'?: string;
3033
+ '$.xgafv'?: '1' | '2';
2614
3034
  /** OAuth access token. */
2615
3035
  access_token?: string;
2616
3036
  /** Data format for response. */
2617
- alt?: string;
3037
+ alt?: 'json' | 'media' | 'proto';
2618
3038
  /** JSONP */
2619
3039
  callback?: string;
2620
3040
  /** Selector specifying which fields to include in a partial response. */
@@ -2640,11 +3060,11 @@ declare namespace gapi.client {
2640
3060
  testIamPermissions(
2641
3061
  request: {
2642
3062
  /** V1 error format. */
2643
- '$.xgafv'?: string;
3063
+ '$.xgafv'?: '1' | '2';
2644
3064
  /** OAuth access token. */
2645
3065
  access_token?: string;
2646
3066
  /** Data format for response. */
2647
- alt?: string;
3067
+ alt?: 'json' | 'media' | 'proto';
2648
3068
  /** JSONP */
2649
3069
  callback?: string;
2650
3070
  /** Selector specifying which fields to include in a partial response. */
@@ -2671,11 +3091,11 @@ declare namespace gapi.client {
2671
3091
  /** Creates a new `Operation`. */
2672
3092
  create(request: {
2673
3093
  /** V1 error format. */
2674
- '$.xgafv'?: string;
3094
+ '$.xgafv'?: '1' | '2';
2675
3095
  /** OAuth access token. */
2676
3096
  access_token?: string;
2677
3097
  /** Data format for response. */
2678
- alt?: string;
3098
+ alt?: 'json' | 'media' | 'proto';
2679
3099
  /** JSONP */
2680
3100
  callback?: string;
2681
3101
  /** Selector specifying which fields to include in a partial response. */
@@ -2700,11 +3120,11 @@ declare namespace gapi.client {
2700
3120
  create(
2701
3121
  request: {
2702
3122
  /** V1 error format. */
2703
- '$.xgafv'?: string;
3123
+ '$.xgafv'?: '1' | '2';
2704
3124
  /** OAuth access token. */
2705
3125
  access_token?: string;
2706
3126
  /** Data format for response. */
2707
- alt?: string;
3127
+ alt?: 'json' | 'media' | 'proto';
2708
3128
  /** JSONP */
2709
3129
  callback?: string;
2710
3130
  /** Selector specifying which fields to include in a partial response. */
@@ -2729,11 +3149,11 @@ declare namespace gapi.client {
2729
3149
  /** Updates an existing operation returns an error if operation does not exist. The only valid operations are to update mark the done bit change the result. */
2730
3150
  patch(request: {
2731
3151
  /** V1 error format. */
2732
- '$.xgafv'?: string;
3152
+ '$.xgafv'?: '1' | '2';
2733
3153
  /** OAuth access token. */
2734
3154
  access_token?: string;
2735
3155
  /** Data format for response. */
2736
- alt?: string;
3156
+ alt?: 'json' | 'media' | 'proto';
2737
3157
  /** JSONP */
2738
3158
  callback?: string;
2739
3159
  /** Selector specifying which fields to include in a partial response. */
@@ -2758,11 +3178,11 @@ declare namespace gapi.client {
2758
3178
  patch(
2759
3179
  request: {
2760
3180
  /** V1 error format. */
2761
- '$.xgafv'?: string;
3181
+ '$.xgafv'?: '1' | '2';
2762
3182
  /** OAuth access token. */
2763
3183
  access_token?: string;
2764
3184
  /** Data format for response. */
2765
- alt?: string;
3185
+ alt?: 'json' | 'media' | 'proto';
2766
3186
  /** JSONP */
2767
3187
  callback?: string;
2768
3188
  /** Selector specifying which fields to include in a partial response. */
@@ -2789,11 +3209,11 @@ declare namespace gapi.client {
2789
3209
  /** Gets a specific scan configuration for a project. */
2790
3210
  get(request?: {
2791
3211
  /** V1 error format. */
2792
- '$.xgafv'?: string;
3212
+ '$.xgafv'?: '1' | '2';
2793
3213
  /** OAuth access token. */
2794
3214
  access_token?: string;
2795
3215
  /** Data format for response. */
2796
- alt?: string;
3216
+ alt?: 'json' | 'media' | 'proto';
2797
3217
  /** JSONP */
2798
3218
  callback?: string;
2799
3219
  /** Selector specifying which fields to include in a partial response. */
@@ -2816,11 +3236,11 @@ declare namespace gapi.client {
2816
3236
  /** Lists scan configurations for a project. */
2817
3237
  list(request?: {
2818
3238
  /** V1 error format. */
2819
- '$.xgafv'?: string;
3239
+ '$.xgafv'?: '1' | '2';
2820
3240
  /** OAuth access token. */
2821
3241
  access_token?: string;
2822
3242
  /** Data format for response. */
2823
- alt?: string;
3243
+ alt?: 'json' | 'media' | 'proto';
2824
3244
  /** JSONP */
2825
3245
  callback?: string;
2826
3246
  /** Selector specifying which fields to include in a partial response. */
@@ -2849,11 +3269,11 @@ declare namespace gapi.client {
2849
3269
  /** Updates the scan configuration to a new value. */
2850
3270
  patch(request: {
2851
3271
  /** V1 error format. */
2852
- '$.xgafv'?: string;
3272
+ '$.xgafv'?: '1' | '2';
2853
3273
  /** OAuth access token. */
2854
3274
  access_token?: string;
2855
3275
  /** Data format for response. */
2856
- alt?: string;
3276
+ alt?: 'json' | 'media' | 'proto';
2857
3277
  /** JSONP */
2858
3278
  callback?: string;
2859
3279
  /** Selector specifying which fields to include in a partial response. */
@@ -2880,11 +3300,11 @@ declare namespace gapi.client {
2880
3300
  patch(
2881
3301
  request: {
2882
3302
  /** V1 error format. */
2883
- '$.xgafv'?: string;
3303
+ '$.xgafv'?: '1' | '2';
2884
3304
  /** OAuth access token. */
2885
3305
  access_token?: string;
2886
3306
  /** Data format for response. */
2887
- alt?: string;
3307
+ alt?: 'json' | 'media' | 'proto';
2888
3308
  /** JSONP */
2889
3309
  callback?: string;
2890
3310
  /** Selector specifying which fields to include in a partial response. */
@@ -2919,11 +3339,11 @@ declare namespace gapi.client {
2919
3339
  /** Lists `Occurrences` referencing the specified `Note`. Use this method to get all occurrences referencing your `Note` across all your customer projects. */
2920
3340
  list(request?: {
2921
3341
  /** V1 error format. */
2922
- '$.xgafv'?: string;
3342
+ '$.xgafv'?: '1' | '2';
2923
3343
  /** OAuth access token. */
2924
3344
  access_token?: string;
2925
3345
  /** Data format for response. */
2926
- alt?: string;
3346
+ alt?: 'json' | 'media' | 'proto';
2927
3347
  /** JSONP */
2928
3348
  callback?: string;
2929
3349
  /** Selector specifying which fields to include in a partial response. */
@@ -2954,11 +3374,11 @@ declare namespace gapi.client {
2954
3374
  /** Creates a new `Note`. */
2955
3375
  create(request: {
2956
3376
  /** V1 error format. */
2957
- '$.xgafv'?: string;
3377
+ '$.xgafv'?: '1' | '2';
2958
3378
  /** OAuth access token. */
2959
3379
  access_token?: string;
2960
3380
  /** Data format for response. */
2961
- alt?: string;
3381
+ alt?: 'json' | 'media' | 'proto';
2962
3382
  /** JSONP */
2963
3383
  callback?: string;
2964
3384
  /** Selector specifying which fields to include in a partial response. */
@@ -2987,11 +3407,11 @@ declare namespace gapi.client {
2987
3407
  create(
2988
3408
  request: {
2989
3409
  /** V1 error format. */
2990
- '$.xgafv'?: string;
3410
+ '$.xgafv'?: '1' | '2';
2991
3411
  /** OAuth access token. */
2992
3412
  access_token?: string;
2993
3413
  /** Data format for response. */
2994
- alt?: string;
3414
+ alt?: 'json' | 'media' | 'proto';
2995
3415
  /** JSONP */
2996
3416
  callback?: string;
2997
3417
  /** Selector specifying which fields to include in a partial response. */
@@ -3020,11 +3440,11 @@ declare namespace gapi.client {
3020
3440
  /** Deletes the given `Note` from the system. */
3021
3441
  delete(request?: {
3022
3442
  /** V1 error format. */
3023
- '$.xgafv'?: string;
3443
+ '$.xgafv'?: '1' | '2';
3024
3444
  /** OAuth access token. */
3025
3445
  access_token?: string;
3026
3446
  /** Data format for response. */
3027
- alt?: string;
3447
+ alt?: 'json' | 'media' | 'proto';
3028
3448
  /** JSONP */
3029
3449
  callback?: string;
3030
3450
  /** Selector specifying which fields to include in a partial response. */
@@ -3047,11 +3467,11 @@ declare namespace gapi.client {
3047
3467
  /** Returns the requested `Note`. */
3048
3468
  get(request?: {
3049
3469
  /** V1 error format. */
3050
- '$.xgafv'?: string;
3470
+ '$.xgafv'?: '1' | '2';
3051
3471
  /** OAuth access token. */
3052
3472
  access_token?: string;
3053
3473
  /** Data format for response. */
3054
- alt?: string;
3474
+ alt?: 'json' | 'media' | 'proto';
3055
3475
  /** JSONP */
3056
3476
  callback?: string;
3057
3477
  /** Selector specifying which fields to include in a partial response. */
@@ -3075,11 +3495,11 @@ declare namespace gapi.client {
3075
3495
  getIamPolicy(
3076
3496
  request: {
3077
3497
  /** V1 error format. */
3078
- '$.xgafv'?: string;
3498
+ '$.xgafv'?: '1' | '2';
3079
3499
  /** OAuth access token. */
3080
3500
  access_token?: string;
3081
3501
  /** Data format for response. */
3082
- alt?: string;
3502
+ alt?: 'json' | 'media' | 'proto';
3083
3503
  /** JSONP */
3084
3504
  callback?: string;
3085
3505
  /** Selector specifying which fields to include in a partial response. */
@@ -3104,11 +3524,11 @@ declare namespace gapi.client {
3104
3524
  /** Lists all `Notes` for a given project. */
3105
3525
  list(request?: {
3106
3526
  /** V1 error format. */
3107
- '$.xgafv'?: string;
3527
+ '$.xgafv'?: '1' | '2';
3108
3528
  /** OAuth access token. */
3109
3529
  access_token?: string;
3110
3530
  /** Data format for response. */
3111
- alt?: string;
3531
+ alt?: 'json' | 'media' | 'proto';
3112
3532
  /** JSONP */
3113
3533
  callback?: string;
3114
3534
  /** Selector specifying which fields to include in a partial response. */
@@ -3139,11 +3559,11 @@ declare namespace gapi.client {
3139
3559
  /** Updates an existing `Note`. */
3140
3560
  patch(request: {
3141
3561
  /** V1 error format. */
3142
- '$.xgafv'?: string;
3562
+ '$.xgafv'?: '1' | '2';
3143
3563
  /** OAuth access token. */
3144
3564
  access_token?: string;
3145
3565
  /** Data format for response. */
3146
- alt?: string;
3566
+ alt?: 'json' | 'media' | 'proto';
3147
3567
  /** JSONP */
3148
3568
  callback?: string;
3149
3569
  /** Selector specifying which fields to include in a partial response. */
@@ -3170,11 +3590,11 @@ declare namespace gapi.client {
3170
3590
  patch(
3171
3591
  request: {
3172
3592
  /** V1 error format. */
3173
- '$.xgafv'?: string;
3593
+ '$.xgafv'?: '1' | '2';
3174
3594
  /** OAuth access token. */
3175
3595
  access_token?: string;
3176
3596
  /** Data format for response. */
3177
- alt?: string;
3597
+ alt?: 'json' | 'media' | 'proto';
3178
3598
  /** JSONP */
3179
3599
  callback?: string;
3180
3600
  /** Selector specifying which fields to include in a partial response. */
@@ -3202,11 +3622,11 @@ declare namespace gapi.client {
3202
3622
  setIamPolicy(
3203
3623
  request: {
3204
3624
  /** V1 error format. */
3205
- '$.xgafv'?: string;
3625
+ '$.xgafv'?: '1' | '2';
3206
3626
  /** OAuth access token. */
3207
3627
  access_token?: string;
3208
3628
  /** Data format for response. */
3209
- alt?: string;
3629
+ alt?: 'json' | 'media' | 'proto';
3210
3630
  /** JSONP */
3211
3631
  callback?: string;
3212
3632
  /** Selector specifying which fields to include in a partial response. */
@@ -3232,11 +3652,11 @@ declare namespace gapi.client {
3232
3652
  testIamPermissions(
3233
3653
  request: {
3234
3654
  /** V1 error format. */
3235
- '$.xgafv'?: string;
3655
+ '$.xgafv'?: '1' | '2';
3236
3656
  /** OAuth access token. */
3237
3657
  access_token?: string;
3238
3658
  /** Data format for response. */
3239
- alt?: string;
3659
+ alt?: 'json' | 'media' | 'proto';
3240
3660
  /** JSONP */
3241
3661
  callback?: string;
3242
3662
  /** Selector specifying which fields to include in a partial response. */