@maxim_mazurok/gapi.client.containeranalysis-v1 0.2.20261030 → 0.3.20261106

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 +1408 -1429
  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=v1
12
- // Revision: 20261030
12
+ // Revision: 20261106
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -560,11 +560,12 @@ declare namespace gapi.client {
560
560
  /** Optional. Option to specify the Pub/Sub topic to receive build status updates. */
561
561
  pubsubTopic?: string;
562
562
  /** Optional. Ranked list (earlier items have higher priority) of Machine Series to consider when provisioning Worker VMs. A concrete machine type will be selected based on machine availability in the given region. This field must be empty for the Build to be eligible to be paired with a pre-provisioned worker VM. */
563
- rankedMachineSeries?:
563
+ rankedMachineSeries?: (
564
564
  | 'MACHINE_SERIES_UNSPECIFIED'
565
565
  | 'MACHINE_SERIES_E'
566
566
  | 'MACHINE_SERIES_N'
567
- | 'MACHINE_SERIES_C'[];
567
+ | 'MACHINE_SERIES_C'
568
+ )[];
568
569
  /** Requested verifiability options. */
569
570
  requestedVerifyOption?: 'NOT_VERIFIED' | 'VERIFIED' | 'BEST_EFFORT';
570
571
  /** Output only. Worker release resolved from the release channel. */
@@ -572,13 +573,9 @@ declare namespace gapi.client {
572
573
  /** 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. */
573
574
  secretEnv?: string[];
574
575
  /** Requested hash for SourceProvenance. */
575
- sourceProvenanceHash?:
576
- | 'NONE'
577
- | 'SHA256'
578
- | 'MD5'
579
- | 'GO_MODULE_H1'
580
- | 'SHA512'
581
- | 'DIRSUM_SHA256'[];
576
+ sourceProvenanceHash?: (
577
+ 'NONE' | 'SHA256' | 'MD5' | 'GO_MODULE_H1' | 'SHA512' | 'DIRSUM_SHA256'
578
+ )[];
582
579
  /** 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. */
583
580
  substitutionOption?: 'MUST_MATCH' | 'ALLOW_LOOSE';
584
581
  /** 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. */
@@ -1589,15 +1586,7 @@ declare namespace gapi.client {
1589
1586
  /** Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information. */
1590
1587
  directive?: string;
1591
1588
  }
1592
- interface LayerAttribute {
1593
- /** The name of the plugin that generated this attribute. */
1594
- plugin?: string;
1595
- /** The value of the attribute, with a meaning defined by the plugin. */
1596
- value?: string;
1597
- }
1598
1589
  interface LayerDetails {
1599
- /** Attributes that apply to the layer, such as buildpacks metadata. */
1600
- attributes?: LayerAttribute[];
1601
1590
  /** The base images the layer is found within. */
1602
1591
  baseImages?: BaseImage[];
1603
1592
  /** The layer chain ID (sha256 hash) of the layer in the container image. https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid */
@@ -2487,73 +2476,888 @@ declare namespace gapi.client {
2487
2476
  /** Verdict of the scan. */
2488
2477
  verdict?: 'VERDICT_UNSPECIFIED' | 'PASSED' | 'FAILED';
2489
2478
  }
2490
- interface OccurrencesResource {
2491
- /** Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. */
2492
- list(request?: {
2493
- /** V1 error format. */
2494
- '$.xgafv'?: '1' | '2';
2495
- /** OAuth access token. */
2496
- access_token?: string;
2497
- /** Data format for response. */
2498
- alt?: 'json' | 'media' | 'proto';
2499
- /** JSONP */
2500
- callback?: string;
2501
- /** Selector specifying which fields to include in a partial response. */
2502
- fields?: string;
2503
- /** The filter expression. */
2504
- filter?: string;
2505
- /** 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. */
2506
- key?: string;
2507
- /** Required. The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2508
- name: string;
2509
- /** OAuth 2.0 token for the current user. */
2510
- oauth_token?: string;
2511
- /** Number of occurrences to return in the list. */
2512
- pageSize?: number;
2513
- /** Token to provide to skip to a particular spot in the list. */
2514
- pageToken?: string;
2515
- /** Returns response with indentations and line breaks. */
2516
- prettyPrint?: boolean;
2517
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2518
- quotaUser?: string;
2519
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2520
- upload_protocol?: string;
2521
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2522
- uploadType?: string;
2523
- }): Request<ListNoteOccurrencesResponse>;
2524
- }
2525
- interface NotesResource {
2526
- /** Creates new notes in batch. */
2527
- batchCreate(request: {
2528
- /** V1 error format. */
2529
- '$.xgafv'?: '1' | '2';
2530
- /** OAuth access token. */
2531
- access_token?: string;
2532
- /** Data format for response. */
2533
- alt?: 'json' | 'media' | 'proto';
2534
- /** JSONP */
2535
- callback?: string;
2536
- /** Selector specifying which fields to include in a partial response. */
2537
- fields?: string;
2538
- /** 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
- key?: string;
2540
- /** OAuth 2.0 token for the current user. */
2541
- oauth_token?: string;
2542
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
2543
- parent: string;
2544
- /** Returns response with indentations and line breaks. */
2545
- prettyPrint?: boolean;
2546
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2547
- quotaUser?: string;
2548
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2549
- upload_protocol?: string;
2550
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2551
- uploadType?: string;
2552
- /** Request body */
2553
- resource: BatchCreateNotesRequest;
2554
- }): Request<BatchCreateNotesResponse>;
2555
- batchCreate(
2556
- request: {
2479
+
2480
+ const projects: {
2481
+ locations: {
2482
+ notes: {
2483
+ /** Creates new notes in batch. */
2484
+ batchCreate(request: {
2485
+ /** V1 error format. */
2486
+ '$.xgafv'?: '1' | '2';
2487
+ /** OAuth access token. */
2488
+ access_token?: string;
2489
+ /** Data format for response. */
2490
+ alt?: 'json' | 'media' | 'proto';
2491
+ /** JSONP */
2492
+ callback?: string;
2493
+ /** Selector specifying which fields to include in a partial response. */
2494
+ fields?: string;
2495
+ /** 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. */
2496
+ key?: string;
2497
+ /** OAuth 2.0 token for the current user. */
2498
+ oauth_token?: string;
2499
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
2500
+ parent: string;
2501
+ /** Returns response with indentations and line breaks. */
2502
+ prettyPrint?: boolean;
2503
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2504
+ quotaUser?: string;
2505
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2506
+ upload_protocol?: string;
2507
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2508
+ uploadType?: string;
2509
+ /** Request body */
2510
+ resource: BatchCreateNotesRequest;
2511
+ }): Request<BatchCreateNotesResponse>;
2512
+ batchCreate(
2513
+ request: {
2514
+ /** V1 error format. */
2515
+ '$.xgafv'?: '1' | '2';
2516
+ /** OAuth access token. */
2517
+ access_token?: string;
2518
+ /** Data format for response. */
2519
+ alt?: 'json' | 'media' | 'proto';
2520
+ /** JSONP */
2521
+ callback?: string;
2522
+ /** Selector specifying which fields to include in a partial response. */
2523
+ fields?: string;
2524
+ /** 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
+ key?: string;
2526
+ /** OAuth 2.0 token for the current user. */
2527
+ oauth_token?: string;
2528
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
2529
+ parent: string;
2530
+ /** Returns response with indentations and line breaks. */
2531
+ prettyPrint?: boolean;
2532
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2533
+ quotaUser?: string;
2534
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2535
+ upload_protocol?: string;
2536
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2537
+ uploadType?: string;
2538
+ },
2539
+ body: BatchCreateNotesRequest,
2540
+ ): Request<BatchCreateNotesResponse>;
2541
+ /** Creates a new note. */
2542
+ create(request: {
2543
+ /** V1 error format. */
2544
+ '$.xgafv'?: '1' | '2';
2545
+ /** OAuth access token. */
2546
+ access_token?: string;
2547
+ /** Data format for response. */
2548
+ alt?: 'json' | 'media' | 'proto';
2549
+ /** JSONP */
2550
+ callback?: string;
2551
+ /** Selector specifying which fields to include in a partial response. */
2552
+ fields?: string;
2553
+ /** 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. */
2554
+ key?: string;
2555
+ /** Required. The ID to use for this note. */
2556
+ noteId?: string;
2557
+ /** OAuth 2.0 token for the current user. */
2558
+ oauth_token?: string;
2559
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
2560
+ parent: string;
2561
+ /** Returns response with indentations and line breaks. */
2562
+ prettyPrint?: boolean;
2563
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2564
+ quotaUser?: string;
2565
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2566
+ upload_protocol?: string;
2567
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2568
+ uploadType?: string;
2569
+ /** Request body */
2570
+ resource: Note;
2571
+ }): Request<Note>;
2572
+ create(
2573
+ request: {
2574
+ /** V1 error format. */
2575
+ '$.xgafv'?: '1' | '2';
2576
+ /** OAuth access token. */
2577
+ access_token?: string;
2578
+ /** Data format for response. */
2579
+ alt?: 'json' | 'media' | 'proto';
2580
+ /** JSONP */
2581
+ callback?: string;
2582
+ /** Selector specifying which fields to include in a partial response. */
2583
+ fields?: string;
2584
+ /** 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. */
2585
+ key?: string;
2586
+ /** Required. The ID to use for this note. */
2587
+ noteId?: string;
2588
+ /** OAuth 2.0 token for the current user. */
2589
+ oauth_token?: string;
2590
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
2591
+ parent: string;
2592
+ /** Returns response with indentations and line breaks. */
2593
+ prettyPrint?: boolean;
2594
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2595
+ quotaUser?: string;
2596
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2597
+ upload_protocol?: string;
2598
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2599
+ uploadType?: string;
2600
+ },
2601
+ body: Note,
2602
+ ): Request<Note>;
2603
+ /** Deletes the specified note. */
2604
+ delete(request?: {
2605
+ /** V1 error format. */
2606
+ '$.xgafv'?: '1' | '2';
2607
+ /** OAuth access token. */
2608
+ access_token?: string;
2609
+ /** Data format for response. */
2610
+ alt?: 'json' | 'media' | 'proto';
2611
+ /** JSONP */
2612
+ callback?: string;
2613
+ /** Selector specifying which fields to include in a partial response. */
2614
+ fields?: string;
2615
+ /** 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. */
2616
+ key?: string;
2617
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2618
+ name: string;
2619
+ /** OAuth 2.0 token for the current user. */
2620
+ oauth_token?: string;
2621
+ /** Returns response with indentations and line breaks. */
2622
+ prettyPrint?: boolean;
2623
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2624
+ quotaUser?: string;
2625
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2626
+ upload_protocol?: string;
2627
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2628
+ uploadType?: string;
2629
+ }): Request<{}>;
2630
+ /** Gets the specified note. */
2631
+ get(request?: {
2632
+ /** V1 error format. */
2633
+ '$.xgafv'?: '1' | '2';
2634
+ /** OAuth access token. */
2635
+ access_token?: string;
2636
+ /** Data format for response. */
2637
+ alt?: 'json' | 'media' | 'proto';
2638
+ /** JSONP */
2639
+ callback?: string;
2640
+ /** Selector specifying which fields to include in a partial response. */
2641
+ fields?: string;
2642
+ /** 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. */
2643
+ key?: string;
2644
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2645
+ name: string;
2646
+ /** OAuth 2.0 token for the current user. */
2647
+ oauth_token?: string;
2648
+ /** Returns response with indentations and line breaks. */
2649
+ prettyPrint?: boolean;
2650
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2651
+ quotaUser?: string;
2652
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2653
+ upload_protocol?: string;
2654
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2655
+ uploadType?: string;
2656
+ }): Request<Note>;
2657
+ /** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2658
+ getIamPolicy(
2659
+ request: {
2660
+ /** V1 error format. */
2661
+ '$.xgafv'?: '1' | '2';
2662
+ /** OAuth access token. */
2663
+ access_token?: string;
2664
+ /** Data format for response. */
2665
+ alt?: 'json' | 'media' | 'proto';
2666
+ /** JSONP */
2667
+ callback?: string;
2668
+ /** Selector specifying which fields to include in a partial response. */
2669
+ fields?: string;
2670
+ /** 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. */
2671
+ key?: string;
2672
+ /** OAuth 2.0 token for the current user. */
2673
+ oauth_token?: string;
2674
+ /** Returns response with indentations and line breaks. */
2675
+ prettyPrint?: boolean;
2676
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2677
+ quotaUser?: string;
2678
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
2679
+ resource: string;
2680
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2681
+ upload_protocol?: string;
2682
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2683
+ uploadType?: string;
2684
+ },
2685
+ body: GetIamPolicyRequest,
2686
+ ): Request<Policy>;
2687
+ /** Lists notes for the specified project. */
2688
+ list(request?: {
2689
+ /** V1 error format. */
2690
+ '$.xgafv'?: '1' | '2';
2691
+ /** OAuth access token. */
2692
+ access_token?: string;
2693
+ /** Data format for response. */
2694
+ alt?: 'json' | 'media' | 'proto';
2695
+ /** JSONP */
2696
+ callback?: string;
2697
+ /** Selector specifying which fields to include in a partial response. */
2698
+ fields?: string;
2699
+ /** The filter expression. */
2700
+ filter?: string;
2701
+ /** 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. */
2702
+ key?: string;
2703
+ /** OAuth 2.0 token for the current user. */
2704
+ oauth_token?: string;
2705
+ /** Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
2706
+ pageSize?: number;
2707
+ /** Token to provide to skip to a particular spot in the list. */
2708
+ pageToken?: string;
2709
+ /** Required. The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. */
2710
+ parent: string;
2711
+ /** Returns response with indentations and line breaks. */
2712
+ prettyPrint?: boolean;
2713
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2714
+ quotaUser?: string;
2715
+ /** If set, the request will return all reachable Notes and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
2716
+ returnPartialSuccess?: boolean;
2717
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2718
+ upload_protocol?: string;
2719
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2720
+ uploadType?: string;
2721
+ }): Request<ListNotesResponse>;
2722
+ /** Updates the specified note. */
2723
+ patch(request: {
2724
+ /** V1 error format. */
2725
+ '$.xgafv'?: '1' | '2';
2726
+ /** OAuth access token. */
2727
+ access_token?: string;
2728
+ /** Data format for response. */
2729
+ alt?: 'json' | 'media' | 'proto';
2730
+ /** JSONP */
2731
+ callback?: string;
2732
+ /** Selector specifying which fields to include in a partial response. */
2733
+ fields?: string;
2734
+ /** 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. */
2735
+ key?: string;
2736
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2737
+ name: string;
2738
+ /** OAuth 2.0 token for the current user. */
2739
+ oauth_token?: string;
2740
+ /** Returns response with indentations and line breaks. */
2741
+ prettyPrint?: boolean;
2742
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2743
+ quotaUser?: string;
2744
+ /** The fields to update. */
2745
+ updateMask?: string;
2746
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2747
+ upload_protocol?: string;
2748
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2749
+ uploadType?: string;
2750
+ /** Request body */
2751
+ resource: Note;
2752
+ }): Request<Note>;
2753
+ patch(
2754
+ request: {
2755
+ /** V1 error format. */
2756
+ '$.xgafv'?: '1' | '2';
2757
+ /** OAuth access token. */
2758
+ access_token?: string;
2759
+ /** Data format for response. */
2760
+ alt?: 'json' | 'media' | 'proto';
2761
+ /** JSONP */
2762
+ callback?: string;
2763
+ /** Selector specifying which fields to include in a partial response. */
2764
+ fields?: string;
2765
+ /** 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. */
2766
+ key?: string;
2767
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2768
+ name: string;
2769
+ /** OAuth 2.0 token for the current user. */
2770
+ oauth_token?: string;
2771
+ /** Returns response with indentations and line breaks. */
2772
+ prettyPrint?: boolean;
2773
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2774
+ quotaUser?: string;
2775
+ /** The fields to update. */
2776
+ updateMask?: string;
2777
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2778
+ upload_protocol?: string;
2779
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2780
+ uploadType?: string;
2781
+ },
2782
+ body: Note,
2783
+ ): Request<Note>;
2784
+ /** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2785
+ setIamPolicy(
2786
+ request: {
2787
+ /** V1 error format. */
2788
+ '$.xgafv'?: '1' | '2';
2789
+ /** OAuth access token. */
2790
+ access_token?: string;
2791
+ /** Data format for response. */
2792
+ alt?: 'json' | 'media' | 'proto';
2793
+ /** JSONP */
2794
+ callback?: string;
2795
+ /** Selector specifying which fields to include in a partial response. */
2796
+ fields?: string;
2797
+ /** 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. */
2798
+ key?: string;
2799
+ /** OAuth 2.0 token for the current user. */
2800
+ oauth_token?: string;
2801
+ /** Returns response with indentations and line breaks. */
2802
+ prettyPrint?: boolean;
2803
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2804
+ quotaUser?: string;
2805
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
2806
+ resource: string;
2807
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2808
+ upload_protocol?: string;
2809
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2810
+ uploadType?: string;
2811
+ },
2812
+ body: SetIamPolicyRequest,
2813
+ ): Request<Policy>;
2814
+ /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2815
+ testIamPermissions(
2816
+ request: {
2817
+ /** V1 error format. */
2818
+ '$.xgafv'?: '1' | '2';
2819
+ /** OAuth access token. */
2820
+ access_token?: string;
2821
+ /** Data format for response. */
2822
+ alt?: 'json' | 'media' | 'proto';
2823
+ /** JSONP */
2824
+ callback?: string;
2825
+ /** Selector specifying which fields to include in a partial response. */
2826
+ fields?: string;
2827
+ /** 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. */
2828
+ key?: string;
2829
+ /** OAuth 2.0 token for the current user. */
2830
+ oauth_token?: string;
2831
+ /** Returns response with indentations and line breaks. */
2832
+ prettyPrint?: boolean;
2833
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2834
+ quotaUser?: string;
2835
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
2836
+ resource: string;
2837
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2838
+ upload_protocol?: string;
2839
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2840
+ uploadType?: string;
2841
+ },
2842
+ body: TestIamPermissionsRequest,
2843
+ ): Request<TestIamPermissionsResponse>;
2844
+ occurrences: {
2845
+ /** Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. */
2846
+ list(request?: {
2847
+ /** V1 error format. */
2848
+ '$.xgafv'?: '1' | '2';
2849
+ /** OAuth access token. */
2850
+ access_token?: string;
2851
+ /** Data format for response. */
2852
+ alt?: 'json' | 'media' | 'proto';
2853
+ /** JSONP */
2854
+ callback?: string;
2855
+ /** Selector specifying which fields to include in a partial response. */
2856
+ fields?: string;
2857
+ /** The filter expression. */
2858
+ filter?: string;
2859
+ /** 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. */
2860
+ key?: string;
2861
+ /** Required. The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2862
+ name: string;
2863
+ /** OAuth 2.0 token for the current user. */
2864
+ oauth_token?: string;
2865
+ /** Number of occurrences to return in the list. */
2866
+ pageSize?: number;
2867
+ /** Token to provide to skip to a particular spot in the list. */
2868
+ pageToken?: string;
2869
+ /** Returns response with indentations and line breaks. */
2870
+ prettyPrint?: boolean;
2871
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2872
+ quotaUser?: string;
2873
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2874
+ upload_protocol?: string;
2875
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2876
+ uploadType?: string;
2877
+ }): Request<ListNoteOccurrencesResponse>;
2878
+ };
2879
+ };
2880
+ occurrences: {
2881
+ /** Creates new occurrences in batch. */
2882
+ batchCreate(request: {
2883
+ /** V1 error format. */
2884
+ '$.xgafv'?: '1' | '2';
2885
+ /** OAuth access token. */
2886
+ access_token?: string;
2887
+ /** Data format for response. */
2888
+ alt?: 'json' | 'media' | 'proto';
2889
+ /** JSONP */
2890
+ callback?: string;
2891
+ /** Selector specifying which fields to include in a partial response. */
2892
+ fields?: string;
2893
+ /** 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. */
2894
+ key?: string;
2895
+ /** OAuth 2.0 token for the current user. */
2896
+ oauth_token?: string;
2897
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
2898
+ parent: string;
2899
+ /** Returns response with indentations and line breaks. */
2900
+ prettyPrint?: boolean;
2901
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2902
+ quotaUser?: string;
2903
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2904
+ upload_protocol?: string;
2905
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2906
+ uploadType?: string;
2907
+ /** Request body */
2908
+ resource: BatchCreateOccurrencesRequest;
2909
+ }): Request<BatchCreateOccurrencesResponse>;
2910
+ batchCreate(
2911
+ request: {
2912
+ /** V1 error format. */
2913
+ '$.xgafv'?: '1' | '2';
2914
+ /** OAuth access token. */
2915
+ access_token?: string;
2916
+ /** Data format for response. */
2917
+ alt?: 'json' | 'media' | 'proto';
2918
+ /** JSONP */
2919
+ callback?: string;
2920
+ /** Selector specifying which fields to include in a partial response. */
2921
+ fields?: string;
2922
+ /** 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. */
2923
+ key?: string;
2924
+ /** OAuth 2.0 token for the current user. */
2925
+ oauth_token?: string;
2926
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
2927
+ parent: string;
2928
+ /** Returns response with indentations and line breaks. */
2929
+ prettyPrint?: boolean;
2930
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2931
+ quotaUser?: string;
2932
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2933
+ upload_protocol?: string;
2934
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2935
+ uploadType?: string;
2936
+ },
2937
+ body: BatchCreateOccurrencesRequest,
2938
+ ): Request<BatchCreateOccurrencesResponse>;
2939
+ /** Creates a new occurrence. */
2940
+ create(request: {
2941
+ /** V1 error format. */
2942
+ '$.xgafv'?: '1' | '2';
2943
+ /** OAuth access token. */
2944
+ access_token?: string;
2945
+ /** Data format for response. */
2946
+ alt?: 'json' | 'media' | 'proto';
2947
+ /** JSONP */
2948
+ callback?: string;
2949
+ /** Selector specifying which fields to include in a partial response. */
2950
+ fields?: string;
2951
+ /** 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. */
2952
+ key?: string;
2953
+ /** OAuth 2.0 token for the current user. */
2954
+ oauth_token?: string;
2955
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
2956
+ parent: string;
2957
+ /** Returns response with indentations and line breaks. */
2958
+ prettyPrint?: boolean;
2959
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2960
+ quotaUser?: string;
2961
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2962
+ upload_protocol?: string;
2963
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2964
+ uploadType?: string;
2965
+ /** Request body */
2966
+ resource: Occurrence;
2967
+ }): Request<Occurrence>;
2968
+ create(
2969
+ request: {
2970
+ /** V1 error format. */
2971
+ '$.xgafv'?: '1' | '2';
2972
+ /** OAuth access token. */
2973
+ access_token?: string;
2974
+ /** Data format for response. */
2975
+ alt?: 'json' | 'media' | 'proto';
2976
+ /** JSONP */
2977
+ callback?: string;
2978
+ /** Selector specifying which fields to include in a partial response. */
2979
+ fields?: string;
2980
+ /** 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. */
2981
+ key?: string;
2982
+ /** OAuth 2.0 token for the current user. */
2983
+ oauth_token?: string;
2984
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
2985
+ parent: string;
2986
+ /** Returns response with indentations and line breaks. */
2987
+ prettyPrint?: boolean;
2988
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2989
+ quotaUser?: string;
2990
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2991
+ upload_protocol?: string;
2992
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2993
+ uploadType?: string;
2994
+ },
2995
+ body: Occurrence,
2996
+ ): Request<Occurrence>;
2997
+ /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
2998
+ delete(request?: {
2999
+ /** V1 error format. */
3000
+ '$.xgafv'?: '1' | '2';
3001
+ /** OAuth access token. */
3002
+ access_token?: string;
3003
+ /** Data format for response. */
3004
+ alt?: 'json' | 'media' | 'proto';
3005
+ /** JSONP */
3006
+ callback?: string;
3007
+ /** Selector specifying which fields to include in a partial response. */
3008
+ fields?: string;
3009
+ /** 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. */
3010
+ key?: string;
3011
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3012
+ name: string;
3013
+ /** OAuth 2.0 token for the current user. */
3014
+ oauth_token?: string;
3015
+ /** Returns response with indentations and line breaks. */
3016
+ prettyPrint?: boolean;
3017
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3018
+ quotaUser?: string;
3019
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3020
+ upload_protocol?: string;
3021
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3022
+ uploadType?: string;
3023
+ }): Request<{}>;
3024
+ /** Gets the specified occurrence. */
3025
+ get(request?: {
3026
+ /** V1 error format. */
3027
+ '$.xgafv'?: '1' | '2';
3028
+ /** OAuth access token. */
3029
+ access_token?: string;
3030
+ /** Data format for response. */
3031
+ alt?: 'json' | 'media' | 'proto';
3032
+ /** JSONP */
3033
+ callback?: string;
3034
+ /** Selector specifying which fields to include in a partial response. */
3035
+ fields?: string;
3036
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3037
+ key?: string;
3038
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3039
+ name: string;
3040
+ /** OAuth 2.0 token for the current user. */
3041
+ oauth_token?: string;
3042
+ /** Returns response with indentations and line breaks. */
3043
+ prettyPrint?: boolean;
3044
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3045
+ quotaUser?: string;
3046
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3047
+ upload_protocol?: string;
3048
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3049
+ uploadType?: string;
3050
+ }): Request<Occurrence>;
3051
+ /** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3052
+ getIamPolicy(
3053
+ request: {
3054
+ /** V1 error format. */
3055
+ '$.xgafv'?: '1' | '2';
3056
+ /** OAuth access token. */
3057
+ access_token?: string;
3058
+ /** Data format for response. */
3059
+ alt?: 'json' | 'media' | 'proto';
3060
+ /** JSONP */
3061
+ callback?: string;
3062
+ /** Selector specifying which fields to include in a partial response. */
3063
+ fields?: string;
3064
+ /** 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. */
3065
+ key?: string;
3066
+ /** OAuth 2.0 token for the current user. */
3067
+ oauth_token?: string;
3068
+ /** Returns response with indentations and line breaks. */
3069
+ prettyPrint?: boolean;
3070
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3071
+ quotaUser?: string;
3072
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3073
+ resource: string;
3074
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3075
+ upload_protocol?: string;
3076
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3077
+ uploadType?: string;
3078
+ },
3079
+ body: GetIamPolicyRequest,
3080
+ ): Request<Policy>;
3081
+ /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
3082
+ getNotes(request?: {
3083
+ /** V1 error format. */
3084
+ '$.xgafv'?: '1' | '2';
3085
+ /** OAuth access token. */
3086
+ access_token?: string;
3087
+ /** Data format for response. */
3088
+ alt?: 'json' | 'media' | 'proto';
3089
+ /** JSONP */
3090
+ callback?: string;
3091
+ /** Selector specifying which fields to include in a partial response. */
3092
+ fields?: string;
3093
+ /** 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. */
3094
+ key?: string;
3095
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3096
+ name: string;
3097
+ /** OAuth 2.0 token for the current user. */
3098
+ oauth_token?: string;
3099
+ /** Returns response with indentations and line breaks. */
3100
+ prettyPrint?: boolean;
3101
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3102
+ quotaUser?: string;
3103
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3104
+ upload_protocol?: string;
3105
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3106
+ uploadType?: string;
3107
+ }): Request<Note>;
3108
+ /** Gets a summary of the number and severity of occurrences. */
3109
+ getVulnerabilitySummary(request?: {
3110
+ /** V1 error format. */
3111
+ '$.xgafv'?: '1' | '2';
3112
+ /** OAuth access token. */
3113
+ access_token?: string;
3114
+ /** Data format for response. */
3115
+ alt?: 'json' | 'media' | 'proto';
3116
+ /** JSONP */
3117
+ callback?: string;
3118
+ /** Selector specifying which fields to include in a partial response. */
3119
+ fields?: string;
3120
+ /** The filter expression. */
3121
+ filter?: string;
3122
+ /** 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. */
3123
+ key?: string;
3124
+ /** OAuth 2.0 token for the current user. */
3125
+ oauth_token?: string;
3126
+ /** Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. */
3127
+ parent: string;
3128
+ /** Returns response with indentations and line breaks. */
3129
+ prettyPrint?: boolean;
3130
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3131
+ quotaUser?: string;
3132
+ /** If set, the request will return all reachable occurrence summaries and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
3133
+ returnPartialSuccess?: boolean;
3134
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3135
+ upload_protocol?: string;
3136
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3137
+ uploadType?: string;
3138
+ }): Request<VulnerabilityOccurrencesSummary>;
3139
+ /** Lists occurrences for the specified project. */
3140
+ list(request?: {
3141
+ /** V1 error format. */
3142
+ '$.xgafv'?: '1' | '2';
3143
+ /** OAuth access token. */
3144
+ access_token?: string;
3145
+ /** Data format for response. */
3146
+ alt?: 'json' | 'media' | 'proto';
3147
+ /** JSONP */
3148
+ callback?: string;
3149
+ /** Selector specifying which fields to include in a partial response. */
3150
+ fields?: string;
3151
+ /** The filter expression. */
3152
+ filter?: string;
3153
+ /** 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. */
3154
+ key?: string;
3155
+ /** OAuth 2.0 token for the current user. */
3156
+ oauth_token?: string;
3157
+ /** Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
3158
+ pageSize?: number;
3159
+ /** Token to provide to skip to a particular spot in the list. */
3160
+ pageToken?: string;
3161
+ /** Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. */
3162
+ parent: string;
3163
+ /** Returns response with indentations and line breaks. */
3164
+ prettyPrint?: boolean;
3165
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3166
+ quotaUser?: string;
3167
+ /** If set, the request will return all reachable Occurrences and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
3168
+ returnPartialSuccess?: boolean;
3169
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3170
+ upload_protocol?: string;
3171
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3172
+ uploadType?: string;
3173
+ }): Request<ListOccurrencesResponse>;
3174
+ /** Updates the specified occurrence. */
3175
+ patch(request: {
3176
+ /** V1 error format. */
3177
+ '$.xgafv'?: '1' | '2';
3178
+ /** OAuth access token. */
3179
+ access_token?: string;
3180
+ /** Data format for response. */
3181
+ alt?: 'json' | 'media' | 'proto';
3182
+ /** JSONP */
3183
+ callback?: string;
3184
+ /** Selector specifying which fields to include in a partial response. */
3185
+ fields?: string;
3186
+ /** 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. */
3187
+ key?: string;
3188
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3189
+ name: string;
3190
+ /** OAuth 2.0 token for the current user. */
3191
+ oauth_token?: string;
3192
+ /** Returns response with indentations and line breaks. */
3193
+ prettyPrint?: boolean;
3194
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3195
+ quotaUser?: string;
3196
+ /** The fields to update. */
3197
+ updateMask?: string;
3198
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3199
+ upload_protocol?: string;
3200
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3201
+ uploadType?: string;
3202
+ /** Request body */
3203
+ resource: Occurrence;
3204
+ }): Request<Occurrence>;
3205
+ patch(
3206
+ request: {
3207
+ /** V1 error format. */
3208
+ '$.xgafv'?: '1' | '2';
3209
+ /** OAuth access token. */
3210
+ access_token?: string;
3211
+ /** Data format for response. */
3212
+ alt?: 'json' | 'media' | 'proto';
3213
+ /** JSONP */
3214
+ callback?: string;
3215
+ /** Selector specifying which fields to include in a partial response. */
3216
+ fields?: string;
3217
+ /** 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. */
3218
+ key?: string;
3219
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3220
+ name: string;
3221
+ /** OAuth 2.0 token for the current user. */
3222
+ oauth_token?: string;
3223
+ /** Returns response with indentations and line breaks. */
3224
+ prettyPrint?: boolean;
3225
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3226
+ quotaUser?: string;
3227
+ /** The fields to update. */
3228
+ updateMask?: string;
3229
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3230
+ upload_protocol?: string;
3231
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3232
+ uploadType?: string;
3233
+ },
3234
+ body: Occurrence,
3235
+ ): Request<Occurrence>;
3236
+ /** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3237
+ setIamPolicy(
3238
+ request: {
3239
+ /** V1 error format. */
3240
+ '$.xgafv'?: '1' | '2';
3241
+ /** OAuth access token. */
3242
+ access_token?: string;
3243
+ /** Data format for response. */
3244
+ alt?: 'json' | 'media' | 'proto';
3245
+ /** JSONP */
3246
+ callback?: string;
3247
+ /** Selector specifying which fields to include in a partial response. */
3248
+ fields?: string;
3249
+ /** 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. */
3250
+ key?: string;
3251
+ /** OAuth 2.0 token for the current user. */
3252
+ oauth_token?: string;
3253
+ /** Returns response with indentations and line breaks. */
3254
+ prettyPrint?: boolean;
3255
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3256
+ quotaUser?: string;
3257
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3258
+ resource: string;
3259
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3260
+ upload_protocol?: string;
3261
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3262
+ uploadType?: string;
3263
+ },
3264
+ body: SetIamPolicyRequest,
3265
+ ): Request<Policy>;
3266
+ /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3267
+ testIamPermissions(
3268
+ request: {
3269
+ /** V1 error format. */
3270
+ '$.xgafv'?: '1' | '2';
3271
+ /** OAuth access token. */
3272
+ access_token?: string;
3273
+ /** Data format for response. */
3274
+ alt?: 'json' | 'media' | 'proto';
3275
+ /** JSONP */
3276
+ callback?: string;
3277
+ /** Selector specifying which fields to include in a partial response. */
3278
+ fields?: string;
3279
+ /** 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. */
3280
+ key?: string;
3281
+ /** OAuth 2.0 token for the current user. */
3282
+ oauth_token?: string;
3283
+ /** Returns response with indentations and line breaks. */
3284
+ prettyPrint?: boolean;
3285
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3286
+ quotaUser?: string;
3287
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3288
+ resource: string;
3289
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3290
+ upload_protocol?: string;
3291
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3292
+ uploadType?: string;
3293
+ },
3294
+ body: TestIamPermissionsRequest,
3295
+ ): Request<TestIamPermissionsResponse>;
3296
+ };
3297
+ resources: {
3298
+ /** Generates an SBOM for the given resource. */
3299
+ exportSBOM(request: {
3300
+ /** V1 error format. */
3301
+ '$.xgafv'?: '1' | '2';
3302
+ /** OAuth access token. */
3303
+ access_token?: string;
3304
+ /** Data format for response. */
3305
+ alt?: 'json' | 'media' | 'proto';
3306
+ /** JSONP */
3307
+ callback?: string;
3308
+ /** Selector specifying which fields to include in a partial response. */
3309
+ fields?: string;
3310
+ /** 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. */
3311
+ key?: string;
3312
+ /** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
3313
+ name: string;
3314
+ /** OAuth 2.0 token for the current user. */
3315
+ oauth_token?: string;
3316
+ /** Returns response with indentations and line breaks. */
3317
+ prettyPrint?: boolean;
3318
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3319
+ quotaUser?: string;
3320
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3321
+ upload_protocol?: string;
3322
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3323
+ uploadType?: string;
3324
+ /** Request body */
3325
+ resource: ExportSBOMRequest;
3326
+ }): Request<ExportSBOMResponse>;
3327
+ exportSBOM(
3328
+ request: {
3329
+ /** V1 error format. */
3330
+ '$.xgafv'?: '1' | '2';
3331
+ /** OAuth access token. */
3332
+ access_token?: string;
3333
+ /** Data format for response. */
3334
+ alt?: 'json' | 'media' | 'proto';
3335
+ /** JSONP */
3336
+ callback?: string;
3337
+ /** Selector specifying which fields to include in a partial response. */
3338
+ fields?: string;
3339
+ /** 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. */
3340
+ key?: string;
3341
+ /** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
3342
+ name: string;
3343
+ /** OAuth 2.0 token for the current user. */
3344
+ oauth_token?: string;
3345
+ /** Returns response with indentations and line breaks. */
3346
+ prettyPrint?: boolean;
3347
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3348
+ quotaUser?: string;
3349
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3350
+ upload_protocol?: string;
3351
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3352
+ uploadType?: string;
3353
+ },
3354
+ body: ExportSBOMRequest,
3355
+ ): Request<ExportSBOMResponse>;
3356
+ };
3357
+ };
3358
+ notes: {
3359
+ /** Creates new notes in batch. */
3360
+ batchCreate(request: {
2557
3361
  /** V1 error format. */
2558
3362
  '$.xgafv'?: '1' | '2';
2559
3363
  /** OAuth access token. */
@@ -2578,42 +3382,40 @@ declare namespace gapi.client {
2578
3382
  upload_protocol?: string;
2579
3383
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2580
3384
  uploadType?: string;
2581
- },
2582
- body: BatchCreateNotesRequest,
2583
- ): Request<BatchCreateNotesResponse>;
2584
- /** Creates a new note. */
2585
- create(request: {
2586
- /** V1 error format. */
2587
- '$.xgafv'?: '1' | '2';
2588
- /** OAuth access token. */
2589
- access_token?: string;
2590
- /** Data format for response. */
2591
- alt?: 'json' | 'media' | 'proto';
2592
- /** JSONP */
2593
- callback?: string;
2594
- /** Selector specifying which fields to include in a partial response. */
2595
- fields?: string;
2596
- /** 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. */
2597
- key?: string;
2598
- /** Required. The ID to use for this note. */
2599
- noteId?: string;
2600
- /** OAuth 2.0 token for the current user. */
2601
- oauth_token?: string;
2602
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
2603
- parent: string;
2604
- /** Returns response with indentations and line breaks. */
2605
- prettyPrint?: boolean;
2606
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2607
- quotaUser?: string;
2608
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2609
- upload_protocol?: string;
2610
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2611
- uploadType?: string;
2612
- /** Request body */
2613
- resource: Note;
2614
- }): Request<Note>;
2615
- create(
2616
- request: {
3385
+ /** Request body */
3386
+ resource: BatchCreateNotesRequest;
3387
+ }): Request<BatchCreateNotesResponse>;
3388
+ batchCreate(
3389
+ request: {
3390
+ /** V1 error format. */
3391
+ '$.xgafv'?: '1' | '2';
3392
+ /** OAuth access token. */
3393
+ access_token?: string;
3394
+ /** Data format for response. */
3395
+ alt?: 'json' | 'media' | 'proto';
3396
+ /** JSONP */
3397
+ callback?: string;
3398
+ /** Selector specifying which fields to include in a partial response. */
3399
+ fields?: string;
3400
+ /** 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. */
3401
+ key?: string;
3402
+ /** OAuth 2.0 token for the current user. */
3403
+ oauth_token?: string;
3404
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
3405
+ parent: string;
3406
+ /** Returns response with indentations and line breaks. */
3407
+ prettyPrint?: boolean;
3408
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3409
+ quotaUser?: string;
3410
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3411
+ upload_protocol?: string;
3412
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3413
+ uploadType?: string;
3414
+ },
3415
+ body: BatchCreateNotesRequest,
3416
+ ): Request<BatchCreateNotesResponse>;
3417
+ /** Creates a new note. */
3418
+ create(request: {
2617
3419
  /** V1 error format. */
2618
3420
  '$.xgafv'?: '1' | '2';
2619
3421
  /** OAuth access token. */
@@ -2640,66 +3442,42 @@ declare namespace gapi.client {
2640
3442
  upload_protocol?: string;
2641
3443
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2642
3444
  uploadType?: string;
2643
- },
2644
- body: Note,
2645
- ): Request<Note>;
2646
- /** Deletes the specified note. */
2647
- delete(request?: {
2648
- /** V1 error format. */
2649
- '$.xgafv'?: '1' | '2';
2650
- /** OAuth access token. */
2651
- access_token?: string;
2652
- /** Data format for response. */
2653
- alt?: 'json' | 'media' | 'proto';
2654
- /** JSONP */
2655
- callback?: string;
2656
- /** Selector specifying which fields to include in a partial response. */
2657
- fields?: string;
2658
- /** 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. */
2659
- key?: string;
2660
- /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2661
- name: string;
2662
- /** OAuth 2.0 token for the current user. */
2663
- oauth_token?: string;
2664
- /** Returns response with indentations and line breaks. */
2665
- prettyPrint?: boolean;
2666
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2667
- quotaUser?: string;
2668
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2669
- upload_protocol?: string;
2670
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2671
- uploadType?: string;
2672
- }): Request<{}>;
2673
- /** Gets the specified note. */
2674
- get(request?: {
2675
- /** V1 error format. */
2676
- '$.xgafv'?: '1' | '2';
2677
- /** OAuth access token. */
2678
- access_token?: string;
2679
- /** Data format for response. */
2680
- alt?: 'json' | 'media' | 'proto';
2681
- /** JSONP */
2682
- callback?: string;
2683
- /** Selector specifying which fields to include in a partial response. */
2684
- fields?: string;
2685
- /** 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. */
2686
- key?: string;
2687
- /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2688
- name: string;
2689
- /** OAuth 2.0 token for the current user. */
2690
- oauth_token?: string;
2691
- /** Returns response with indentations and line breaks. */
2692
- prettyPrint?: boolean;
2693
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2694
- quotaUser?: string;
2695
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2696
- upload_protocol?: string;
2697
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2698
- uploadType?: string;
2699
- }): Request<Note>;
2700
- /** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2701
- getIamPolicy(
2702
- request: {
3445
+ /** Request body */
3446
+ resource: Note;
3447
+ }): Request<Note>;
3448
+ create(
3449
+ request: {
3450
+ /** V1 error format. */
3451
+ '$.xgafv'?: '1' | '2';
3452
+ /** OAuth access token. */
3453
+ access_token?: string;
3454
+ /** Data format for response. */
3455
+ alt?: 'json' | 'media' | 'proto';
3456
+ /** JSONP */
3457
+ callback?: string;
3458
+ /** Selector specifying which fields to include in a partial response. */
3459
+ fields?: string;
3460
+ /** 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. */
3461
+ key?: string;
3462
+ /** Required. The ID to use for this note. */
3463
+ noteId?: string;
3464
+ /** OAuth 2.0 token for the current user. */
3465
+ oauth_token?: string;
3466
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
3467
+ parent: string;
3468
+ /** Returns response with indentations and line breaks. */
3469
+ prettyPrint?: boolean;
3470
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3471
+ quotaUser?: string;
3472
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3473
+ upload_protocol?: string;
3474
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3475
+ uploadType?: string;
3476
+ },
3477
+ body: Note,
3478
+ ): Request<Note>;
3479
+ /** Deletes the specified note. */
3480
+ delete(request?: {
2703
3481
  /** V1 error format. */
2704
3482
  '$.xgafv'?: '1' | '2';
2705
3483
  /** OAuth access token. */
@@ -2712,89 +3490,21 @@ declare namespace gapi.client {
2712
3490
  fields?: string;
2713
3491
  /** 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. */
2714
3492
  key?: string;
3493
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
3494
+ name: string;
2715
3495
  /** OAuth 2.0 token for the current user. */
2716
3496
  oauth_token?: string;
2717
3497
  /** Returns response with indentations and line breaks. */
2718
3498
  prettyPrint?: boolean;
2719
3499
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2720
3500
  quotaUser?: string;
2721
- /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
2722
- resource: string;
2723
3501
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2724
3502
  upload_protocol?: string;
2725
3503
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2726
3504
  uploadType?: string;
2727
- },
2728
- body: GetIamPolicyRequest,
2729
- ): Request<Policy>;
2730
- /** Lists notes for the specified project. */
2731
- list(request?: {
2732
- /** V1 error format. */
2733
- '$.xgafv'?: '1' | '2';
2734
- /** OAuth access token. */
2735
- access_token?: string;
2736
- /** Data format for response. */
2737
- alt?: 'json' | 'media' | 'proto';
2738
- /** JSONP */
2739
- callback?: string;
2740
- /** Selector specifying which fields to include in a partial response. */
2741
- fields?: string;
2742
- /** The filter expression. */
2743
- filter?: string;
2744
- /** 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. */
2745
- key?: string;
2746
- /** OAuth 2.0 token for the current user. */
2747
- oauth_token?: string;
2748
- /** Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
2749
- pageSize?: number;
2750
- /** Token to provide to skip to a particular spot in the list. */
2751
- pageToken?: string;
2752
- /** Required. The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. */
2753
- parent: string;
2754
- /** Returns response with indentations and line breaks. */
2755
- prettyPrint?: boolean;
2756
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2757
- quotaUser?: string;
2758
- /** If set, the request will return all reachable Notes and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
2759
- returnPartialSuccess?: boolean;
2760
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2761
- upload_protocol?: string;
2762
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2763
- uploadType?: string;
2764
- }): Request<ListNotesResponse>;
2765
- /** Updates the specified note. */
2766
- patch(request: {
2767
- /** V1 error format. */
2768
- '$.xgafv'?: '1' | '2';
2769
- /** OAuth access token. */
2770
- access_token?: string;
2771
- /** Data format for response. */
2772
- alt?: 'json' | 'media' | 'proto';
2773
- /** JSONP */
2774
- callback?: string;
2775
- /** Selector specifying which fields to include in a partial response. */
2776
- fields?: string;
2777
- /** 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. */
2778
- key?: string;
2779
- /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
2780
- name: string;
2781
- /** OAuth 2.0 token for the current user. */
2782
- oauth_token?: string;
2783
- /** Returns response with indentations and line breaks. */
2784
- prettyPrint?: boolean;
2785
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2786
- quotaUser?: string;
2787
- /** The fields to update. */
2788
- updateMask?: string;
2789
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2790
- upload_protocol?: string;
2791
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2792
- uploadType?: string;
2793
- /** Request body */
2794
- resource: Note;
2795
- }): Request<Note>;
2796
- patch(
2797
- request: {
3505
+ }): Request<{}>;
3506
+ /** Gets the specified note. */
3507
+ get(request?: {
2798
3508
  /** V1 error format. */
2799
3509
  '$.xgafv'?: '1' | '2';
2800
3510
  /** OAuth access token. */
@@ -2815,18 +3525,43 @@ declare namespace gapi.client {
2815
3525
  prettyPrint?: boolean;
2816
3526
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2817
3527
  quotaUser?: string;
2818
- /** The fields to update. */
2819
- updateMask?: string;
2820
3528
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2821
3529
  upload_protocol?: string;
2822
3530
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2823
3531
  uploadType?: string;
2824
- },
2825
- body: Note,
2826
- ): Request<Note>;
2827
- /** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2828
- setIamPolicy(
2829
- request: {
3532
+ }): Request<Note>;
3533
+ /** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3534
+ getIamPolicy(
3535
+ request: {
3536
+ /** V1 error format. */
3537
+ '$.xgafv'?: '1' | '2';
3538
+ /** OAuth access token. */
3539
+ access_token?: string;
3540
+ /** Data format for response. */
3541
+ alt?: 'json' | 'media' | 'proto';
3542
+ /** JSONP */
3543
+ callback?: string;
3544
+ /** Selector specifying which fields to include in a partial response. */
3545
+ fields?: string;
3546
+ /** 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. */
3547
+ key?: string;
3548
+ /** OAuth 2.0 token for the current user. */
3549
+ oauth_token?: string;
3550
+ /** Returns response with indentations and line breaks. */
3551
+ prettyPrint?: boolean;
3552
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3553
+ quotaUser?: string;
3554
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3555
+ resource: string;
3556
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3557
+ upload_protocol?: string;
3558
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3559
+ uploadType?: string;
3560
+ },
3561
+ body: GetIamPolicyRequest,
3562
+ ): Request<Policy>;
3563
+ /** Lists notes for the specified project. */
3564
+ list(request?: {
2830
3565
  /** V1 error format. */
2831
3566
  '$.xgafv'?: '1' | '2';
2832
3567
  /** OAuth access token. */
@@ -2837,26 +3572,31 @@ declare namespace gapi.client {
2837
3572
  callback?: string;
2838
3573
  /** Selector specifying which fields to include in a partial response. */
2839
3574
  fields?: string;
3575
+ /** The filter expression. */
3576
+ filter?: string;
2840
3577
  /** 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. */
2841
3578
  key?: string;
2842
3579
  /** OAuth 2.0 token for the current user. */
2843
3580
  oauth_token?: string;
3581
+ /** Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
3582
+ pageSize?: number;
3583
+ /** Token to provide to skip to a particular spot in the list. */
3584
+ pageToken?: string;
3585
+ /** Required. The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. */
3586
+ parent: string;
2844
3587
  /** Returns response with indentations and line breaks. */
2845
3588
  prettyPrint?: boolean;
2846
3589
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2847
3590
  quotaUser?: string;
2848
- /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
2849
- resource: string;
3591
+ /** If set, the request will return all reachable Notes and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
3592
+ returnPartialSuccess?: boolean;
2850
3593
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2851
3594
  upload_protocol?: string;
2852
3595
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2853
3596
  uploadType?: string;
2854
- },
2855
- body: SetIamPolicyRequest,
2856
- ): Request<Policy>;
2857
- /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
2858
- testIamPermissions(
2859
- request: {
3597
+ }): Request<ListNotesResponse>;
3598
+ /** Updates the specified note. */
3599
+ patch(request: {
2860
3600
  /** V1 error format. */
2861
3601
  '$.xgafv'?: '1' | '2';
2862
3602
  /** OAuth access token. */
@@ -2869,55 +3609,153 @@ declare namespace gapi.client {
2869
3609
  fields?: string;
2870
3610
  /** 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. */
2871
3611
  key?: string;
3612
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
3613
+ name: string;
2872
3614
  /** OAuth 2.0 token for the current user. */
2873
3615
  oauth_token?: string;
2874
3616
  /** Returns response with indentations and line breaks. */
2875
3617
  prettyPrint?: boolean;
2876
3618
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2877
3619
  quotaUser?: string;
2878
- /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
2879
- resource: string;
3620
+ /** The fields to update. */
3621
+ updateMask?: string;
2880
3622
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2881
3623
  upload_protocol?: string;
2882
3624
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2883
3625
  uploadType?: string;
2884
- },
2885
- body: TestIamPermissionsRequest,
2886
- ): Request<TestIamPermissionsResponse>;
2887
- occurrences: OccurrencesResource;
2888
- }
2889
- interface OccurrencesResource {
2890
- /** Creates new occurrences in batch. */
2891
- batchCreate(request: {
2892
- /** V1 error format. */
2893
- '$.xgafv'?: '1' | '2';
2894
- /** OAuth access token. */
2895
- access_token?: string;
2896
- /** Data format for response. */
2897
- alt?: 'json' | 'media' | 'proto';
2898
- /** JSONP */
2899
- callback?: string;
2900
- /** Selector specifying which fields to include in a partial response. */
2901
- fields?: string;
2902
- /** 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. */
2903
- key?: string;
2904
- /** OAuth 2.0 token for the current user. */
2905
- oauth_token?: string;
2906
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
2907
- parent: string;
2908
- /** Returns response with indentations and line breaks. */
2909
- prettyPrint?: boolean;
2910
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2911
- quotaUser?: string;
2912
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2913
- upload_protocol?: string;
2914
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2915
- uploadType?: string;
2916
- /** Request body */
2917
- resource: BatchCreateOccurrencesRequest;
2918
- }): Request<BatchCreateOccurrencesResponse>;
2919
- batchCreate(
2920
- request: {
3626
+ /** Request body */
3627
+ resource: Note;
3628
+ }): Request<Note>;
3629
+ patch(
3630
+ request: {
3631
+ /** V1 error format. */
3632
+ '$.xgafv'?: '1' | '2';
3633
+ /** OAuth access token. */
3634
+ access_token?: string;
3635
+ /** Data format for response. */
3636
+ alt?: 'json' | 'media' | 'proto';
3637
+ /** JSONP */
3638
+ callback?: string;
3639
+ /** Selector specifying which fields to include in a partial response. */
3640
+ fields?: string;
3641
+ /** 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. */
3642
+ key?: string;
3643
+ /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
3644
+ name: string;
3645
+ /** OAuth 2.0 token for the current user. */
3646
+ oauth_token?: string;
3647
+ /** Returns response with indentations and line breaks. */
3648
+ prettyPrint?: boolean;
3649
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3650
+ quotaUser?: string;
3651
+ /** The fields to update. */
3652
+ updateMask?: string;
3653
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3654
+ upload_protocol?: string;
3655
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3656
+ uploadType?: string;
3657
+ },
3658
+ body: Note,
3659
+ ): Request<Note>;
3660
+ /** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3661
+ setIamPolicy(
3662
+ request: {
3663
+ /** V1 error format. */
3664
+ '$.xgafv'?: '1' | '2';
3665
+ /** OAuth access token. */
3666
+ access_token?: string;
3667
+ /** Data format for response. */
3668
+ alt?: 'json' | 'media' | 'proto';
3669
+ /** JSONP */
3670
+ callback?: string;
3671
+ /** Selector specifying which fields to include in a partial response. */
3672
+ fields?: string;
3673
+ /** 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. */
3674
+ key?: string;
3675
+ /** OAuth 2.0 token for the current user. */
3676
+ oauth_token?: string;
3677
+ /** Returns response with indentations and line breaks. */
3678
+ prettyPrint?: boolean;
3679
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3680
+ quotaUser?: string;
3681
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3682
+ resource: string;
3683
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3684
+ upload_protocol?: string;
3685
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3686
+ uploadType?: string;
3687
+ },
3688
+ body: SetIamPolicyRequest,
3689
+ ): Request<Policy>;
3690
+ /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3691
+ testIamPermissions(
3692
+ request: {
3693
+ /** V1 error format. */
3694
+ '$.xgafv'?: '1' | '2';
3695
+ /** OAuth access token. */
3696
+ access_token?: string;
3697
+ /** Data format for response. */
3698
+ alt?: 'json' | 'media' | 'proto';
3699
+ /** JSONP */
3700
+ callback?: string;
3701
+ /** Selector specifying which fields to include in a partial response. */
3702
+ fields?: string;
3703
+ /** 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. */
3704
+ key?: string;
3705
+ /** OAuth 2.0 token for the current user. */
3706
+ oauth_token?: string;
3707
+ /** Returns response with indentations and line breaks. */
3708
+ prettyPrint?: boolean;
3709
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3710
+ quotaUser?: string;
3711
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3712
+ resource: string;
3713
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3714
+ upload_protocol?: string;
3715
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3716
+ uploadType?: string;
3717
+ },
3718
+ body: TestIamPermissionsRequest,
3719
+ ): Request<TestIamPermissionsResponse>;
3720
+ occurrences: {
3721
+ /** Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. */
3722
+ list(request?: {
3723
+ /** V1 error format. */
3724
+ '$.xgafv'?: '1' | '2';
3725
+ /** OAuth access token. */
3726
+ access_token?: string;
3727
+ /** Data format for response. */
3728
+ alt?: 'json' | 'media' | 'proto';
3729
+ /** JSONP */
3730
+ callback?: string;
3731
+ /** Selector specifying which fields to include in a partial response. */
3732
+ fields?: string;
3733
+ /** The filter expression. */
3734
+ filter?: string;
3735
+ /** 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. */
3736
+ key?: string;
3737
+ /** Required. The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
3738
+ name: string;
3739
+ /** OAuth 2.0 token for the current user. */
3740
+ oauth_token?: string;
3741
+ /** Number of occurrences to return in the list. */
3742
+ pageSize?: number;
3743
+ /** Token to provide to skip to a particular spot in the list. */
3744
+ pageToken?: string;
3745
+ /** Returns response with indentations and line breaks. */
3746
+ prettyPrint?: boolean;
3747
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3748
+ quotaUser?: string;
3749
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3750
+ upload_protocol?: string;
3751
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3752
+ uploadType?: string;
3753
+ }): Request<ListNoteOccurrencesResponse>;
3754
+ };
3755
+ };
3756
+ occurrences: {
3757
+ /** Creates new occurrences in batch. */
3758
+ batchCreate(request: {
2921
3759
  /** V1 error format. */
2922
3760
  '$.xgafv'?: '1' | '2';
2923
3761
  /** OAuth access token. */
@@ -2942,40 +3780,40 @@ declare namespace gapi.client {
2942
3780
  upload_protocol?: string;
2943
3781
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2944
3782
  uploadType?: string;
2945
- },
2946
- body: BatchCreateOccurrencesRequest,
2947
- ): Request<BatchCreateOccurrencesResponse>;
2948
- /** Creates a new occurrence. */
2949
- create(request: {
2950
- /** V1 error format. */
2951
- '$.xgafv'?: '1' | '2';
2952
- /** OAuth access token. */
2953
- access_token?: string;
2954
- /** Data format for response. */
2955
- alt?: 'json' | 'media' | 'proto';
2956
- /** JSONP */
2957
- callback?: string;
2958
- /** Selector specifying which fields to include in a partial response. */
2959
- fields?: string;
2960
- /** 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. */
2961
- key?: string;
2962
- /** OAuth 2.0 token for the current user. */
2963
- oauth_token?: string;
2964
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
2965
- parent: string;
2966
- /** Returns response with indentations and line breaks. */
2967
- prettyPrint?: boolean;
2968
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2969
- quotaUser?: string;
2970
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2971
- upload_protocol?: string;
2972
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2973
- uploadType?: string;
2974
- /** Request body */
2975
- resource: Occurrence;
2976
- }): Request<Occurrence>;
2977
- create(
2978
- request: {
3783
+ /** Request body */
3784
+ resource: BatchCreateOccurrencesRequest;
3785
+ }): Request<BatchCreateOccurrencesResponse>;
3786
+ batchCreate(
3787
+ request: {
3788
+ /** V1 error format. */
3789
+ '$.xgafv'?: '1' | '2';
3790
+ /** OAuth access token. */
3791
+ access_token?: string;
3792
+ /** Data format for response. */
3793
+ alt?: 'json' | 'media' | 'proto';
3794
+ /** JSONP */
3795
+ callback?: string;
3796
+ /** Selector specifying which fields to include in a partial response. */
3797
+ fields?: string;
3798
+ /** 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. */
3799
+ key?: string;
3800
+ /** OAuth 2.0 token for the current user. */
3801
+ oauth_token?: string;
3802
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
3803
+ parent: string;
3804
+ /** Returns response with indentations and line breaks. */
3805
+ prettyPrint?: boolean;
3806
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3807
+ quotaUser?: string;
3808
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3809
+ upload_protocol?: string;
3810
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3811
+ uploadType?: string;
3812
+ },
3813
+ body: BatchCreateOccurrencesRequest,
3814
+ ): Request<BatchCreateOccurrencesResponse>;
3815
+ /** Creates a new occurrence. */
3816
+ create(request: {
2979
3817
  /** V1 error format. */
2980
3818
  '$.xgafv'?: '1' | '2';
2981
3819
  /** OAuth access token. */
@@ -3000,219 +3838,40 @@ declare namespace gapi.client {
3000
3838
  upload_protocol?: string;
3001
3839
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3002
3840
  uploadType?: string;
3003
- },
3004
- body: Occurrence,
3005
- ): Request<Occurrence>;
3006
- /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
3007
- delete(request?: {
3008
- /** V1 error format. */
3009
- '$.xgafv'?: '1' | '2';
3010
- /** OAuth access token. */
3011
- access_token?: string;
3012
- /** Data format for response. */
3013
- alt?: 'json' | 'media' | 'proto';
3014
- /** JSONP */
3015
- callback?: string;
3016
- /** Selector specifying which fields to include in a partial response. */
3017
- fields?: string;
3018
- /** 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. */
3019
- key?: string;
3020
- /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3021
- name: string;
3022
- /** OAuth 2.0 token for the current user. */
3023
- oauth_token?: string;
3024
- /** Returns response with indentations and line breaks. */
3025
- prettyPrint?: boolean;
3026
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3027
- quotaUser?: string;
3028
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3029
- upload_protocol?: string;
3030
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3031
- uploadType?: string;
3032
- }): Request<{}>;
3033
- /** Gets the specified occurrence. */
3034
- get(request?: {
3035
- /** V1 error format. */
3036
- '$.xgafv'?: '1' | '2';
3037
- /** OAuth access token. */
3038
- access_token?: string;
3039
- /** Data format for response. */
3040
- alt?: 'json' | 'media' | 'proto';
3041
- /** JSONP */
3042
- callback?: string;
3043
- /** Selector specifying which fields to include in a partial response. */
3044
- fields?: string;
3045
- /** 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. */
3046
- key?: string;
3047
- /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3048
- name: string;
3049
- /** OAuth 2.0 token for the current user. */
3050
- oauth_token?: string;
3051
- /** Returns response with indentations and line breaks. */
3052
- prettyPrint?: boolean;
3053
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3054
- quotaUser?: string;
3055
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3056
- upload_protocol?: string;
3057
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3058
- uploadType?: string;
3059
- }): Request<Occurrence>;
3060
- /** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3061
- getIamPolicy(
3062
- request: {
3063
- /** V1 error format. */
3064
- '$.xgafv'?: '1' | '2';
3065
- /** OAuth access token. */
3066
- access_token?: string;
3067
- /** Data format for response. */
3068
- alt?: 'json' | 'media' | 'proto';
3069
- /** JSONP */
3070
- callback?: string;
3071
- /** Selector specifying which fields to include in a partial response. */
3072
- fields?: string;
3073
- /** 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. */
3074
- key?: string;
3075
- /** OAuth 2.0 token for the current user. */
3076
- oauth_token?: string;
3077
- /** Returns response with indentations and line breaks. */
3078
- prettyPrint?: boolean;
3079
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3080
- quotaUser?: string;
3081
- /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3082
- resource: string;
3083
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3084
- upload_protocol?: string;
3085
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3086
- uploadType?: string;
3087
- },
3088
- body: GetIamPolicyRequest,
3089
- ): Request<Policy>;
3090
- /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
3091
- getNotes(request?: {
3092
- /** V1 error format. */
3093
- '$.xgafv'?: '1' | '2';
3094
- /** OAuth access token. */
3095
- access_token?: string;
3096
- /** Data format for response. */
3097
- alt?: 'json' | 'media' | 'proto';
3098
- /** JSONP */
3099
- callback?: string;
3100
- /** Selector specifying which fields to include in a partial response. */
3101
- fields?: string;
3102
- /** 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. */
3103
- key?: string;
3104
- /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3105
- name: string;
3106
- /** OAuth 2.0 token for the current user. */
3107
- oauth_token?: string;
3108
- /** Returns response with indentations and line breaks. */
3109
- prettyPrint?: boolean;
3110
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3111
- quotaUser?: string;
3112
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3113
- upload_protocol?: string;
3114
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3115
- uploadType?: string;
3116
- }): Request<Note>;
3117
- /** Gets a summary of the number and severity of occurrences. */
3118
- getVulnerabilitySummary(request?: {
3119
- /** V1 error format. */
3120
- '$.xgafv'?: '1' | '2';
3121
- /** OAuth access token. */
3122
- access_token?: string;
3123
- /** Data format for response. */
3124
- alt?: 'json' | 'media' | 'proto';
3125
- /** JSONP */
3126
- callback?: string;
3127
- /** Selector specifying which fields to include in a partial response. */
3128
- fields?: string;
3129
- /** The filter expression. */
3130
- filter?: string;
3131
- /** 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. */
3132
- key?: string;
3133
- /** OAuth 2.0 token for the current user. */
3134
- oauth_token?: string;
3135
- /** Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. */
3136
- parent: string;
3137
- /** Returns response with indentations and line breaks. */
3138
- prettyPrint?: boolean;
3139
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3140
- quotaUser?: string;
3141
- /** If set, the request will return all reachable occurrence summaries and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
3142
- returnPartialSuccess?: boolean;
3143
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3144
- upload_protocol?: string;
3145
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3146
- uploadType?: string;
3147
- }): Request<VulnerabilityOccurrencesSummary>;
3148
- /** Lists occurrences for the specified project. */
3149
- list(request?: {
3150
- /** V1 error format. */
3151
- '$.xgafv'?: '1' | '2';
3152
- /** OAuth access token. */
3153
- access_token?: string;
3154
- /** Data format for response. */
3155
- alt?: 'json' | 'media' | 'proto';
3156
- /** JSONP */
3157
- callback?: string;
3158
- /** Selector specifying which fields to include in a partial response. */
3159
- fields?: string;
3160
- /** The filter expression. */
3161
- filter?: string;
3162
- /** 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. */
3163
- key?: string;
3164
- /** OAuth 2.0 token for the current user. */
3165
- oauth_token?: string;
3166
- /** Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
3167
- pageSize?: number;
3168
- /** Token to provide to skip to a particular spot in the list. */
3169
- pageToken?: string;
3170
- /** Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. */
3171
- parent: string;
3172
- /** Returns response with indentations and line breaks. */
3173
- prettyPrint?: boolean;
3174
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3175
- quotaUser?: string;
3176
- /** If set, the request will return all reachable Occurrences and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
3177
- returnPartialSuccess?: boolean;
3178
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3179
- upload_protocol?: string;
3180
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3181
- uploadType?: string;
3182
- }): Request<ListOccurrencesResponse>;
3183
- /** Updates the specified occurrence. */
3184
- patch(request: {
3185
- /** V1 error format. */
3186
- '$.xgafv'?: '1' | '2';
3187
- /** OAuth access token. */
3188
- access_token?: string;
3189
- /** Data format for response. */
3190
- alt?: 'json' | 'media' | 'proto';
3191
- /** JSONP */
3192
- callback?: string;
3193
- /** Selector specifying which fields to include in a partial response. */
3194
- fields?: string;
3195
- /** 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. */
3196
- key?: string;
3197
- /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3198
- name: string;
3199
- /** OAuth 2.0 token for the current user. */
3200
- oauth_token?: string;
3201
- /** Returns response with indentations and line breaks. */
3202
- prettyPrint?: boolean;
3203
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3204
- quotaUser?: string;
3205
- /** The fields to update. */
3206
- updateMask?: string;
3207
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3208
- upload_protocol?: string;
3209
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3210
- uploadType?: string;
3211
- /** Request body */
3212
- resource: Occurrence;
3213
- }): Request<Occurrence>;
3214
- patch(
3215
- request: {
3841
+ /** Request body */
3842
+ resource: Occurrence;
3843
+ }): Request<Occurrence>;
3844
+ create(
3845
+ request: {
3846
+ /** V1 error format. */
3847
+ '$.xgafv'?: '1' | '2';
3848
+ /** OAuth access token. */
3849
+ access_token?: string;
3850
+ /** Data format for response. */
3851
+ alt?: 'json' | 'media' | 'proto';
3852
+ /** JSONP */
3853
+ callback?: string;
3854
+ /** Selector specifying which fields to include in a partial response. */
3855
+ fields?: string;
3856
+ /** 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. */
3857
+ key?: string;
3858
+ /** OAuth 2.0 token for the current user. */
3859
+ oauth_token?: string;
3860
+ /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
3861
+ parent: string;
3862
+ /** Returns response with indentations and line breaks. */
3863
+ prettyPrint?: boolean;
3864
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3865
+ quotaUser?: string;
3866
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3867
+ upload_protocol?: string;
3868
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3869
+ uploadType?: string;
3870
+ },
3871
+ body: Occurrence,
3872
+ ): Request<Occurrence>;
3873
+ /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
3874
+ delete(request?: {
3216
3875
  /** V1 error format. */
3217
3876
  '$.xgafv'?: '1' | '2';
3218
3877
  /** OAuth access token. */
@@ -3233,18 +3892,13 @@ declare namespace gapi.client {
3233
3892
  prettyPrint?: boolean;
3234
3893
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3235
3894
  quotaUser?: string;
3236
- /** The fields to update. */
3237
- updateMask?: string;
3238
3895
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3239
3896
  upload_protocol?: string;
3240
3897
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3241
3898
  uploadType?: string;
3242
- },
3243
- body: Occurrence,
3244
- ): Request<Occurrence>;
3245
- /** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3246
- setIamPolicy(
3247
- request: {
3899
+ }): Request<{}>;
3900
+ /** Gets the specified occurrence. */
3901
+ get(request?: {
3248
3902
  /** V1 error format. */
3249
3903
  '$.xgafv'?: '1' | '2';
3250
3904
  /** OAuth access token. */
@@ -3257,97 +3911,7 @@ declare namespace gapi.client {
3257
3911
  fields?: string;
3258
3912
  /** 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. */
3259
3913
  key?: string;
3260
- /** OAuth 2.0 token for the current user. */
3261
- oauth_token?: string;
3262
- /** Returns response with indentations and line breaks. */
3263
- prettyPrint?: boolean;
3264
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3265
- quotaUser?: string;
3266
- /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3267
- resource: string;
3268
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3269
- upload_protocol?: string;
3270
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3271
- uploadType?: string;
3272
- },
3273
- body: SetIamPolicyRequest,
3274
- ): Request<Policy>;
3275
- /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3276
- testIamPermissions(
3277
- request: {
3278
- /** V1 error format. */
3279
- '$.xgafv'?: '1' | '2';
3280
- /** OAuth access token. */
3281
- access_token?: string;
3282
- /** Data format for response. */
3283
- alt?: 'json' | 'media' | 'proto';
3284
- /** JSONP */
3285
- callback?: string;
3286
- /** Selector specifying which fields to include in a partial response. */
3287
- fields?: string;
3288
- /** 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. */
3289
- key?: string;
3290
- /** OAuth 2.0 token for the current user. */
3291
- oauth_token?: string;
3292
- /** Returns response with indentations and line breaks. */
3293
- prettyPrint?: boolean;
3294
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3295
- quotaUser?: string;
3296
- /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3297
- resource: string;
3298
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3299
- upload_protocol?: string;
3300
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3301
- uploadType?: string;
3302
- },
3303
- body: TestIamPermissionsRequest,
3304
- ): Request<TestIamPermissionsResponse>;
3305
- }
3306
- interface ResourcesResource {
3307
- /** Generates an SBOM for the given resource. */
3308
- exportSBOM(request: {
3309
- /** V1 error format. */
3310
- '$.xgafv'?: '1' | '2';
3311
- /** OAuth access token. */
3312
- access_token?: string;
3313
- /** Data format for response. */
3314
- alt?: 'json' | 'media' | 'proto';
3315
- /** JSONP */
3316
- callback?: string;
3317
- /** Selector specifying which fields to include in a partial response. */
3318
- fields?: string;
3319
- /** 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. */
3320
- key?: string;
3321
- /** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
3322
- name: string;
3323
- /** OAuth 2.0 token for the current user. */
3324
- oauth_token?: string;
3325
- /** Returns response with indentations and line breaks. */
3326
- prettyPrint?: boolean;
3327
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3328
- quotaUser?: string;
3329
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3330
- upload_protocol?: string;
3331
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3332
- uploadType?: string;
3333
- /** Request body */
3334
- resource: ExportSBOMRequest;
3335
- }): Request<ExportSBOMResponse>;
3336
- exportSBOM(
3337
- request: {
3338
- /** V1 error format. */
3339
- '$.xgafv'?: '1' | '2';
3340
- /** OAuth access token. */
3341
- access_token?: string;
3342
- /** Data format for response. */
3343
- alt?: 'json' | 'media' | 'proto';
3344
- /** JSONP */
3345
- callback?: string;
3346
- /** Selector specifying which fields to include in a partial response. */
3347
- fields?: string;
3348
- /** 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. */
3349
- key?: string;
3350
- /** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
3914
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3351
3915
  name: string;
3352
3916
  /** OAuth 2.0 token for the current user. */
3353
3917
  oauth_token?: string;
@@ -3359,82 +3923,39 @@ declare namespace gapi.client {
3359
3923
  upload_protocol?: string;
3360
3924
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3361
3925
  uploadType?: string;
3362
- },
3363
- body: ExportSBOMRequest,
3364
- ): Request<ExportSBOMResponse>;
3365
- }
3366
- interface LocationsResource {
3367
- notes: NotesResource;
3368
- occurrences: OccurrencesResource;
3369
- resources: ResourcesResource;
3370
- }
3371
- interface OccurrencesResource {
3372
- /** Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. */
3373
- list(request?: {
3374
- /** V1 error format. */
3375
- '$.xgafv'?: '1' | '2';
3376
- /** OAuth access token. */
3377
- access_token?: string;
3378
- /** Data format for response. */
3379
- alt?: 'json' | 'media' | 'proto';
3380
- /** JSONP */
3381
- callback?: string;
3382
- /** Selector specifying which fields to include in a partial response. */
3383
- fields?: string;
3384
- /** The filter expression. */
3385
- filter?: string;
3386
- /** 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. */
3387
- key?: string;
3388
- /** Required. The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
3389
- name: string;
3390
- /** OAuth 2.0 token for the current user. */
3391
- oauth_token?: string;
3392
- /** Number of occurrences to return in the list. */
3393
- pageSize?: number;
3394
- /** Token to provide to skip to a particular spot in the list. */
3395
- pageToken?: string;
3396
- /** Returns response with indentations and line breaks. */
3397
- prettyPrint?: boolean;
3398
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3399
- quotaUser?: string;
3400
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3401
- upload_protocol?: string;
3402
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3403
- uploadType?: string;
3404
- }): Request<ListNoteOccurrencesResponse>;
3405
- }
3406
- interface NotesResource {
3407
- /** Creates new notes in batch. */
3408
- batchCreate(request: {
3409
- /** V1 error format. */
3410
- '$.xgafv'?: '1' | '2';
3411
- /** OAuth access token. */
3412
- access_token?: string;
3413
- /** Data format for response. */
3414
- alt?: 'json' | 'media' | 'proto';
3415
- /** JSONP */
3416
- callback?: string;
3417
- /** Selector specifying which fields to include in a partial response. */
3418
- fields?: string;
3419
- /** 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. */
3420
- key?: string;
3421
- /** OAuth 2.0 token for the current user. */
3422
- oauth_token?: string;
3423
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
3424
- parent: string;
3425
- /** Returns response with indentations and line breaks. */
3426
- prettyPrint?: boolean;
3427
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3428
- quotaUser?: string;
3429
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3430
- upload_protocol?: string;
3431
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3432
- uploadType?: string;
3433
- /** Request body */
3434
- resource: BatchCreateNotesRequest;
3435
- }): Request<BatchCreateNotesResponse>;
3436
- batchCreate(
3437
- request: {
3926
+ }): Request<Occurrence>;
3927
+ /** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3928
+ getIamPolicy(
3929
+ request: {
3930
+ /** V1 error format. */
3931
+ '$.xgafv'?: '1' | '2';
3932
+ /** OAuth access token. */
3933
+ access_token?: string;
3934
+ /** Data format for response. */
3935
+ alt?: 'json' | 'media' | 'proto';
3936
+ /** JSONP */
3937
+ callback?: string;
3938
+ /** Selector specifying which fields to include in a partial response. */
3939
+ fields?: string;
3940
+ /** 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. */
3941
+ key?: string;
3942
+ /** OAuth 2.0 token for the current user. */
3943
+ oauth_token?: string;
3944
+ /** Returns response with indentations and line breaks. */
3945
+ prettyPrint?: boolean;
3946
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3947
+ quotaUser?: string;
3948
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3949
+ resource: string;
3950
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3951
+ upload_protocol?: string;
3952
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3953
+ uploadType?: string;
3954
+ },
3955
+ body: GetIamPolicyRequest,
3956
+ ): Request<Policy>;
3957
+ /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
3958
+ getNotes(request?: {
3438
3959
  /** V1 error format. */
3439
3960
  '$.xgafv'?: '1' | '2';
3440
3961
  /** OAuth access token. */
@@ -3447,248 +3968,7 @@ declare namespace gapi.client {
3447
3968
  fields?: string;
3448
3969
  /** 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. */
3449
3970
  key?: string;
3450
- /** OAuth 2.0 token for the current user. */
3451
- oauth_token?: string;
3452
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. */
3453
- parent: string;
3454
- /** Returns response with indentations and line breaks. */
3455
- prettyPrint?: boolean;
3456
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3457
- quotaUser?: string;
3458
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3459
- upload_protocol?: string;
3460
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3461
- uploadType?: string;
3462
- },
3463
- body: BatchCreateNotesRequest,
3464
- ): Request<BatchCreateNotesResponse>;
3465
- /** Creates a new note. */
3466
- create(request: {
3467
- /** V1 error format. */
3468
- '$.xgafv'?: '1' | '2';
3469
- /** OAuth access token. */
3470
- access_token?: string;
3471
- /** Data format for response. */
3472
- alt?: 'json' | 'media' | 'proto';
3473
- /** JSONP */
3474
- callback?: string;
3475
- /** Selector specifying which fields to include in a partial response. */
3476
- fields?: string;
3477
- /** 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. */
3478
- key?: string;
3479
- /** Required. The ID to use for this note. */
3480
- noteId?: string;
3481
- /** OAuth 2.0 token for the current user. */
3482
- oauth_token?: string;
3483
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
3484
- parent: string;
3485
- /** Returns response with indentations and line breaks. */
3486
- prettyPrint?: boolean;
3487
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3488
- quotaUser?: string;
3489
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3490
- upload_protocol?: string;
3491
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3492
- uploadType?: string;
3493
- /** Request body */
3494
- resource: Note;
3495
- }): Request<Note>;
3496
- create(
3497
- request: {
3498
- /** V1 error format. */
3499
- '$.xgafv'?: '1' | '2';
3500
- /** OAuth access token. */
3501
- access_token?: string;
3502
- /** Data format for response. */
3503
- alt?: 'json' | 'media' | 'proto';
3504
- /** JSONP */
3505
- callback?: string;
3506
- /** Selector specifying which fields to include in a partial response. */
3507
- fields?: string;
3508
- /** 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. */
3509
- key?: string;
3510
- /** Required. The ID to use for this note. */
3511
- noteId?: string;
3512
- /** OAuth 2.0 token for the current user. */
3513
- oauth_token?: string;
3514
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. */
3515
- parent: string;
3516
- /** Returns response with indentations and line breaks. */
3517
- prettyPrint?: boolean;
3518
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3519
- quotaUser?: string;
3520
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3521
- upload_protocol?: string;
3522
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3523
- uploadType?: string;
3524
- },
3525
- body: Note,
3526
- ): Request<Note>;
3527
- /** Deletes the specified note. */
3528
- delete(request?: {
3529
- /** V1 error format. */
3530
- '$.xgafv'?: '1' | '2';
3531
- /** OAuth access token. */
3532
- access_token?: string;
3533
- /** Data format for response. */
3534
- alt?: 'json' | 'media' | 'proto';
3535
- /** JSONP */
3536
- callback?: string;
3537
- /** Selector specifying which fields to include in a partial response. */
3538
- fields?: string;
3539
- /** 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. */
3540
- key?: string;
3541
- /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
3542
- name: string;
3543
- /** OAuth 2.0 token for the current user. */
3544
- oauth_token?: string;
3545
- /** Returns response with indentations and line breaks. */
3546
- prettyPrint?: boolean;
3547
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3548
- quotaUser?: string;
3549
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3550
- upload_protocol?: string;
3551
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3552
- uploadType?: string;
3553
- }): Request<{}>;
3554
- /** Gets the specified note. */
3555
- get(request?: {
3556
- /** V1 error format. */
3557
- '$.xgafv'?: '1' | '2';
3558
- /** OAuth access token. */
3559
- access_token?: string;
3560
- /** Data format for response. */
3561
- alt?: 'json' | 'media' | 'proto';
3562
- /** JSONP */
3563
- callback?: string;
3564
- /** Selector specifying which fields to include in a partial response. */
3565
- fields?: string;
3566
- /** 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. */
3567
- key?: string;
3568
- /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
3569
- name: string;
3570
- /** OAuth 2.0 token for the current user. */
3571
- oauth_token?: string;
3572
- /** Returns response with indentations and line breaks. */
3573
- prettyPrint?: boolean;
3574
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3575
- quotaUser?: string;
3576
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3577
- upload_protocol?: string;
3578
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3579
- uploadType?: string;
3580
- }): Request<Note>;
3581
- /** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3582
- getIamPolicy(
3583
- request: {
3584
- /** V1 error format. */
3585
- '$.xgafv'?: '1' | '2';
3586
- /** OAuth access token. */
3587
- access_token?: string;
3588
- /** Data format for response. */
3589
- alt?: 'json' | 'media' | 'proto';
3590
- /** JSONP */
3591
- callback?: string;
3592
- /** Selector specifying which fields to include in a partial response. */
3593
- fields?: string;
3594
- /** 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. */
3595
- key?: string;
3596
- /** OAuth 2.0 token for the current user. */
3597
- oauth_token?: string;
3598
- /** Returns response with indentations and line breaks. */
3599
- prettyPrint?: boolean;
3600
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3601
- quotaUser?: string;
3602
- /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3603
- resource: string;
3604
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3605
- upload_protocol?: string;
3606
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3607
- uploadType?: string;
3608
- },
3609
- body: GetIamPolicyRequest,
3610
- ): Request<Policy>;
3611
- /** Lists notes for the specified project. */
3612
- list(request?: {
3613
- /** V1 error format. */
3614
- '$.xgafv'?: '1' | '2';
3615
- /** OAuth access token. */
3616
- access_token?: string;
3617
- /** Data format for response. */
3618
- alt?: 'json' | 'media' | 'proto';
3619
- /** JSONP */
3620
- callback?: string;
3621
- /** Selector specifying which fields to include in a partial response. */
3622
- fields?: string;
3623
- /** The filter expression. */
3624
- filter?: string;
3625
- /** 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. */
3626
- key?: string;
3627
- /** OAuth 2.0 token for the current user. */
3628
- oauth_token?: string;
3629
- /** Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
3630
- pageSize?: number;
3631
- /** Token to provide to skip to a particular spot in the list. */
3632
- pageToken?: string;
3633
- /** Required. The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. */
3634
- parent: string;
3635
- /** Returns response with indentations and line breaks. */
3636
- prettyPrint?: boolean;
3637
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3638
- quotaUser?: string;
3639
- /** If set, the request will return all reachable Notes and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
3640
- returnPartialSuccess?: boolean;
3641
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3642
- upload_protocol?: string;
3643
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3644
- uploadType?: string;
3645
- }): Request<ListNotesResponse>;
3646
- /** Updates the specified note. */
3647
- patch(request: {
3648
- /** V1 error format. */
3649
- '$.xgafv'?: '1' | '2';
3650
- /** OAuth access token. */
3651
- access_token?: string;
3652
- /** Data format for response. */
3653
- alt?: 'json' | 'media' | 'proto';
3654
- /** JSONP */
3655
- callback?: string;
3656
- /** Selector specifying which fields to include in a partial response. */
3657
- fields?: string;
3658
- /** 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. */
3659
- key?: string;
3660
- /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
3661
- name: string;
3662
- /** OAuth 2.0 token for the current user. */
3663
- oauth_token?: string;
3664
- /** Returns response with indentations and line breaks. */
3665
- prettyPrint?: boolean;
3666
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3667
- quotaUser?: string;
3668
- /** The fields to update. */
3669
- updateMask?: string;
3670
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3671
- upload_protocol?: string;
3672
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3673
- uploadType?: string;
3674
- /** Request body */
3675
- resource: Note;
3676
- }): Request<Note>;
3677
- patch(
3678
- request: {
3679
- /** V1 error format. */
3680
- '$.xgafv'?: '1' | '2';
3681
- /** OAuth access token. */
3682
- access_token?: string;
3683
- /** Data format for response. */
3684
- alt?: 'json' | 'media' | 'proto';
3685
- /** JSONP */
3686
- callback?: string;
3687
- /** Selector specifying which fields to include in a partial response. */
3688
- fields?: string;
3689
- /** 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. */
3690
- key?: string;
3691
- /** Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. */
3971
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3692
3972
  name: string;
3693
3973
  /** OAuth 2.0 token for the current user. */
3694
3974
  oauth_token?: string;
@@ -3696,18 +3976,13 @@ declare namespace gapi.client {
3696
3976
  prettyPrint?: boolean;
3697
3977
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3698
3978
  quotaUser?: string;
3699
- /** The fields to update. */
3700
- updateMask?: string;
3701
3979
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3702
3980
  upload_protocol?: string;
3703
3981
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3704
3982
  uploadType?: string;
3705
- },
3706
- body: Note,
3707
- ): Request<Note>;
3708
- /** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3709
- setIamPolicy(
3710
- request: {
3983
+ }): Request<Note>;
3984
+ /** Gets a summary of the number and severity of occurrences. */
3985
+ getVulnerabilitySummary(request?: {
3711
3986
  /** V1 error format. */
3712
3987
  '$.xgafv'?: '1' | '2';
3713
3988
  /** OAuth access token. */
@@ -3718,145 +3993,27 @@ declare namespace gapi.client {
3718
3993
  callback?: string;
3719
3994
  /** Selector specifying which fields to include in a partial response. */
3720
3995
  fields?: string;
3996
+ /** The filter expression. */
3997
+ filter?: string;
3721
3998
  /** 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. */
3722
3999
  key?: string;
3723
4000
  /** OAuth 2.0 token for the current user. */
3724
4001
  oauth_token?: string;
3725
- /** Returns response with indentations and line breaks. */
3726
- prettyPrint?: boolean;
3727
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3728
- quotaUser?: string;
3729
- /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3730
- resource: string;
3731
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3732
- upload_protocol?: string;
3733
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3734
- uploadType?: string;
3735
- },
3736
- body: SetIamPolicyRequest,
3737
- ): Request<Policy>;
3738
- /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3739
- testIamPermissions(
3740
- request: {
3741
- /** V1 error format. */
3742
- '$.xgafv'?: '1' | '2';
3743
- /** OAuth access token. */
3744
- access_token?: string;
3745
- /** Data format for response. */
3746
- alt?: 'json' | 'media' | 'proto';
3747
- /** JSONP */
3748
- callback?: string;
3749
- /** Selector specifying which fields to include in a partial response. */
3750
- fields?: string;
3751
- /** 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. */
3752
- key?: string;
3753
- /** OAuth 2.0 token for the current user. */
3754
- oauth_token?: string;
3755
- /** Returns response with indentations and line breaks. */
3756
- prettyPrint?: boolean;
3757
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3758
- quotaUser?: string;
3759
- /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3760
- resource: string;
3761
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3762
- upload_protocol?: string;
3763
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3764
- uploadType?: string;
3765
- },
3766
- body: TestIamPermissionsRequest,
3767
- ): Request<TestIamPermissionsResponse>;
3768
- occurrences: OccurrencesResource;
3769
- }
3770
- interface OccurrencesResource {
3771
- /** Creates new occurrences in batch. */
3772
- batchCreate(request: {
3773
- /** V1 error format. */
3774
- '$.xgafv'?: '1' | '2';
3775
- /** OAuth access token. */
3776
- access_token?: string;
3777
- /** Data format for response. */
3778
- alt?: 'json' | 'media' | 'proto';
3779
- /** JSONP */
3780
- callback?: string;
3781
- /** Selector specifying which fields to include in a partial response. */
3782
- fields?: string;
3783
- /** 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. */
3784
- key?: string;
3785
- /** OAuth 2.0 token for the current user. */
3786
- oauth_token?: string;
3787
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
3788
- parent: string;
3789
- /** Returns response with indentations and line breaks. */
3790
- prettyPrint?: boolean;
3791
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3792
- quotaUser?: string;
3793
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3794
- upload_protocol?: string;
3795
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3796
- uploadType?: string;
3797
- /** Request body */
3798
- resource: BatchCreateOccurrencesRequest;
3799
- }): Request<BatchCreateOccurrencesResponse>;
3800
- batchCreate(
3801
- request: {
3802
- /** V1 error format. */
3803
- '$.xgafv'?: '1' | '2';
3804
- /** OAuth access token. */
3805
- access_token?: string;
3806
- /** Data format for response. */
3807
- alt?: 'json' | 'media' | 'proto';
3808
- /** JSONP */
3809
- callback?: string;
3810
- /** Selector specifying which fields to include in a partial response. */
3811
- fields?: string;
3812
- /** 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. */
3813
- key?: string;
3814
- /** OAuth 2.0 token for the current user. */
3815
- oauth_token?: string;
3816
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. */
4002
+ /** Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. */
3817
4003
  parent: string;
3818
4004
  /** Returns response with indentations and line breaks. */
3819
4005
  prettyPrint?: boolean;
3820
4006
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3821
4007
  quotaUser?: string;
4008
+ /** If set, the request will return all reachable occurrence summaries and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
4009
+ returnPartialSuccess?: boolean;
3822
4010
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3823
4011
  upload_protocol?: string;
3824
4012
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3825
4013
  uploadType?: string;
3826
- },
3827
- body: BatchCreateOccurrencesRequest,
3828
- ): Request<BatchCreateOccurrencesResponse>;
3829
- /** Creates a new occurrence. */
3830
- create(request: {
3831
- /** V1 error format. */
3832
- '$.xgafv'?: '1' | '2';
3833
- /** OAuth access token. */
3834
- access_token?: string;
3835
- /** Data format for response. */
3836
- alt?: 'json' | 'media' | 'proto';
3837
- /** JSONP */
3838
- callback?: string;
3839
- /** Selector specifying which fields to include in a partial response. */
3840
- fields?: string;
3841
- /** 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. */
3842
- key?: string;
3843
- /** OAuth 2.0 token for the current user. */
3844
- oauth_token?: string;
3845
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
3846
- parent: string;
3847
- /** Returns response with indentations and line breaks. */
3848
- prettyPrint?: boolean;
3849
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3850
- quotaUser?: string;
3851
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3852
- upload_protocol?: string;
3853
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3854
- uploadType?: string;
3855
- /** Request body */
3856
- resource: Occurrence;
3857
- }): Request<Occurrence>;
3858
- create(
3859
- request: {
4014
+ }): Request<VulnerabilityOccurrencesSummary>;
4015
+ /** Lists occurrences for the specified project. */
4016
+ list(request?: {
3860
4017
  /** V1 error format. */
3861
4018
  '$.xgafv'?: '1' | '2';
3862
4019
  /** OAuth access token. */
@@ -3867,233 +4024,31 @@ declare namespace gapi.client {
3867
4024
  callback?: string;
3868
4025
  /** Selector specifying which fields to include in a partial response. */
3869
4026
  fields?: string;
4027
+ /** The filter expression. */
4028
+ filter?: string;
3870
4029
  /** 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. */
3871
4030
  key?: string;
3872
4031
  /** OAuth 2.0 token for the current user. */
3873
4032
  oauth_token?: string;
3874
- /** Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. */
4033
+ /** Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
4034
+ pageSize?: number;
4035
+ /** Token to provide to skip to a particular spot in the list. */
4036
+ pageToken?: string;
4037
+ /** Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. */
3875
4038
  parent: string;
3876
4039
  /** Returns response with indentations and line breaks. */
3877
4040
  prettyPrint?: boolean;
3878
4041
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3879
4042
  quotaUser?: string;
4043
+ /** If set, the request will return all reachable Occurrences and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
4044
+ returnPartialSuccess?: boolean;
3880
4045
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3881
4046
  upload_protocol?: string;
3882
4047
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3883
4048
  uploadType?: string;
3884
- },
3885
- body: Occurrence,
3886
- ): Request<Occurrence>;
3887
- /** Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. */
3888
- delete(request?: {
3889
- /** V1 error format. */
3890
- '$.xgafv'?: '1' | '2';
3891
- /** OAuth access token. */
3892
- access_token?: string;
3893
- /** Data format for response. */
3894
- alt?: 'json' | 'media' | 'proto';
3895
- /** JSONP */
3896
- callback?: string;
3897
- /** Selector specifying which fields to include in a partial response. */
3898
- fields?: string;
3899
- /** 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. */
3900
- key?: string;
3901
- /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3902
- name: string;
3903
- /** OAuth 2.0 token for the current user. */
3904
- oauth_token?: string;
3905
- /** Returns response with indentations and line breaks. */
3906
- prettyPrint?: boolean;
3907
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3908
- quotaUser?: string;
3909
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3910
- upload_protocol?: string;
3911
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3912
- uploadType?: string;
3913
- }): Request<{}>;
3914
- /** Gets the specified occurrence. */
3915
- get(request?: {
3916
- /** V1 error format. */
3917
- '$.xgafv'?: '1' | '2';
3918
- /** OAuth access token. */
3919
- access_token?: string;
3920
- /** Data format for response. */
3921
- alt?: 'json' | 'media' | 'proto';
3922
- /** JSONP */
3923
- callback?: string;
3924
- /** Selector specifying which fields to include in a partial response. */
3925
- fields?: string;
3926
- /** 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. */
3927
- key?: string;
3928
- /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3929
- name: string;
3930
- /** OAuth 2.0 token for the current user. */
3931
- oauth_token?: string;
3932
- /** Returns response with indentations and line breaks. */
3933
- prettyPrint?: boolean;
3934
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3935
- quotaUser?: string;
3936
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3937
- upload_protocol?: string;
3938
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3939
- uploadType?: string;
3940
- }): Request<Occurrence>;
3941
- /** Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
3942
- getIamPolicy(
3943
- request: {
3944
- /** V1 error format. */
3945
- '$.xgafv'?: '1' | '2';
3946
- /** OAuth access token. */
3947
- access_token?: string;
3948
- /** Data format for response. */
3949
- alt?: 'json' | 'media' | 'proto';
3950
- /** JSONP */
3951
- callback?: string;
3952
- /** Selector specifying which fields to include in a partial response. */
3953
- fields?: string;
3954
- /** 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. */
3955
- key?: string;
3956
- /** OAuth 2.0 token for the current user. */
3957
- oauth_token?: string;
3958
- /** Returns response with indentations and line breaks. */
3959
- prettyPrint?: boolean;
3960
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3961
- quotaUser?: string;
3962
- /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
3963
- resource: string;
3964
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3965
- upload_protocol?: string;
3966
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3967
- uploadType?: string;
3968
- },
3969
- body: GetIamPolicyRequest,
3970
- ): Request<Policy>;
3971
- /** Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. */
3972
- getNotes(request?: {
3973
- /** V1 error format. */
3974
- '$.xgafv'?: '1' | '2';
3975
- /** OAuth access token. */
3976
- access_token?: string;
3977
- /** Data format for response. */
3978
- alt?: 'json' | 'media' | 'proto';
3979
- /** JSONP */
3980
- callback?: string;
3981
- /** Selector specifying which fields to include in a partial response. */
3982
- fields?: string;
3983
- /** 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. */
3984
- key?: string;
3985
- /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
3986
- name: string;
3987
- /** OAuth 2.0 token for the current user. */
3988
- oauth_token?: string;
3989
- /** Returns response with indentations and line breaks. */
3990
- prettyPrint?: boolean;
3991
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3992
- quotaUser?: string;
3993
- /** Upload protocol for media (e.g. "raw", "multipart"). */
3994
- upload_protocol?: string;
3995
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3996
- uploadType?: string;
3997
- }): Request<Note>;
3998
- /** Gets a summary of the number and severity of occurrences. */
3999
- getVulnerabilitySummary(request?: {
4000
- /** V1 error format. */
4001
- '$.xgafv'?: '1' | '2';
4002
- /** OAuth access token. */
4003
- access_token?: string;
4004
- /** Data format for response. */
4005
- alt?: 'json' | 'media' | 'proto';
4006
- /** JSONP */
4007
- callback?: string;
4008
- /** Selector specifying which fields to include in a partial response. */
4009
- fields?: string;
4010
- /** The filter expression. */
4011
- filter?: string;
4012
- /** 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. */
4013
- key?: string;
4014
- /** OAuth 2.0 token for the current user. */
4015
- oauth_token?: string;
4016
- /** Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. */
4017
- parent: string;
4018
- /** Returns response with indentations and line breaks. */
4019
- prettyPrint?: boolean;
4020
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4021
- quotaUser?: string;
4022
- /** If set, the request will return all reachable occurrence summaries and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
4023
- returnPartialSuccess?: boolean;
4024
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4025
- upload_protocol?: string;
4026
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4027
- uploadType?: string;
4028
- }): Request<VulnerabilityOccurrencesSummary>;
4029
- /** Lists occurrences for the specified project. */
4030
- list(request?: {
4031
- /** V1 error format. */
4032
- '$.xgafv'?: '1' | '2';
4033
- /** OAuth access token. */
4034
- access_token?: string;
4035
- /** Data format for response. */
4036
- alt?: 'json' | 'media' | 'proto';
4037
- /** JSONP */
4038
- callback?: string;
4039
- /** Selector specifying which fields to include in a partial response. */
4040
- fields?: string;
4041
- /** The filter expression. */
4042
- filter?: string;
4043
- /** 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. */
4044
- key?: string;
4045
- /** OAuth 2.0 token for the current user. */
4046
- oauth_token?: string;
4047
- /** Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. */
4048
- pageSize?: number;
4049
- /** Token to provide to skip to a particular spot in the list. */
4050
- pageToken?: string;
4051
- /** Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. */
4052
- parent: string;
4053
- /** Returns response with indentations and line breaks. */
4054
- prettyPrint?: boolean;
4055
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4056
- quotaUser?: string;
4057
- /** If set, the request will return all reachable Occurrences and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region. */
4058
- returnPartialSuccess?: boolean;
4059
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4060
- upload_protocol?: string;
4061
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4062
- uploadType?: string;
4063
- }): Request<ListOccurrencesResponse>;
4064
- /** Updates the specified occurrence. */
4065
- patch(request: {
4066
- /** V1 error format. */
4067
- '$.xgafv'?: '1' | '2';
4068
- /** OAuth access token. */
4069
- access_token?: string;
4070
- /** Data format for response. */
4071
- alt?: 'json' | 'media' | 'proto';
4072
- /** JSONP */
4073
- callback?: string;
4074
- /** Selector specifying which fields to include in a partial response. */
4075
- fields?: string;
4076
- /** 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. */
4077
- key?: string;
4078
- /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
4079
- name: string;
4080
- /** OAuth 2.0 token for the current user. */
4081
- oauth_token?: string;
4082
- /** Returns response with indentations and line breaks. */
4083
- prettyPrint?: boolean;
4084
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4085
- quotaUser?: string;
4086
- /** The fields to update. */
4087
- updateMask?: string;
4088
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4089
- upload_protocol?: string;
4090
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4091
- uploadType?: string;
4092
- /** Request body */
4093
- resource: Occurrence;
4094
- }): Request<Occurrence>;
4095
- patch(
4096
- request: {
4049
+ }): Request<ListOccurrencesResponse>;
4050
+ /** Updates the specified occurrence. */
4051
+ patch(request: {
4097
4052
  /** V1 error format. */
4098
4053
  '$.xgafv'?: '1' | '2';
4099
4054
  /** OAuth access token. */
@@ -4120,102 +4075,104 @@ declare namespace gapi.client {
4120
4075
  upload_protocol?: string;
4121
4076
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4122
4077
  uploadType?: string;
4123
- },
4124
- body: Occurrence,
4125
- ): Request<Occurrence>;
4126
- /** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
4127
- setIamPolicy(
4128
- request: {
4129
- /** V1 error format. */
4130
- '$.xgafv'?: '1' | '2';
4131
- /** OAuth access token. */
4132
- access_token?: string;
4133
- /** Data format for response. */
4134
- alt?: 'json' | 'media' | 'proto';
4135
- /** JSONP */
4136
- callback?: string;
4137
- /** Selector specifying which fields to include in a partial response. */
4138
- fields?: string;
4139
- /** 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. */
4140
- key?: string;
4141
- /** OAuth 2.0 token for the current user. */
4142
- oauth_token?: string;
4143
- /** Returns response with indentations and line breaks. */
4144
- prettyPrint?: boolean;
4145
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4146
- quotaUser?: string;
4147
- /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
4148
- resource: string;
4149
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4150
- upload_protocol?: string;
4151
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4152
- uploadType?: string;
4153
- },
4154
- body: SetIamPolicyRequest,
4155
- ): Request<Policy>;
4156
- /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
4157
- testIamPermissions(
4158
- request: {
4159
- /** V1 error format. */
4160
- '$.xgafv'?: '1' | '2';
4161
- /** OAuth access token. */
4162
- access_token?: string;
4163
- /** Data format for response. */
4164
- alt?: 'json' | 'media' | 'proto';
4165
- /** JSONP */
4166
- callback?: string;
4167
- /** Selector specifying which fields to include in a partial response. */
4168
- fields?: string;
4169
- /** 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. */
4170
- key?: string;
4171
- /** OAuth 2.0 token for the current user. */
4172
- oauth_token?: string;
4173
- /** Returns response with indentations and line breaks. */
4174
- prettyPrint?: boolean;
4175
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4176
- quotaUser?: string;
4177
- /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
4178
- resource: string;
4179
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4180
- upload_protocol?: string;
4181
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4182
- uploadType?: string;
4183
- },
4184
- body: TestIamPermissionsRequest,
4185
- ): Request<TestIamPermissionsResponse>;
4186
- }
4187
- interface ResourcesResource {
4188
- /** Generates an SBOM for the given resource. */
4189
- exportSBOM(request: {
4190
- /** V1 error format. */
4191
- '$.xgafv'?: '1' | '2';
4192
- /** OAuth access token. */
4193
- access_token?: string;
4194
- /** Data format for response. */
4195
- alt?: 'json' | 'media' | 'proto';
4196
- /** JSONP */
4197
- callback?: string;
4198
- /** Selector specifying which fields to include in a partial response. */
4199
- fields?: string;
4200
- /** 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. */
4201
- key?: string;
4202
- /** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
4203
- name: string;
4204
- /** OAuth 2.0 token for the current user. */
4205
- oauth_token?: string;
4206
- /** Returns response with indentations and line breaks. */
4207
- prettyPrint?: boolean;
4208
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4209
- quotaUser?: string;
4210
- /** Upload protocol for media (e.g. "raw", "multipart"). */
4211
- upload_protocol?: string;
4212
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4213
- uploadType?: string;
4214
- /** Request body */
4215
- resource: ExportSBOMRequest;
4216
- }): Request<ExportSBOMResponse>;
4217
- exportSBOM(
4218
- request: {
4078
+ /** Request body */
4079
+ resource: Occurrence;
4080
+ }): Request<Occurrence>;
4081
+ patch(
4082
+ request: {
4083
+ /** V1 error format. */
4084
+ '$.xgafv'?: '1' | '2';
4085
+ /** OAuth access token. */
4086
+ access_token?: string;
4087
+ /** Data format for response. */
4088
+ alt?: 'json' | 'media' | 'proto';
4089
+ /** JSONP */
4090
+ callback?: string;
4091
+ /** Selector specifying which fields to include in a partial response. */
4092
+ fields?: string;
4093
+ /** 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. */
4094
+ key?: string;
4095
+ /** Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. */
4096
+ name: string;
4097
+ /** OAuth 2.0 token for the current user. */
4098
+ oauth_token?: string;
4099
+ /** Returns response with indentations and line breaks. */
4100
+ prettyPrint?: boolean;
4101
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4102
+ quotaUser?: string;
4103
+ /** The fields to update. */
4104
+ updateMask?: string;
4105
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4106
+ upload_protocol?: string;
4107
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4108
+ uploadType?: string;
4109
+ },
4110
+ body: Occurrence,
4111
+ ): Request<Occurrence>;
4112
+ /** Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
4113
+ setIamPolicy(
4114
+ request: {
4115
+ /** V1 error format. */
4116
+ '$.xgafv'?: '1' | '2';
4117
+ /** OAuth access token. */
4118
+ access_token?: string;
4119
+ /** Data format for response. */
4120
+ alt?: 'json' | 'media' | 'proto';
4121
+ /** JSONP */
4122
+ callback?: string;
4123
+ /** Selector specifying which fields to include in a partial response. */
4124
+ fields?: string;
4125
+ /** 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. */
4126
+ key?: string;
4127
+ /** OAuth 2.0 token for the current user. */
4128
+ oauth_token?: string;
4129
+ /** Returns response with indentations and line breaks. */
4130
+ prettyPrint?: boolean;
4131
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4132
+ quotaUser?: string;
4133
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
4134
+ resource: string;
4135
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4136
+ upload_protocol?: string;
4137
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4138
+ uploadType?: string;
4139
+ },
4140
+ body: SetIamPolicyRequest,
4141
+ ): Request<Policy>;
4142
+ /** Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. */
4143
+ testIamPermissions(
4144
+ request: {
4145
+ /** V1 error format. */
4146
+ '$.xgafv'?: '1' | '2';
4147
+ /** OAuth access token. */
4148
+ access_token?: string;
4149
+ /** Data format for response. */
4150
+ alt?: 'json' | 'media' | 'proto';
4151
+ /** JSONP */
4152
+ callback?: string;
4153
+ /** Selector specifying which fields to include in a partial response. */
4154
+ fields?: string;
4155
+ /** 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. */
4156
+ key?: string;
4157
+ /** OAuth 2.0 token for the current user. */
4158
+ oauth_token?: string;
4159
+ /** Returns response with indentations and line breaks. */
4160
+ prettyPrint?: boolean;
4161
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4162
+ quotaUser?: string;
4163
+ /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
4164
+ resource: string;
4165
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4166
+ upload_protocol?: string;
4167
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4168
+ uploadType?: string;
4169
+ },
4170
+ body: TestIamPermissionsRequest,
4171
+ ): Request<TestIamPermissionsResponse>;
4172
+ };
4173
+ resources: {
4174
+ /** Generates an SBOM for the given resource. */
4175
+ exportSBOM(request: {
4219
4176
  /** V1 error format. */
4220
4177
  '$.xgafv'?: '1' | '2';
4221
4178
  /** OAuth access token. */
@@ -4240,17 +4197,39 @@ declare namespace gapi.client {
4240
4197
  upload_protocol?: string;
4241
4198
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4242
4199
  uploadType?: string;
4243
- },
4244
- body: ExportSBOMRequest,
4245
- ): Request<ExportSBOMResponse>;
4246
- }
4247
- interface ProjectsResource {
4248
- locations: LocationsResource;
4249
- notes: NotesResource;
4250
- occurrences: OccurrencesResource;
4251
- resources: ResourcesResource;
4252
- }
4253
-
4254
- const projects: ProjectsResource;
4200
+ /** Request body */
4201
+ resource: ExportSBOMRequest;
4202
+ }): Request<ExportSBOMResponse>;
4203
+ exportSBOM(
4204
+ request: {
4205
+ /** V1 error format. */
4206
+ '$.xgafv'?: '1' | '2';
4207
+ /** OAuth access token. */
4208
+ access_token?: string;
4209
+ /** Data format for response. */
4210
+ alt?: 'json' | 'media' | 'proto';
4211
+ /** JSONP */
4212
+ callback?: string;
4213
+ /** Selector specifying which fields to include in a partial response. */
4214
+ fields?: string;
4215
+ /** 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. */
4216
+ key?: string;
4217
+ /** Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. */
4218
+ name: string;
4219
+ /** OAuth 2.0 token for the current user. */
4220
+ oauth_token?: string;
4221
+ /** Returns response with indentations and line breaks. */
4222
+ prettyPrint?: boolean;
4223
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4224
+ quotaUser?: string;
4225
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4226
+ upload_protocol?: string;
4227
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4228
+ uploadType?: string;
4229
+ },
4230
+ body: ExportSBOMRequest,
4231
+ ): Request<ExportSBOMResponse>;
4232
+ };
4233
+ };
4255
4234
  }
4256
4235
  }