google-cloud-channel-v1 0.23.2 → 1.0.0

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.
@@ -51,6 +51,9 @@ module Google
51
51
  # resellers in a channel.
52
52
  #
53
53
  class Client
54
+ # @private
55
+ API_VERSION = ""
56
+
54
57
  # @private
55
58
  DEFAULT_ENDPOINT_TEMPLATE = "cloudchannel.$UNIVERSE_DOMAIN$"
56
59
 
@@ -298,12 +301,13 @@ module Google
298
301
  # Customize the options with defaults
299
302
  call_metadata = @config.rpcs.list_customers.metadata.to_h
300
303
 
301
- # Set x-goog-api-client and x-goog-user-project headers
304
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
302
305
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
303
306
  lib_name: @config.lib_name, lib_version: @config.lib_version,
304
307
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
305
308
  transports_version_send: [:rest]
306
309
 
310
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
307
311
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
308
312
 
309
313
  options.apply_defaults timeout: @config.rpcs.list_customers.timeout,
@@ -390,12 +394,13 @@ module Google
390
394
  # Customize the options with defaults
391
395
  call_metadata = @config.rpcs.get_customer.metadata.to_h
392
396
 
393
- # Set x-goog-api-client and x-goog-user-project headers
397
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
394
398
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
395
399
  lib_name: @config.lib_name, lib_version: @config.lib_version,
396
400
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
397
401
  transports_version_send: [:rest]
398
402
 
403
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
399
404
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
400
405
 
401
406
  options.apply_defaults timeout: @config.rpcs.get_customer.timeout,
@@ -489,12 +494,13 @@ module Google
489
494
  # Customize the options with defaults
490
495
  call_metadata = @config.rpcs.check_cloud_identity_accounts_exist.metadata.to_h
491
496
 
492
- # Set x-goog-api-client and x-goog-user-project headers
497
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
493
498
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
494
499
  lib_name: @config.lib_name, lib_version: @config.lib_version,
495
500
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
496
501
  transports_version_send: [:rest]
497
502
 
503
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
498
504
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
499
505
 
500
506
  options.apply_defaults timeout: @config.rpcs.check_cloud_identity_accounts_exist.timeout,
@@ -585,12 +591,13 @@ module Google
585
591
  # Customize the options with defaults
586
592
  call_metadata = @config.rpcs.create_customer.metadata.to_h
587
593
 
588
- # Set x-goog-api-client and x-goog-user-project headers
594
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
589
595
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
590
596
  lib_name: @config.lib_name, lib_version: @config.lib_version,
591
597
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
592
598
  transports_version_send: [:rest]
593
599
 
600
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
594
601
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
595
602
 
596
603
  options.apply_defaults timeout: @config.rpcs.create_customer.timeout,
@@ -678,12 +685,13 @@ module Google
678
685
  # Customize the options with defaults
679
686
  call_metadata = @config.rpcs.update_customer.metadata.to_h
680
687
 
681
- # Set x-goog-api-client and x-goog-user-project headers
688
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
682
689
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
683
690
  lib_name: @config.lib_name, lib_version: @config.lib_version,
684
691
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
685
692
  transports_version_send: [:rest]
686
693
 
694
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
687
695
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
688
696
 
689
697
  options.apply_defaults timeout: @config.rpcs.update_customer.timeout,
@@ -765,12 +773,13 @@ module Google
765
773
  # Customize the options with defaults
766
774
  call_metadata = @config.rpcs.delete_customer.metadata.to_h
767
775
 
768
- # Set x-goog-api-client and x-goog-user-project headers
776
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
769
777
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
770
778
  lib_name: @config.lib_name, lib_version: @config.lib_version,
771
779
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
772
780
  transports_version_send: [:rest]
773
781
 
782
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
774
783
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
775
784
 
776
785
  options.apply_defaults timeout: @config.rpcs.delete_customer.timeout,
@@ -886,12 +895,13 @@ module Google
886
895
  # Customize the options with defaults
887
896
  call_metadata = @config.rpcs.import_customer.metadata.to_h
888
897
 
