google-cloud-data_catalog-v1beta1 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,9 @@ module Google
34
34
  # their data.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
39
42
 
@@ -283,12 +286,13 @@ module Google
283
286
  # Customize the options with defaults
284
287
  call_metadata = @config.rpcs.search_catalog.metadata.to_h
285
288
 
286
- # Set x-goog-api-client and x-goog-user-project headers
289
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
287
290
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
288
291
  lib_name: @config.lib_name, lib_version: @config.lib_version,
289
292
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
290
293
  transports_version_send: [:rest]
291
294
 
295
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
292
296
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
293
297
 
294
298
  options.apply_defaults timeout: @config.rpcs.search_catalog.timeout,
@@ -378,12 +382,13 @@ module Google
378
382
  # Customize the options with defaults
379
383
  call_metadata = @config.rpcs.create_entry_group.metadata.to_h
380
384
 
381
- # Set x-goog-api-client and x-goog-user-project headers
385
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
382
386
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
383
387
  lib_name: @config.lib_name, lib_version: @config.lib_version,
384
388
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
385
389
  transports_version_send: [:rest]
386
390
 
391
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
387
392
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
388
393
 
389
394
  options.apply_defaults timeout: @config.rpcs.create_entry_group.timeout,
@@ -466,12 +471,13 @@ module Google
466
471
  # Customize the options with defaults
467
472
  call_metadata = @config.rpcs.update_entry_group.metadata.to_h
468
473
 
469
- # Set x-goog-api-client and x-goog-user-project headers
474
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
470
475
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
471
476
  lib_name: @config.lib_name, lib_version: @config.lib_version,
472
477
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
473
478
  transports_version_send: [:rest]
474
479
 
480
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
475
481
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
482
 
477
483
  options.apply_defaults timeout: @config.rpcs.update_entry_group.timeout,
@@ -547,12 +553,13 @@ module Google
547
553
  # Customize the options with defaults
548
554
  call_metadata = @config.rpcs.get_entry_group.metadata.to_h
549
555
 
550
- # Set x-goog-api-client and x-goog-user-project headers
556
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
551
557
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
552
558
  lib_name: @config.lib_name, lib_version: @config.lib_version,
553
559
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
554
560
  transports_version_send: [:rest]
555
561
 
562
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
556
563
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
557
564
 
558
565
  options.apply_defaults timeout: @config.rpcs.get_entry_group.timeout,
@@ -632,12 +639,13 @@ module Google
632
639
  # Customize the options with defaults
633
640
  call_metadata = @config.rpcs.delete_entry_group.metadata.to_h
634
641
 
635
- # Set x-goog-api-client and x-goog-user-project headers
642
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
636
643
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
637
644
  lib_name: @config.lib_name, lib_version: @config.lib_version,
638
645
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
639
646
  transports_version_send: [:rest]
640
647
 
648
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
641
649
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
642
650
 
643
651
  options.apply_defaults timeout: @config.rpcs.delete_entry_group.timeout,
@@ -723,12 +731,13 @@ module Google
723
731
  # Customize the options with defaults
724
732
  call_metadata = @config.rpcs.list_entry_groups.metadata.to_h
725
733
 
726
- # Set x-goog-api-client and x-goog-user-project headers
734
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
727
735
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
728
736
  lib_name: @config.lib_name, lib_version: @config.lib_version,
729
737
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
730
738
  transports_version_send: [:rest]
731
739
 
740
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
732
741
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
733
742
 
734
743
  options.apply_defaults timeout: @config.rpcs.list_entry_groups.timeout,
@@ -819,12 +828,13 @@ module Google
819
828
  # Customize the options with defaults
820
829
  call_metadata = @config.rpcs.create_entry.metadata.to_h
821
830
 
822
- # Set x-goog-api-client and x-goog-user-project headers
831
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
823
832
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
824
833
  lib_name: @config.lib_name, lib_version: @config.lib_version,
825
834
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
826
835
  transports_version_send: [:rest]
827
836
 
837
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
828
838
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
829
839
 
830
840
  options.apply_defaults timeout: @config.rpcs.create_entry.timeout,
@@ -926,12 +936,13 @@ module Google
926
936
  # Customize the options with defaults
