google-cloud-apigee_registry-v1 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,9 @@ module Google
32
32
  # The Registry service allows teams to manage descriptions of APIs.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "apigeeregistry.$UNIVERSE_DOMAIN$"
37
40
 
@@ -433,10 +436,11 @@ module Google
433
436
  # Customize the options with defaults
434
437
  metadata = @config.rpcs.list_apis.metadata.to_h
435
438
 
436
- # Set x-goog-api-client and x-goog-user-project headers
439
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
437
440
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
438
441
  lib_name: @config.lib_name, lib_version: @config.lib_version,
439
442
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
443
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
440
444
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
441
445
 
442
446
  header_params = {}
@@ -520,10 +524,11 @@ module Google
520
524
  # Customize the options with defaults
521
525
  metadata = @config.rpcs.get_api.metadata.to_h
522
526
 
523
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
524
528
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
525
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
526
530
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
531
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
532
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
533
 
529
534
  header_params = {}
@@ -616,10 +621,11 @@ module Google
616
621
  # Customize the options with defaults
617
622
  metadata = @config.rpcs.create_api.metadata.to_h
618
623
 
619
- # Set x-goog-api-client and x-goog-user-project headers
624
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
620
625
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
621
626
  lib_name: @config.lib_name, lib_version: @config.lib_version,
622
627
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
628
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
623
629
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
630
 
625
631
  header_params = {}
@@ -712,10 +718,11 @@ module Google
712
718
  # Customize the options with defaults
713
719
  metadata = @config.rpcs.update_api.metadata.to_h
714
720
 
715
- # Set x-goog-api-client and x-goog-user-project headers
721
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
716
722
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
717
723
  lib_name: @config.lib_name, lib_version: @config.lib_version,
718
724
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
725
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
719
726
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
720
727
 
721
728
  header_params = {}
@@ -802,10 +809,11 @@ module Google
802
809
  # Customize the options with defaults
803
810
  metadata = @config.rpcs.delete_api.metadata.to_h
804
811
 
805
- # Set x-goog-api-client and x-goog-user-project headers
812
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
806
813
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
807
814
  lib_name: @config.lib_name, lib_version: @config.lib_version,
808
815
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
816
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
809
817
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
810
818
 
811
819
  header_params = {}
@@ -906,10 +914,11 @@ module Google
906
914
  # Customize the options with defaults
907
915
  metadata = @config.rpcs.list_api_versions.metadata.to_h
908
916
 
909
- # Set x-goog-api-client and x-goog-user-project headers
917
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
910
918
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
911
919
  lib_name: @config.lib_name, lib_version: @config.lib_version,
912
920
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
921
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
913
922
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
914
923
 
915
924
  header_params = {}
@@ -993,10 +1002,11 @@ module Google
993
1002
  # Customize the options with defaults
994
1003
  metadata = @config.rpcs.get_api_version.metadata.to_h
995
1004
 
996
- # Set x-goog-api-client and x-goog-user-project headers
1005
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
997
1006
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
998
1007
  lib_name: @config.lib_name, lib_version: @config.lib_version,
999
1008
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1009
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1000
1010
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1001
1011
 
1002
1012
  header_params = {}
@@ -1089,10 +1099,11 @@ module Google
1089
1099
  # Customize the options with defaults
1090
1100
  metadata = @config.rpcs.create_api_version.metadata.to_h
1091
1101
 
1092
- # Set x-goog-api-client and x-goog-user-project headers
1102
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1093
1103
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1094
1104
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1095
1105
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1106
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1096
1107
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1097
1108
 
1098
1109
  header_params = {}
@@ -1185,10 +1196,11 @@ module Google
1185
1196
  # Customize the options with defaults
1186
1197
  metadata = @config.rpcs.update_api_version.metadata.to_h
1187
1198
 
1188
- # Set x-goog-api-client and x-goog-user-project headers
1199
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1189
1200
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1190
1201
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1191
1202
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1203
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1192
1204
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1193
1205
 
1194
1206
  header_params = {}
@@ -1275,10 +1287,11 @@ module Google
1275
1287
  # Customize the options with defaults
1276
1288
  metadata = @config.rpcs.delete_api_version.metadata.to_h
1277
1289
 
1278
- # Set x-goog-api-client and x-goog-user-project headers
1290
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1279
1291
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1280
1292
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1281
1293
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1294
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1282
1295
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1283
1296
 
1284
1297
  header_params = {}
@@ -1379,10 +1392,11 @@ module Google
1379
1392
  # Customize the options with defaults
1380
1393
  metadata = @config.rpcs.list_api_specs.metadata.to_h
1381
1394
 
1382
- # Set x-goog-api-client and x-goog-user-project headers
1395
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1383
1396
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1384
1397
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1385
1398
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1399
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1386
1400
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1387
1401
 
1388
1402
  header_params = {}
@@ -1466,10 +1480,11 @@ module Google
1466
1480
  # Customize the options with defaults
1467
1481
  metadata = @config.rpcs.get_api_spec.metadata.to_h
1468
1482
 
