google-cloud-dataplex-v1 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dataplex/v1/catalog_pb.rb +1 -1
  3. data/lib/google/cloud/dataplex/v1/catalog_service/client.rb +54 -27
  4. data/lib/google/cloud/dataplex/v1/catalog_service/operations.rb +13 -5
  5. data/lib/google/cloud/dataplex/v1/catalog_service/rest/client.rb +54 -27
  6. data/lib/google/cloud/dataplex/v1/catalog_service/rest/operations.rb +11 -4
  7. data/lib/google/cloud/dataplex/v1/content_service/client.rb +19 -8
  8. data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +19 -8
  9. data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +2 -1
  10. data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +21 -9
  11. data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +13 -5
  12. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +21 -9
  13. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +11 -4
  14. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +33 -15
  15. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/operations.rb +13 -5
  16. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +33 -15
  17. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +11 -4
  18. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +69 -33
  19. data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +13 -5
  20. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +69 -33
  21. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +11 -4
  22. data/lib/google/cloud/dataplex/v1/logs_pb.rb +1 -1
  23. data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +21 -9
  24. data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +21 -9
  25. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  26. data/proto_docs/google/cloud/dataplex/v1/catalog.rb +13 -36
  27. data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +29 -0
  28. data/proto_docs/google/cloud/dataplex/v1/logs.rb +8 -0
  29. metadata +2 -2
@@ -36,6 +36,9 @@ module Google
36
36
  # systems including Cloud Storage and BigQuery.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
41
44
 
@@ -393,10 +396,11 @@ module Google
393
396
  # Customize the options with defaults
394
397
  metadata = @config.rpcs.create_lake.metadata.to_h
395
398
 
396
- # Set x-goog-api-client and x-goog-user-project headers
399
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
397
400
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
398
401
  lib_name: @config.lib_name, lib_version: @config.lib_version,
399
402
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
403
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
400
404
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
401
405
 
402
406
  header_params = {}
@@ -492,10 +496,11 @@ module Google
492
496
  # Customize the options with defaults
493
497
  metadata = @config.rpcs.update_lake.metadata.to_h
494
498
 
495
- # Set x-goog-api-client and x-goog-user-project headers
499
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
496
500
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
497
501
  lib_name: @config.lib_name, lib_version: @config.lib_version,
498
502
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
503
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
499
504
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
500
505
 
501
506
  header_params = {}
@@ -587,10 +592,11 @@ module Google
587
592
  # Customize the options with defaults
588
593
  metadata = @config.rpcs.delete_lake.metadata.to_h
589
594
 
590
- # Set x-goog-api-client and x-goog-user-project headers
595
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
591
596
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
592
597
  lib_name: @config.lib_name, lib_version: @config.lib_version,
593
598
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
599
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
594
600
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
595
601
 
596
602
  header_params = {}
@@ -691,10 +697,11 @@ module Google
691
697
  # Customize the options with defaults
692
698
  metadata = @config.rpcs.list_lakes.metadata.to_h
693
699
 
694
- # Set x-goog-api-client and x-goog-user-project headers
700
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
695
701
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
696
702
  lib_name: @config.lib_name, lib_version: @config.lib_version,
697
703
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
704
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
698
705
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
699
706
 
700
707
  header_params = {}
@@ -778,10 +785,11 @@ module Google
778
785
  # Customize the options with defaults
779
786
  metadata = @config.rpcs.get_lake.metadata.to_h
780
787
 
781
- # Set x-goog-api-client and x-goog-user-project headers
788
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
782
789
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
783
790
  lib_name: @config.lib_name, lib_version: @config.lib_version,
784
791
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
792
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
785
793
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
786
794
 
787
795
  header_params = {}
@@ -877,10 +885,11 @@ module Google
877
885
  # Customize the options with defaults
878
886
  metadata = @config.rpcs.list_lake_actions.metadata.to_h
879
887
 