927
937
  call_metadata = @config.rpcs.update_entry.metadata.to_h
928
938
 
929
- # Set x-goog-api-client and x-goog-user-project headers
939
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
930
940
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
931
941
  lib_name: @config.lib_name, lib_version: @config.lib_version,
932
942
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
933
943
  transports_version_send: [:rest]
934
944
 
945
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
935
946
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
936
947
 
937
948
  options.apply_defaults timeout: @config.rpcs.update_entry.timeout,
@@ -1012,12 +1023,13 @@ module Google
1012
1023
  # Customize the options with defaults
1013
1024
  call_metadata = @config.rpcs.delete_entry.metadata.to_h
1014
1025
 
1015
- # Set x-goog-api-client and x-goog-user-project headers
1026
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1016
1027
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1017
1028
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1018
1029
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1019
1030
  transports_version_send: [:rest]
1020
1031
 
1032
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1021
1033
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1022
1034
 
1023
1035
  options.apply_defaults timeout: @config.rpcs.delete_entry.timeout,
@@ -1092,12 +1104,13 @@ module Google
1092
1104
  # Customize the options with defaults
1093
1105
  call_metadata = @config.rpcs.get_entry.metadata.to_h
1094
1106
 
1095
- # Set x-goog-api-client and x-goog-user-project headers
1107
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1096
1108
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1097
1109
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1098
1110
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1099
1111
  transports_version_send: [:rest]
1100
1112
 
1113
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1101
1114
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1102
1115
 
1103
1116
  options.apply_defaults timeout: @config.rpcs.get_entry.timeout,
@@ -1193,12 +1206,13 @@ module Google
1193
1206
  # Customize the options with defaults
1194
1207
  call_metadata = @config.rpcs.lookup_entry.metadata.to_h
1195
1208
 
1196
- # Set x-goog-api-client and x-goog-user-project headers
1209
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1197
1210
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1198
1211
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1199
1212
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1200
1213
  transports_version_send: [:rest]
1201
1214
 
1215
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1202
1216
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1203
1217
 
1204
1218
  options.apply_defaults timeout: @config.rpcs.lookup_entry.timeout,
@@ -1289,12 +1303,13 @@ module Google
1289
1303
  # Customize the options with defaults
1290
1304
  call_metadata = @config.rpcs.list_entries.metadata.to_h
1291
1305
 
1292
- # Set x-goog-api-client and x-goog-user-project headers
1306
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1293
1307
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1294
1308
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1295
1309
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1296
1310
  transports_version_send: [:rest]
1297
1311
 
1312
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1298
1313
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1299
1314
 
1300
1315
  options.apply_defaults timeout: @config.rpcs.list_entries.timeout,
@@ -1381,12 +1396,13 @@ module Google
1381
1396
  # Customize the options with defaults
1382
1397
  call_metadata = @config.rpcs.create_tag_template.metadata.to_h
1383
1398
 
1384
- # Set x-goog-api-client and x-goog-user-project headers
1399
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1385
1400
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1386
1401
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1387
1402
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1388
1403
  transports_version_send: [:rest]
1389
1404
 
1405
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1390
1406
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1391
1407
 
1392
1408
  options.apply_defaults timeout: @config.rpcs.create_tag_template.timeout,
@@ -1461,12 +1477,13 @@ module Google
1461
1477
  # Customize the options with defaults
1462
1478
  call_metadata = @config.rpcs.get_tag_template.metadata.to_h
1463
1479
 
1464
- # Set x-goog-api-client and x-goog-user-project headers
1480
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1465
1481
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1466
1482
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1467
1483
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1468
1484
  transports_version_send: [:rest]
1469
1485
 
1486
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1470
1487
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1471
1488
 
1472
1489
  options.apply_defaults timeout: @config.rpcs.get_tag_template.timeout,
@@ -1552,12 +1569,13 @@ module Google
1552
1569
  # Customize the options with defaults
1553
1570
  call_metadata = @config.rpcs.update_tag_template.metadata.to_h
1554
1571
 
1555
- # Set x-goog-api-client and x-goog-user-project headers
1572
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1556
1573
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1557
1574
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1558
1575
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1559
1576
  transports_version_send: [:rest]
1560
1577
 
