google-cloud-channel-v1 0.24.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,6 +49,9 @@ module Google
49
49
  # resellers in a channel.
50
50
  #
51
51
  class Client
52
+ # @private
53
+ API_VERSION = ""
54
+
52
55
  # @private
53
56
  DEFAULT_ENDPOINT_TEMPLATE = "cloudchannel.$UNIVERSE_DOMAIN$"
54
57
 
@@ -306,10 +309,11 @@ module Google
306
309
  # Customize the options with defaults
307
310
  metadata = @config.rpcs.list_customers.metadata.to_h
308
311
 
309
- # Set x-goog-api-client and x-goog-user-project headers
312
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
310
313
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
311
314
  lib_name: @config.lib_name, lib_version: @config.lib_version,
312
315
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
316
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
313
317
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
314
318
 
315
319
  header_params = {}
@@ -405,10 +409,11 @@ module Google
405
409
  # Customize the options with defaults
406
410
  metadata = @config.rpcs.get_customer.metadata.to_h
407
411
 
408
- # Set x-goog-api-client and x-goog-user-project headers
412
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
409
413
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
410
414
  lib_name: @config.lib_name, lib_version: @config.lib_version,
411
415
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
416
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
412
417
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
413
418
 
414
419
  header_params = {}
@@ -511,10 +516,11 @@ module Google
511
516
  # Customize the options with defaults
512
517
  metadata = @config.rpcs.check_cloud_identity_accounts_exist.metadata.to_h
513
518
 
514
- # Set x-goog-api-client and x-goog-user-project headers
519
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
515
520
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
516
521
  lib_name: @config.lib_name, lib_version: @config.lib_version,
517
522
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
523
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
518
524
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
519
525
 
520
526
  header_params = {}
@@ -614,10 +620,11 @@ module Google
614
620
  # Customize the options with defaults
615
621
  metadata = @config.rpcs.create_customer.metadata.to_h
616
622
 
617
- # Set x-goog-api-client and x-goog-user-project headers
623
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
618
624
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
619
625
  lib_name: @config.lib_name, lib_version: @config.lib_version,
620
626
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
627
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
621
628
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
622
629
 
623
630
  header_params = {}
@@ -714,10 +721,11 @@ module Google
714
721
  # Customize the options with defaults
715
722
  metadata = @config.rpcs.update_customer.metadata.to_h
716
723
 
717
- # Set x-goog-api-client and x-goog-user-project headers
724
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
718
725
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
719
726
  lib_name: @config.lib_name, lib_version: @config.lib_version,
720
727
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
728
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
721
729
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
722
730
 
723
731
  header_params = {}
@@ -808,10 +816,11 @@ module Google
808
816
  # Customize the options with defaults
809
817
  metadata = @config.rpcs.delete_customer.metadata.to_h
810
818
 
811
- # Set x-goog-api-client and x-goog-user-project headers
819
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
812
820
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
813
821
  lib_name: @config.lib_name, lib_version: @config.lib_version,
814
822
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
823
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
815
824
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
816
825
 
817
826
  header_params = {}
@@ -936,10 +945,11 @@ module Google
936
945
  # Customize the options with defaults
937
946
  metadata = @config.rpcs.import_customer.metadata.to_h
938
947
 
939
- # Set x-goog-api-client and x-goog-user-project headers
948
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
940
949
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
941
950
  lib_name: @config.lib_name, lib_version: @config.lib_version,
942
951
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
952
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
943
953
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
944
954
 
945
955
  header_params = {}
@@ -1058,10 +1068,11 @@ module Google
1058
1068
  # Customize the options with defaults
1059
1069
  metadata = @config.rpcs.provision_cloud_identity.metadata.to_h
1060
1070
 
1061
- # Set x-goog-api-client and x-goog-user-project headers
1071
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1062
1072
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1063
1073
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1064
1074
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1075
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1065
1076
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1066
1077
 
1067
1078
  header_params = {}
@@ -1171,10 +1182,11 @@ module Google
1171
1182
  # Customize the options with defaults
1172
1183
  metadata = @config.rpcs.list_entitlements.metadata.to_h
1173
1184
 
1174
- # Set x-goog-api-client and x-goog-user-project headers
1185
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1175
1186
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1176
1187
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1177
1188
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1189
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1178
1190
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1179
1191
 