889
- # Set x-goog-api-client and x-goog-user-project headers
898
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
890
899
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
891
900
  lib_name: @config.lib_name, lib_version: @config.lib_version,
892
901
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
893
902
  transports_version_send: [:rest]
894
903
 
904
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
895
905
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
896
906
 
897
907
  options.apply_defaults timeout: @config.rpcs.import_customer.timeout,
@@ -1001,12 +1011,13 @@ module Google
1001
1011
  # Customize the options with defaults
1002
1012
  call_metadata = @config.rpcs.provision_cloud_identity.metadata.to_h
1003
1013
 
1004
- # Set x-goog-api-client and x-goog-user-project headers
1014
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1005
1015
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1006
1016
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1007
1017
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
1008
1018
  transports_version_send: [:rest]
1009
1019
 
1020
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1010
1021
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1011
1022
 
1012
1023
  options.apply_defaults timeout: @config.rpcs.provision_cloud_identity.timeout,
@@ -1107,12 +1118,13 @@ module Google
1107
1118
  # Customize the options with defaults
1108
1119
  call_metadata = @config.rpcs.list_entitlements.metadata.to_h
1109
1120
 
1110
- # Set x-goog-api-client and x-goog-user-project headers
1121
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1111
1122
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1112
1123
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1113
1124
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
1114
1125
  transports_version_send: [:rest]
1115
1126
 
1127
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1116
1128
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1117
1129
 
1118
1130
  options.apply_defaults timeout: @config.rpcs.list_entitlements.timeout,
@@ -1238,12 +1250,13 @@ module Google
1238
1250
  # Customize the options with defaults
1239
1251
  call_metadata = @config.rpcs.list_transferable_skus.metadata.to_h
1240
1252
 
1241
- # Set x-goog-api-client and x-goog-user-project headers
1253
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1242
1254
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1243
1255
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1244
1256
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
1245
1257
  transports_version_send: [:rest]
1246
1258
 
1259
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1247
1260
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1248
1261
 
1249
1262
  options.apply_defaults timeout: @config.rpcs.list_transferable_skus.timeout,
@@ -1370,12 +1383,13 @@ module Google
1370
1383
  # Customize the options with defaults
1371
1384
  call_metadata = @config.rpcs.list_transferable_offers.metadata.to_h
1372
1385
 
1373
- # Set x-goog-api-client and x-goog-user-project headers
1386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1374
1387
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1375
1388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1376
1389
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
1377
1390
  transports_version_send: [:rest]
1378
1391
 
1392
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1379
1393
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1380
1394
 
1381
1395
  options.apply_defaults timeout: @config.rpcs.list_transferable_offers.timeout,
@@ -1461,12 +1475,13 @@ module Google
1461
1475
  # Customize the options with defaults
1462
1476
  call_metadata = @config.rpcs.get_entitlement.metadata.to_h
1463
1477
 
1464
- # Set x-goog-api-client and x-goog-user-project headers
1478
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1465
1479
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1466
1480
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1467
1481
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
1468
1482
  transports_version_send: [:rest]
1469
1483
 
1484
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1470
1485
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1471
1486
 
1472
1487
  options.apply_defaults timeout: @config.rpcs.get_entitlement.timeout,
@@ -1601,12 +1616,13 @@ module Google
1601
1616
  # Customize the options with defaults
1602
1617
  call_metadata = @config.rpcs.create_entitlement.metadata.to_h
1603
1618
 
1604
- # Set x-goog-api-client and x-goog-user-project headers
1619
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1605
1620
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1606
1621
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1607
1622
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
1608
1623
  transports_version_send: [:rest]
1609
1624
 
1625
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1610
1626
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1611
1627
 
1612
1628
  options.apply_defaults timeout: @config.rpcs.create_entitlement.timeout,
@@ -1733,12 +1749,13 @@ module Google
1733
1749
  # Customize the options with defaults
1734
1750
  call_metadata = @config.rpcs.change_parameters.metadata.to_h
1735
1751
 
1736
- # Set x-goog-api-client and x-goog-user-project headers
1752
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1737
1753
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1738
1754
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1739
1755
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
1740
1756
  transports_version_send: [:rest]