1578
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1561
1579
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1562
1580
 
1563
1581
  options.apply_defaults timeout: @config.rpcs.update_tag_template.timeout,
@@ -1640,12 +1658,13 @@ module Google
1640
1658
  # Customize the options with defaults
1641
1659
  call_metadata = @config.rpcs.delete_tag_template.metadata.to_h
1642
1660
 
1643
- # Set x-goog-api-client and x-goog-user-project headers
1661
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1644
1662
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1645
1663
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1646
1664
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1647
1665
  transports_version_send: [:rest]
1648
1666
 
1667
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1649
1668
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1650
1669
 
1651
1670
  options.apply_defaults timeout: @config.rpcs.delete_tag_template.timeout,
@@ -1735,12 +1754,13 @@ module Google
1735
1754
  # Customize the options with defaults
1736
1755
  call_metadata = @config.rpcs.create_tag_template_field.metadata.to_h
1737
1756
 
1738
- # Set x-goog-api-client and x-goog-user-project headers
1757
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1739
1758
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1740
1759
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1741
1760
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1742
1761
  transports_version_send: [:rest]
1743
1762
 
1763
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1744
1764
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1745
1765
 
1746
1766
  options.apply_defaults timeout: @config.rpcs.create_tag_template_field.timeout,
@@ -1838,12 +1858,13 @@ module Google
1838
1858
  # Customize the options with defaults
1839
1859
  call_metadata = @config.rpcs.update_tag_template_field.metadata.to_h
1840
1860
 
1841
- # Set x-goog-api-client and x-goog-user-project headers
1861
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1842
1862
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1843
1863
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1844
1864
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1845
1865
  transports_version_send: [:rest]
1846
1866
 
1867
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1847
1868
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1848
1869
 
1849
1870
  options.apply_defaults timeout: @config.rpcs.update_tag_template_field.timeout,
@@ -1925,12 +1946,13 @@ module Google
1925
1946
  # Customize the options with defaults
1926
1947
  call_metadata = @config.rpcs.rename_tag_template_field.metadata.to_h
1927
1948
 
1928
- # Set x-goog-api-client and x-goog-user-project headers
1949
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1929
1950
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1930
1951
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1931
1952
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
1932
1953
  transports_version_send: [:rest]
1933
1954
 
1955
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1934
1956
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1935
1957
 
1936
1958
  options.apply_defaults timeout: @config.rpcs.rename_tag_template_field.timeout,
@@ -2010,12 +2032,13 @@ module Google
2010
2032
  # Customize the options with defaults
2011
2033
  call_metadata = @config.rpcs.rename_tag_template_field_enum_value.metadata.to_h
2012
2034
 
2013
- # Set x-goog-api-client and x-goog-user-project headers
2035
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2014
2036
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2015
2037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2016
2038
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
2017
2039
  transports_version_send: [:rest]
2018
2040
 
2041
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2019
2042
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2020
2043
 
2021
2044
  options.apply_defaults timeout: @config.rpcs.rename_tag_template_field_enum_value.timeout,
@@ -2098,12 +2121,13 @@ module Google
2098
2121
  # Customize the options with defaults
2099
2122
  call_metadata = @config.rpcs.delete_tag_template_field.metadata.to_h
2100
2123
 
2101
- # Set x-goog-api-client and x-goog-user-project headers
2124
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2102
2125
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2103
2126
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2104
2127
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
2105
2128
  transports_version_send: [:rest]
2106
2129
 
2130
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2107
2131
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2108
2132
 
2109
2133
  options.apply_defaults timeout: @config.rpcs.delete_tag_template_field.timeout,
@@ -2190,12 +2214,13 @@ module Google
2190
2214
  # Customize the options with defaults
2191
2215
  call_metadata = @config.rpcs.create_tag.metadata.to_h
2192
2216
 
2193
- # Set x-goog-api-client and x-goog-user-project headers
2217
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2194
2218
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2195
2219
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2196
2220
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
2197
2221
  transports_version_send: [:rest]
2198
2222
 
2223
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2199
2224
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2200
2225
 
2201
2226
  options.apply_defaults timeout: @config.rpcs.create_tag.timeout,
@@ -2277,12 +2302,13 @@ module Google
2277
2302
  # Customize the options with defaults
