google-cloud-data_catalog-v1 0.23.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b32a0d2a88e0c5844a4e32a83fa5e5c98aa382c6d150b42db7e26e201679c39
4
- data.tar.gz: 1851768ce949f48c0d0053b537d5b21cc80392a2f5ded516dbc6dc5ffffac81a
3
+ metadata.gz: 9b4e3d575053cbca1e9a8ee849ca70432e06eb34cf80c1fd07e0be2bbd0e131e
4
+ data.tar.gz: 16b4c10c3eb37c2164e8b058f56045cc50094652d58c88a192ca5f16422f6439
5
5
  SHA512:
6
- metadata.gz: 8885897f4969283601d976b041a373b078fb94655bd6b6fd0404d71fbc54093eda8bda73b341e58538956885e60541fc7c1b80e4f0aecce08c0fef9c9d71606a
7
- data.tar.gz: d49881b73148a79404992bc0581d48d355cf425bfeb907f9c27cff8a559baae7debc9f32091505450701b79d7f0c5f2dfcc6d2df049878ec9e9be706bd1131dc
6
+ metadata.gz: b9208e1a6a9e2d0a328069eb26b750a42091bdbf92d31cbd68b658d2bc813b09b69ee41a5fa34ad12d2a28236826dafcc8d558720690f09aa27b2741f104841a
7
+ data.tar.gz: '078e25d188a5d815e2e07e3095974324085ed2aa77b672d712353b03aa5127acc6ad0f17f29268e403da5d1a3198bcfff593fa7014c7162e12bc9df8f9ac9829'
@@ -32,6 +32,9 @@ module Google
32
32
  # your data.
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
 
@@ -323,10 +326,11 @@ module Google
323
326
  # Customize the options with defaults
324
327
  metadata = @config.rpcs.search_catalog.metadata.to_h
325
328
 
326
- # 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
327
330
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
328
331
  lib_name: @config.lib_name, lib_version: @config.lib_version,
329
332
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
333
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
330
334
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
331
335
 
332
336
  options.apply_defaults timeout: @config.rpcs.search_catalog.timeout,
@@ -439,10 +443,11 @@ module Google
439
443
  # Customize the options with defaults
440
444
  metadata = @config.rpcs.create_entry_group.metadata.to_h
441
445
 
442
- # Set x-goog-api-client and x-goog-user-project headers
446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
443
447
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
444
448
  lib_name: @config.lib_name, lib_version: @config.lib_version,
445
449
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
450
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
446
451
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
447
452
 
448
453
  header_params = {}
@@ -526,10 +531,11 @@ module Google
526
531
  # Customize the options with defaults
527
532
  metadata = @config.rpcs.get_entry_group.metadata.to_h
528
533
 
529
- # Set x-goog-api-client and x-goog-user-project headers
534
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
530
535
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
531
536
  lib_name: @config.lib_name, lib_version: @config.lib_version,
532
537
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
538
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
533
539
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
534
540
 
535
541
  header_params = {}
@@ -622,10 +628,11 @@ module Google
622
628
  # Customize the options with defaults
623
629
  metadata = @config.rpcs.update_entry_group.metadata.to_h
624
630
 
625
- # Set x-goog-api-client and x-goog-user-project headers
631
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
632
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
627
633
  lib_name: @config.lib_name, lib_version: @config.lib_version,
628
634
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
635
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
629
636
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
630
637
 
631
638
  header_params = {}
@@ -714,10 +721,11 @@ module Google
714
721
  # Customize the options with defaults
715
722
  metadata = @config.rpcs.delete_entry_group.metadata.to_h
716
723
 
717
- # Set x-goog-api-client and x-goog-user-project headers
724
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
718
725
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
719
726
  lib_name: @config.lib_name, lib_version: @config.lib_version,
720
727
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
728
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
721
729
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
722
730
 
723
731
  header_params = {}
@@ -813,10 +821,11 @@ module Google
813
821
  # Customize the options with defaults
814
822
  metadata = @config.rpcs.list_entry_groups.metadata.to_h