1741
1757
 
1758
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1742
1759
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1743
1760
 
1744
1761
  options.apply_defaults timeout: @config.rpcs.change_parameters.timeout,
@@ -1858,12 +1875,13 @@ module Google
1858
1875
  # Customize the options with defaults
1859
1876
  call_metadata = @config.rpcs.change_renewal_settings.metadata.to_h
1860
1877
 
1861
- # Set x-goog-api-client and x-goog-user-project headers
1878
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1862
1879
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1863
1880
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1864
1881
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
1865
1882
  transports_version_send: [:rest]
1866
1883
 
1884
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1867
1885
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1868
1886
 
1869
1887
  options.apply_defaults timeout: @config.rpcs.change_renewal_settings.timeout,
@@ -1995,12 +2013,13 @@ module Google
1995
2013
  # Customize the options with defaults
1996
2014
  call_metadata = @config.rpcs.change_offer.metadata.to_h
1997
2015
 
1998
- # Set x-goog-api-client and x-goog-user-project headers
2016
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1999
2017
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2000
2018
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2001
2019
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
2002
2020
  transports_version_send: [:rest]
2003
2021
 
2022
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2004
2023
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2005
2024
 
2006
2025
  options.apply_defaults timeout: @config.rpcs.change_offer.timeout,
@@ -2119,12 +2138,13 @@ module Google
2119
2138
  # Customize the options with defaults
2120
2139
  call_metadata = @config.rpcs.start_paid_service.metadata.to_h
2121
2140
 
2122
- # Set x-goog-api-client and x-goog-user-project headers
2141
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2123
2142
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2124
2143
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2125
2144
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
2126
2145
  transports_version_send: [:rest]
2127
2146
 
2147
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2128
2148
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2129
2149
 
2130
2150
  options.apply_defaults timeout: @config.rpcs.start_paid_service.timeout,
@@ -2240,12 +2260,13 @@ module Google
2240
2260
  # Customize the options with defaults
2241
2261
  call_metadata = @config.rpcs.suspend_entitlement.metadata.to_h
2242
2262
 
2243
- # Set x-goog-api-client and x-goog-user-project headers
2263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2244
2264
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2245
2265
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2246
2266
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
2247
2267
  transports_version_send: [:rest]
2248
2268
 
2269
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2249
2270
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2250
2271
 
2251
2272
  options.apply_defaults timeout: @config.rpcs.suspend_entitlement.timeout,
@@ -2366,12 +2387,13 @@ module Google
2366
2387
  # Customize the options with defaults
2367
2388
  call_metadata = @config.rpcs.cancel_entitlement.metadata.to_h
2368
2389
 
2369
- # 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
2370
2391
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2371
2392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2372
2393
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
2373
2394
  transports_version_send: [:rest]
2374
2395
 
2396
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2375
2397
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2376
2398
 
2377
2399
  options.apply_defaults timeout: @config.rpcs.cancel_entitlement.timeout,
@@ -2493,12 +2515,13 @@ module Google
2493
2515
  # Customize the options with defaults
2494
2516
  call_metadata = @config.rpcs.activate_entitlement.metadata.to_h
2495
2517
 
2496
- # Set x-goog-api-client and x-goog-user-project headers
2518
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2497
2519
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2498
2520
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2499
2521
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
2500
2522
  transports_version_send: [:rest]
2501
2523
 
2524
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2502
2525
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2503
2526
 
2504
2527
  options.apply_defaults timeout: @config.rpcs.activate_entitlement.timeout,
@@ -2632,12 +2655,13 @@ module Google
2632
2655
  # Customize the options with defaults
2633
2656
  call_metadata = @config.rpcs.transfer_entitlements.metadata.to_h
2634
2657
 
2635
- # Set x-goog-api-client and x-goog-user-project headers
2658
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2636
2659
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2637
2660
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2638
2661
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
2639
2662
  transports_version_send: [:rest]
2640
2663
 
2664
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2641
2665
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2642
2666
 