2278
2303
  call_metadata = @config.rpcs.update_tag.metadata.to_h
2279
2304
 
2280
- # Set x-goog-api-client and x-goog-user-project headers
2305
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2281
2306
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2282
2307
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2283
2308
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
2284
2309
  transports_version_send: [:rest]
2285
2310
 
2311
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2286
2312
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2287
2313
 
2288
2314
  options.apply_defaults timeout: @config.rpcs.update_tag.timeout,
@@ -2357,12 +2383,13 @@ module Google
2357
2383
  # Customize the options with defaults
2358
2384
  call_metadata = @config.rpcs.delete_tag.metadata.to_h
2359
2385
 
2360
- # Set x-goog-api-client and x-goog-user-project headers
2386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2361
2387
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2362
2388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2363
2389
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
2364
2390
  transports_version_send: [:rest]
2365
2391
 
2392
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2366
2393
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2367
2394
 
2368
2395
  options.apply_defaults timeout: @config.rpcs.delete_tag.timeout,
@@ -2453,12 +2480,13 @@ module Google
2453
2480
  # Customize the options with defaults
2454
2481
  call_metadata = @config.rpcs.list_tags.metadata.to_h
2455
2482
 
2456
- # Set x-goog-api-client and x-goog-user-project headers
2483
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2457
2484
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2458
2485
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2459
2486
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
2460
2487
  transports_version_send: [:rest]
2461
2488
 
2489
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2462
2490
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2463
2491
 
2464
2492
  options.apply_defaults timeout: @config.rpcs.list_tags.timeout,
@@ -2557,12 +2585,13 @@ module Google
2557
2585
  # Customize the options with defaults
2558
2586
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
2559
2587
 
2560
- # Set x-goog-api-client and x-goog-user-project headers
2588
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2561
2589
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2562
2590
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2563
2591
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
2564
2592
  transports_version_send: [:rest]
2565
2593
 
2594
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2566
2595
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2567
2596
 
2568
2597
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -2654,12 +2683,13 @@ module Google
2654
2683
  # Customize the options with defaults
2655
2684
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
2656
2685
 
2657
- # Set x-goog-api-client and x-goog-user-project headers
2686
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2658
2687
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2659
2688
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2660
2689
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
2661
2690
  transports_version_send: [:rest]
2662
2691
 
2692
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2663
2693
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2664
2694
 
2665
2695
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -2750,12 +2780,13 @@ module Google
2750
2780
  # Customize the options with defaults
2751
2781
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
2752
2782
 
2753
- # Set x-goog-api-client and x-goog-user-project headers
2783
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2754
2784
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2755
2785
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2756
2786
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION,
2757
2787
  transports_version_send: [:rest]
2758
2788
 
2789
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2759
2790
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2760
2791
 
2761
2792
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # and policy tags.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
37
40
 
@@ -235,10 +238,11 @@ module Google
235
238
  # Customize the options with defaults
236
239
  metadata = @config.rpcs.create_taxonomy.metadata.to_h
237
240
 
238
- # Set x-goog-api-client and x-goog-user-project headers
241
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
239
242
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
240
243
  lib_name: @config.lib_name, lib_version: @config.lib_version,
241
244
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
245
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
242
246
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
243
247
 
244
248
  header_params = {}
@@ -322,10 +326,11 @@ module Google
322
326
  # Customize the options with defaults
323
327
  metadata = @config.rpcs.delete_taxonomy.metadata.to_h
324
328
 
325
- # Set x-goog-api-client and x-goog-user-project headers
329
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
326
330
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
327
331
  lib_name: @config.lib_name, lib_version: @config.lib_version,
328
332
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
333
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
329
334
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
330
335
 
331
336
  header_params = {}
@@ -413,10 +418,11 @@ module Google
413
418
  # Customize the options with defaults
414
419
  metadata = @config.rpcs.update_taxonomy.metadata.to_h
415
420
 
416
- # Set x-goog-api-client and x-goog-user-project headers
421
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
417
422
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
418
423
  lib_name: @config.lib_name, lib_version: @config.lib_version,
419
424
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
425
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
420
426
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
421
427
 
422
428
  header_params = {}