815
823
 
816
- # Set x-goog-api-client and x-goog-user-project headers
824
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
817
825
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
818
826
  lib_name: @config.lib_name, lib_version: @config.lib_version,
819
827
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
828
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
820
829
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
821
830
 
822
831
  header_params = {}
@@ -920,10 +929,11 @@ module Google
920
929
  # Customize the options with defaults
921
930
  metadata = @config.rpcs.create_entry.metadata.to_h
922
931
 
923
- # Set x-goog-api-client and x-goog-user-project headers
932
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
924
933
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
925
934
  lib_name: @config.lib_name, lib_version: @config.lib_version,
926
935
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
936
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
927
937
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
928
938
 
929
939
  header_params = {}
@@ -1040,10 +1050,11 @@ module Google
1040
1050
  # Customize the options with defaults
1041
1051
  metadata = @config.rpcs.update_entry.metadata.to_h
1042
1052
 
1043
- # Set x-goog-api-client and x-goog-user-project headers
1053
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1044
1054
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1045
1055
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1046
1056
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1057
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1047
1058
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1048
1059
 
1049
1060
  header_params = {}
@@ -1134,10 +1145,11 @@ module Google
1134
1145
  # Customize the options with defaults
1135
1146
  metadata = @config.rpcs.delete_entry.metadata.to_h
1136
1147
 
1137
- # Set x-goog-api-client and x-goog-user-project headers
1148
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1138
1149
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1139
1150
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1140
1151
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1152
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1141
1153
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1142
1154
 
1143
1155
  header_params = {}
@@ -1219,10 +1231,11 @@ module Google
1219
1231
  # Customize the options with defaults
1220
1232
  metadata = @config.rpcs.get_entry.metadata.to_h
1221
1233
 
1222
- # Set x-goog-api-client and x-goog-user-project headers
1234
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1223
1235
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1224
1236
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1225
1237
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1238
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1226
1239
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1227
1240
 
1228
1241
  header_params = {}
@@ -1353,10 +1366,11 @@ module Google
1353
1366
  # Customize the options with defaults
1354
1367
  metadata = @config.rpcs.lookup_entry.metadata.to_h
1355
1368
 
1356
- # Set x-goog-api-client and x-goog-user-project headers
1369
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1357
1370
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1358
1371
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1359
1372
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1373
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1360
1374
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1361
1375
 
1362
1376
  options.apply_defaults timeout: @config.rpcs.lookup_entry.timeout,
@@ -1452,10 +1466,11 @@ module Google
1452
1466
  # Customize the options with defaults
1453
1467
  metadata = @config.rpcs.list_entries.metadata.to_h
1454
1468
 
1455
- # Set x-goog-api-client and x-goog-user-project headers
1469
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1456
1470
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1457
1471
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1458
1472
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1473
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1459
1474
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1460
1475
 
1461
1476
  header_params = {}
@@ -1544,10 +1559,11 @@ module Google
1544
1559
  # Customize the options with defaults
1545
1560
  metadata = @config.rpcs.modify_entry_overview.metadata.to_h
1546
1561
 
1547
- # Set x-goog-api-client and x-goog-user-project headers
1562
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1548
1563
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1549
1564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1550
1565
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1566
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1551
1567
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1552
1568
 
1553
1569
  header_params = {}
@@ -1635,10 +1651,11 @@ module Google
1635
1651
  # Customize the options with defaults
1636
1652
  metadata = @config.rpcs.modify_entry_contacts.metadata.to_h
1637
1653
 
1638
- # Set x-goog-api-client and x-goog-user-project headers
1654
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1639
1655
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1640
1656
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1641
1657
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1658
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1642
1659
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1643
1660
 
1644
1661
  header_params = {}
@@ -1734,10 +1751,11 @@ module Google
1734
1751
  # Customize the options with defaults
1735
1752
  metadata = @config.rpcs.create_tag_template.metadata.to_h
1736
1753
 
