@googleapis/serviceusage 15.0.2 → 16.0.1

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.
package/v1.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -2303,11 +2303,11 @@ export namespace serviceusage_v1 {
2303
2303
  cancel(
2304
2304
  params: Params$Resource$Operations$Cancel,
2305
2305
  options: StreamMethodOptions
2306
- ): GaxiosPromise<Readable>;
2306
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2307
2307
  cancel(
2308
2308
  params?: Params$Resource$Operations$Cancel,
2309
2309
  options?: MethodOptions
2310
- ): GaxiosPromise<Schema$Empty>;
2310
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2311
2311
  cancel(
2312
2312
  params: Params$Resource$Operations$Cancel,
2313
2313
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2336,7 +2336,10 @@ export namespace serviceusage_v1 {
2336
2336
  callback?:
2337
2337
  | BodyResponseCallback<Schema$Empty>
2338
2338
  | BodyResponseCallback<Readable>
2339
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
2339
+ ):
2340
+ | void
2341
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
2342
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2340
2343
  let params = (paramsOrCallback ||
2341
2344
  {}) as Params$Resource$Operations$Cancel;
2342
2345
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2388,11 +2391,11 @@ export namespace serviceusage_v1 {
2388
2391
  delete(
2389
2392
  params: Params$Resource$Operations$Delete,
2390
2393
  options: StreamMethodOptions
2391
- ): GaxiosPromise<Readable>;
2394
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2392
2395
  delete(
2393
2396
  params?: Params$Resource$Operations$Delete,
2394
2397
  options?: MethodOptions
2395
- ): GaxiosPromise<Schema$Empty>;
2398
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2396
2399
  delete(
2397
2400
  params: Params$Resource$Operations$Delete,
2398
2401
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2421,7 +2424,10 @@ export namespace serviceusage_v1 {
2421
2424
  callback?:
2422
2425
  | BodyResponseCallback<Schema$Empty>
2423
2426
  | BodyResponseCallback<Readable>
2424
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
2427
+ ):
2428
+ | void
2429
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
2430
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2425
2431
  let params = (paramsOrCallback ||
2426
2432
  {}) as Params$Resource$Operations$Delete;
2427
2433
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2473,11 +2479,11 @@ export namespace serviceusage_v1 {
2473
2479
  get(
2474
2480
  params: Params$Resource$Operations$Get,
2475
2481
  options: StreamMethodOptions
2476
- ): GaxiosPromise<Readable>;
2482
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2477
2483
  get(
2478
2484
  params?: Params$Resource$Operations$Get,
2479
2485
  options?: MethodOptions
2480
- ): GaxiosPromise<Schema$Operation>;
2486
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2481
2487
  get(
2482
2488
  params: Params$Resource$Operations$Get,
2483
2489
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2506,7 +2512,10 @@ export namespace serviceusage_v1 {
2506
2512
  callback?:
2507
2513
  | BodyResponseCallback<Schema$Operation>
2508
2514
  | BodyResponseCallback<Readable>
2509
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
2515
+ ):
2516
+ | void
2517
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2518
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2510
2519
  let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get;
2511
2520
  let options = (optionsOrCallback || {}) as MethodOptions;
2512
2521
 
@@ -2557,11 +2566,11 @@ export namespace serviceusage_v1 {
2557
2566
  list(
2558
2567
  params: Params$Resource$Operations$List,
2559
2568
  options: StreamMethodOptions
2560
- ): GaxiosPromise<Readable>;
2569
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2561
2570
  list(
2562
2571
  params?: Params$Resource$Operations$List,
2563
2572
  options?: MethodOptions
2564
- ): GaxiosPromise<Schema$ListOperationsResponse>;
2573
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
2565
2574
  list(
2566
2575
  params: Params$Resource$Operations$List,
2567
2576
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2594,8 +2603,8 @@ export namespace serviceusage_v1 {
2594
2603
  | BodyResponseCallback<Readable>
2595
2604
  ):
2596
2605
  | void
2597
- | GaxiosPromise<Schema$ListOperationsResponse>
2598
- | GaxiosPromise<Readable> {
2606
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
2607
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2599
2608
  let params = (paramsOrCallback || {}) as Params$Resource$Operations$List;
2600
2609
  let options = (optionsOrCallback || {}) as MethodOptions;
2601
2610
 
@@ -2697,11 +2706,11 @@ export namespace serviceusage_v1 {
2697
2706
  batchEnable(
2698
2707
  params: Params$Resource$Services$Batchenable,
2699
2708
  options: StreamMethodOptions
2700
- ): GaxiosPromise<Readable>;
2709
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2701
2710
  batchEnable(
2702
2711
  params?: Params$Resource$Services$Batchenable,
2703
2712
  options?: MethodOptions
2704
- ): GaxiosPromise<Schema$Operation>;
2713
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2705
2714
  batchEnable(
2706
2715
  params: Params$Resource$Services$Batchenable,
2707
2716
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2730,7 +2739,10 @@ export namespace serviceusage_v1 {
2730
2739
  callback?:
2731
2740
  | BodyResponseCallback<Schema$Operation>
2732
2741
  | BodyResponseCallback<Readable>
2733
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
2742
+ ):
2743
+ | void
2744
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2745
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2734
2746
  let params = (paramsOrCallback ||
2735
2747
  {}) as Params$Resource$Services$Batchenable;
2736
2748
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2785,11 +2797,11 @@ export namespace serviceusage_v1 {
2785
2797
  batchGet(
2786
2798
  params: Params$Resource$Services$Batchget,
2787
2799
  options: StreamMethodOptions
2788
- ): GaxiosPromise<Readable>;
2800
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2789
2801
  batchGet(
2790
2802
  params?: Params$Resource$Services$Batchget,
2791
2803
  options?: MethodOptions
2792
- ): GaxiosPromise<Schema$BatchGetServicesResponse>;
2804
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchGetServicesResponse>>;
2793
2805
  batchGet(
2794
2806
  params: Params$Resource$Services$Batchget,
2795
2807
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2824,8 +2836,8 @@ export namespace serviceusage_v1 {
2824
2836
  | BodyResponseCallback<Readable>
2825
2837
  ):
2826
2838
  | void
2827
- | GaxiosPromise<Schema$BatchGetServicesResponse>
2828
- | GaxiosPromise<Readable> {
2839
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchGetServicesResponse>>
2840
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2829
2841
  let params = (paramsOrCallback ||
2830
2842
  {}) as Params$Resource$Services$Batchget;
2831
2843
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2880,11 +2892,11 @@ export namespace serviceusage_v1 {
2880
2892
  disable(
2881
2893
  params: Params$Resource$Services$Disable,
2882
2894
  options: StreamMethodOptions
2883
- ): GaxiosPromise<Readable>;
2895
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2884
2896
  disable(
2885
2897
  params?: Params$Resource$Services$Disable,
2886
2898
  options?: MethodOptions
2887
- ): GaxiosPromise<Schema$Operation>;
2899
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2888
2900
  disable(
2889
2901
  params: Params$Resource$Services$Disable,
2890
2902
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2913,7 +2925,10 @@ export namespace serviceusage_v1 {
2913
2925
  callback?:
2914
2926
  | BodyResponseCallback<Schema$Operation>
2915
2927
  | BodyResponseCallback<Readable>
2916
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
2928
+ ):
2929
+ | void
2930
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2931
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2917
2932
  let params = (paramsOrCallback || {}) as Params$Resource$Services$Disable;
2918
2933
  let options = (optionsOrCallback || {}) as MethodOptions;
2919
2934
 
@@ -2967,11 +2982,11 @@ export namespace serviceusage_v1 {
2967
2982
  enable(
2968
2983
  params: Params$Resource$Services$Enable,
2969
2984
  options: StreamMethodOptions
2970
- ): GaxiosPromise<Readable>;
2985
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2971
2986
  enable(
2972
2987
  params?: Params$Resource$Services$Enable,
2973
2988
  options?: MethodOptions
2974
- ): GaxiosPromise<Schema$Operation>;
2989
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2975
2990
  enable(
2976
2991
  params: Params$Resource$Services$Enable,
2977
2992
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3000,7 +3015,10 @@ export namespace serviceusage_v1 {
3000
3015
  callback?:
3001
3016
  | BodyResponseCallback<Schema$Operation>
3002
3017
  | BodyResponseCallback<Readable>
3003
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
3018
+ ):
3019
+ | void
3020
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3021
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3004
3022
  let params = (paramsOrCallback || {}) as Params$Resource$Services$Enable;
3005
3023
  let options = (optionsOrCallback || {}) as MethodOptions;
3006
3024
 
@@ -3051,11 +3069,11 @@ export namespace serviceusage_v1 {
3051
3069
  get(
3052
3070
  params: Params$Resource$Services$Get,
3053
3071
  options: StreamMethodOptions
3054
- ): GaxiosPromise<Readable>;
3072
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3055
3073
  get(
3056
3074
  params?: Params$Resource$Services$Get,
3057
3075
  options?: MethodOptions
3058
- ): GaxiosPromise<Schema$GoogleApiServiceusageV1Service>;
3076
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiServiceusageV1Service>>;
3059
3077
  get(
3060
3078
  params: Params$Resource$Services$Get,
3061
3079
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3090,8 +3108,8 @@ export namespace serviceusage_v1 {
3090
3108
  | BodyResponseCallback<Readable>
3091
3109
  ):
3092
3110
  | void
3093
- | GaxiosPromise<Schema$GoogleApiServiceusageV1Service>
3094
- | GaxiosPromise<Readable> {
3111
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiServiceusageV1Service>>
3112
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3095
3113
  let params = (paramsOrCallback || {}) as Params$Resource$Services$Get;
3096
3114
  let options = (optionsOrCallback || {}) as MethodOptions;
3097
3115
 
@@ -3144,11 +3162,11 @@ export namespace serviceusage_v1 {
3144
3162
  list(
3145
3163
  params: Params$Resource$Services$List,
3146
3164
  options: StreamMethodOptions
3147
- ): GaxiosPromise<Readable>;
3165
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3148
3166
  list(
3149
3167
  params?: Params$Resource$Services$List,
3150
3168
  options?: MethodOptions
3151
- ): GaxiosPromise<Schema$ListServicesResponse>;
3169
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListServicesResponse>>;
3152
3170
  list(
3153
3171
  params: Params$Resource$Services$List,
3154
3172
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3181,8 +3199,8 @@ export namespace serviceusage_v1 {
3181
3199
  | BodyResponseCallback<Readable>
3182
3200
  ):
3183
3201
  | void
3184
- | GaxiosPromise<Schema$ListServicesResponse>
3185
- | GaxiosPromise<Readable> {
3202
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListServicesResponse>>
3203
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3186
3204
  let params = (paramsOrCallback || {}) as Params$Resource$Services$List;
3187
3205
  let options = (optionsOrCallback || {}) as MethodOptions;
3188
3206