@@ -512,10 +518,11 @@ module Google
512
518
  # Customize the options with defaults
513
519
  metadata = @config.rpcs.list_taxonomies.metadata.to_h
514
520
 
515
- # Set x-goog-api-client and x-goog-user-project headers
521
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
516
522
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
517
523
  lib_name: @config.lib_name, lib_version: @config.lib_version,
518
524
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
525
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
519
526
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
527
 
521
528
  header_params = {}
@@ -598,10 +605,11 @@ module Google
598
605
  # Customize the options with defaults
599
606
  metadata = @config.rpcs.get_taxonomy.metadata.to_h
600
607
 
601
- # Set x-goog-api-client and x-goog-user-project headers
608
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
602
609
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
603
610
  lib_name: @config.lib_name, lib_version: @config.lib_version,
604
611
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
612
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
605
613
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
606
614
 
607
615
  header_params = {}
@@ -685,10 +693,11 @@ module Google
685
693
  # Customize the options with defaults
686
694
  metadata = @config.rpcs.create_policy_tag.metadata.to_h
687
695
 
688
- # Set x-goog-api-client and x-goog-user-project headers
696
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
689
697
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
690
698
  lib_name: @config.lib_name, lib_version: @config.lib_version,
691
699
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
700
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
692
701
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
693
702
 
694
703
  header_params = {}
@@ -771,10 +780,11 @@ module Google
771
780
  # Customize the options with defaults
772
781
  metadata = @config.rpcs.delete_policy_tag.metadata.to_h
773
782
 
774
- # Set x-goog-api-client and x-goog-user-project headers
783
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
775
784
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
776
785
  lib_name: @config.lib_name, lib_version: @config.lib_version,
777
786
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
787
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
778
788
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
779
789
 
780
790
  header_params = {}
@@ -865,10 +875,11 @@ module Google
865
875
  # Customize the options with defaults
866
876
  metadata = @config.rpcs.update_policy_tag.metadata.to_h
867
877
 
868
- # Set x-goog-api-client and x-goog-user-project headers
878
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
869
879
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
870
880
  lib_name: @config.lib_name, lib_version: @config.lib_version,
871
881
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
882
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
872
883
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
873
884
 
874
885
  header_params = {}
@@ -960,10 +971,11 @@ module Google
960
971
  # Customize the options with defaults
961
972
  metadata = @config.rpcs.list_policy_tags.metadata.to_h
962
973
 
963
- # Set x-goog-api-client and x-goog-user-project headers
974
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
964
975
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
965
976
  lib_name: @config.lib_name, lib_version: @config.lib_version,
966
977
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
978
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
967
979
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
968
980
 
969
981
  header_params = {}
@@ -1046,10 +1058,11 @@ module Google
1046
1058
  # Customize the options with defaults
1047
1059
  metadata = @config.rpcs.get_policy_tag.metadata.to_h
1048
1060
 
1049
- # Set x-goog-api-client and x-goog-user-project headers
1061
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1050
1062
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1051
1063
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1052
1064
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
1065
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1053
1066
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1054
1067
 
1055
1068
  header_params = {}
@@ -1135,10 +1148,11 @@ module Google
1135
1148
  # Customize the options with defaults
1136
1149
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1137
1150
 
1138
- # Set x-goog-api-client and x-goog-user-project headers
1151
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1139
1152
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1140
1153
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1141
1154
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
1155
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1142
1156
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1143
1157
 
1144
1158
  header_params = {}
@@ -1232,10 +1246,11 @@ module Google
1232
1246
  # Customize the options with defaults
1233
1247
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1234
1248
 
1235
- # Set x-goog-api-client and x-goog-user-project headers
1249
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1236
1250
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1237
1251
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1238
1252
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
1253
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1239
1254
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1240
1255
 
1241
1256
  header_params = {}
@@ -1324,10 +1339,11 @@ module Google
1324
1339
  # Customize the options with defaults
1325
1340
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1326
1341
 
1327
- # Set x-goog-api-client and x-goog-user-project headers
1342
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1328
1343
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1329
1344
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1330
1345
  gapic_version: ::Google::Cloud::DataCatalog::V1beta1::VERSION
1346
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1331
1347
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1332
1348
 
1333
1349
  header_params = {}