1737
- # Set x-goog-api-client and x-goog-user-project headers
1754
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1738
1755
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1739
1756
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1740
1757
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1758
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1741
1759
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1742
1760
 
1743
1761
  header_params = {}
@@ -1819,10 +1837,11 @@ module Google
1819
1837
  # Customize the options with defaults
1820
1838
  metadata = @config.rpcs.get_tag_template.metadata.to_h
1821
1839
 
1822
- # Set x-goog-api-client and x-goog-user-project headers
1840
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1823
1841
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1824
1842
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1825
1843
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1844
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1826
1845
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1827
1846
 
1828
1847
  header_params = {}
@@ -1922,10 +1941,11 @@ module Google
1922
1941
  # Customize the options with defaults
1923
1942
  metadata = @config.rpcs.update_tag_template.metadata.to_h
1924
1943
 
1925
- # Set x-goog-api-client and x-goog-user-project headers
1944
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1926
1945
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1927
1946
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1928
1947
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
1948
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1929
1949
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1930
1950
 
1931
1951
  header_params = {}
@@ -2015,10 +2035,11 @@ module Google
2015
2035
  # Customize the options with defaults
2016
2036
  metadata = @config.rpcs.delete_tag_template.metadata.to_h
2017
2037
 
2018
- # Set x-goog-api-client and x-goog-user-project headers
2038
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2019
2039
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2020
2040
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2021
2041
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2042
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2022
2043
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2023
2044
 
2024
2045
  header_params = {}
@@ -2116,10 +2137,11 @@ module Google
2116
2137
  # Customize the options with defaults
2117
2138
  metadata = @config.rpcs.create_tag_template_field.metadata.to_h
2118
2139
 
2119
- # Set x-goog-api-client and x-goog-user-project headers
2140
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2120
2141
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2121
2142
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2122
2143
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2144
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2123
2145
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2124
2146
 
2125
2147
  header_params = {}
@@ -2227,10 +2249,11 @@ module Google
2227
2249
  # Customize the options with defaults
2228
2250
  metadata = @config.rpcs.update_tag_template_field.metadata.to_h
2229
2251
 
2230
- # Set x-goog-api-client and x-goog-user-project headers
2252
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2231
2253
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2232
2254
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2233
2255
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2256
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2234
2257
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2235
2258
 
2236
2259
  header_params = {}
@@ -2319,10 +2342,11 @@ module Google
2319
2342
  # Customize the options with defaults
2320
2343
  metadata = @config.rpcs.rename_tag_template_field.metadata.to_h
2321
2344
 
2322
- # Set x-goog-api-client and x-goog-user-project headers
2345
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2323
2346
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2324
2347
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2325
2348
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2349
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2326
2350
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2327
2351
 
2328
2352
  header_params = {}
@@ -2409,10 +2433,11 @@ module Google
2409
2433
  # Customize the options with defaults
2410
2434
  metadata = @config.rpcs.rename_tag_template_field_enum_value.metadata.to_h
2411
2435
 
2412
- # Set x-goog-api-client and x-goog-user-project headers
2436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2413
2437
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2414
2438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2415
2439
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2440
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2416
2441
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2417
2442
 
2418
2443
  header_params = {}
@@ -2503,10 +2528,11 @@ module Google
2503
2528
  # Customize the options with defaults
2504
2529
  metadata = @config.rpcs.delete_tag_template_field.metadata.to_h
2505
2530
 
2506
- # Set x-goog-api-client and x-goog-user-project headers
2531
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2507
2532
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2508
2533
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2509
2534
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2535
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2510
2536
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2511
2537
 
2512
2538
  header_params = {}
@@ -2607,10 +2633,11 @@ module Google
2607
2633
  # Customize the options with defaults
2608
2634
  metadata = @config.rpcs.create_tag.metadata.to_h
2609
2635
 
2610
- # Set x-goog-api-client and x-goog-user-project headers
2636
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2611
2637
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2612
2638
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2613
2639
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2640
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2614
2641
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2615
2642
 
2616
2643
  header_params = {}
