@maxim_mazurok/gapi.client.containeranalysis-v1alpha1 0.1.20260313 → 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 +553 -147
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -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
  }
@@ -409,7 +431,17 @@ declare namespace gapi.client {
409
431
  /** Output only. Time at which execution of the build was started. */
410
432
  startTime?: string;
411
433
  /** Output only. Status of the build. */
412
- 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';
413
445
  /** Output only. Customer-readable message about the current status. */
414
446
  statusDetail?: string;
415
447
  /** Required. The operations to be performed on the workspace. */
@@ -433,19 +465,34 @@ declare namespace gapi.client {
433
465
  /** Output only. Result of manual approval for this Build. */
434
466
  result?: ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult;
435
467
  /** Output only. The state of this build's approval. */
436
- state?: string;
468
+ state?:
469
+ | 'STATE_UNSPECIFIED'
470
+ | 'PENDING'
471
+ | 'APPROVED'
472
+ | 'REJECTED'
473
+ | 'CANCELLED';
437
474
  }
438
475
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo {
439
476
  /** Explains the failure issue in more detail using hard-coded text. */
440
477
  detail?: string;
441
478
  /** The name of the failure. */
442
- 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';
443
487
  }
444
488
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions {
445
489
  /** Option to include built-in and custom substitutions as env variables for all build steps. */
446
490
  automapSubstitutions?: boolean;
447
491
  /** Optional. Option to specify how default logs buckets are setup. */
448
- defaultLogsBucketBehavior?: string;
492
+ defaultLogsBucketBehavior?:
493
+ | 'DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED'
494
+ | 'REGIONAL_USER_OWNED_BUCKET'
495
+ | 'LEGACY_BUCKET';
449
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. */
450
497
  diskSizeGb?: string;
451
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. */
@@ -455,23 +502,41 @@ declare namespace gapi.client {
455
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". */
456
503
  env?: string[];
457
504
  /** Option to specify the logging mode, which determines if and where build logs are stored. */
458
- logging?: string;
505
+ logging?:
506
+ | 'LOGGING_UNSPECIFIED'
507
+ | 'LEGACY'
508
+ | 'GCS_ONLY'
509
+ | 'STACKDRIVER_ONLY'
510
+ | 'CLOUD_LOGGING_ONLY'
511
+ | 'NONE';
459
512
  /** Option to define build log streaming behavior to Cloud Storage. */
460
- logStreamingOption?: string;
513
+ logStreamingOption?: 'STREAM_DEFAULT' | 'STREAM_ON' | 'STREAM_OFF';
461
514
  /** Compute Engine machine type on which to run the build. */
462
- 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';
463
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. */
464
523
  pool?: ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption;
465
524
  /** Optional. Option to specify the Pub/Sub topic to receive build status updates. */
466
525
  pubsubTopic?: string;
467
526
  /** Requested verifiability options. */
468
- requestedVerifyOption?: string;
527
+ requestedVerifyOption?: 'NOT_VERIFIED' | 'VERIFIED';
469
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. */
470
529
  secretEnv?: string[];
471
530
  /** Requested hash for SourceProvenance. */
472
- sourceProvenanceHash?: string[];
531
+ sourceProvenanceHash?:
532
+ | 'NONE'
533
+ | 'SHA256'
534
+ | 'MD5'
535
+ | 'GO_MODULE_H1'
536
+ | 'SHA512'
537
+ | 'DIRSUM_SHA256'[];
473
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. */
474
- substitutionOption?: string;
539
+ substitutionOption?: 'MUST_MATCH' | 'ALLOW_LOOSE';
475
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. */
476
541
  volumes?: ContaineranalysisGoogleDevtoolsCloudbuildV1Volume[];
477
542
  /** This field deprecated; please use `pool.name` instead. */
@@ -509,7 +574,17 @@ declare namespace gapi.client {
509
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`. */
510
575
  secretEnv?: string[];
511
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. */
512
- 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';
513
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. */
514
589
  timeout?: string;
515
590
  /** Output only. Stores timing information for executing this build step. */
@@ -521,7 +596,7 @@ declare namespace gapi.client {
521
596
  }
522
597
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1BuildWarning {
523
598
  /** The priority for this warning. */
524
- priority?: string;
599
+ priority?: 'PRIORITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'ALERT';
525
600
  /** Explanation of the warning generated. */
526
601
  text?: string;
527
602
  }
@@ -533,7 +608,10 @@ declare namespace gapi.client {
533
608
  /** Name used to push the container image to Google Container Registry, as presented to `docker push`. */
534
609
  name?: string;
535
610
  /** Output only. The OCI media type of the artifact. Non-OCI images, such as Docker images, will have an unspecified value. */
536
- ociMediaType?: string;
611
+ ociMediaType?:
612
+ | 'OCI_MEDIA_TYPE_UNSPECIFIED'
613
+ | 'IMAGE_MANIFEST'
614
+ | 'IMAGE_INDEX';
537
615
  /** Output only. Stores timing information for pushing the specified image. */
538
616
  pushTiming?: ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan;
539
617
  }
@@ -599,7 +677,13 @@ declare namespace gapi.client {
599
677
  }
600
678
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1Hash {
601
679
  /** The type of hash that was performed. */
602
- type?: string;
680
+ type?:
681
+ | 'NONE'
682
+ | 'SHA256'
683
+ | 'MD5'
684
+ | 'GO_MODULE_H1'
685
+ | 'SHA512'
686
+ | 'DIRSUM_SHA256';
603
687
  /** The hash value. */
604
688
  value?: string;
605
689
  }
@@ -705,7 +789,7 @@ declare namespace gapi.client {
705
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. */
706
790
  object?: string;
707
791
  /** Optional. Option to specify the tool to fetch the source file for the build. */
708
- sourceFetcher?: string;
792
+ sourceFetcher?: 'SOURCE_FETCHER_UNSPECIFIED' | 'GSUTIL' | 'GCS_FETCHER';
709
793
  }
710
794
  interface ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSourceManifest {
711
795
  /** Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */
@@ -775,27 +859,65 @@ declare namespace gapi.client {
775
859
  }
776
860
  interface CVSS {
777
861
  /** Defined in CVSS v3, CVSS v2 */
778
- attackComplexity?: string;
862
+ attackComplexity?:
863
+ | 'ATTACK_COMPLEXITY_UNSPECIFIED'
864
+ | 'ATTACK_COMPLEXITY_LOW'
865
+ | 'ATTACK_COMPLEXITY_HIGH'
866
+ | 'ATTACK_COMPLEXITY_MEDIUM';
779
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 */
780
- attackVector?: string;
868
+ attackVector?:
869
+ | 'ATTACK_VECTOR_UNSPECIFIED'
870
+ | 'ATTACK_VECTOR_NETWORK'
871
+ | 'ATTACK_VECTOR_ADJACENT'
872
+ | 'ATTACK_VECTOR_LOCAL'
873
+ | 'ATTACK_VECTOR_PHYSICAL';
781
874
  /** Defined in CVSS v2 */
782
- authentication?: string;
875
+ authentication?:
876
+ | 'AUTHENTICATION_UNSPECIFIED'
877
+ | 'AUTHENTICATION_MULTIPLE'
878
+ | 'AUTHENTICATION_SINGLE'
879
+ | 'AUTHENTICATION_NONE';
783
880
  /** Defined in CVSS v3, CVSS v2 */
784
- availabilityImpact?: string;
881
+ availabilityImpact?:
882
+ | 'IMPACT_UNSPECIFIED'
883
+ | 'IMPACT_HIGH'
884
+ | 'IMPACT_LOW'
885
+ | 'IMPACT_NONE'
886
+ | 'IMPACT_PARTIAL'
887
+ | 'IMPACT_COMPLETE';
785
888
  /** The base score is a function of the base metric scores. */
786
889
  baseScore?: number;
787
890
  /** Defined in CVSS v3, CVSS v2 */
788
- confidentialityImpact?: string;
891
+ confidentialityImpact?:
892
+ | 'IMPACT_UNSPECIFIED'
893
+ | 'IMPACT_HIGH'
894
+ | 'IMPACT_LOW'
895
+ | 'IMPACT_NONE'
896
+ | 'IMPACT_PARTIAL'
897
+ | 'IMPACT_COMPLETE';
789
898
  exploitabilityScore?: number;
790
899
  impactScore?: number;
791
900
  /** Defined in CVSS v3, CVSS v2 */
792
- integrityImpact?: string;
901
+ integrityImpact?:
902
+ | 'IMPACT_UNSPECIFIED'
903
+ | 'IMPACT_HIGH'
904
+ | 'IMPACT_LOW'
905
+ | 'IMPACT_NONE'
906
+ | 'IMPACT_PARTIAL'
907
+ | 'IMPACT_COMPLETE';
793
908
  /** Defined in CVSS v3 */
794
- privilegesRequired?: string;
909
+ privilegesRequired?:
910
+ | 'PRIVILEGES_REQUIRED_UNSPECIFIED'
911
+ | 'PRIVILEGES_REQUIRED_NONE'
912
+ | 'PRIVILEGES_REQUIRED_LOW'
913
+ | 'PRIVILEGES_REQUIRED_HIGH';
795
914
  /** Defined in CVSS v3 */
796
- scope?: string;
915
+ scope?: 'SCOPE_UNSPECIFIED' | 'SCOPE_UNCHANGED' | 'SCOPE_CHANGED';
797
916
  /** Defined in CVSS v3 */
798
- userInteraction?: string;
917
+ userInteraction?:
918
+ | 'USER_INTERACTION_UNSPECIFIED'
919
+ | 'USER_INTERACTION_NONE'
920
+ | 'USER_INTERACTION_REQUIRED';
799
921
  }
800
922
  interface Deployable {
801
923
  /** Resource URI for the artifact being deployed. */
@@ -809,7 +931,7 @@ declare namespace gapi.client {
809
931
  /** Beginning of the lifetime of this deployment. */
810
932
  deployTime?: string;
811
933
  /** Platform hosting this deployment. */
812
- platform?: string;
934
+ platform?: 'PLATFORM_UNSPECIFIED' | 'GKE' | 'FLEX' | 'CUSTOM';
813
935
  /** Resource URI for the artifact being deployed taken from the deployable field with the same name. */
814
936
  resourceUri?: string[];
815
937
  /** End of the lifetime of this deployment. */
@@ -863,13 +985,23 @@ declare namespace gapi.client {
863
985
  /** Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors. */
864
986
  analysisError?: Status[];
865
987
  /** The status of discovery for the resource. */
866
- analysisStatus?: string;
988
+ analysisStatus?:
989
+ | 'ANALYSIS_STATUS_UNSPECIFIED'
990
+ | 'PENDING'
991
+ | 'SCANNING'
992
+ | 'COMPLETE'
993
+ | 'FINISHED_SUCCESS'
994
+ | 'FINISHED_FAILED'
995
+ | 'FINISHED_UNSUPPORTED';
867
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. */
868
997
  analysisStatusError?: Status;
869
998
  /** The time occurrences related to this discovery occurrence were archived. */
870
999
  archiveTime?: string;
871
1000
  /** Whether the resource is continuously analyzed. */
872
- continuousAnalysis?: string;
1001
+ continuousAnalysis?:
1002
+ | 'CONTINUOUS_ANALYSIS_UNSPECIFIED'
1003
+ | 'ACTIVE'
1004
+ | 'INACTIVE';
873
1005
  /** The CPE of the resource being scanned. */
874
1006
  cpe?: string;
875
1007
  /** Optional. Files that make up the resource described by the occurrence. */
@@ -887,11 +1019,29 @@ declare namespace gapi.client {
887
1019
  }
888
1020
  interface Discovery {
889
1021
  /** The kind of analysis that is handled by this discovery. */
890
- 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';
891
1041
  }
892
1042
  interface Distribution {
893
1043
  /** The CPU architecture for which packages in this distribution channel were built */
894
- architecture?: string;
1044
+ architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
895
1045
  /** The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. */
896
1046
  cpeUri?: string;
897
1047
  /** The distribution channel-specific description of this package. */
@@ -975,7 +1125,12 @@ declare namespace gapi.client {
975
1125
  }
976
1126
  interface ExternalRef {
977
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 */
978
- category?: string;
1128
+ category?:
1129
+ | 'CATEGORY_UNSPECIFIED'
1130
+ | 'SECURITY'
1131
+ | 'PACKAGE_MANAGER'
1132
+ | 'PERSISTENT_ID'
1133
+ | 'OTHER';
979
1134
  /** Human-readable information about the purpose and target of the reference */
980
1135
  comment?: string;
981
1136
  /** The unique string with no spaces necessary to access the package-specific information, metadata, or content within the target location */
@@ -1005,7 +1160,19 @@ declare namespace gapi.client {
1005
1160
  /** Provide a unique identifier to match analysis information on each specific file in a package */
1006
1161
  checksum?: string[];
1007
1162
  /** This field provides information about the type of file identified */
1008
- 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';
1009
1176
  /** Identify the full path and filename that corresponds to the file information in this section */
1010
1177
  title?: string;
1011
1178
  }
@@ -1049,7 +1216,7 @@ declare namespace gapi.client {
1049
1216
  }
1050
1217
  interface GoogleDevtoolsContaineranalysisV1alpha1AliasContext {
1051
1218
  /** The alias kind. */
1052
- kind?: string;
1219
+ kind?: 'KIND_UNSPECIFIED' | 'FIXED' | 'MOVABLE' | 'OTHER';
1053
1220
  /** The alias name. */
1054
1221
  name?: string;
1055
1222
  }
@@ -1153,19 +1320,19 @@ declare namespace gapi.client {
1153
1320
  }
1154
1321
  interface Hash {
1155
1322
  /** The type of hash that was performed. */
1156
- type?: string;
1323
+ type?: 'NONE' | 'SHA256' | 'GO_MODULE_H1' | 'DIRSUM_SHA256';
1157
1324
  /** The hash value. */
1158
1325
  value?: string;
1159
1326
  }
1160
1327
  interface IdentifierHelper {
1161
1328
  /** The field that is set in the API proto. */
1162
- field?: string;
1329
+ field?: 'IDENTIFIER_HELPER_FIELD_UNSPECIFIED' | 'GENERIC_URI';
1163
1330
  /** Contains a URI which is vendor-specific. Example: The artifact repository URL of an image. */
1164
1331
  genericUri?: string;
1165
1332
  }
1166
1333
  interface Installation {
1167
1334
  /** Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1168
- architecture?: string;
1335
+ architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
1169
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. */
1170
1337
  cpeUri?: string;
1171
1338
  /** Licenses that have been declared by the authors of the package. */
@@ -1213,13 +1380,37 @@ declare namespace gapi.client {
1213
1380
  /** Additional details on why this justification was chosen. */
1214
1381
  details?: string;
1215
1382
  /** The justification type for this vulnerability. */
1216
- 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';
1217
1390
  }
1218
1391
  interface Layer {
1219
1392
  /** The recovered arguments to the Dockerfile directive. */
1220
1393
  arguments?: string;
1221
1394
  /** The recovered Dockerfile directive used to construct this layer. */
1222
- 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';
1223
1414
  }
1224
1415
  interface LayerDetails {
1225
1416
  /** The base images the layer is found within. */
@@ -1317,7 +1508,25 @@ declare namespace gapi.client {
1317
1508
  /** Time of expiration for this note, null if note does not expire. */
1318
1509
  expirationTime?: string;
1319
1510
  /** Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests. */
1320
- 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';
1321
1530
  /** A detailed description of this `Note`. */
1322
1531
  longDescription?: string;
1323
1532
  /** The name of the note in the form "projects/{provider_project_id}/notes/{NOTE_ID}" */
@@ -1371,7 +1580,25 @@ declare namespace gapi.client {
1371
1580
  /** Describes the installation of a package on the linked resource. */
1372
1581
  installation?: Installation;
1373
1582
  /** Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests. */
1374
- 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';
1375
1602
  /** Output only. The name of the `Occurrence` in the form "projects/{project_id}/occurrences/{OCCURRENCE_ID}" */
1376
1603
  name?: string;
1377
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. */
@@ -1415,7 +1642,7 @@ declare namespace gapi.client {
1415
1642
  }
1416
1643
  interface Package {
1417
1644
  /** The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. */
1418
- architecture?: string;
1645
+ architecture?: 'ARCHITECTURE_UNSPECIFIED' | 'X86' | 'X64';
1419
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. */
1420
1647
  cpeUri?: string;
1421
1648
  /** The description of this package. */
@@ -1499,7 +1726,13 @@ declare namespace gapi.client {
1499
1726
  /** The location of the vulnerability. */
1500
1727
  affectedLocation?: VulnerabilityLocation;
1501
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. */
1502
- effectiveSeverity?: string;
1729
+ effectiveSeverity?:
1730
+ | 'SEVERITY_UNSPECIFIED'
1731
+ | 'MINIMAL'
1732
+ | 'LOW'
1733
+ | 'MEDIUM'
1734
+ | 'HIGH'
1735
+ | 'CRITICAL';
1503
1736
  /** The location of the available fix for vulnerability. */
1504
1737
  fixedLocation?: VulnerabilityLocation;
1505
1738
  /** The type of package (e.g. OS, MAVEN, GO). */
@@ -1508,7 +1741,7 @@ declare namespace gapi.client {
1508
1741
  }
1509
1742
  interface PgpSignedAttestation {
1510
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). */
1511
- contentType?: string;
1744
+ contentType?: 'CONTENT_TYPE_UNSPECIFIED' | 'SIMPLE_SIGNING_JSON';
1512
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`. */
1513
1746
  pgpKeyId?: string;
1514
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. */
@@ -1563,7 +1796,51 @@ declare namespace gapi.client {
1563
1796
  }
1564
1797
  interface RelationshipNote {
1565
1798
  /** The type of relationship between the source and target SPDX elements */
1566
- 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';
1567
1844
  }
1568
1845
  interface RelationshipOccurrence {
1569
1846
  /** A place for the SPDX file creator to record any general comments about the relationship */
@@ -1573,13 +1850,63 @@ declare namespace gapi.client {
1573
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 */
1574
1851
  target?: string;
1575
1852
  /** Output only. The type of relationship between the source and target SPDX elements */
1576
- 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';
1577
1898
  }
1578
1899
  interface Remediation {
1579
1900
  /** Contains a comprehensive human-readable discussion of the remediation. */
1580
1901
  details?: string;
1581
1902
  /** The type of remediation that can be applied. */
1582
- remediationType?: string;
1903
+ remediationType?:
1904
+ | 'REMEDIATION_TYPE_UNSPECIFIED'
1905
+ | 'MITIGATION'
1906
+ | 'NO_FIX_PLANNED'
1907
+ | 'NONE_AVAILABLE'
1908
+ | 'VENDOR_FIX'
1909
+ | 'WORKAROUND';
1583
1910
  /** Contains the URL where to obtain the remediation. */
1584
1911
  remediationUri?: URI;
1585
1912
  }
@@ -1661,7 +1988,7 @@ declare namespace gapi.client {
1661
1988
  /** Output only. If there was an error generating an SBOM, this will indicate what that error was. */
1662
1989
  error?: string;
1663
1990
  /** Output only. The progress of the SBOM generation. */
1664
- sbomState?: string;
1991
+ sbomState?: 'SBOM_STATE_UNSPECIFIED' | 'PENDING' | 'COMPLETE';
1665
1992
  }
1666
1993
  interface ScanConfig {
1667
1994
  /** Output only. The time this scan config was created. */
@@ -1682,7 +2009,30 @@ declare namespace gapi.client {
1682
2009
  interface SecretNote {}
1683
2010
  interface SecretOccurrence {
1684
2011
  /** Required. Type of secret. */
1685
- 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';
1686
2036
  /** Optional. Locations where the secret is detected. */
1687
2037
  locations?: SecretLocation[];
1688
2038
  /** Optional. Status of the secret. */
@@ -1692,7 +2042,7 @@ declare namespace gapi.client {
1692
2042
  /** Optional. Optional message about the status code. */
1693
2043
  message?: string;
1694
2044
  /** Optional. The status of the secret. */
1695
- status?: string;
2045
+ status?: 'STATUS_UNSPECIFIED' | 'UNKNOWN' | 'VALID' | 'INVALID';
1696
2046
  /** Optional. The time the secret status was last updated. */
1697
2047
  updateTime?: string;
1698
2048
  }
@@ -1704,7 +2054,13 @@ declare namespace gapi.client {
1704
2054
  /** The number of occurrences with the severity. */
1705
2055
  count?: string;
1706
2056
  /** The severity of the occurrences. */
1707
- severity?: string;
2057
+ severity?:
2058
+ | 'SEVERITY_UNSPECIFIED'
2059
+ | 'MINIMAL'
2060
+ | 'LOW'
2061
+ | 'MEDIUM'
2062
+ | 'HIGH'
2063
+ | 'CRITICAL';
1708
2064
  }
1709
2065
  interface SlsaBuilder {
1710
2066
  /** id is the id of the slsa provenance builder */
@@ -1869,7 +2225,7 @@ declare namespace gapi.client {
1869
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 */
1870
2226
  inclusive?: boolean;
1871
2227
  /** Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored. */
1872
- kind?: string;
2228
+ kind?: 'NORMAL' | 'MINIMUM' | 'MAXIMUM';
1873
2229
  /** The main part of the version name. */
1874
2230
  name?: string;
1875
2231
  /** The iteration of the package build from the above version. */
@@ -1889,7 +2245,12 @@ declare namespace gapi.client {
1889
2245
  /** Specifies details on how to handle (and presumably, fix) a vulnerability. */
1890
2246
  remediations?: Remediation[];
1891
2247
  /** Provides the state of this Vulnerability assessment. */
1892
- state?: string;
2248
+ state?:
2249
+ | 'STATE_UNSPECIFIED'
2250
+ | 'AFFECTED'
2251
+ | 'NOT_AFFECTED'
2252
+ | 'FIXED'
2253
+ | 'UNDER_INVESTIGATION';
1893
2254
  /** The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. */
1894
2255
  vulnerabilityId?: string;
1895
2256
  }
@@ -1921,7 +2282,10 @@ declare namespace gapi.client {
1921
2282
  /** Output only. The last time we attempted to generate an attestation. */
1922
2283
  lastAttemptTime?: string;
1923
2284
  /** Output only. The success/failure state of the latest attestation attempt. */
1924
- state?: string;
2285
+ state?:
2286
+ | 'VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED'
2287
+ | 'SUCCESS'
2288
+ | 'FAILURE';
1925
2289
  }
1926
2290
  interface VulnerabilityDetails {
1927
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. */
@@ -1931,9 +2295,18 @@ declare namespace gapi.client {
1931
2295
  /** The CVSS v3 score of this vulnerability. */
1932
2296
  cvssV3?: CVSS;
1933
2297
  /** Output only. CVSS version used to populate cvss_score and severity. */
1934
- cvssVersion?: string;
2298
+ cvssVersion?:
2299
+ | 'CVSS_VERSION_UNSPECIFIED'
2300
+ | 'CVSS_VERSION_2'
2301
+ | 'CVSS_VERSION_3';
1935
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. */
1936
- effectiveSeverity?: string;
2303
+ effectiveSeverity?:
2304
+ | 'SEVERITY_UNSPECIFIED'
2305
+ | 'MINIMAL'
2306
+ | 'LOW'
2307
+ | 'MEDIUM'
2308
+ | 'HIGH'
2309
+ | 'CRITICAL';
1937
2310
  /** Occurrence-specific extra details about the vulnerability. */
1938
2311
  extraDetails?: string;
1939
2312
  /** The set of affected locations and their fixes (if available) within the associated resource. */
@@ -1941,7 +2314,13 @@ declare namespace gapi.client {
1941
2314
  /** Risk information about the vulnerability, such as CISA, EPSS, etc. */
1942
2315
  risk?: Risk;
1943
2316
  /** Output only. The note provider assigned Severity of the vulnerability. */
1944
- severity?: string;
2317
+ severity?:
2318
+ | 'SEVERITY_UNSPECIFIED'
2319
+ | 'MINIMAL'
2320
+ | 'LOW'
2321
+ | 'MEDIUM'
2322
+ | 'HIGH'
2323
+ | 'CRITICAL';
1945
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. */
1946
2325
  type?: string;
1947
2326
  /** VexAssessment provides all publisher provided Vex information that is related to this vulnerability for this resource. */
@@ -1965,23 +2344,32 @@ declare namespace gapi.client {
1965
2344
  /** The full description of the CVSS for version 2. */
1966
2345
  cvssV2?: CVSS;
1967
2346
  /** CVSS version used to populate cvss_score and severity. */
1968
- cvssVersion?: string;
2347
+ cvssVersion?:
2348
+ | 'CVSS_VERSION_UNSPECIFIED'
2349
+ | 'CVSS_VERSION_2'
2350
+ | 'CVSS_VERSION_3';
1969
2351
  /** A list of CWE for this vulnerability. For details, see: https://cwe.mitre.org/index.html */
1970
2352
  cwe?: string[];
1971
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. */
1972
2354
  details?: Detail[];
1973
2355
  /** Note provider assigned impact of the vulnerability */
1974
- severity?: string;
2356
+ severity?:
2357
+ | 'SEVERITY_UNSPECIFIED'
2358
+ | 'MINIMAL'
2359
+ | 'LOW'
2360
+ | 'MEDIUM'
2361
+ | 'HIGH'
2362
+ | 'CRITICAL';
1975
2363
  }
1976
2364
  interface OccurrencesResource {
1977
2365
  /** Lists `Occurrences` referencing the specified `Note`. Use this method to get all occurrences referencing your `Note` across all your customer projects. */
1978
2366
  list(request?: {
1979
2367
  /** V1 error format. */
1980
- '$.xgafv'?: string;
2368
+ '$.xgafv'?: '1' | '2';
1981
2369
  /** OAuth access token. */
1982
2370
  access_token?: string;
1983
2371
  /** Data format for response. */
1984
- alt?: string;
2372
+ alt?: 'json' | 'media' | 'proto';
1985
2373
  /** JSONP */
1986
2374
  callback?: string;
1987
2375
  /** Selector specifying which fields to include in a partial response. */
@@ -2012,11 +2400,11 @@ declare namespace gapi.client {
2012
2400
  /** Creates a new `Note`. */
2013
2401
  create(request: {
2014
2402
  /** V1 error format. */
2015
- '$.xgafv'?: string;
2403
+ '$.xgafv'?: '1' | '2';
2016
2404
  /** OAuth access token. */
2017
2405
  access_token?: string;
2018
2406
  /** Data format for response. */
2019
- alt?: string;
2407
+ alt?: 'json' | 'media' | 'proto';
2020
2408
  /** JSONP */
2021
2409
  callback?: string;
2022
2410
  /** Selector specifying which fields to include in a partial response. */
@@ -2045,11 +2433,11 @@ declare namespace gapi.client {
2045
2433
  create(
2046
2434
  request: {
2047
2435
  /** V1 error format. */
2048
- '$.xgafv'?: string;
2436
+ '$.xgafv'?: '1' | '2';
2049
2437
  /** OAuth access token. */
2050
2438
  access_token?: string;
2051
2439
  /** Data format for response. */
2052
- alt?: string;
2440
+ alt?: 'json' | 'media' | 'proto';
2053
2441
  /** JSONP */
2054
2442
  callback?: string;
2055
2443
  /** Selector specifying which fields to include in a partial response. */
@@ -2078,11 +2466,11 @@ declare namespace gapi.client {
2078
2466
  /** Deletes the given `Note` from the system. */
2079
2467
  delete(request?: {
2080
2468
  /** V1 error format. */
2081
- '$.xgafv'?: string;
2469
+ '$.xgafv'?: '1' | '2';
2082
2470
  /** OAuth access token. */
2083
2471
  access_token?: string;
2084
2472
  /** Data format for response. */
2085
- alt?: string;
2473
+ alt?: 'json' | 'media' | 'proto';
2086
2474
  /** JSONP */
2087
2475
  callback?: string;
2088
2476
  /** Selector specifying which fields to include in a partial response. */
@@ -2105,11 +2493,11 @@ declare namespace gapi.client {
2105
2493
  /** Returns the requested `Note`. */
2106
2494
  get(request?: {
2107
2495
  /** V1 error format. */
2108
- '$.xgafv'?: string;
2496
+ '$.xgafv'?: '1' | '2';
2109
2497
  /** OAuth access token. */
2110
2498
  access_token?: string;
2111
2499
  /** Data format for response. */
2112
- alt?: string;
2500
+ alt?: 'json' | 'media' | 'proto';
2113
2501
  /** JSONP */
2114
2502
  callback?: string;
2115
2503
  /** Selector specifying which fields to include in a partial response. */
@@ -2133,11 +2521,11 @@ declare namespace gapi.client {
2133
2521
  getIamPolicy(
2134
2522
  request: {
2135
2523
  /** V1 error format. */
2136
- '$.xgafv'?: string;
2524
+ '$.xgafv'?: '1' | '2';
2137
2525
  /** OAuth access token. */
2138
2526
  access_token?: string;
2139
2527
  /** Data format for response. */
2140
- alt?: string;
2528
+ alt?: 'json' | 'media' | 'proto';
2141
2529
  /** JSONP */
2142
2530
  callback?: string;
2143
2531
  /** Selector specifying which fields to include in a partial response. */
@@ -2162,11 +2550,11 @@ declare namespace gapi.client {
2162
2550
  /** Lists all `Notes` for a given project. */
2163
2551
  list(request?: {
2164
2552
  /** V1 error format. */
2165
- '$.xgafv'?: string;
2553
+ '$.xgafv'?: '1' | '2';
2166
2554
  /** OAuth access token. */
2167
2555
  access_token?: string;
2168
2556
  /** Data format for response. */
2169
- alt?: string;
2557
+ alt?: 'json' | 'media' | 'proto';
2170
2558
  /** JSONP */
2171
2559
  callback?: string;
2172
2560
  /** Selector specifying which fields to include in a partial response. */
@@ -2197,11 +2585,11 @@ declare namespace gapi.client {
2197
2585
  /** Updates an existing `Note`. */
2198
2586
  patch(request: {
2199
2587
  /** V1 error format. */
2200
- '$.xgafv'?: string;
2588
+ '$.xgafv'?: '1' | '2';
2201
2589
  /** OAuth access token. */
2202
2590
  access_token?: string;
2203
2591
  /** Data format for response. */
2204
- alt?: string;
2592
+ alt?: 'json' | 'media' | 'proto';
2205
2593
  /** JSONP */
2206
2594
  callback?: string;
2207
2595
  /** Selector specifying which fields to include in a partial response. */
@@ -2228,11 +2616,11 @@ declare namespace gapi.client {
2228
2616
  patch(
2229
2617
  request: {
2230
2618
  /** V1 error format. */
2231
- '$.xgafv'?: string;
2619
+ '$.xgafv'?: '1' | '2';
2232
2620
  /** OAuth access token. */
2233
2621
  access_token?: string;
2234
2622
  /** Data format for response. */
2235
- alt?: string;
2623
+ alt?: 'json' | 'media' | 'proto';
2236
2624
  /** JSONP */
2237
2625
  callback?: string;
2238
2626
  /** Selector specifying which fields to include in a partial response. */
@@ -2260,11 +2648,11 @@ declare namespace gapi.client {
2260
2648
  setIamPolicy(
2261
2649
  request: {
2262
2650
  /** V1 error format. */
2263
- '$.xgafv'?: string;
2651
+ '$.xgafv'?: '1' | '2';
2264
2652
  /** OAuth access token. */
2265
2653
  access_token?: string;
2266
2654
  /** Data format for response. */
2267
- alt?: string;
2655
+ alt?: 'json' | 'media' | 'proto';
2268
2656
  /** JSONP */
2269
2657
  callback?: string;
2270
2658
  /** Selector specifying which fields to include in a partial response. */
@@ -2290,11 +2678,11 @@ declare namespace gapi.client {
2290
2678
  testIamPermissions(
2291
2679
  request: {
2292
2680
  /** V1 error format. */
2293
- '$.xgafv'?: string;
2681
+ '$.xgafv'?: '1' | '2';
2294
2682
  /** OAuth access token. */
2295
2683
  access_token?: string;
2296
2684
  /** Data format for response. */
2297
- alt?: string;
2685
+ alt?: 'json' | 'media' | 'proto';
2298
2686
  /** JSONP */
2299
2687
  callback?: string;
2300
2688
  /** Selector specifying which fields to include in a partial response. */
@@ -2322,11 +2710,11 @@ declare namespace gapi.client {
2322
2710
  /** Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource. */
2323
2711
  create(request: {
2324
2712
  /** V1 error format. */
2325
- '$.xgafv'?: string;
2713
+ '$.xgafv'?: '1' | '2';
2326
2714
  /** OAuth access token. */
2327
2715
  access_token?: string;
2328
2716
  /** Data format for response. */
2329
- alt?: string;
2717
+ alt?: 'json' | 'media' | 'proto';
2330
2718
  /** JSONP */
2331
2719
  callback?: string;
2332
2720
  /** Selector specifying which fields to include in a partial response. */
@@ -2353,11 +2741,11 @@ declare namespace gapi.client {
2353
2741
  create(
2354
2742
  request: {
2355
2743
  /** V1 error format. */
2356
- '$.xgafv'?: string;
2744
+ '$.xgafv'?: '1' | '2';
2357
2745
  /** OAuth access token. */
2358
2746
  access_token?: string;
2359
2747
  /** Data format for response. */
2360
- alt?: string;
2748
+ alt?: 'json' | 'media' | 'proto';
2361
2749
  /** JSONP */
2362
2750
  callback?: string;
2363
2751
  /** Selector specifying which fields to include in a partial response. */
@@ -2384,11 +2772,11 @@ declare namespace gapi.client {
2384
2772
  /** Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource. */
2385
2773
  delete(request?: {
2386
2774
  /** V1 error format. */
2387
- '$.xgafv'?: string;
2775
+ '$.xgafv'?: '1' | '2';
2388
2776
  /** OAuth access token. */
2389
2777
  access_token?: string;
2390
2778
  /** Data format for response. */
2391
- alt?: string;
2779
+ alt?: 'json' | 'media' | 'proto';
2392
2780
  /** JSONP */
2393
2781
  callback?: string;
2394
2782
  /** Selector specifying which fields to include in a partial response. */
@@ -2411,11 +2799,11 @@ declare namespace gapi.client {
2411
2799
  /** Returns the requested `Occurrence`. */
2412
2800
  get(request?: {
2413
2801
  /** V1 error format. */
2414
- '$.xgafv'?: string;
2802
+ '$.xgafv'?: '1' | '2';
2415
2803
  /** OAuth access token. */
2416
2804
  access_token?: string;
2417
2805
  /** Data format for response. */
2418
- alt?: string;
2806
+ alt?: 'json' | 'media' | 'proto';
2419
2807
  /** JSONP */
2420
2808
  callback?: string;
2421
2809
  /** Selector specifying which fields to include in a partial response. */
@@ -2439,11 +2827,11 @@ declare namespace gapi.client {
2439
2827
  getIamPolicy(
2440
2828
  request: {
2441
2829
  /** V1 error format. */
2442
- '$.xgafv'?: string;
2830
+ '$.xgafv'?: '1' | '2';
2443
2831
  /** OAuth access token. */
2444
2832
  access_token?: string;
2445
2833
  /** Data format for response. */
2446
- alt?: string;
2834
+ alt?: 'json' | 'media' | 'proto';
2447
2835
  /** JSONP */
2448
2836
  callback?: string;
2449
2837
  /** Selector specifying which fields to include in a partial response. */
@@ -2468,11 +2856,11 @@ declare namespace gapi.client {
2468
2856
  /** Gets the `Note` attached to the given `Occurrence`. */
2469
2857
  getNotes(request?: {
2470
2858
  /** V1 error format. */
2471
- '$.xgafv'?: string;
2859
+ '$.xgafv'?: '1' | '2';
2472
2860
  /** OAuth access token. */
2473
2861
  access_token?: string;
2474
2862
  /** Data format for response. */
2475
- alt?: string;
2863
+ alt?: 'json' | 'media' | 'proto';
2476
2864
  /** JSONP */
2477
2865
  callback?: string;
2478
2866
  /** Selector specifying which fields to include in a partial response. */
@@ -2495,11 +2883,11 @@ declare namespace gapi.client {
2495
2883
  /** Gets a summary of the number and severity of occurrences. */
2496
2884
  getVulnerabilitySummary(request?: {
2497
2885
  /** V1 error format. */
2498
- '$.xgafv'?: string;
2886
+ '$.xgafv'?: '1' | '2';
2499
2887
  /** OAuth access token. */
2500
2888
  access_token?: string;
2501
2889
  /** Data format for response. */
2502
- alt?: string;
2890
+ alt?: 'json' | 'media' | 'proto';
2503
2891
  /** JSONP */
2504
2892
  callback?: string;
2505
2893
  /** Selector specifying which fields to include in a partial response. */
@@ -2524,11 +2912,11 @@ declare namespace gapi.client {
2524
2912
  /** Lists active `Occurrences` for a given project matching the filters. */
2525
2913
  list(request?: {
2526
2914
  /** V1 error format. */
2527
- '$.xgafv'?: string;
2915
+ '$.xgafv'?: '1' | '2';
2528
2916
  /** OAuth access token. */
2529
2917
  access_token?: string;
2530
2918
  /** Data format for response. */
2531
- alt?: string;
2919
+ alt?: 'json' | 'media' | 'proto';
2532
2920
  /** JSONP */
2533
2921
  callback?: string;
2534
2922
  /** Selector specifying which fields to include in a partial response. */
@@ -2538,7 +2926,25 @@ declare namespace gapi.client {
2538
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. */
2539
2927
  key?: string;
2540
2928
  /** The kind of occurrences to filter on. */
2541
- 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';
2542
2948
  /** The name field contains the project Id. For example: "projects/{project_id} @Deprecated */
2543
2949
  name?: string;
2544
2950
  /** OAuth 2.0 token for the current user. */
@@ -2561,11 +2967,11 @@ declare namespace gapi.client {
2561
2967
  /** Updates an existing occurrence. */
2562
2968
  patch(request: {
2563
2969
  /** V1 error format. */
2564
- '$.xgafv'?: string;
2970
+ '$.xgafv'?: '1' | '2';
2565
2971
  /** OAuth access token. */
2566
2972
  access_token?: string;
2567
2973
  /** Data format for response. */
2568
- alt?: string;
2974
+ alt?: 'json' | 'media' | 'proto';
2569
2975
  /** JSONP */
2570
2976
  callback?: string;
2571
2977
  /** Selector specifying which fields to include in a partial response. */
@@ -2592,11 +2998,11 @@ declare namespace gapi.client {
2592
2998
  patch(
2593
2999
  request: {
2594
3000
  /** V1 error format. */
2595
- '$.xgafv'?: string;
3001
+ '$.xgafv'?: '1' | '2';
2596
3002
  /** OAuth access token. */
2597
3003
  access_token?: string;
2598
3004
  /** Data format for response. */
2599
- alt?: string;
3005
+ alt?: 'json' | 'media' | 'proto';
2600
3006
  /** JSONP */
2601
3007
  callback?: string;
2602
3008
  /** Selector specifying which fields to include in a partial response. */
@@ -2624,11 +3030,11 @@ declare namespace gapi.client {
2624
3030
  setIamPolicy(
2625
3031
  request: {
2626
3032
  /** V1 error format. */
2627
- '$.xgafv'?: string;
3033
+ '$.xgafv'?: '1' | '2';
2628
3034
  /** OAuth access token. */
2629
3035
  access_token?: string;
2630
3036
  /** Data format for response. */
2631
- alt?: string;
3037
+ alt?: 'json' | 'media' | 'proto';
2632
3038
  /** JSONP */
2633
3039
  callback?: string;
2634
3040
  /** Selector specifying which fields to include in a partial response. */
@@ -2654,11 +3060,11 @@ declare namespace gapi.client {
2654
3060
  testIamPermissions(
2655
3061
  request: {
2656
3062
  /** V1 error format. */
2657
- '$.xgafv'?: string;
3063
+ '$.xgafv'?: '1' | '2';
2658
3064
  /** OAuth access token. */
2659
3065
  access_token?: string;
2660
3066
  /** Data format for response. */
2661
- alt?: string;
3067
+ alt?: 'json' | 'media' | 'proto';
2662
3068
  /** JSONP */
2663
3069
  callback?: string;
2664
3070
  /** Selector specifying which fields to include in a partial response. */
@@ -2685,11 +3091,11 @@ declare namespace gapi.client {
2685
3091
  /** Creates a new `Operation`. */
2686
3092
  create(request: {
2687
3093
  /** V1 error format. */
2688
- '$.xgafv'?: string;
3094
+ '$.xgafv'?: '1' | '2';
2689
3095
  /** OAuth access token. */
2690
3096
  access_token?: string;
2691
3097
  /** Data format for response. */
2692
- alt?: string;
3098
+ alt?: 'json' | 'media' | 'proto';
2693
3099
  /** JSONP */
2694
3100
  callback?: string;
2695
3101
  /** Selector specifying which fields to include in a partial response. */
@@ -2714,11 +3120,11 @@ declare namespace gapi.client {
2714
3120
  create(
2715
3121
  request: {
2716
3122
  /** V1 error format. */
2717
- '$.xgafv'?: string;
3123
+ '$.xgafv'?: '1' | '2';
2718
3124
  /** OAuth access token. */
2719
3125
  access_token?: string;
2720
3126
  /** Data format for response. */
2721
- alt?: string;
3127
+ alt?: 'json' | 'media' | 'proto';
2722
3128
  /** JSONP */
2723
3129
  callback?: string;
2724
3130
  /** Selector specifying which fields to include in a partial response. */
@@ -2743,11 +3149,11 @@ declare namespace gapi.client {
2743
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. */
2744
3150
  patch(request: {
2745
3151
  /** V1 error format. */
2746
- '$.xgafv'?: string;
3152
+ '$.xgafv'?: '1' | '2';
2747
3153
  /** OAuth access token. */
2748
3154
  access_token?: string;
2749
3155
  /** Data format for response. */
2750
- alt?: string;
3156
+ alt?: 'json' | 'media' | 'proto';
2751
3157
  /** JSONP */
2752
3158
  callback?: string;
2753
3159
  /** Selector specifying which fields to include in a partial response. */
@@ -2772,11 +3178,11 @@ declare namespace gapi.client {
2772
3178
  patch(
2773
3179
  request: {
2774
3180
  /** V1 error format. */
2775
- '$.xgafv'?: string;
3181
+ '$.xgafv'?: '1' | '2';
2776
3182
  /** OAuth access token. */
2777
3183
  access_token?: string;
2778
3184
  /** Data format for response. */
2779
- alt?: string;
3185
+ alt?: 'json' | 'media' | 'proto';
2780
3186
  /** JSONP */
2781
3187
  callback?: string;
2782
3188
  /** Selector specifying which fields to include in a partial response. */
@@ -2803,11 +3209,11 @@ declare namespace gapi.client {
2803
3209
  /** Gets a specific scan configuration for a project. */
2804
3210
  get(request?: {
2805
3211
  /** V1 error format. */
2806
- '$.xgafv'?: string;
3212
+ '$.xgafv'?: '1' | '2';
2807
3213
  /** OAuth access token. */
2808
3214
  access_token?: string;
2809
3215
  /** Data format for response. */
2810
- alt?: string;
3216
+ alt?: 'json' | 'media' | 'proto';
2811
3217
  /** JSONP */
2812
3218
  callback?: string;
2813
3219
  /** Selector specifying which fields to include in a partial response. */
@@ -2830,11 +3236,11 @@ declare namespace gapi.client {
2830
3236
  /** Lists scan configurations for a project. */
2831
3237
  list(request?: {
2832
3238
  /** V1 error format. */
2833
- '$.xgafv'?: string;
3239
+ '$.xgafv'?: '1' | '2';
2834
3240
  /** OAuth access token. */
2835
3241
  access_token?: string;
2836
3242
  /** Data format for response. */
2837
- alt?: string;
3243
+ alt?: 'json' | 'media' | 'proto';
2838
3244
  /** JSONP */
2839
3245
  callback?: string;
2840
3246
  /** Selector specifying which fields to include in a partial response. */
@@ -2863,11 +3269,11 @@ declare namespace gapi.client {
2863
3269
  /** Updates the scan configuration to a new value. */
2864
3270
  patch(request: {
2865
3271
  /** V1 error format. */
2866
- '$.xgafv'?: string;
3272
+ '$.xgafv'?: '1' | '2';
2867
3273
  /** OAuth access token. */
2868
3274
  access_token?: string;
2869
3275
  /** Data format for response. */
2870
- alt?: string;
3276
+ alt?: 'json' | 'media' | 'proto';
2871
3277
  /** JSONP */
2872
3278
  callback?: string;
2873
3279
  /** Selector specifying which fields to include in a partial response. */
@@ -2894,11 +3300,11 @@ declare namespace gapi.client {
2894
3300
  patch(
2895
3301
  request: {
2896
3302
  /** V1 error format. */
2897
- '$.xgafv'?: string;
3303
+ '$.xgafv'?: '1' | '2';
2898
3304
  /** OAuth access token. */
2899
3305
  access_token?: string;
2900
3306
  /** Data format for response. */
2901
- alt?: string;
3307
+ alt?: 'json' | 'media' | 'proto';
2902
3308
  /** JSONP */
2903
3309
  callback?: string;
2904
3310
  /** Selector specifying which fields to include in a partial response. */
@@ -2933,11 +3339,11 @@ declare namespace gapi.client {
2933
3339
  /** Lists `Occurrences` referencing the specified `Note`. Use this method to get all occurrences referencing your `Note` across all your customer projects. */
2934
3340
  list(request?: {
2935
3341
  /** V1 error format. */
2936
- '$.xgafv'?: string;
3342
+ '$.xgafv'?: '1' | '2';
2937
3343
  /** OAuth access token. */
2938
3344
  access_token?: string;
2939
3345
  /** Data format for response. */
2940
- alt?: string;
3346
+ alt?: 'json' | 'media' | 'proto';
2941
3347
  /** JSONP */
2942
3348
  callback?: string;
2943
3349
  /** Selector specifying which fields to include in a partial response. */
@@ -2968,11 +3374,11 @@ declare namespace gapi.client {
2968
3374
  /** Creates a new `Note`. */
2969
3375
  create(request: {
2970
3376
  /** V1 error format. */
2971
- '$.xgafv'?: string;
3377
+ '$.xgafv'?: '1' | '2';
2972
3378
  /** OAuth access token. */
2973
3379
  access_token?: string;
2974
3380
  /** Data format for response. */
2975
- alt?: string;
3381
+ alt?: 'json' | 'media' | 'proto';
2976
3382
  /** JSONP */
2977
3383
  callback?: string;
2978
3384
  /** Selector specifying which fields to include in a partial response. */
@@ -3001,11 +3407,11 @@ declare namespace gapi.client {
3001
3407
  create(
3002
3408
  request: {
3003
3409
  /** V1 error format. */
3004
- '$.xgafv'?: string;
3410
+ '$.xgafv'?: '1' | '2';
3005
3411
  /** OAuth access token. */
3006
3412
  access_token?: string;
3007
3413
  /** Data format for response. */
3008
- alt?: string;
3414
+ alt?: 'json' | 'media' | 'proto';
3009
3415
  /** JSONP */
3010
3416
  callback?: string;
3011
3417
  /** Selector specifying which fields to include in a partial response. */
@@ -3034,11 +3440,11 @@ declare namespace gapi.client {
3034
3440
  /** Deletes the given `Note` from the system. */
3035
3441
  delete(request?: {
3036
3442
  /** V1 error format. */
3037
- '$.xgafv'?: string;
3443
+ '$.xgafv'?: '1' | '2';
3038
3444
  /** OAuth access token. */
3039
3445
  access_token?: string;
3040
3446
  /** Data format for response. */
3041
- alt?: string;
3447
+ alt?: 'json' | 'media' | 'proto';
3042
3448
  /** JSONP */
3043
3449
  callback?: string;
3044
3450
  /** Selector specifying which fields to include in a partial response. */
@@ -3061,11 +3467,11 @@ declare namespace gapi.client {
3061
3467
  /** Returns the requested `Note`. */
3062
3468
  get(request?: {
3063
3469
  /** V1 error format. */
3064
- '$.xgafv'?: string;
3470
+ '$.xgafv'?: '1' | '2';
3065
3471
  /** OAuth access token. */
3066
3472
  access_token?: string;
3067
3473
  /** Data format for response. */
3068
- alt?: string;
3474
+ alt?: 'json' | 'media' | 'proto';
3069
3475
  /** JSONP */
3070
3476
  callback?: string;
3071
3477
  /** Selector specifying which fields to include in a partial response. */
@@ -3089,11 +3495,11 @@ declare namespace gapi.client {
3089
3495
  getIamPolicy(
3090
3496
  request: {
3091
3497
  /** V1 error format. */
3092
- '$.xgafv'?: string;
3498
+ '$.xgafv'?: '1' | '2';
3093
3499
  /** OAuth access token. */
3094
3500
  access_token?: string;
3095
3501
  /** Data format for response. */
3096
- alt?: string;
3502
+ alt?: 'json' | 'media' | 'proto';
3097
3503
  /** JSONP */
3098
3504
  callback?: string;
3099
3505
  /** Selector specifying which fields to include in a partial response. */
@@ -3118,11 +3524,11 @@ declare namespace gapi.client {
3118
3524
  /** Lists all `Notes` for a given project. */
3119
3525
  list(request?: {
3120
3526
  /** V1 error format. */
3121
- '$.xgafv'?: string;
3527
+ '$.xgafv'?: '1' | '2';
3122
3528
  /** OAuth access token. */
3123
3529
  access_token?: string;
3124
3530
  /** Data format for response. */
3125
- alt?: string;
3531
+ alt?: 'json' | 'media' | 'proto';
3126
3532
  /** JSONP */
3127
3533
  callback?: string;
3128
3534
  /** Selector specifying which fields to include in a partial response. */
@@ -3153,11 +3559,11 @@ declare namespace gapi.client {
3153
3559
  /** Updates an existing `Note`. */
3154
3560
  patch(request: {
3155
3561
  /** V1 error format. */
3156
- '$.xgafv'?: string;
3562
+ '$.xgafv'?: '1' | '2';
3157
3563
  /** OAuth access token. */
3158
3564
  access_token?: string;
3159
3565
  /** Data format for response. */
3160
- alt?: string;
3566
+ alt?: 'json' | 'media' | 'proto';
3161
3567
  /** JSONP */
3162
3568
  callback?: string;
3163
3569
  /** Selector specifying which fields to include in a partial response. */
@@ -3184,11 +3590,11 @@ declare namespace gapi.client {
3184
3590
  patch(
3185
3591
  request: {
3186
3592
  /** V1 error format. */
3187
- '$.xgafv'?: string;
3593
+ '$.xgafv'?: '1' | '2';
3188
3594
  /** OAuth access token. */
3189
3595
  access_token?: string;
3190
3596
  /** Data format for response. */
3191
- alt?: string;
3597
+ alt?: 'json' | 'media' | 'proto';
3192
3598
  /** JSONP */
3193
3599
  callback?: string;
3194
3600
  /** Selector specifying which fields to include in a partial response. */
@@ -3216,11 +3622,11 @@ declare namespace gapi.client {
3216
3622
  setIamPolicy(
3217
3623
  request: {
3218
3624
  /** V1 error format. */
3219
- '$.xgafv'?: string;
3625
+ '$.xgafv'?: '1' | '2';
3220
3626
  /** OAuth access token. */
3221
3627
  access_token?: string;
3222
3628
  /** Data format for response. */
3223
- alt?: string;
3629
+ alt?: 'json' | 'media' | 'proto';
3224
3630
  /** JSONP */
3225
3631
  callback?: string;
3226
3632
  /** Selector specifying which fields to include in a partial response. */
@@ -3246,11 +3652,11 @@ declare namespace gapi.client {
3246
3652
  testIamPermissions(
3247
3653
  request: {
3248
3654
  /** V1 error format. */
3249
- '$.xgafv'?: string;
3655
+ '$.xgafv'?: '1' | '2';
3250
3656
  /** OAuth access token. */
3251
3657
  access_token?: string;
3252
3658
  /** Data format for response. */
3253
- alt?: string;
3659
+ alt?: 'json' | 'media' | 'proto';
3254
3660
  /** JSONP */
3255
3661
  callback?: string;
3256
3662
  /** Selector specifying which fields to include in a partial response. */