1180
1192
  header_params = {}
@@ -1309,10 +1321,11 @@ module Google
1309
1321
  # Customize the options with defaults
1310
1322
  metadata = @config.rpcs.list_transferable_skus.metadata.to_h
1311
1323
 
1312
- # Set x-goog-api-client and x-goog-user-project headers
1324
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1313
1325
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1314
1326
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1315
1327
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1328
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1316
1329
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1317
1330
 
1318
1331
  header_params = {}
@@ -1448,10 +1461,11 @@ module Google
1448
1461
  # Customize the options with defaults
1449
1462
  metadata = @config.rpcs.list_transferable_offers.metadata.to_h
1450
1463
 
1451
- # Set x-goog-api-client and x-goog-user-project headers
1464
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1452
1465
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1453
1466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1454
1467
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1468
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1455
1469
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1456
1470
 
1457
1471
  header_params = {}
@@ -1546,10 +1560,11 @@ module Google
1546
1560
  # Customize the options with defaults
1547
1561
  metadata = @config.rpcs.get_entitlement.metadata.to_h
1548
1562
 
1549
- # Set x-goog-api-client and x-goog-user-project headers
1563
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1550
1564
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1551
1565
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1552
1566
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1567
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1553
1568
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1554
1569
 
1555
1570
  header_params = {}
@@ -1693,10 +1708,11 @@ module Google
1693
1708
  # Customize the options with defaults
1694
1709
  metadata = @config.rpcs.create_entitlement.metadata.to_h
1695
1710
 
1696
- # Set x-goog-api-client and x-goog-user-project headers
1711
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1697
1712
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1698
1713
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1699
1714
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1715
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1700
1716
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1701
1717
 
1702
1718
  header_params = {}
@@ -1832,10 +1848,11 @@ module Google
1832
1848
  # Customize the options with defaults
1833
1849
  metadata = @config.rpcs.change_parameters.metadata.to_h
1834
1850
 
1835
- # Set x-goog-api-client and x-goog-user-project headers
1851
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1836
1852
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1837
1853
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1838
1854
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1855
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1839
1856
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1840
1857
 
1841
1858
  header_params = {}
@@ -1964,10 +1981,11 @@ module Google
1964
1981
  # Customize the options with defaults
1965
1982
  metadata = @config.rpcs.change_renewal_settings.metadata.to_h
1966
1983
 
1967
- # Set x-goog-api-client and x-goog-user-project headers
1984
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1968
1985
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1969
1986
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1970
1987
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1988
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1971
1989
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1972
1990
 
1973
1991
  header_params = {}
@@ -2108,10 +2126,11 @@ module Google
2108
2126
  # Customize the options with defaults
2109
2127
  metadata = @config.rpcs.change_offer.metadata.to_h
2110
2128
 
2111
- # Set x-goog-api-client and x-goog-user-project headers
2129
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2112
2130
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2113
2131
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2114
2132
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2133
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2115
2134
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2116
2135
 
2117
2136
  header_params = {}
@@ -2239,10 +2258,11 @@ module Google
2239
2258
  # Customize the options with defaults
2240
2259
  metadata = @config.rpcs.start_paid_service.metadata.to_h
2241
2260
 
2242
- # Set x-goog-api-client and x-goog-user-project headers
2261
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2243
2262
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2244
2263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2245
2264
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2265
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2246
2266
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2247
2267
 
2248
2268
  header_params = {}
@@ -2367,10 +2387,11 @@ module Google
2367
2387
  # Customize the options with defaults
2368
2388
  metadata = @config.rpcs.suspend_entitlement.metadata.to_h
2369
2389
 
2370
- # Set x-goog-api-client and x-goog-user-project headers
2390
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2371
2391
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2372
2392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2373
2393
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2394
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2374
2395
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2375
2396
 
2376
2397
  header_params = {}
@@ -2500,10 +2521,11 @@ module Google
2500
2521
  # Customize the options with defaults
2501
2522
  metadata = @config.rpcs.cancel_entitlement.metadata.to_h
2502
2523
 
2503
- # Set x-goog-api-client and x-goog-user-project headers
2524
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2504
2525
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2505
2526
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2506
2527
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2528
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2507
2529
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2508
2530
 
2509
2531
  header_params = {}
