google-cloud-dataplex-v1 0.19.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.
- 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
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# Data Profile, Data Quality) for the data source.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -284,10 +287,11 @@ module Google
|
|
284
287
|
# Customize the options with defaults
|
285
288
|
metadata = @config.rpcs.create_data_scan.metadata.to_h
|
286
289
|
|
287
|
-
# Set x-goog-api-client
|
290
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
288
291
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
289
292
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
290
293
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
294
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
291
295
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
292
296
|
|
293
297
|
header_params = {}
|
@@ -384,10 +388,11 @@ module Google
|
|
384
388
|
# Customize the options with defaults
|
385
389
|
metadata = @config.rpcs.update_data_scan.metadata.to_h
|
386
390
|
|
387
|
-
# Set x-goog-api-client
|
391
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
388
392
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
389
393
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
390
394
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
395
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
391
396
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
392
397
|
|
393
398
|
header_params = {}
|
@@ -480,10 +485,11 @@ module Google
|
|
480
485
|
# Customize the options with defaults
|
481
486
|
metadata = @config.rpcs.delete_data_scan.metadata.to_h
|
482
487
|
|
483
|
-
# Set x-goog-api-client
|
488
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
484
489
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
485
490
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
486
491
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
492
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
487
493
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
488
494
|
|
489
495
|
header_params = {}
|
@@ -571,10 +577,11 @@ module Google
|
|
571
577
|
# Customize the options with defaults
|
572
578
|
metadata = @config.rpcs.get_data_scan.metadata.to_h
|
573
579
|
|
574
|
-
# Set x-goog-api-client
|
580
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
575
581
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
576
582
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
577
583
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
584
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
578
585
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
579
586
|
|
580
587
|
header_params = {}
|
@@ -677,10 +684,11 @@ module Google
|
|
677
684
|
# Customize the options with defaults
|
678
685
|
metadata = @config.rpcs.list_data_scans.metadata.to_h
|
679
686
|
|
680
|
-
# Set x-goog-api-client
|
687
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
681
688
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
682
689
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
683
690
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
691
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
684
692
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
685
693
|
|
686
694
|
header_params = {}
|
@@ -768,10 +776,11 @@ module Google
|
|
768
776
|
# Customize the options with defaults
|
769
777
|
metadata = @config.rpcs.run_data_scan.metadata.to_h
|
770
778
|
|
771
|
-
# Set x-goog-api-client
|
779
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
772
780
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
773
781
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
774
782
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
783
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
775
784
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
776
785
|
|
777
786
|
header_params = {}
|
@@ -858,10 +867,11 @@ module Google
|
|
858
867
|
# Customize the options with defaults
|
859
868
|
metadata = @config.rpcs.get_data_scan_job.metadata.to_h
|
860
869
|
|
861
|
-
# Set x-goog-api-client
|
870
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
862
871
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
863
872
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
864
873
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
874
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
865
875
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
866
876
|
|
867
877
|
header_params = {}
|
@@ -978,10 +988,11 @@ module Google
|
|
978
988
|
# Customize the options with defaults
|
979
989
|
metadata = @config.rpcs.list_data_scan_jobs.metadata.to_h
|
980
990
|
|
981
|
-
# Set x-goog-api-client
|
991
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
982
992
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
983
993
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
984
994
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
995
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
985
996
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
986
997
|
|
987
998
|
header_params = {}
|
@@ -1009,6 +1020,95 @@ module Google
|
|
1009
1020
|
raise ::Google::Cloud::Error.from_error(e)
|
1010
1021
|
end
|
1011
1022
|
|
1023
|
+
##
|
1024
|
+
# Generates recommended DataQualityRule from a data profiling DataScan.
|
1025
|
+
#
|
1026
|
+
# @overload generate_data_quality_rules(request, options = nil)
|
1027
|
+
# Pass arguments to `generate_data_quality_rules` via a request object, either of type
|
1028
|
+
# {::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest} or an equivalent Hash.
|
1029
|
+
#
|
1030
|
+
# @param request [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest, ::Hash]
|
1031
|
+
# A request object representing the call parameters. Required. To specify no
|
1032
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1033
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1034
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1035
|
+
#
|
1036
|
+
# @overload generate_data_quality_rules(name: nil)
|
1037
|
+
# Pass arguments to `generate_data_quality_rules` via keyword arguments. Note that at
|
1038
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1039
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1040
|
+
#
|
1041
|
+
# @param name [::String]
|
1042
|
+
# Required. The name should be either
|
1043
|
+
# * the name of a datascan with at least one successful completed data
|
1044
|
+
# profiling job, or
|
1045
|
+
# * the name of a successful completed data profiling datascan job.
|
1046
|
+
#
|
1047
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1048
|
+
# @yieldparam response [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesResponse]
|
1049
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1050
|
+
#
|
1051
|
+
# @return [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesResponse]
|
1052
|
+
#
|
1053
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1054
|
+
#
|
1055
|
+
# @example Basic example
|
1056
|
+
# require "google/cloud/dataplex/v1"
|
1057
|
+
#
|
1058
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1059
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Client.new
|
1060
|
+
#
|
1061
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1062
|
+
# request = Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest.new
|
1063
|
+
#
|
1064
|
+
# # Call the generate_data_quality_rules method.
|
1065
|
+
# result = client.generate_data_quality_rules request
|
1066
|
+
#
|
1067
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::GenerateDataQualityRulesResponse.
|
1068
|
+
# p result
|
1069
|
+
#
|
1070
|
+
def generate_data_quality_rules request, options = nil
|
1071
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1072
|
+
|
1073
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest
|
1074
|
+
|
1075
|
+
# Converts hash and nil to an options object
|
1076
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1077
|
+
|
1078
|
+
# Customize the options with defaults
|
1079
|
+
metadata = @config.rpcs.generate_data_quality_rules.metadata.to_h
|
1080
|
+
|
1081
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1082
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1083
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1084
|
+
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
1085
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1086
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1087
|
+
|
1088
|
+
header_params = {}
|
1089
|
+
if request.name
|
1090
|
+
header_params["name"] = request.name
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1094
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1095
|
+
|
1096
|
+
options.apply_defaults timeout: @config.rpcs.generate_data_quality_rules.timeout,
|
1097
|
+
metadata: metadata,
|
1098
|
+
retry_policy: @config.rpcs.generate_data_quality_rules.retry_policy
|
1099
|
+
|
1100
|
+
options.apply_defaults timeout: @config.timeout,
|
1101
|
+
metadata: @config.metadata,
|
1102
|
+
retry_policy: @config.retry_policy
|
1103
|
+
|
1104
|
+
@data_scan_service_stub.call_rpc :generate_data_quality_rules, request, options: options do |response, operation|
|
1105
|
+
yield response, operation if block_given?
|
1106
|
+
return response
|
1107
|
+
end
|
1108
|
+
rescue ::GRPC::BadStatus => e
|
1109
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1110
|
+
end
|
1111
|
+
|
1012
1112
|
##
|
1013
1113
|
# Configuration class for the DataScanService API.
|
1014
1114
|
#
|
@@ -1202,6 +1302,11 @@ module Google
|
|
1202
1302
|
# @return [::Gapic::Config::Method]
|
1203
1303
|
#
|
1204
1304
|
attr_reader :list_data_scan_jobs
|
1305
|
+
##
|
1306
|
+
# RPC-specific configuration for `generate_data_quality_rules`
|
1307
|
+
# @return [::Gapic::Config::Method]
|
1308
|
+
#
|
1309
|
+
attr_reader :generate_data_quality_rules
|
1205
1310
|
|
1206
1311
|
# @private
|
1207
1312
|
def initialize parent_rpcs = nil
|
@@ -1221,6 +1326,8 @@ module Google
|
|
1221
1326
|
@get_data_scan_job = ::Gapic::Config::Method.new get_data_scan_job_config
|
1222
1327
|
list_data_scan_jobs_config = parent_rpcs.list_data_scan_jobs if parent_rpcs.respond_to? :list_data_scan_jobs
|
1223
1328
|
@list_data_scan_jobs = ::Gapic::Config::Method.new list_data_scan_jobs_config
|
1329
|
+
generate_data_quality_rules_config = parent_rpcs.generate_data_quality_rules if parent_rpcs.respond_to? :generate_data_quality_rules
|
1330
|
+
@generate_data_quality_rules = ::Gapic::Config::Method.new generate_data_quality_rules_config
|
1224
1331
|
|
1225
1332
|
yield self if block_given?
|
1226
1333
|
end
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module DataScanService
|
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,
|
@@ -36,6 +36,9 @@ module Google
|
|
36
36
|
# Data Profile, Data Quality) for the data source.
|
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
|
|
@@ -278,12 +281,13 @@ module Google
|
|
278
281
|
# Customize the options with defaults
|
279
282
|
call_metadata = @config.rpcs.create_data_scan.metadata.to_h
|
280
283
|
|
281
|
-
# Set x-goog-api-client
|
284
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
282
285
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
283
286
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
284
287
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
285
288
|
transports_version_send: [:rest]
|
286
289
|
|
290
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
287
291
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
288
292
|
|
289
293
|
options.apply_defaults timeout: @config.rpcs.create_data_scan.timeout,
|
@@ -371,12 +375,13 @@ module Google
|
|
371
375
|
# Customize the options with defaults
|
372
376
|
call_metadata = @config.rpcs.update_data_scan.metadata.to_h
|
373
377
|
|
374
|
-
# Set x-goog-api-client
|
378
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
375
379
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
376
380
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
377
381
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
378
382
|
transports_version_send: [:rest]
|
379
383
|
|
384
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
380
385
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
381
386
|
|
382
387
|
options.apply_defaults timeout: @config.rpcs.update_data_scan.timeout,
|
@@ -460,12 +465,13 @@ module Google
|
|
460
465
|
# Customize the options with defaults
|
461
466
|
call_metadata = @config.rpcs.delete_data_scan.metadata.to_h
|
462
467
|
|
463
|
-
# Set x-goog-api-client
|
468
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
464
469
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
465
470
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
466
471
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
467
472
|
transports_version_send: [:rest]
|
468
473
|
|
474
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
469
475
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
470
476
|
|
471
477
|
options.apply_defaults timeout: @config.rpcs.delete_data_scan.timeout,
|
@@ -544,12 +550,13 @@ module Google
|
|
544
550
|
# Customize the options with defaults
|
545
551
|
call_metadata = @config.rpcs.get_data_scan.metadata.to_h
|
546
552
|
|
547
|
-
# Set x-goog-api-client
|
553
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
548
554
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
549
555
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
550
556
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
551
557
|
transports_version_send: [:rest]
|
552
558
|
|
559
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
553
560
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
554
561
|
|
555
562
|
options.apply_defaults timeout: @config.rpcs.get_data_scan.timeout,
|
@@ -643,12 +650,13 @@ module Google
|
|
643
650
|
# Customize the options with defaults
|
644
651
|
call_metadata = @config.rpcs.list_data_scans.metadata.to_h
|
645
652
|
|
646
|
-
# Set x-goog-api-client
|
653
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
647
654
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
648
655
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
649
656
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
650
657
|
transports_version_send: [:rest]
|
651
658
|
|
659
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
652
660
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
653
661
|
|
654
662
|
options.apply_defaults timeout: @config.rpcs.list_data_scans.timeout,
|
@@ -726,12 +734,13 @@ module Google
|
|
726
734
|
# Customize the options with defaults
|
727
735
|
call_metadata = @config.rpcs.run_data_scan.metadata.to_h
|
728
736
|
|
729
|
-
# Set x-goog-api-client
|
737
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
730
738
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
731
739
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
732
740
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
733
741
|
transports_version_send: [:rest]
|
734
742
|
|
743
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
735
744
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
736
745
|
|
737
746
|
options.apply_defaults timeout: @config.rpcs.run_data_scan.timeout,
|
@@ -809,12 +818,13 @@ module Google
|
|
809
818
|
# Customize the options with defaults
|
810
819
|
call_metadata = @config.rpcs.get_data_scan_job.metadata.to_h
|
811
820
|
|
812
|
-
# Set x-goog-api-client
|
821
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
813
822
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
814
823
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
815
824
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
816
825
|
transports_version_send: [:rest]
|
817
826
|
|
827
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
818
828
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
819
829
|
|
820
830
|
options.apply_defaults timeout: @config.rpcs.get_data_scan_job.timeout,
|
@@ -922,12 +932,13 @@ module Google
|
|
922
932
|
# Customize the options with defaults
|
923
933
|
call_metadata = @config.rpcs.list_data_scan_jobs.metadata.to_h
|
924
934
|
|
925
|
-
# Set x-goog-api-client
|
935
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
926
936
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
927
937
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
928
938
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
929
939
|
transports_version_send: [:rest]
|
930
940
|
|
941
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
931
942
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
932
943
|
|
933
944
|
options.apply_defaults timeout: @config.rpcs.list_data_scan_jobs.timeout,
|
@@ -947,6 +958,88 @@ module Google
|
|
947
958
|
raise ::Google::Cloud::Error.from_error(e)
|
948
959
|
end
|
949
960
|
|
961
|
+
##
|
962
|
+
# Generates recommended DataQualityRule from a data profiling DataScan.
|
963
|
+
#
|
964
|
+
# @overload generate_data_quality_rules(request, options = nil)
|
965
|
+
# Pass arguments to `generate_data_quality_rules` via a request object, either of type
|
966
|
+
# {::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest} or an equivalent Hash.
|
967
|
+
#
|
968
|
+
# @param request [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest, ::Hash]
|
969
|
+
# A request object representing the call parameters. Required. To specify no
|
970
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
971
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
972
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
973
|
+
#
|
974
|
+
# @overload generate_data_quality_rules(name: nil)
|
975
|
+
# Pass arguments to `generate_data_quality_rules` via keyword arguments. Note that at
|
976
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
977
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
978
|
+
#
|
979
|
+
# @param name [::String]
|
980
|
+
# Required. The name should be either
|
981
|
+
# * the name of a datascan with at least one successful completed data
|
982
|
+
# profiling job, or
|
983
|
+
# * the name of a successful completed data profiling datascan job.
|
984
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
985
|
+
# @yieldparam result [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesResponse]
|
986
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
987
|
+
#
|
988
|
+
# @return [::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesResponse]
|
989
|
+
#
|
990
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
991
|
+
#
|
992
|
+
# @example Basic example
|
993
|
+
# require "google/cloud/dataplex/v1"
|
994
|
+
#
|
995
|
+
# # Create a client object. The client can be reused for multiple calls.
|
996
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Rest::Client.new
|
997
|
+
#
|
998
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
999
|
+
# request = Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest.new
|
1000
|
+
#
|
1001
|
+
# # Call the generate_data_quality_rules method.
|
1002
|
+
# result = client.generate_data_quality_rules request
|
1003
|
+
#
|
1004
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::GenerateDataQualityRulesResponse.
|
1005
|
+
# p result
|
1006
|
+
#
|
1007
|
+
def generate_data_quality_rules request, options = nil
|
1008
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1009
|
+
|
1010
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GenerateDataQualityRulesRequest
|
1011
|
+
|
1012
|
+
# Converts hash and nil to an options object
|
1013
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1014
|
+
|
1015
|
+
# Customize the options with defaults
|
1016
|
+
call_metadata = @config.rpcs.generate_data_quality_rules.metadata.to_h
|
1017
|
+
|
1018
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1019
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1020
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1021
|
+
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
1022
|
+
transports_version_send: [:rest]
|
1023
|
+
|
1024
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1025
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1026
|
+
|
1027
|
+
options.apply_defaults timeout: @config.rpcs.generate_data_quality_rules.timeout,
|
1028
|
+
metadata: call_metadata,
|
1029
|
+
retry_policy: @config.rpcs.generate_data_quality_rules.retry_policy
|
1030
|
+
|
1031
|
+
options.apply_defaults timeout: @config.timeout,
|
1032
|
+
metadata: @config.metadata,
|
1033
|
+
retry_policy: @config.retry_policy
|
1034
|
+
|
1035
|
+
@data_scan_service_stub.generate_data_quality_rules request, options do |result, operation|
|
1036
|
+
yield result, operation if block_given?
|
1037
|
+
return result
|
1038
|
+
end
|
1039
|
+
rescue ::Gapic::Rest::Error => e
|
1040
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1041
|
+
end
|
1042
|
+
|
950
1043
|
##
|
951
1044
|
# Configuration class for the DataScanService REST API.
|
952
1045
|
#
|
@@ -1127,6 +1220,11 @@ module Google
|
|
1127
1220
|
# @return [::Gapic::Config::Method]
|
1128
1221
|
#
|
1129
1222
|
attr_reader :list_data_scan_jobs
|
1223
|
+
##
|
1224
|
+
# RPC-specific configuration for `generate_data_quality_rules`
|
1225
|
+
# @return [::Gapic::Config::Method]
|
1226
|
+
#
|
1227
|
+
attr_reader :generate_data_quality_rules
|
1130
1228
|
|
1131
1229
|
# @private
|
1132
1230
|
def initialize parent_rpcs = nil
|
@@ -1146,6 +1244,8 @@ module Google
|
|
1146
1244
|
@get_data_scan_job = ::Gapic::Config::Method.new get_data_scan_job_config
|
1147
1245
|
list_data_scan_jobs_config = parent_rpcs.list_data_scan_jobs if parent_rpcs.respond_to? :list_data_scan_jobs
|
1148
1246
|
@list_data_scan_jobs = ::Gapic::Config::Method.new list_data_scan_jobs_config
|
1247
|
+
generate_data_quality_rules_config = parent_rpcs.generate_data_quality_rules if parent_rpcs.respond_to? :generate_data_quality_rules
|
1248
|
+
@generate_data_quality_rules = ::Gapic::Config::Method.new generate_data_quality_rules_config
|
1149
1249
|
|
1150
1250
|
yield self if block_given?
|
1151
1251
|
end
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
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
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|