google-cloud-dataplex-v1 0.19.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/dataplex/v1/bindings_override.rb +1 -1
- data/lib/google/cloud/dataplex/v1/catalog_pb.rb +101 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/client.rb +2822 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/credentials.rb +47 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/operations.rb +809 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/paths.rb +128 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/client.rb +2647 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/operations.rb +902 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/service_stub.rb +1375 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/rest.rb +58 -0
- data/lib/google/cloud/dataplex/v1/catalog_service.rb +60 -0
- data/lib/google/cloud/dataplex/v1/catalog_services_pb.rb +91 -0
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +19 -8
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +19 -8
- data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +7 -1
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +115 -8
- data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +13 -5
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +108 -8
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +11 -4
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +68 -0
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +33 -15
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/operations.rb +13 -5
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +33 -15
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +11 -4
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +69 -33
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +13 -5
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +69 -33
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +11 -4
- data/lib/google/cloud/dataplex/v1/datascans_pb.rb +4 -2
- data/lib/google/cloud/dataplex/v1/datascans_services_pb.rb +2 -0
- data/lib/google/cloud/dataplex/v1/logs_pb.rb +1 -1
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +21 -9
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +21 -9
- data/lib/google/cloud/dataplex/v1/rest.rb +3 -2
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/lib/google/cloud/dataplex/v1.rb +4 -3
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/dataplex/v1/catalog.rb +1092 -0
- data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +86 -0
- data/proto_docs/google/cloud/dataplex/v1/datascans.rb +21 -0
- data/proto_docs/google/cloud/dataplex/v1/logs.rb +8 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- metadata +15 -2
@@ -365,6 +365,44 @@ module Google
|
|
365
365
|
result
|
366
366
|
end
|
367
367
|
|
368
|
+
##
|
369
|
+
# Baseline implementation for the generate_data_quality_rules REST call
|
370
|
+
#
|
371
|
+
# @param request_pb [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest]
|
372
|
+
# A request object representing the call parameters. Required.
|
373
|
+
# @param options [::Gapic::CallOptions]
|
374
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
375
|
+
#
|
376
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
377
|
+
# @yieldparam result [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesResponse]
|
378
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
379
|
+
#
|
380
|
+
# @return [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesResponse]
|
381
|
+
# A result object deserialized from the server's reply
|
382
|
+
def generate_data_quality_rules request_pb, options = nil
|
383
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
384
|
+
|
385
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_generate_data_quality_rules_request request_pb
|
386
|
+
query_string_params = if query_string_params.any?
|
387
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
388
|
+
else
|
389
|
+
{}
|
390
|
+
end
|
391
|
+
|
392
|
+
response = @client_stub.make_http_request(
|
393
|
+
verb,
|
394
|
+
uri: uri,
|
395
|
+
body: body || "",
|
396
|
+
params: query_string_params,
|
397
|
+
options: options
|
398
|
+
)
|
399
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
400
|
+
result = ::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesResponse.decode_json response.body, ignore_unknown_fields: true
|
401
|
+
|
402
|
+
yield result, operation if block_given?
|
403
|
+
result
|
404
|
+
end
|
405
|
+
|
368
406
|
##
|
369
407
|
# @private
|
370
408
|
#
|
@@ -535,6 +573,36 @@ module Google
|
|
535
573
|
)
|
536
574
|
transcoder.transcode request_pb
|
537
575
|
end
|
576
|
+
|
577
|
+
##
|
578
|
+
# @private
|
579
|
+
#
|
580
|
+
# GRPC transcoding helper method for the generate_data_quality_rules REST call
|
581
|
+
#
|
582
|
+
# @param request_pb [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest]
|
583
|
+
# A request object representing the call parameters. Required.
|
584
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
585
|
+
# Uri, Body, Query string parameters
|
586
|
+
def self.transcode_generate_data_quality_rules_request request_pb
|
587
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
588
|
+
.with_bindings(
|
589
|
+
uri_method: :post,
|
590
|
+
uri_template: "/v1/{name}:generateDataQualityRules",
|
591
|
+
body: "*",
|
592
|
+
matches: [
|
593
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/?$}, false]
|
594
|
+
]
|
595
|
+
)
|
596
|
+
.with_bindings(
|
597
|
+
uri_method: :post,
|
598
|
+
uri_template: "/v1/{name}:generateDataQualityRules",
|
599
|
+
body: "*",
|
600
|
+
matches: [
|
601
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/jobs/[^/]+/?$}, false]
|
602
|
+
]
|
603
|
+
)
|
604
|
+
transcoder.transcode request_pb
|
605
|
+
end
|
538
606
|
end
|
539
607
|
end
|
540
608
|
end
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# currently offered include DataTaxonomy and DataAttribute.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -281,10 +284,11 @@ module Google
|
|
281
284
|
# Customize the options with defaults
|
282
285
|
metadata = @config.rpcs.create_data_taxonomy.metadata.to_h
|
283
286
|
|
284
|
-
# Set x-goog-api-client
|
287
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
285
288
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
286
289
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
287
290
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
291
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
288
292
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
289
293
|
|
290
294
|
header_params = {}
|
@@ -379,10 +383,11 @@ module Google
|
|
379
383
|
# Customize the options with defaults
|
380
384
|
metadata = @config.rpcs.update_data_taxonomy.metadata.to_h
|
381
385
|
|
382
|
-
# Set x-goog-api-client
|
386
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
383
387
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
384
388
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
385
389
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
390
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
386
391
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
387
392
|
|
388
393
|
header_params = {}
|
@@ -477,10 +482,11 @@ module Google
|
|
477
482
|
# Customize the options with defaults
|
478
483
|
metadata = @config.rpcs.delete_data_taxonomy.metadata.to_h
|
479
484
|
|
480
|
-
# Set x-goog-api-client
|
485
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
481
486
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
482
487
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
483
488
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
489
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
484
490
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
485
491
|
|
486
492
|
header_params = {}
|
@@ -583,10 +589,11 @@ module Google
|
|
583
589
|
# Customize the options with defaults
|
584
590
|
metadata = @config.rpcs.list_data_taxonomies.metadata.to_h
|
585
591
|
|
586
|
-
# Set x-goog-api-client
|
592
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
587
593
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
588
594
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
589
595
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
596
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
590
597
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
591
598
|
|
592
599
|
header_params = {}
|
@@ -670,10 +677,11 @@ module Google
|
|
670
677
|
# Customize the options with defaults
|
671
678
|
metadata = @config.rpcs.get_data_taxonomy.metadata.to_h
|
672
679
|
|
673
|
-
# Set x-goog-api-client
|
680
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
674
681
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
675
682
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
676
683
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
684
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
677
685
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
678
686
|
|
679
687
|
header_params = {}
|
@@ -775,10 +783,11 @@ module Google
|
|
775
783
|
# Customize the options with defaults
|
776
784
|
metadata = @config.rpcs.create_data_attribute_binding.metadata.to_h
|
777
785
|
|
778
|
-
# Set x-goog-api-client
|
786
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
779
787
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
780
788
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
781
789
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
790
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
782
791
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
783
792
|
|
784
793
|
header_params = {}
|
@@ -873,10 +882,11 @@ module Google
|
|
873
882
|
# Customize the options with defaults
|
874
883
|
metadata = @config.rpcs.update_data_attribute_binding.metadata.to_h
|
875
884
|
|
876
|
-
# Set x-goog-api-client
|
885
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
877
886
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
878
887
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
879
888
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
889
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
880
890
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
881
891
|
|
882
892
|
header_params = {}
|
@@ -974,10 +984,11 @@ module Google
|
|
974
984
|
# Customize the options with defaults
|
975
985
|
metadata = @config.rpcs.delete_data_attribute_binding.metadata.to_h
|
976
986
|
|
977
|
-
# Set x-goog-api-client
|
987
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
978
988
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
979
989
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
980
990
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
991
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
981
992
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
982
993
|
|
983
994
|
header_params = {}
|
@@ -1083,10 +1094,11 @@ module Google
|
|
1083
1094
|
# Customize the options with defaults
|
1084
1095
|
metadata = @config.rpcs.list_data_attribute_bindings.metadata.to_h
|
1085
1096
|
|
1086
|
-
# Set x-goog-api-client
|
1097
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1087
1098
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1088
1099
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1089
1100
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
1101
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1090
1102
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1091
1103
|
|
1092
1104
|
header_params = {}
|
@@ -1170,10 +1182,11 @@ module Google
|
|
1170
1182
|
# Customize the options with defaults
|
1171
1183
|
metadata = @config.rpcs.get_data_attribute_binding.metadata.to_h
|
1172
1184
|
|
1173
|
-
# Set x-goog-api-client
|
1185
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1174
1186
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1175
1187
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1176
1188
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
1189
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1177
1190
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1178
1191
|
|
1179
1192
|
header_params = {}
|
@@ -1275,10 +1288,11 @@ module Google
|
|
1275
1288
|
# Customize the options with defaults
|
1276
1289
|
metadata = @config.rpcs.create_data_attribute.metadata.to_h
|
1277
1290
|
|
1278
|
-
# Set x-goog-api-client
|
1291
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1279
1292
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1280
1293
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1281
1294
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
1295
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1282
1296
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1283
1297
|
|
1284
1298
|
header_params = {}
|
@@ -1373,10 +1387,11 @@ module Google
|
|
1373
1387
|
# Customize the options with defaults
|
1374
1388
|
metadata = @config.rpcs.update_data_attribute.metadata.to_h
|
1375
1389
|
|
1376
|
-
# Set x-goog-api-client
|
1390
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1377
1391
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1378
1392
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1379
1393
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
1394
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1380
1395
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1381
1396
|
|
1382
1397
|
header_params = {}
|
@@ -1470,10 +1485,11 @@ module Google
|
|
1470
1485
|
# Customize the options with defaults
|
1471
1486
|
metadata = @config.rpcs.delete_data_attribute.metadata.to_h
|
1472
1487
|
|
1473
|
-
# Set x-goog-api-client
|
1488
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1474
1489
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1475
1490
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1476
1491
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
1492
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1477
1493
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1478
1494
|
|
1479
1495
|
header_params = {}
|
@@ -1575,10 +1591,11 @@ module Google
|
|
1575
1591
|
# Customize the options with defaults
|
1576
1592
|
metadata = @config.rpcs.list_data_attributes.metadata.to_h
|
1577
1593
|
|
1578
|
-
# Set x-goog-api-client
|
1594
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1579
1595
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1580
1596
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1581
1597
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
1598
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1582
1599
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1583
1600
|
|
1584
1601
|
header_params = {}
|
@@ -1662,10 +1679,11 @@ module Google
|
|
1662
1679
|
# Customize the options with defaults
|
1663
1680
|
metadata = @config.rpcs.get_data_attribute.metadata.to_h
|
1664
1681
|
|
1665
|
-
# Set x-goog-api-client
|
1682
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1666
1683
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1667
1684
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1668
1685
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
1686
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1669
1687
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1670
1688
|
|
1671
1689
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module DataTaxonomyService
|
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
|
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
|
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
|
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
|
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
|
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,
|
@@ -35,6 +35,9 @@ module Google
|
|
35
35
|
# currently offered include DataTaxonomy and DataAttribute.
|
36
36
|
#
|
37
37
|
class Client
|
38
|
+
# @private
|
39
|
+
API_VERSION = ""
|
40
|
+
|
38
41
|
# @private
|
39
42
|
DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
|
40
43
|
|
@@ -275,12 +278,13 @@ module Google
|
|
275
278
|
# Customize the options with defaults
|
276
279
|
call_metadata = @config.rpcs.create_data_taxonomy.metadata.to_h
|
277
280
|
|
278
|
-
# Set x-goog-api-client
|
281
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
279
282
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
280
283
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
281
284
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
282
285
|
transports_version_send: [:rest]
|
283
286
|
|
287
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
284
288
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
285
289
|
|
286
290
|
options.apply_defaults timeout: @config.rpcs.create_data_taxonomy.timeout,
|
@@ -366,12 +370,13 @@ module Google
|
|
366
370
|
# Customize the options with defaults
|
367
371
|
call_metadata = @config.rpcs.update_data_taxonomy.metadata.to_h
|
368
372
|
|
369
|
-
# Set x-goog-api-client
|
373
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
370
374
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
371
375
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
372
376
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
373
377
|
transports_version_send: [:rest]
|
374
378
|
|
379
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
375
380
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
376
381
|
|
377
382
|
options.apply_defaults timeout: @config.rpcs.update_data_taxonomy.timeout,
|
@@ -457,12 +462,13 @@ module Google
|
|
457
462
|
# Customize the options with defaults
|
458
463
|
call_metadata = @config.rpcs.delete_data_taxonomy.metadata.to_h
|
459
464
|
|
460
|
-
# Set x-goog-api-client
|
465
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
461
466
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
462
467
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
463
468
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
464
469
|
transports_version_send: [:rest]
|
465
470
|
|
471
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
466
472
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
467
473
|
|
468
474
|
options.apply_defaults timeout: @config.rpcs.delete_data_taxonomy.timeout,
|
@@ -556,12 +562,13 @@ module Google
|
|
556
562
|
# Customize the options with defaults
|
557
563
|
call_metadata = @config.rpcs.list_data_taxonomies.metadata.to_h
|
558
564
|
|
559
|
-
# Set x-goog-api-client
|
565
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
560
566
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
561
567
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
562
568
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
563
569
|
transports_version_send: [:rest]
|
564
570
|
|
571
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
565
572
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
566
573
|
|
567
574
|
options.apply_defaults timeout: @config.rpcs.list_data_taxonomies.timeout,
|
@@ -635,12 +642,13 @@ module Google
|
|
635
642
|
# Customize the options with defaults
|
636
643
|
call_metadata = @config.rpcs.get_data_taxonomy.metadata.to_h
|
637
644
|
|
638
|
-
# Set x-goog-api-client
|
645
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
639
646
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
640
647
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
641
648
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
642
649
|
transports_version_send: [:rest]
|
643
650
|
|
651
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
644
652
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
645
653
|
|
646
654
|
options.apply_defaults timeout: @config.rpcs.get_data_taxonomy.timeout,
|
@@ -733,12 +741,13 @@ module Google
|
|
733
741
|
# Customize the options with defaults
|
734
742
|
call_metadata = @config.rpcs.create_data_attribute_binding.metadata.to_h
|
735
743
|
|
736
|
-
# Set x-goog-api-client
|
744
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
737
745
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
738
746
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
739
747
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
740
748
|
transports_version_send: [:rest]
|
741
749
|
|
750
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
742
751
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
743
752
|
|
744
753
|
options.apply_defaults timeout: @config.rpcs.create_data_attribute_binding.timeout,
|
@@ -824,12 +833,13 @@ module Google
|
|
824
833
|
# Customize the options with defaults
|
825
834
|
call_metadata = @config.rpcs.update_data_attribute_binding.metadata.to_h
|
826
835
|
|
827
|
-
# Set x-goog-api-client
|
836
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
828
837
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
829
838
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
830
839
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
831
840
|
transports_version_send: [:rest]
|
832
841
|
|
842
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
833
843
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
834
844
|
|
835
845
|
options.apply_defaults timeout: @config.rpcs.update_data_attribute_binding.timeout,
|
@@ -918,12 +928,13 @@ module Google
|
|
918
928
|
# Customize the options with defaults
|
919
929
|
call_metadata = @config.rpcs.delete_data_attribute_binding.metadata.to_h
|
920
930
|
|
921
|
-
# Set x-goog-api-client
|
931
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
922
932
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
923
933
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
924
934
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
925
935
|
transports_version_send: [:rest]
|
926
936
|
|
937
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
927
938
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
928
939
|
|
929
940
|
options.apply_defaults timeout: @config.rpcs.delete_data_attribute_binding.timeout,
|
@@ -1020,12 +1031,13 @@ module Google
|
|
1020
1031
|
# Customize the options with defaults
|
1021
1032
|
call_metadata = @config.rpcs.list_data_attribute_bindings.metadata.to_h
|
1022
1033
|
|
1023
|
-
# Set x-goog-api-client
|
1034
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1024
1035
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1025
1036
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1026
1037
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
1027
1038
|
transports_version_send: [:rest]
|
1028
1039
|
|
1040
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1029
1041
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1030
1042
|
|
1031
1043
|
options.apply_defaults timeout: @config.rpcs.list_data_attribute_bindings.timeout,
|
@@ -1099,12 +1111,13 @@ module Google
|
|
1099
1111
|
# Customize the options with defaults
|
1100
1112
|
call_metadata = @config.rpcs.get_data_attribute_binding.metadata.to_h
|
1101
1113
|
|
1102
|
-
# Set x-goog-api-client
|
1114
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1103
1115
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1104
1116
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1105
1117
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
1106
1118
|
transports_version_send: [:rest]
|
1107
1119
|
|
1120
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1108
1121
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1109
1122
|
|
1110
1123
|
options.apply_defaults timeout: @config.rpcs.get_data_attribute_binding.timeout,
|
@@ -1197,12 +1210,13 @@ module Google
|
|
1197
1210
|
# Customize the options with defaults
|
1198
1211
|
call_metadata = @config.rpcs.create_data_attribute.metadata.to_h
|
1199
1212
|
|
1200
|
-
# Set x-goog-api-client
|
1213
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1201
1214
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1202
1215
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1203
1216
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
1204
1217
|
transports_version_send: [:rest]
|
1205
1218
|
|
1219
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1206
1220
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1207
1221
|
|
1208
1222
|
options.apply_defaults timeout: @config.rpcs.create_data_attribute.timeout,
|
@@ -1288,12 +1302,13 @@ module Google
|
|
1288
1302
|
# Customize the options with defaults
|
1289
1303
|
call_metadata = @config.rpcs.update_data_attribute.metadata.to_h
|
1290
1304
|
|
1291
|
-
# Set x-goog-api-client
|
1305
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1292
1306
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1293
1307
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1294
1308
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
1295
1309
|
transports_version_send: [:rest]
|
1296
1310
|
|
1311
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1297
1312
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1298
1313
|
|
1299
1314
|
options.apply_defaults timeout: @config.rpcs.update_data_attribute.timeout,
|
@@ -1378,12 +1393,13 @@ module Google
|
|
1378
1393
|
# Customize the options with defaults
|
1379
1394
|
call_metadata = @config.rpcs.delete_data_attribute.metadata.to_h
|
1380
1395
|
|
1381
|
-
# Set x-goog-api-client
|
1396
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1382
1397
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1383
1398
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1384
1399
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
1385
1400
|
transports_version_send: [:rest]
|
1386
1401
|
|
1402
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1387
1403
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1388
1404
|
|
1389
1405
|
options.apply_defaults timeout: @config.rpcs.delete_data_attribute.timeout,
|
@@ -1476,12 +1492,13 @@ module Google
|
|
1476
1492
|
# Customize the options with defaults
|
1477
1493
|
call_metadata = @config.rpcs.list_data_attributes.metadata.to_h
|
1478
1494
|
|
1479
|
-
# Set x-goog-api-client
|
1495
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1480
1496
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1481
1497
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1482
1498
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
1483
1499
|
transports_version_send: [:rest]
|
1484
1500
|
|
1501
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1485
1502
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1486
1503
|
|
1487
1504
|
options.apply_defaults timeout: @config.rpcs.list_data_attributes.timeout,
|
@@ -1555,12 +1572,13 @@ module Google
|
|
1555
1572
|
# Customize the options with defaults
|
1556
1573
|
call_metadata = @config.rpcs.get_data_attribute.metadata.to_h
|
1557
1574
|
|
1558
|
-
# Set x-goog-api-client
|
1575
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1559
1576
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1560
1577
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1561
1578
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
1562
1579
|
transports_version_send: [:rest]
|
1563
1580
|
|
1581
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1564
1582
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1565
1583
|
|
1566
1584
|
options.apply_defaults timeout: @config.rpcs.get_data_attribute.timeout,
|