@@ -2634,10 +2656,11 @@ module Google
2634
2656
  # Customize the options with defaults
2635
2657
  metadata = @config.rpcs.activate_entitlement.metadata.to_h
2636
2658
 
2637
- # Set x-goog-api-client and x-goog-user-project headers
2659
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2638
2660
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2639
2661
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2640
2662
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2663
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2641
2664
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2642
2665
 
2643
2666
  header_params = {}
@@ -2780,10 +2803,11 @@ module Google
2780
2803
  # Customize the options with defaults
2781
2804
  metadata = @config.rpcs.transfer_entitlements.metadata.to_h
2782
2805
 
2783
- # Set x-goog-api-client and x-goog-user-project headers
2806
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2784
2807
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2785
2808
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2786
2809
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2810
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2787
2811
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2788
2812
 
2789
2813
  header_params = {}
@@ -2918,10 +2942,11 @@ module Google
2918
2942
  # Customize the options with defaults
2919
2943
  metadata = @config.rpcs.transfer_entitlements_to_google.metadata.to_h
2920
2944
 
2921
- # Set x-goog-api-client and x-goog-user-project headers
2945
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2922
2946
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2923
2947
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2924
2948
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2949
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2925
2950
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2926
2951
 
2927
2952
  header_params = {}
@@ -3033,10 +3058,11 @@ module Google
3033
3058
  # Customize the options with defaults
3034
3059
  metadata = @config.rpcs.list_channel_partner_links.metadata.to_h
3035
3060
 
3036
- # Set x-goog-api-client and x-goog-user-project headers
3061
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3037
3062
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3038
3063
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3039
3064
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3065
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3040
3066
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3041
3067
 
3042
3068
  header_params = {}
@@ -3137,10 +3163,11 @@ module Google
3137
3163
  # Customize the options with defaults
3138
3164
  metadata = @config.rpcs.get_channel_partner_link.metadata.to_h
3139
3165
 
3140
- # Set x-goog-api-client and x-goog-user-project headers
3166
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3141
3167
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3142
3168
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3143
3169
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3170
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3144
3171
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3145
3172
 
3146
3173
  header_params = {}
@@ -3250,10 +3277,11 @@ module Google
3250
3277
  # Customize the options with defaults
3251
3278
  metadata = @config.rpcs.create_channel_partner_link.metadata.to_h
3252
3279
 
3253
- # Set x-goog-api-client and x-goog-user-project headers
3280
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3254
3281
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3255
3282
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3256
3283
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3284
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3257
3285
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3258
3286
 
3259
3287
  header_params = {}
@@ -3365,10 +3393,11 @@ module Google
3365
3393
  # Customize the options with defaults
3366
3394
  metadata = @config.rpcs.update_channel_partner_link.metadata.to_h
3367
3395
 
3368
- # Set x-goog-api-client and x-goog-user-project headers
3396
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3369
3397
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3370
3398
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3371
3399
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3400
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3372
3401
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3373
3402
 
3374
3403
  header_params = {}
@@ -3468,10 +3497,11 @@ module Google
3468
3497
  # Customize the options with defaults
3469
3498
  metadata = @config.rpcs.get_customer_repricing_config.metadata.to_h
3470
3499
 
3471
- # Set x-goog-api-client and x-goog-user-project headers
3500
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3472
3501
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3473
3502
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3474
3503
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3504
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3475
3505
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3476
3506
 
3477
3507
  header_params = {}
@@ -3603,10 +3633,11 @@ module Google
3603
3633
  # Customize the options with defaults
3604
3634
  metadata = @config.rpcs.list_customer_repricing_configs.metadata.to_h
3605
3635
 
3606
- # Set x-goog-api-client and x-goog-user-project headers
3636
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3607
3637
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3608
3638
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3609
3639
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3640
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3610
3641
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3611
3642
 
3612
3643
  header_params = {}
@@ -3734,10 +3765,11 @@ module Google
3734
3765
  # Customize the options with defaults
3735
3766
  metadata = @config.rpcs.create_customer_repricing_config.metadata.to_h
3736
3767
 
3737
- # Set x-goog-api-client and x-goog-user-project headers
3768
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3738
3769
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3739
3770
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3740
3771
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3772
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3741
3773
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3742
3774
 
3743
3775
  header_params = {}