1469
- # Set x-goog-api-client and x-goog-user-project headers
1483
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1470
1484
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1471
1485
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1472
1486
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1487
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1473
1488
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1474
1489
 
1475
1490
  header_params = {}
@@ -1555,10 +1570,11 @@ module Google
1555
1570
  # Customize the options with defaults
1556
1571
  metadata = @config.rpcs.get_api_spec_contents.metadata.to_h
1557
1572
 
1558
- # Set x-goog-api-client and x-goog-user-project headers
1573
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1559
1574
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1560
1575
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1561
1576
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1577
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1562
1578
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1563
1579
 
1564
1580
  header_params = {}
@@ -1651,10 +1667,11 @@ module Google
1651
1667
  # Customize the options with defaults
1652
1668
  metadata = @config.rpcs.create_api_spec.metadata.to_h
1653
1669
 
1654
- # Set x-goog-api-client and x-goog-user-project headers
1670
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1655
1671
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1656
1672
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1657
1673
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1674
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1658
1675
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1659
1676
 
1660
1677
  header_params = {}
@@ -1747,10 +1764,11 @@ module Google
1747
1764
  # Customize the options with defaults
1748
1765
  metadata = @config.rpcs.update_api_spec.metadata.to_h
1749
1766
 
1750
- # Set x-goog-api-client and x-goog-user-project headers
1767
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1751
1768
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1752
1769
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1753
1770
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1771
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1754
1772
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1755
1773
 
1756
1774
  header_params = {}
@@ -1837,10 +1855,11 @@ module Google
1837
1855
  # Customize the options with defaults
1838
1856
  metadata = @config.rpcs.delete_api_spec.metadata.to_h
1839
1857
 
1840
- # Set x-goog-api-client and x-goog-user-project headers
1858
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1841
1859
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1842
1860
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1843
1861
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1862
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1844
1863
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1845
1864
 
1846
1865
  header_params = {}
@@ -1925,10 +1944,11 @@ module Google
1925
1944
  # Customize the options with defaults
1926
1945
  metadata = @config.rpcs.tag_api_spec_revision.metadata.to_h
1927
1946
 
1928
- # Set x-goog-api-client and x-goog-user-project headers
1947
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1929
1948
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1930
1949
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1931
1950
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
1951
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1932
1952
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1933
1953
 
1934
1954
  header_params = {}
@@ -2020,10 +2040,11 @@ module Google
2020
2040
  # Customize the options with defaults
2021
2041
  metadata = @config.rpcs.list_api_spec_revisions.metadata.to_h
2022
2042
 
2023
- # Set x-goog-api-client and x-goog-user-project headers
2043
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2024
2044
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2025
2045
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2026
2046
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2047
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2027
2048
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2028
2049
 
2029
2050
  header_params = {}
@@ -2112,10 +2133,11 @@ module Google
2112
2133
  # Customize the options with defaults
2113
2134
  metadata = @config.rpcs.rollback_api_spec.metadata.to_h
2114
2135
 
2115
- # Set x-goog-api-client and x-goog-user-project headers
2136
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2116
2137
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2117
2138
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2118
2139
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2140
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2119
2141
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2120
2142
 
2121
2143
  header_params = {}
@@ -2201,10 +2223,11 @@ module Google
2201
2223
  # Customize the options with defaults
2202
2224
  metadata = @config.rpcs.delete_api_spec_revision.metadata.to_h
2203
2225
 
2204
- # Set x-goog-api-client and x-goog-user-project headers
2226
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2205
2227
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2206
2228
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2207
2229
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2230
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2208
2231
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2209
2232
 
2210
2233
  header_params = {}
@@ -2305,10 +2328,11 @@ module Google
2305
2328
  # Customize the options with defaults
2306
2329
  metadata = @config.rpcs.list_api_deployments.metadata.to_h
2307
2330
 
2308
- # Set x-goog-api-client and x-goog-user-project headers
2331
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2309
2332
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2310
2333
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2311
2334
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2335
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2312
2336
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2313
2337
 
2314
2338
  header_params = {}
@@ -2392,10 +2416,11 @@ module Google
2392
2416
  # Customize the options with defaults
2393
2417
  metadata = @config.rpcs.get_api_deployment.metadata.to_h
2394
2418
 
2395
- # Set x-goog-api-client and x-goog-user-project headers
2419
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2396
2420
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2397
2421
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2398
2422
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2423
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2399
2424
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2400
2425
 
2401
2426
  header_params = {}
@@ -2488,10 +2513,11 @@ module Google
2488
2513
  # Customize the options with defaults
2489
2514
  metadata = @config.rpcs.create_api_deployment.metadata.to_h
2490
2515
 
2491
- # Set x-goog-api-client and x-goog-user-project headers
2516
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2492
2517
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2493
2518
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2494
2519
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2520
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2495
2521
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2496
2522
 
2497
2523
  header_params = {}
@@ -2584,10 +2610,11 @@ module Google
2584
2610
  # Customize the options with defaults
2585
2611
  metadata = @config.rpcs.update_api_deployment.metadata.to_h