2643
2667
  options.apply_defaults timeout: @config.rpcs.transfer_entitlements.timeout,
@@ -2763,12 +2787,13 @@ module Google
2763
2787
  # Customize the options with defaults
2764
2788
  call_metadata = @config.rpcs.transfer_entitlements_to_google.metadata.to_h
2765
2789
 
2766
- # Set x-goog-api-client and x-goog-user-project headers
2790
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2767
2791
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2768
2792
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2769
2793
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
2770
2794
  transports_version_send: [:rest]
2771
2795
 
2796
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2772
2797
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2773
2798
 
2774
2799
  options.apply_defaults timeout: @config.rpcs.transfer_entitlements_to_google.timeout,
@@ -2871,12 +2896,13 @@ module Google
2871
2896
  # Customize the options with defaults
2872
2897
  call_metadata = @config.rpcs.list_channel_partner_links.metadata.to_h
2873
2898
 
2874
- # Set x-goog-api-client and x-goog-user-project headers
2899
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2875
2900
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2876
2901
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2877
2902
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
2878
2903
  transports_version_send: [:rest]
2879
2904
 
2905
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2880
2906
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2881
2907
 
2882
2908
  options.apply_defaults timeout: @config.rpcs.list_channel_partner_links.timeout,
@@ -2968,12 +2994,13 @@ module Google
2968
2994
  # Customize the options with defaults
2969
2995
  call_metadata = @config.rpcs.get_channel_partner_link.metadata.to_h
2970
2996
 
2971
- # Set x-goog-api-client and x-goog-user-project headers
2997
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2972
2998
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2973
2999
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2974
3000
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
2975
3001
  transports_version_send: [:rest]
2976
3002
 
3003
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2977
3004
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2978
3005
 
2979
3006
  options.apply_defaults timeout: @config.rpcs.get_channel_partner_link.timeout,
@@ -3074,12 +3101,13 @@ module Google
3074
3101
  # Customize the options with defaults
3075
3102
  call_metadata = @config.rpcs.create_channel_partner_link.metadata.to_h
3076
3103
 
3077
- # Set x-goog-api-client and x-goog-user-project headers
3104
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3078
3105
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3079
3106
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3080
3107
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
3081
3108
  transports_version_send: [:rest]
3082
3109
 
3110
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3083
3111
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3084
3112
 
3085
3113
  options.apply_defaults timeout: @config.rpcs.create_channel_partner_link.timeout,
@@ -3182,12 +3210,13 @@ module Google
3182
3210
  # Customize the options with defaults
3183
3211
  call_metadata = @config.rpcs.update_channel_partner_link.metadata.to_h
3184
3212
 
3185
- # Set x-goog-api-client and x-goog-user-project headers
3213
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3186
3214
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3187
3215
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3188
3216
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
3189
3217
  transports_version_send: [:rest]
3190
3218
 
3219
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3191
3220
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3192
3221
 
3193
3222
  options.apply_defaults timeout: @config.rpcs.update_channel_partner_link.timeout,
@@ -3278,12 +3307,13 @@ module Google
3278
3307
  # Customize the options with defaults
3279
3308
  call_metadata = @config.rpcs.get_customer_repricing_config.metadata.to_h
3280
3309
 
3281
- # Set x-goog-api-client and x-goog-user-project headers
3310
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3282
3311
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3283
3312
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3284
3313
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
3285
3314
  transports_version_send: [:rest]
3286
3315
 
3316
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3287
3317
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3288
3318
 
3289
3319
  options.apply_defaults timeout: @config.rpcs.get_customer_repricing_config.timeout,
@@ -3406,12 +3436,13 @@ module Google
3406
3436
  # Customize the options with defaults
3407
3437
  call_metadata = @config.rpcs.list_customer_repricing_configs.metadata.to_h
3408
3438
 
3409
- # Set x-goog-api-client and x-goog-user-project headers
3439
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3410
3440
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3411
3441
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3412
3442
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
3413
3443
  transports_version_send: [:rest]
3414
3444
 
3445
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3415
3446
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3416
3447
 
3417
3448
  options.apply_defaults timeout: @config.rpcs.list_customer_repricing_configs.timeout,