@@ -2699,10 +2726,11 @@ module Google
2699
2726
  # Customize the options with defaults
2700
2727
  metadata = @config.rpcs.update_tag.metadata.to_h
2701
2728
 
2702
- # Set x-goog-api-client and x-goog-user-project headers
2729
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2703
2730
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2704
2731
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2705
2732
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2733
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2706
2734
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2707
2735
 
2708
2736
  header_params = {}
@@ -2784,10 +2812,11 @@ module Google
2784
2812
  # Customize the options with defaults
2785
2813
  metadata = @config.rpcs.delete_tag.metadata.to_h
2786
2814
 
2787
- # Set x-goog-api-client and x-goog-user-project headers
2815
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2788
2816
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2789
2817
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2790
2818
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2819
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2791
2820
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2792
2821
 
2793
2822
  header_params = {}
@@ -2884,10 +2913,11 @@ module Google
2884
2913
  # Customize the options with defaults
2885
2914
  metadata = @config.rpcs.list_tags.metadata.to_h
2886
2915
 
2887
- # Set x-goog-api-client and x-goog-user-project headers
2916
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2888
2917
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2889
2918
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2890
2919
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
2920
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2891
2921
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2892
2922
 
2893
2923
  header_params = {}
@@ -3000,10 +3030,11 @@ module Google
3000
3030
  # Customize the options with defaults
3001
3031
  metadata = @config.rpcs.reconcile_tags.metadata.to_h
3002
3032
 
3003
- # Set x-goog-api-client and x-goog-user-project headers
3033
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3004
3034
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3005
3035
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3006
3036
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
3037
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3007
3038
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3008
3039
 
3009
3040
  header_params = {}
@@ -3087,10 +3118,11 @@ module Google
3087
3118
  # Customize the options with defaults
3088
3119
  metadata = @config.rpcs.star_entry.metadata.to_h
3089
3120
 
3090
- # Set x-goog-api-client and x-goog-user-project headers
3121
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3091
3122
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3092
3123
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3093
3124
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
3125
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3094
3126
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3095
3127
 
3096
3128
  header_params = {}
@@ -3173,10 +3205,11 @@ module Google
3173
3205
  # Customize the options with defaults
3174
3206
  metadata = @config.rpcs.unstar_entry.metadata.to_h
3175
3207
 
3176
- # Set x-goog-api-client and x-goog-user-project headers
3208
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3177
3209
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3178
3210
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3179
3211
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
3212
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3180
3213
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3181
3214
 
3182
3215
  header_params = {}
@@ -3286,10 +3319,11 @@ module Google
3286
3319
  # Customize the options with defaults
3287
3320
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
3288
3321
 
3289
- # Set x-goog-api-client and x-goog-user-project headers
3322
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3290
3323
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3291
3324
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3292
3325
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
3326
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3293
3327
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3294
3328
 
3295
3329
  header_params = {}
@@ -3395,10 +3429,11 @@ module Google
3395
3429
  # Customize the options with defaults
3396
3430
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
3397
3431
 
3398
- # Set x-goog-api-client and x-goog-user-project headers
3432
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3399
3433
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3400
3434
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3401
3435
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
3436
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3402
3437
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3403
3438
 
3404
3439
  header_params = {}
@@ -3499,10 +3534,11 @@ module Google
3499
3534
  # Customize the options with defaults
3500
3535
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
3501
3536
 
3502
- # Set x-goog-api-client and x-goog-user-project headers
3537
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3503
3538
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3504
3539
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3505
3540
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
3541
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3506
3542
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3507
3543
 
3508
3544
  header_params = {}
@@ -3613,10 +3649,11 @@ module Google
3613
3649
  # Customize the options with defaults
3614
3650
  metadata = @config.rpcs.import_entries.metadata.to_h
3615
3651
 
3616
- # Set x-goog-api-client and x-goog-user-project headers
3652
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3617
3653
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3618
3654
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3619
3655
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
3656
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3620
3657
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3621
3658
 
3622
3659
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module DataCatalog
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,