@@ -3850,10 +3882,11 @@ module Google
3850
3882
  # Customize the options with defaults
3851
3883
  metadata = @config.rpcs.update_customer_repricing_config.metadata.to_h
3852
3884
 
3853
- # Set x-goog-api-client and x-goog-user-project headers
3885
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3854
3886
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3855
3887
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3856
3888
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3889
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3857
3890
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3858
3891
 
3859
3892
  header_params = {}
@@ -3953,10 +3986,11 @@ module Google
3953
3986
  # Customize the options with defaults
3954
3987
  metadata = @config.rpcs.delete_customer_repricing_config.metadata.to_h
3955
3988
 
3956
- # Set x-goog-api-client and x-goog-user-project headers
3989
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3957
3990
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3958
3991
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3959
3992
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3993
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3960
3994
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3961
3995
 
3962
3996
  header_params = {}
@@ -4056,10 +4090,11 @@ module Google
4056
4090
  # Customize the options with defaults
4057
4091
  metadata = @config.rpcs.get_channel_partner_repricing_config.metadata.to_h
4058
4092
 
4059
- # Set x-goog-api-client and x-goog-user-project headers
4093
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4060
4094
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4061
4095
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4062
4096
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
4097
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4063
4098
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4064
4099
 
4065
4100
  header_params = {}
@@ -4194,10 +4229,11 @@ module Google
4194
4229
  # Customize the options with defaults
4195
4230
  metadata = @config.rpcs.list_channel_partner_repricing_configs.metadata.to_h
4196
4231
 
4197
- # Set x-goog-api-client and x-goog-user-project headers
4232
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4198
4233
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4199
4234
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4200
4235
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
4236
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4201
4237
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4202
4238
 
4203
4239
  header_params = {}
@@ -4326,10 +4362,11 @@ module Google
4326
4362
  # Customize the options with defaults
4327
4363
  metadata = @config.rpcs.create_channel_partner_repricing_config.metadata.to_h
4328
4364
 
4329
- # Set x-goog-api-client and x-goog-user-project headers
4365
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4330
4366
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4331
4367
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4332
4368
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
4369
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4333
4370
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4334
4371
 
4335
4372
  header_params = {}
@@ -4442,10 +4479,11 @@ module Google
4442
4479
  # Customize the options with defaults
4443
4480
  metadata = @config.rpcs.update_channel_partner_repricing_config.metadata.to_h
4444
4481
 
4445
- # Set x-goog-api-client and x-goog-user-project headers
4482
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4446
4483
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4447
4484
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4448
4485
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
4486
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4449
4487
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4450
4488
 
4451
4489
  header_params = {}
@@ -4544,10 +4582,11 @@ module Google
4544
4582
  # Customize the options with defaults
4545
4583
  metadata = @config.rpcs.delete_channel_partner_repricing_config.metadata.to_h
4546
4584
 
4547
- # Set x-goog-api-client and x-goog-user-project headers
4585
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4548
4586
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4549
4587
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4550
4588
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
4589
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4551
4590
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4552
4591
 
4553
4592
  header_params = {}
@@ -4663,10 +4702,11 @@ module Google
4663
4702
  # Customize the options with defaults
4664
4703
  metadata = @config.rpcs.list_sku_groups.metadata.to_h
4665
4704
 
4666
- # Set x-goog-api-client and x-goog-user-project headers
4705
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4667
4706
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4668
4707
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4669
4708
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
4709
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4670
4710
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4671
4711
 
4672
4712
  header_params = {}
@@ -4782,10 +4822,11 @@ module Google
4782
4822
  # Customize the options with defaults
4783
4823
  metadata = @config.rpcs.list_sku_group_billable_skus.metadata.to_h
4784
4824
 
4785
- # Set x-goog-api-client and x-goog-user-project headers
4825
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4786
4826
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4787
4827
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4788
4828
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
4829
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4789
4830
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4790
4831
 
4791
4832
  header_params = {}
@@ -4879,10 +4920,11 @@ module Google
4879
4920
  # Customize the options with defaults
4880
4921
  metadata = @config.rpcs.lookup_offer.metadata.to_h
4881
4922
 
4882
- # Set x-goog-api-client and x-goog-user-project headers
4923
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4883
4924
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4884
4925
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4885
4926
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
4927
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4886
4928
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4887
4929
 
4888
4930
  header_params = {}