@@ -3530,12 +3561,13 @@ module Google
3530
3561
  # Customize the options with defaults
3531
3562
  call_metadata = @config.rpcs.create_customer_repricing_config.metadata.to_h
3532
3563
 
3533
- # Set x-goog-api-client and x-goog-user-project headers
3564
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3534
3565
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3535
3566
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3536
3567
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
3537
3568
  transports_version_send: [:rest]
3538
3569
 
3570
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3539
3571
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3540
3572
 
3541
3573
  options.apply_defaults timeout: @config.rpcs.create_customer_repricing_config.timeout,
@@ -3639,12 +3671,13 @@ module Google
3639
3671
  # Customize the options with defaults
3640
3672
  call_metadata = @config.rpcs.update_customer_repricing_config.metadata.to_h
3641
3673
 
3642
- # Set x-goog-api-client and x-goog-user-project headers
3674
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3643
3675
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3644
3676
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3645
3677
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
3646
3678
  transports_version_send: [:rest]
3647
3679
 
3680
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3648
3681
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3649
3682
 
3650
3683
  options.apply_defaults timeout: @config.rpcs.update_customer_repricing_config.timeout,
@@ -3735,12 +3768,13 @@ module Google
3735
3768
  # Customize the options with defaults
3736
3769
  call_metadata = @config.rpcs.delete_customer_repricing_config.metadata.to_h
3737
3770
 
3738
- # Set x-goog-api-client and x-goog-user-project headers
3771
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3739
3772
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3740
3773
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3741
3774
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
3742
3775
  transports_version_send: [:rest]
3743
3776
 
3777
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3744
3778
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3745
3779
 
3746
3780
  options.apply_defaults timeout: @config.rpcs.delete_customer_repricing_config.timeout,
@@ -3831,12 +3865,13 @@ module Google
3831
3865
  # Customize the options with defaults
3832
3866
  call_metadata = @config.rpcs.get_channel_partner_repricing_config.metadata.to_h
3833
3867
 
3834
- # Set x-goog-api-client and x-goog-user-project headers
3868
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3835
3869
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3836
3870
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3837
3871
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
3838
3872
  transports_version_send: [:rest]
3839
3873
 
3874
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3840
3875
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3841
3876
 
3842
3877
  options.apply_defaults timeout: @config.rpcs.get_channel_partner_repricing_config.timeout,
@@ -3962,12 +3997,13 @@ module Google
3962
3997
  # Customize the options with defaults
3963
3998
  call_metadata = @config.rpcs.list_channel_partner_repricing_configs.metadata.to_h
3964
3999
 
3965
- # Set x-goog-api-client and x-goog-user-project headers
4000
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3966
4001
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3967
4002
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3968
4003
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
3969
4004
  transports_version_send: [:rest]
3970
4005
 
4006
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3971
4007
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3972
4008
 
3973
4009
  options.apply_defaults timeout: @config.rpcs.list_channel_partner_repricing_configs.timeout,
@@ -4087,12 +4123,13 @@ module Google
4087
4123
  # Customize the options with defaults
4088
4124
  call_metadata = @config.rpcs.create_channel_partner_repricing_config.metadata.to_h
4089
4125
 
4090
- # Set x-goog-api-client and x-goog-user-project headers
4126
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4091
4127
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4092
4128
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4093
4129
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
4094
4130
  transports_version_send: [:rest]
4095
4131
 
4132
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4096
4133
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4097
4134
 
4098
4135
  options.apply_defaults timeout: @config.rpcs.create_channel_partner_repricing_config.timeout,
@@ -4196,12 +4233,13 @@ module Google
4196
4233
  # Customize the options with defaults
4197
4234
  call_metadata = @config.rpcs.update_channel_partner_repricing_config.metadata.to_h
4198
4235
 
4199
- # Set x-goog-api-client and x-goog-user-project headers
4236
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4200
4237
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4201
4238
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4202
4239
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
4203
4240
  transports_version_send: [:rest]
4204
4241
 
4242
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4205
4243
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4206
4244
 