880
- # Set x-goog-api-client and x-goog-user-project headers
888
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
881
889
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
882
890
  lib_name: @config.lib_name, lib_version: @config.lib_version,
883
891
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
892
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
884
893
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
885
894
 
886
895
  header_params = {}
@@ -986,10 +995,11 @@ module Google
986
995
  # Customize the options with defaults
987
996
  metadata = @config.rpcs.create_zone.metadata.to_h
988
997
 
989
- # Set x-goog-api-client and x-goog-user-project headers
998
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
990
999
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
991
1000
  lib_name: @config.lib_name, lib_version: @config.lib_version,
992
1001
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1002
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
993
1003
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
994
1004
 
995
1005
  header_params = {}
@@ -1085,10 +1095,11 @@ module Google
1085
1095
  # Customize the options with defaults
1086
1096
  metadata = @config.rpcs.update_zone.metadata.to_h
1087
1097
 
1088
- # Set x-goog-api-client and x-goog-user-project headers
1098
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1089
1099
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1090
1100
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1091
1101
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1102
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1092
1103
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1093
1104
 
1094
1105
  header_params = {}
@@ -1180,10 +1191,11 @@ module Google
1180
1191
  # Customize the options with defaults
1181
1192
  metadata = @config.rpcs.delete_zone.metadata.to_h
1182
1193
 
1183
- # Set x-goog-api-client and x-goog-user-project headers
1194
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1184
1195
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1185
1196
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1186
1197
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1198
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1187
1199
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1188
1200
 
1189
1201
  header_params = {}
@@ -1283,10 +1295,11 @@ module Google
1283
1295
  # Customize the options with defaults
1284
1296
  metadata = @config.rpcs.list_zones.metadata.to_h
1285
1297
 
1286
- # Set x-goog-api-client and x-goog-user-project headers
1298
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1287
1299
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1288
1300
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1289
1301
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1302
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1290
1303
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1291
1304
 
1292
1305
  header_params = {}
@@ -1370,10 +1383,11 @@ module Google
1370
1383
  # Customize the options with defaults
1371
1384
  metadata = @config.rpcs.get_zone.metadata.to_h
1372
1385
 
1373
- # Set x-goog-api-client and x-goog-user-project headers
1386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1374
1387
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1375
1388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1376
1389
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1390
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1377
1391
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1378
1392
 
1379
1393
  header_params = {}
@@ -1469,10 +1483,11 @@ module Google
1469
1483
  # Customize the options with defaults
1470
1484
  metadata = @config.rpcs.list_zone_actions.metadata.to_h
1471
1485
 
1472
- # Set x-goog-api-client and x-goog-user-project headers
1486
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1473
1487
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1474
1488
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1475
1489
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1490
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1476
1491
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1477
1492
 
1478
1493
  header_params = {}
@@ -1577,10 +1592,11 @@ module Google
1577
1592
  # Customize the options with defaults
1578
1593
  metadata = @config.rpcs.create_asset.metadata.to_h
1579
1594
 
1580
- # Set x-goog-api-client and x-goog-user-project headers
1595
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1581
1596
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1582
1597
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1583
1598
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1599
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1584
1600
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1585
1601
 
1586
1602
  header_params = {}
@@ -1676,10 +1692,11 @@ module Google
1676
1692
  # Customize the options with defaults
1677
1693
  metadata = @config.rpcs.update_asset.metadata.to_h
1678
1694
 
1679
- # Set x-goog-api-client and x-goog-user-project headers
1695
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1680
1696
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1681
1697
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1682
1698
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1699
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1683
1700
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1684
1701
 
1685
1702
  header_params = {}
@@ -1771,10 +1788,11 @@ module Google
1771
1788
  # Customize the options with defaults
1772
1789
  metadata = @config.rpcs.delete_asset.metadata.to_h
1773
1790
 