@@ -4983,10 +5025,11 @@ module Google
4983
5025
  # Customize the options with defaults
4984
5026
  metadata = @config.rpcs.list_products.metadata.to_h
4985
5027
 
4986
- # Set x-goog-api-client and x-goog-user-project headers
5028
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4987
5029
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4988
5030
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4989
5031
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
5032
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4990
5033
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4991
5034
 
4992
5035
  options.apply_defaults timeout: @config.rpcs.list_products.timeout,
@@ -5085,10 +5128,11 @@ module Google
5085
5128
  # Customize the options with defaults
5086
5129
  metadata = @config.rpcs.list_skus.metadata.to_h
5087
5130
 
5088
- # Set x-goog-api-client and x-goog-user-project headers
5131
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5089
5132
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5090
5133
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5091
5134
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
5135
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5092
5136
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5093
5137
 
5094
5138
  header_params = {}
@@ -5201,10 +5245,11 @@ module Google
5201
5245
  # Customize the options with defaults
5202
5246
  metadata = @config.rpcs.list_offers.metadata.to_h
5203
5247
 
5204
- # Set x-goog-api-client and x-goog-user-project headers
5248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5205
5249
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5206
5250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5207
5251
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
5252
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5208
5253
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5209
5254
 
5210
5255
  header_params = {}
@@ -5314,10 +5359,11 @@ module Google
5314
5359
  # Customize the options with defaults
5315
5360
  metadata = @config.rpcs.list_purchasable_skus.metadata.to_h
5316
5361
 
5317
- # Set x-goog-api-client and x-goog-user-project headers
5362
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5318
5363
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5319
5364
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5320
5365
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
5366
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5321
5367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5322
5368
 
5323
5369
  header_params = {}
@@ -5430,10 +5476,11 @@ module Google
5430
5476
  # Customize the options with defaults
5431
5477
  metadata = @config.rpcs.list_purchasable_offers.metadata.to_h
5432
5478
 
5433
- # Set x-goog-api-client and x-goog-user-project headers
5479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5434
5480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5435
5481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5436
5482
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
5483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5437
5484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5438
5485
 
5439
5486
  header_params = {}
@@ -5531,10 +5578,11 @@ module Google
5531
5578
  # Customize the options with defaults
5532
5579
  metadata = @config.rpcs.query_eligible_billing_accounts.metadata.to_h
5533
5580
 
5534
- # Set x-goog-api-client and x-goog-user-project headers
5581
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5535
5582
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5536
5583
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5537
5584
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
5585
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5538
5586
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5539
5587
 
5540
5588
  header_params = {}
@@ -5636,10 +5684,11 @@ module Google
5636
5684
  # Customize the options with defaults
5637
5685
  metadata = @config.rpcs.register_subscriber.metadata.to_h
5638
5686
 
5639
- # Set x-goog-api-client and x-goog-user-project headers
5687
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5640
5688
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5641
5689
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5642
5690
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
5691
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5643
5692
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5644
5693
 
5645
5694
  header_params = {}
@@ -5744,10 +5793,11 @@ module Google
5744
5793
  # Customize the options with defaults
5745
5794
  metadata = @config.rpcs.unregister_subscriber.metadata.to_h
5746
5795
 
5747
- # Set x-goog-api-client and x-goog-user-project headers
5796
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5748
5797
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5749
5798
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5750
5799
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
5800
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5751
5801
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5752
5802
 
5753
5803
  header_params = {}
@@ -5856,10 +5906,11 @@ module Google
5856
5906
  # Customize the options with defaults
5857
5907
  metadata = @config.rpcs.list_subscribers.metadata.to_h
5858
5908
 
5859
- # Set x-goog-api-client and x-goog-user-project headers
5909
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5860
5910
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5861
5911
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5862
5912
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
5913
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5863
5914
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5864
5915
 
5865
5916
  header_params = {}
@@ -5980,10 +6031,11 @@ module Google
5980
6031
  # Customize the options with defaults
5981
6032
  metadata = @config.rpcs.list_entitlement_changes.metadata.to_h
5982
6033
 
5983
- # Set x-goog-api-client and x-goog-user-project headers
6034
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5984
6035
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5985
6036
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5986
6037
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
6038
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5987
6039
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5988
6040
 
5989
6041
  header_params = {}