4207
4245
  options.apply_defaults timeout: @config.rpcs.update_channel_partner_repricing_config.timeout,
@@ -4291,12 +4329,13 @@ module Google
4291
4329
  # Customize the options with defaults
4292
4330
  call_metadata = @config.rpcs.delete_channel_partner_repricing_config.metadata.to_h
4293
4331
 
4294
- # Set x-goog-api-client and x-goog-user-project headers
4332
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4295
4333
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4296
4334
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4297
4335
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
4298
4336
  transports_version_send: [:rest]
4299
4337
 
4338
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4300
4339
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4301
4340
 
4302
4341
  options.apply_defaults timeout: @config.rpcs.delete_channel_partner_repricing_config.timeout,
@@ -4403,12 +4442,13 @@ module Google
4403
4442
  # Customize the options with defaults
4404
4443
  call_metadata = @config.rpcs.list_sku_groups.metadata.to_h
4405
4444
 
4406
- # Set x-goog-api-client and x-goog-user-project headers
4445
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4407
4446
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4408
4447
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4409
4448
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
4410
4449
  transports_version_send: [:rest]
4411
4450
 
4451
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4412
4452
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4413
4453
 
4414
4454
  options.apply_defaults timeout: @config.rpcs.list_sku_groups.timeout,
@@ -4515,12 +4555,13 @@ module Google
4515
4555
  # Customize the options with defaults
4516
4556
  call_metadata = @config.rpcs.list_sku_group_billable_skus.metadata.to_h
4517
4557
 
4518
- # Set x-goog-api-client and x-goog-user-project headers
4558
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4519
4559
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4520
4560
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4521
4561
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
4522
4562
  transports_version_send: [:rest]
4523
4563
 
4564
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4524
4565
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4525
4566
 
4526
4567
  options.apply_defaults timeout: @config.rpcs.list_sku_group_billable_skus.timeout,
@@ -4605,12 +4646,13 @@ module Google
4605
4646
  # Customize the options with defaults
4606
4647
  call_metadata = @config.rpcs.lookup_offer.metadata.to_h
4607
4648
 
4608
- # Set x-goog-api-client and x-goog-user-project headers
4649
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4609
4650
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4610
4651
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4611
4652
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
4612
4653
  transports_version_send: [:rest]
4613
4654
 
4655
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4614
4656
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4615
4657
 
4616
4658
  options.apply_defaults timeout: @config.rpcs.lookup_offer.timeout,
@@ -4702,12 +4744,13 @@ module Google
4702
4744
  # Customize the options with defaults
4703
4745
  call_metadata = @config.rpcs.list_products.metadata.to_h
4704
4746
 
4705
- # Set x-goog-api-client and x-goog-user-project headers
4747
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4706
4748
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4707
4749
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4708
4750
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
4709
4751
  transports_version_send: [:rest]
4710
4752
 
4753
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4711
4754
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4712
4755
 
4713
4756
  options.apply_defaults timeout: @config.rpcs.list_products.timeout,
@@ -4805,12 +4848,13 @@ module Google
4805
4848
  # Customize the options with defaults
4806
4849
  call_metadata = @config.rpcs.list_skus.metadata.to_h
4807
4850
 
4808
- # Set x-goog-api-client and x-goog-user-project headers
4851
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4809
4852
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4810
4853
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4811
4854
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
4812
4855
  transports_version_send: [:rest]
4813
4856
 
4857
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4814
4858
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4815
4859
 
4816
4860
  options.apply_defaults timeout: @config.rpcs.list_skus.timeout,
@@ -4914,12 +4958,13 @@ module Google
4914
4958
  # Customize the options with defaults
4915
4959
  call_metadata = @config.rpcs.list_offers.metadata.to_h
4916
4960
 
4917
- # Set x-goog-api-client and x-goog-user-project headers
4961
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4918
4962
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4919
4963
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4920
4964
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
4921
4965
  transports_version_send: [:rest]
4922
4966
 
4967
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4923
4968
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4924
4969
 
4925
4970
  options.apply_defaults timeout: @config.rpcs.list_offers.timeout,