1774
- # Set x-goog-api-client and x-goog-user-project headers
1791
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1775
1792
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1776
1793
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1777
1794
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1795
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1778
1796
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1779
1797
 
1780
1798
  header_params = {}
@@ -1875,10 +1893,11 @@ module Google
1875
1893
  # Customize the options with defaults
1876
1894
  metadata = @config.rpcs.list_assets.metadata.to_h
1877
1895
 
1878
- # Set x-goog-api-client and x-goog-user-project headers
1896
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1879
1897
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1880
1898
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1881
1899
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1900
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1882
1901
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1883
1902
 
1884
1903
  header_params = {}
@@ -1962,10 +1981,11 @@ module Google
1962
1981
  # Customize the options with defaults
1963
1982
  metadata = @config.rpcs.get_asset.metadata.to_h
1964
1983
 
1965
- # Set x-goog-api-client and x-goog-user-project headers
1984
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1966
1985
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1967
1986
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1968
1987
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
1988
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1969
1989
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1970
1990
 
1971
1991
  header_params = {}
@@ -2061,10 +2081,11 @@ module Google
2061
2081
  # Customize the options with defaults
2062
2082
  metadata = @config.rpcs.list_asset_actions.metadata.to_h
2063
2083
 
2064
- # Set x-goog-api-client and x-goog-user-project headers
2084
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2065
2085
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2066
2086
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2067
2087
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2088
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2068
2089
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2069
2090
 
2070
2091
  header_params = {}
@@ -2162,10 +2183,11 @@ module Google
2162
2183
  # Customize the options with defaults
2163
2184
  metadata = @config.rpcs.create_task.metadata.to_h
2164
2185
 
2165
- # Set x-goog-api-client and x-goog-user-project headers
2186
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2166
2187
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2167
2188
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2168
2189
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2190
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2169
2191
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2170
2192
 
2171
2193
  header_params = {}
@@ -2261,10 +2283,11 @@ module Google
2261
2283
  # Customize the options with defaults
2262
2284
  metadata = @config.rpcs.update_task.metadata.to_h
2263
2285
 
2264
- # Set x-goog-api-client and x-goog-user-project headers
2286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2265
2287
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2266
2288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2267
2289
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2290
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2268
2291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2269
2292
 
2270
2293
  header_params = {}
@@ -2355,10 +2378,11 @@ module Google
2355
2378
  # Customize the options with defaults
2356
2379
  metadata = @config.rpcs.delete_task.metadata.to_h
2357
2380
 
2358
- # Set x-goog-api-client and x-goog-user-project headers
2381
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2359
2382
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2360
2383
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2361
2384
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2385
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2362
2386
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2363
2387
 
2364
2388
  header_params = {}
@@ -2458,10 +2482,11 @@ module Google
2458
2482
  # Customize the options with defaults
2459
2483
  metadata = @config.rpcs.list_tasks.metadata.to_h
2460
2484
 
2461
- # Set x-goog-api-client and x-goog-user-project headers
2485
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2462
2486
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2463
2487
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2464
2488
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2489
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2465
2490
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2466
2491
 
2467
2492
  header_params = {}
@@ -2545,10 +2570,11 @@ module Google
2545
2570
  # Customize the options with defaults
2546
2571
  metadata = @config.rpcs.get_task.metadata.to_h
2547
2572
 
2548
- # Set x-goog-api-client and x-goog-user-project headers
2573
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2549
2574
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2550
2575
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2551
2576
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2577
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2552
2578
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2553
2579
 
2554
2580
  header_params = {}
@@ -2644,10 +2670,11 @@ module Google
2644
2670
  # Customize the options with defaults
2645
2671
  metadata = @config.rpcs.list_jobs.metadata.to_h
2646
2672
 
2647
- # Set x-goog-api-client and x-goog-user-project headers
2673
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2648
2674
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2649
2675
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2650
2676
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2677
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2651
2678
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2652
2679
 
2653
2680
  header_params = {}
