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