@@ -5020,12 +5065,13 @@ module Google
5020
5065
  # Customize the options with defaults
5021
5066
  call_metadata = @config.rpcs.list_purchasable_skus.metadata.to_h
5022
5067
 
5023
- # Set x-goog-api-client and x-goog-user-project headers
5068
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5024
5069
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5025
5070
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5026
5071
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
5027
5072
  transports_version_send: [:rest]
5028
5073
 
5074
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5029
5075
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5030
5076
 
5031
5077
  options.apply_defaults timeout: @config.rpcs.list_purchasable_skus.timeout,
@@ -5129,12 +5175,13 @@ module Google
5129
5175
  # Customize the options with defaults
5130
5176
  call_metadata = @config.rpcs.list_purchasable_offers.metadata.to_h
5131
5177
 
5132
- # Set x-goog-api-client and x-goog-user-project headers
5178
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5133
5179
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5134
5180
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5135
5181
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
5136
5182
  transports_version_send: [:rest]
5137
5183
 
5184
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5138
5185
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5139
5186
 
5140
5187
  options.apply_defaults timeout: @config.rpcs.list_purchasable_offers.timeout,
@@ -5223,12 +5270,13 @@ module Google
5223
5270
  # Customize the options with defaults
5224
5271
  call_metadata = @config.rpcs.query_eligible_billing_accounts.metadata.to_h
5225
5272
 
5226
- # Set x-goog-api-client and x-goog-user-project headers
5273
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5227
5274
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5228
5275
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5229
5276
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
5230
5277
  transports_version_send: [:rest]
5231
5278
 
5279
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5232
5280
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5233
5281
 
5234
5282
  options.apply_defaults timeout: @config.rpcs.query_eligible_billing_accounts.timeout,
@@ -5321,12 +5369,13 @@ module Google
5321
5369
  # Customize the options with defaults
5322
5370
  call_metadata = @config.rpcs.register_subscriber.metadata.to_h
5323
5371
 
5324
- # Set x-goog-api-client and x-goog-user-project headers
5372
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5325
5373
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5326
5374
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5327
5375
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
5328
5376
  transports_version_send: [:rest]
5329
5377
 
5378
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5330
5379
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5331
5380
 
5332
5381
  options.apply_defaults timeout: @config.rpcs.register_subscriber.timeout,
@@ -5422,12 +5471,13 @@ module Google
5422
5471
  # Customize the options with defaults
5423
5472
  call_metadata = @config.rpcs.unregister_subscriber.metadata.to_h
5424
5473
 
5425
- # Set x-goog-api-client and x-goog-user-project headers
5474
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5426
5475
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5427
5476
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5428
5477
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
5429
5478
  transports_version_send: [:rest]
5430
5479
 
5480
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5431
5481
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5432
5482
 
5433
5483
  options.apply_defaults timeout: @config.rpcs.unregister_subscriber.timeout,
@@ -5527,12 +5577,13 @@ module Google
5527
5577
  # Customize the options with defaults
5528
5578
  call_metadata = @config.rpcs.list_subscribers.metadata.to_h
5529
5579
 
5530
- # Set x-goog-api-client and x-goog-user-project headers
5580
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5531
5581
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5532
5582
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5533
5583
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
5534
5584
  transports_version_send: [:rest]
5535
5585
 
5586
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5536
5587
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5537
5588
 
5538
5589
  options.apply_defaults timeout: @config.rpcs.list_subscribers.timeout,
@@ -5645,12 +5696,13 @@ module Google
5645
5696
  # Customize the options with defaults
5646
5697
  call_metadata = @config.rpcs.list_entitlement_changes.metadata.to_h
5647
5698
 
5648
- # Set x-goog-api-client and x-goog-user-project headers
5699
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5649
5700
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5650
5701
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5651
5702
  gapic_version: ::Google::Cloud::Channel::V1::VERSION,
5652
5703
  transports_version_send: [:rest]
5653
5704
 
5705
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5654
5706
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5655
5707
 
5656
5708
  options.apply_defaults timeout: @config.rpcs.list_entitlement_changes.timeout,