@@ -2747,10 +2774,11 @@ module Google
2747
2774
  # Customize the options with defaults
2748
2775
  metadata = @config.rpcs.run_task.metadata.to_h
2749
2776
 
2750
- # Set x-goog-api-client and x-goog-user-project headers
2777
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2751
2778
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2752
2779
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2753
2780
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2781
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2754
2782
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2755
2783
 
2756
2784
  header_params = {}
@@ -2833,10 +2861,11 @@ module Google
2833
2861
  # Customize the options with defaults
2834
2862
  metadata = @config.rpcs.get_job.metadata.to_h
2835
2863
 
2836
- # Set x-goog-api-client and x-goog-user-project headers
2864
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2837
2865
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2838
2866
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2839
2867
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2868
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2840
2869
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2841
2870
 
2842
2871
  header_params = {}
@@ -2919,10 +2948,11 @@ module Google
2919
2948
  # Customize the options with defaults
2920
2949
  metadata = @config.rpcs.cancel_job.metadata.to_h
2921
2950
 
2922
- # Set x-goog-api-client and x-goog-user-project headers
2951
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2923
2952
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2924
2953
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2925
2954
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
2955
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2926
2956
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2927
2957
 
2928
2958
  header_params = {}
@@ -3024,10 +3054,11 @@ module Google
3024
3054
  # Customize the options with defaults
3025
3055
  metadata = @config.rpcs.create_environment.metadata.to_h
3026
3056
 
3027
- # Set x-goog-api-client and x-goog-user-project headers
3057
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3028
3058
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3029
3059
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3030
3060
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
3061
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3031
3062
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3032
3063
 
3033
3064
  header_params = {}
@@ -3123,10 +3154,11 @@ module Google
3123
3154
  # Customize the options with defaults
3124
3155
  metadata = @config.rpcs.update_environment.metadata.to_h
3125
3156
 
3126
- # Set x-goog-api-client and x-goog-user-project headers
3157
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3127
3158
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3128
3159
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3129
3160
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
3161
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3130
3162
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3131
3163
 
3132
3164
  header_params = {}
@@ -3218,10 +3250,11 @@ module Google
3218
3250
  # Customize the options with defaults
3219
3251
  metadata = @config.rpcs.delete_environment.metadata.to_h
3220
3252
 
3221
- # Set x-goog-api-client and x-goog-user-project headers
3253
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3222
3254
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3223
3255
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3224
3256
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
3257
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3225
3258
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3226
3259
 
3227
3260
  header_params = {}
@@ -3323,10 +3356,11 @@ module Google
3323
3356
  # Customize the options with defaults
3324
3357
  metadata = @config.rpcs.list_environments.metadata.to_h
3325
3358
 
3326
- # Set x-goog-api-client and x-goog-user-project headers
3359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3327
3360
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3328
3361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3329
3362
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
3363
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3330
3364
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3331
3365
 
3332
3366
  header_params = {}
@@ -3410,10 +3444,11 @@ module Google
3410
3444
  # Customize the options with defaults
3411
3445
  metadata = @config.rpcs.get_environment.metadata.to_h
3412
3446
 
3413
- # Set x-goog-api-client and x-goog-user-project headers
3447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3414
3448
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3415
3449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3416
3450
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
3451
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3417
3452
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3418
3453
 
3419
3454
  header_params = {}
@@ -3519,10 +3554,11 @@ module Google
3519
3554
  # Customize the options with defaults
3520
3555
  metadata = @config.rpcs.list_sessions.metadata.to_h
3521
3556
 
3522
- # Set x-goog-api-client and x-goog-user-project headers
3557
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3523
3558
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3524
3559
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3525
3560
  gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
3561
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3526
3562
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3527
3563
 
3528
3564
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module DataplexService
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 = "dataplex.$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::Dataplex::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::Dataplex::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::Dataplex::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::Dataplex::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::Dataplex::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,