2586
2612
 
2587
- # Set x-goog-api-client and x-goog-user-project headers
2613
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2588
2614
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2589
2615
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2590
2616
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2617
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2591
2618
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2592
2619
 
2593
2620
  header_params = {}
@@ -2674,10 +2701,11 @@ module Google
2674
2701
  # Customize the options with defaults
2675
2702
  metadata = @config.rpcs.delete_api_deployment.metadata.to_h
2676
2703
 
2677
- # Set x-goog-api-client and x-goog-user-project headers
2704
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2678
2705
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2679
2706
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2680
2707
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2708
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2681
2709
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2682
2710
 
2683
2711
  header_params = {}
@@ -2763,10 +2791,11 @@ module Google
2763
2791
  # Customize the options with defaults
2764
2792
  metadata = @config.rpcs.tag_api_deployment_revision.metadata.to_h
2765
2793
 
2766
- # Set x-goog-api-client and x-goog-user-project headers
2794
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2767
2795
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2768
2796
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2769
2797
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2798
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2770
2799
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2771
2800
 
2772
2801
  header_params = {}
@@ -2858,10 +2887,11 @@ module Google
2858
2887
  # Customize the options with defaults
2859
2888
  metadata = @config.rpcs.list_api_deployment_revisions.metadata.to_h
2860
2889
 
2861
- # Set x-goog-api-client and x-goog-user-project headers
2890
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2862
2891
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2863
2892
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2864
2893
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2894
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2865
2895
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2866
2896
 
2867
2897
  header_params = {}
@@ -2950,10 +2980,11 @@ module Google
2950
2980
  # Customize the options with defaults
2951
2981
  metadata = @config.rpcs.rollback_api_deployment.metadata.to_h
2952
2982
 
2953
- # Set x-goog-api-client and x-goog-user-project headers
2983
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2954
2984
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2955
2985
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2956
2986
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
2987
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2957
2988
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2958
2989
 
2959
2990
  header_params = {}
@@ -3039,10 +3070,11 @@ module Google
3039
3070
  # Customize the options with defaults
3040
3071
  metadata = @config.rpcs.delete_api_deployment_revision.metadata.to_h
3041
3072
 
3042
- # Set x-goog-api-client and x-goog-user-project headers
3073
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3043
3074
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3044
3075
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3045
3076
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
3077
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3046
3078
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3047
3079
 
3048
3080
  header_params = {}
@@ -3143,10 +3175,11 @@ module Google
3143
3175
  # Customize the options with defaults
3144
3176
  metadata = @config.rpcs.list_artifacts.metadata.to_h
3145
3177
 
3146
- # Set x-goog-api-client and x-goog-user-project headers
3178
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3147
3179
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3148
3180
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3149
3181
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
3182
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3150
3183
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3151
3184
 
3152
3185
  header_params = {}
@@ -3230,10 +3263,11 @@ module Google
3230
3263
  # Customize the options with defaults
3231
3264
  metadata = @config.rpcs.get_artifact.metadata.to_h
3232
3265
 
3233
- # Set x-goog-api-client and x-goog-user-project headers
3266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3234
3267
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3235
3268
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3236
3269
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
3270
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3237
3271
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3238
3272
 
3239
3273
  header_params = {}
@@ -3319,10 +3353,11 @@ module Google
3319
3353
  # Customize the options with defaults
3320
3354
  metadata = @config.rpcs.get_artifact_contents.metadata.to_h
3321
3355
 
3322
- # Set x-goog-api-client and x-goog-user-project headers
3356
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3323
3357
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3324
3358
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3325
3359
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
3360
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3326
3361
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3327
3362
 
3328
3363
  header_params = {}
@@ -3415,10 +3450,11 @@ module Google
3415
3450
  # Customize the options with defaults
3416
3451
  metadata = @config.rpcs.create_artifact.metadata.to_h
3417
3452
 
3418
- # Set x-goog-api-client and x-goog-user-project headers
3453
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3419
3454
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3420
3455
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3421
3456
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
3457
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3422
3458
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3423
3459
 
3424
3460
  header_params = {}
@@ -3503,10 +3539,11 @@ module Google
3503
3539
  # Customize the options with defaults
3504
3540
  metadata = @config.rpcs.replace_artifact.metadata.to_h
3505
3541
 
3506
- # Set x-goog-api-client and x-goog-user-project headers
3542
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3507
3543
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3508
3544
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3509
3545
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
3546
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3510
3547
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3511
3548
 
3512
3549
  header_params = {}
@@ -3589,10 +3626,11 @@ module Google
3589
3626
  # Customize the options with defaults
3590
3627
  metadata = @config.rpcs.delete_artifact.metadata.to_h
3591
3628
 
3592
- # Set x-goog-api-client and x-goog-user-project headers
3629
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3593
3630
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3594
3631
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3595
3632
  gapic_version: ::Google::Cloud::ApigeeRegistry::V1::VERSION
3633
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3596
3634
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3597
3635
 
3598
3636
  header_params = {}