google-cloud-dataplex-v1 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +10 -1
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +132 -0
- data/lib/google/cloud/dataplex/v1/data_profile_pb.rb +1 -2
- data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +1 -1
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +10 -1
- data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +10 -1
- data/lib/google/cloud/dataplex/v1/data_scan_service/paths.rb +0 -19
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +157 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +75 -0
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +10 -1
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/operations.rb +10 -1
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +315 -0
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +75 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +10 -1
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +10 -1
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +673 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +75 -0
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +10 -1
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +152 -0
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/dataplex/v1/data_profile.rb +1 -1
- data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47a573d6c3b484c66f6a1fe0eaef027bb4596455400a15828d6d81ac8990ca82
|
4
|
+
data.tar.gz: c2129eb7b302164b5fe45a17d457d188bbb89058ff1d01f551b140e737ff4bf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 721d2fe28b80e808475e143009334b35b5e399480f8118ed19b4e95d0a706ea8ee33ab7f5b0c300f51e44f2c9d82e5e6024acfc12af509d3f4880deacee83eca
|
7
|
+
data.tar.gz: e2b798ecd5fa62105f918a11b21e76df3ca0d4b3d28ce91b6c6a9140f3879e428dba99ed122d3aecb6436d131905a1f88987dc1604930b5345994730a73e67b6
|
@@ -180,7 +180,8 @@ module Google
|
|
180
180
|
credentials: credentials,
|
181
181
|
endpoint: @config.endpoint,
|
182
182
|
channel_args: @config.channel_args,
|
183
|
-
interceptors: @config.interceptors
|
183
|
+
interceptors: @config.interceptors,
|
184
|
+
channel_pool_config: @config.channel_pool
|
184
185
|
)
|
185
186
|
end
|
186
187
|
|
@@ -1080,6 +1081,14 @@ module Google
|
|
1080
1081
|
end
|
1081
1082
|
end
|
1082
1083
|
|
1084
|
+
##
|
1085
|
+
# Configuration for the channel pool
|
1086
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1087
|
+
#
|
1088
|
+
def channel_pool
|
1089
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1090
|
+
end
|
1091
|
+
|
1083
1092
|
##
|
1084
1093
|
# Configuration RPC class for the ContentService API.
|
1085
1094
|
#
|
@@ -226,6 +226,22 @@ module Google
|
|
226
226
|
# @return [::Google::Cloud::Dataplex::V1::Content]
|
227
227
|
#
|
228
228
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
229
|
+
#
|
230
|
+
# @example Basic example
|
231
|
+
# require "google/cloud/dataplex/v1"
|
232
|
+
#
|
233
|
+
# # Create a client object. The client can be reused for multiple calls.
|
234
|
+
# client = Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
|
235
|
+
#
|
236
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
237
|
+
# request = Google::Cloud::Dataplex::V1::CreateContentRequest.new
|
238
|
+
#
|
239
|
+
# # Call the create_content method.
|
240
|
+
# result = client.create_content request
|
241
|
+
#
|
242
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::Content.
|
243
|
+
# p result
|
244
|
+
#
|
229
245
|
def create_content request, options = nil
|
230
246
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
231
247
|
|
@@ -294,6 +310,22 @@ module Google
|
|
294
310
|
# @return [::Google::Cloud::Dataplex::V1::Content]
|
295
311
|
#
|
296
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/cloud/dataplex/v1"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Cloud::Dataplex::V1::UpdateContentRequest.new
|
322
|
+
#
|
323
|
+
# # Call the update_content method.
|
324
|
+
# result = client.update_content request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::Content.
|
327
|
+
# p result
|
328
|
+
#
|
297
329
|
def update_content request, options = nil
|
298
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
299
331
|
|
@@ -357,6 +389,22 @@ module Google
|
|
357
389
|
# @return [::Google::Protobuf::Empty]
|
358
390
|
#
|
359
391
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
392
|
+
#
|
393
|
+
# @example Basic example
|
394
|
+
# require "google/cloud/dataplex/v1"
|
395
|
+
#
|
396
|
+
# # Create a client object. The client can be reused for multiple calls.
|
397
|
+
# client = Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
|
398
|
+
#
|
399
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
400
|
+
# request = Google::Cloud::Dataplex::V1::DeleteContentRequest.new
|
401
|
+
#
|
402
|
+
# # Call the delete_content method.
|
403
|
+
# result = client.delete_content request
|
404
|
+
#
|
405
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
406
|
+
# p result
|
407
|
+
#
|
360
408
|
def delete_content request, options = nil
|
361
409
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
362
410
|
|
@@ -422,6 +470,22 @@ module Google
|
|
422
470
|
# @return [::Google::Cloud::Dataplex::V1::Content]
|
423
471
|
#
|
424
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
473
|
+
#
|
474
|
+
# @example Basic example
|
475
|
+
# require "google/cloud/dataplex/v1"
|
476
|
+
#
|
477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
478
|
+
# client = Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Dataplex::V1::GetContentRequest.new
|
482
|
+
#
|
483
|
+
# # Call the get_content method.
|
484
|
+
# result = client.get_content request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::Content.
|
487
|
+
# p result
|
488
|
+
#
|
425
489
|
def get_content request, options = nil
|
426
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
427
491
|
|
@@ -493,6 +557,22 @@ module Google
|
|
493
557
|
# @return [::Google::Iam::V1::Policy]
|
494
558
|
#
|
495
559
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
560
|
+
#
|
561
|
+
# @example Basic example
|
562
|
+
# require "google/cloud/dataplex/v1"
|
563
|
+
#
|
564
|
+
# # Create a client object. The client can be reused for multiple calls.
|
565
|
+
# client = Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
|
566
|
+
#
|
567
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
568
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
569
|
+
#
|
570
|
+
# # Call the get_iam_policy method.
|
571
|
+
# result = client.get_iam_policy request
|
572
|
+
#
|
573
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
574
|
+
# p result
|
575
|
+
#
|
496
576
|
def get_iam_policy request, options = nil
|
497
577
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
498
578
|
|
@@ -571,6 +651,22 @@ module Google
|
|
571
651
|
# @return [::Google::Iam::V1::Policy]
|
572
652
|
#
|
573
653
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
654
|
+
#
|
655
|
+
# @example Basic example
|
656
|
+
# require "google/cloud/dataplex/v1"
|
657
|
+
#
|
658
|
+
# # Create a client object. The client can be reused for multiple calls.
|
659
|
+
# client = Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
|
660
|
+
#
|
661
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
662
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
663
|
+
#
|
664
|
+
# # Call the set_iam_policy method.
|
665
|
+
# result = client.set_iam_policy request
|
666
|
+
#
|
667
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
668
|
+
# p result
|
669
|
+
#
|
574
670
|
def set_iam_policy request, options = nil
|
575
671
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
576
672
|
|
@@ -648,6 +744,22 @@ module Google
|
|
648
744
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
649
745
|
#
|
650
746
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
747
|
+
#
|
748
|
+
# @example Basic example
|
749
|
+
# require "google/cloud/dataplex/v1"
|
750
|
+
#
|
751
|
+
# # Create a client object. The client can be reused for multiple calls.
|
752
|
+
# client = Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
|
753
|
+
#
|
754
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
755
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
756
|
+
#
|
757
|
+
# # Call the test_iam_permissions method.
|
758
|
+
# result = client.test_iam_permissions request
|
759
|
+
#
|
760
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
761
|
+
# p result
|
762
|
+
#
|
651
763
|
def test_iam_permissions request, options = nil
|
652
764
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
653
765
|
|
@@ -730,6 +842,26 @@ module Google
|
|
730
842
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Content>]
|
731
843
|
#
|
732
844
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
845
|
+
#
|
846
|
+
# @example Basic example
|
847
|
+
# require "google/cloud/dataplex/v1"
|
848
|
+
#
|
849
|
+
# # Create a client object. The client can be reused for multiple calls.
|
850
|
+
# client = Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
|
851
|
+
#
|
852
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
853
|
+
# request = Google::Cloud::Dataplex::V1::ListContentRequest.new
|
854
|
+
#
|
855
|
+
# # Call the list_content method.
|
856
|
+
# result = client.list_content request
|
857
|
+
#
|
858
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
859
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
860
|
+
# result.each do |item|
|
861
|
+
# # Each element is of type ::Google::Cloud::Dataplex::V1::Content.
|
862
|
+
# p item
|
863
|
+
# end
|
864
|
+
#
|
733
865
|
def list_content request, options = nil
|
734
866
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
735
867
|
|
@@ -5,11 +5,10 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
|
-
require 'google/api/resource_pb'
|
9
8
|
require 'google/cloud/dataplex/v1/processing_pb'
|
10
9
|
|
11
10
|
|
12
|
-
descriptor_data = "\n+google/cloud/dataplex/v1/data_profile.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a
|
11
|
+
descriptor_data = "\n+google/cloud/dataplex/v1/data_profile.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\xa8\x04\n\x0f\x44\x61taProfileSpec\x12\x1d\n\x10sampling_percent\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nrow_filter\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x11post_scan_actions\x18\x04 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataProfileSpec.PostScanActionsB\x03\xe0\x41\x01\x12U\n\x0einclude_fields\x18\x05 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xe0\x41\x01\x12U\n\x0e\x65xclude_fields\x18\x06 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xe0\x41\x01\x1a\xa7\x01\n\x0fPostScanActions\x12\x66\n\x0f\x62igquery_export\x18\x01 \x01(\x0b\x32H.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExportB\x03\xe0\x41\x01\x1a,\n\x0e\x42igQueryExport\x12\x1a\n\rresults_table\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a*\n\x0eSelectedFields\x12\x18\n\x0b\x66ield_names\x18\x01 \x03(\tB\x03\xe0\x41\x01\"\xe4\r\n\x11\x44\x61taProfileResult\x12\x11\n\trow_count\x18\x03 \x01(\x03\x12\x44\n\x07profile\x18\x04 \x01(\x0b\x32\x33.google.cloud.dataplex.v1.DataProfileResult.Profile\x12;\n\x0cscanned_data\x18\x05 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedData\x12h\n\x18post_scan_actions_result\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultB\x03\xe0\x41\x03\x1a\xce\x08\n\x07Profile\x12I\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x39.google.cloud.dataplex.v1.DataProfileResult.Profile.Field\x1a\xf7\x07\n\x05\x46ield\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\t\x12V\n\x07profile\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo\x1a\xeb\x06\n\x0bProfileInfo\x12\x12\n\nnull_ratio\x18\x02 \x01(\x01\x12\x16\n\x0e\x64istinct_ratio\x18\x03 \x01(\x01\x12\x65\n\x0ctop_n_values\x18\x04 \x03(\x0b\x32O.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue\x12o\n\x0estring_profile\x18\x65 \x01(\x0b\x32U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfoH\x00\x12q\n\x0finteger_profile\x18\x66 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfoH\x00\x12o\n\x0e\x64ouble_profile\x18g \x01(\x0b\x32U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfoH\x00\x1aQ\n\x0fStringFieldInfo\x12\x12\n\nmin_length\x18\x01 \x01(\x03\x12\x12\n\nmax_length\x18\x02 \x01(\x03\x12\x16\n\x0e\x61verage_length\x18\x03 \x01(\x01\x1al\n\x10IntegerFieldInfo\x12\x0f\n\x07\x61verage\x18\x01 \x01(\x01\x12\x1a\n\x12standard_deviation\x18\x03 \x01(\x01\x12\x0b\n\x03min\x18\x04 \x01(\x03\x12\x11\n\tquartiles\x18\x06 \x03(\x03\x12\x0b\n\x03max\x18\x05 \x01(\x03\x1ak\n\x0f\x44oubleFieldInfo\x12\x0f\n\x07\x61verage\x18\x01 \x01(\x01\x12\x1a\n\x12standard_deviation\x18\x03 \x01(\x01\x12\x0b\n\x03min\x18\x04 \x01(\x01\x12\x11\n\tquartiles\x18\x06 \x03(\x01\x12\x0b\n\x03max\x18\x05 \x01(\x01\x1a\x38\n\tTopNValue\x12\r\n\x05value\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\r\n\x05ratio\x18\x03 \x01(\x01\x42\x0c\n\nfield_info\x1a\xfd\x02\n\x15PostScanActionsResult\x12{\n\x16\x62igquery_export_result\x18\x01 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResultB\x03\xe0\x41\x03\x1a\xe6\x01\n\x14\x42igQueryExportResult\x12p\n\x05state\x18\x01 \x01(\x0e\x32\\.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\x0b\n\x07SKIPPED\x10\x03\x42l\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taProfileProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3"
|
13
12
|
|
14
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
14
|
|
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/cloud/dataplex/v1/processing_pb'
|
10
10
|
|
11
11
|
|
12
|
-
descriptor_data = "\n+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\
|
12
|
+
descriptor_data = "\n+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/dataplex/v1/processing.proto\"\x8d\x03\n\x0f\x44\x61taQualitySpec\x12=\n\x05rules\x18\x01 \x03(\x0b\x32).google.cloud.dataplex.v1.DataQualityRuleB\x03\xe0\x41\x02\x12\x1d\n\x10sampling_percent\x18\x04 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nrow_filter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x11post_scan_actions\x18\x06 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsB\x03\xe0\x41\x01\x1a\xa7\x01\n\x0fPostScanActions\x12\x66\n\x0f\x62igquery_export\x18\x01 \x01(\x0b\x32H.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportB\x03\xe0\x41\x01\x1a,\n\x0e\x42igQueryExport\x12\x1a\n\rresults_table\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xe7\x05\n\x11\x44\x61taQualityResult\x12\x0e\n\x06passed\x18\x05 \x01(\x08\x12H\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.cloud.dataplex.v1.DataQualityDimensionResult\x12>\n\x05rules\x18\x03 \x03(\x0b\x32/.google.cloud.dataplex.v1.DataQualityRuleResult\x12\x11\n\trow_count\x18\x04 \x01(\x03\x12;\n\x0cscanned_data\x18\x07 \x01(\x0b\x32%.google.cloud.dataplex.v1.ScannedData\x12h\n\x18post_scan_actions_result\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x03\xe0\x41\x03\x1a\xfd\x02\n\x15PostScanActionsResult\x12{\n\x16\x62igquery_export_result\x18\x01 \x01(\x0b\x32V.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResultB\x03\xe0\x41\x03\x1a\xe6\x01\n\x14\x42igQueryExportResult\x12p\n\x05state\x18\x01 \x01(\x0e\x32\\.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\x0b\n\x07SKIPPED\x10\x03\"\xd3\x01\n\x15\x44\x61taQualityRuleResult\x12\x37\n\x04rule\x18\x01 \x01(\x0b\x32).google.cloud.dataplex.v1.DataQualityRule\x12\x0e\n\x06passed\x18\x07 \x01(\x08\x12\x17\n\x0f\x65valuated_count\x18\t \x01(\x03\x12\x14\n\x0cpassed_count\x18\x08 \x01(\x03\x12\x12\n\nnull_count\x18\x05 \x01(\x03\x12\x12\n\npass_ratio\x18\x06 \x01(\x01\x12\x1a\n\x12\x66\x61iling_rows_query\x18\n \x01(\t\",\n\x1a\x44\x61taQualityDimensionResult\x12\x0e\n\x06passed\x18\x03 \x01(\x08\"\xf6\x0c\n\x0f\x44\x61taQualityRule\x12W\n\x11range_expectation\x18\x01 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\x00\x12\\\n\x14non_null_expectation\x18\x02 \x01(\x0b\x32<.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\x00\x12S\n\x0fset_expectation\x18\x03 \x01(\x0b\x32\x38.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\x00\x12W\n\x11regex_expectation\x18\x04 \x01(\x0b\x32:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\x00\x12\x61\n\x16uniqueness_expectation\x18\x64 \x01(\x0b\x32?.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationH\x00\x12j\n\x1bstatistic_range_expectation\x18\x65 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\x00\x12g\n\x19row_condition_expectation\x18\xc8\x01 \x01(\x0b\x32\x41.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\x00\x12k\n\x1btable_condition_expectation\x18\xc9\x01 \x01(\x0b\x32\x43.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationH\x00\x12\x14\n\x06\x63olumn\x18\xf4\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0bignore_null\x18\xf5\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x17\n\tdimension\x18\xf6\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\tthreshold\x18\xf7\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x12\n\x04name\x18\xf8\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0b\x64\x65scription\x18\xf9\x03 \x01(\tB\x03\xe0\x41\x01\x1a\x84\x01\n\x10RangeExpectation\x12\x16\n\tmin_value\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmax_value\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12strict_min_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12strict_max_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x14\n\x12NonNullExpectation\x1a%\n\x0eSetExpectation\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a&\n\x10RegexExpectation\x12\x12\n\x05regex\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\x17\n\x15UniquenessExpectation\x1a\xc2\x02\n\x19StatisticRangeExpectation\x12k\n\tstatistic\x18\x01 \x01(\x0e\x32S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatisticB\x03\xe0\x41\x01\x12\x16\n\tmin_value\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tmax_value\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12strict_min_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12strict_max_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"F\n\x0f\x43olumnStatistic\x12\x17\n\x13STATISTIC_UNDEFINED\x10\x00\x12\x08\n\x04MEAN\x10\x01\x12\x07\n\x03MIN\x10\x02\x12\x07\n\x03MAX\x10\x03\x1a\x36\n\x17RowConditionExpectation\x12\x1b\n\x0esql_expression\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a\x38\n\x19TableConditionExpectation\x12\x1b\n\x0esql_expression\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x0b\n\trule_typeB\xc4\x01\n\x1c\x63om.google.cloud.dataplex.v1B\x10\x44\x61taQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xea\x41U\n\x1d\x62igquery.googleapis.com/Table\x12\x34projects/{project}/datasets/{dataset}/tables/{table}b\x06proto3"
|
13
13
|
|
14
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
15
|
|
@@ -160,7 +160,8 @@ module Google
|
|
160
160
|
credentials: credentials,
|
161
161
|
endpoint: @config.endpoint,
|
162
162
|
channel_args: @config.channel_args,
|
163
|
-
interceptors: @config.interceptors
|
163
|
+
interceptors: @config.interceptors,
|
164
|
+
channel_pool_config: @config.channel_pool
|
164
165
|
)
|
165
166
|
end
|
166
167
|
|
@@ -1109,6 +1110,14 @@ module Google
|
|
1109
1110
|
end
|
1110
1111
|
end
|
1111
1112
|
|
1113
|
+
##
|
1114
|
+
# Configuration for the channel pool
|
1115
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1116
|
+
#
|
1117
|
+
def channel_pool
|
1118
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1119
|
+
end
|
1120
|
+
|
1112
1121
|
##
|
1113
1122
|
# Configuration RPC class for the DataScanService API.
|
1114
1123
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -104,25 +104,6 @@ module Google
|
|
104
104
|
"projects/#{project}/locations/#{location}"
|
105
105
|
end
|
106
106
|
|
107
|
-
##
|
108
|
-
# Create a fully-qualified Table resource string.
|
109
|
-
#
|
110
|
-
# The resource will be in the following format:
|
111
|
-
#
|
112
|
-
# `projects/{project}/datasets/{dataset}/tables/{table}`
|
113
|
-
#
|
114
|
-
# @param project [String]
|
115
|
-
# @param dataset [String]
|
116
|
-
# @param table [String]
|
117
|
-
#
|
118
|
-
# @return [::String]
|
119
|
-
def table_path project:, dataset:, table:
|
120
|
-
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
121
|
-
raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
|
122
|
-
|
123
|
-
"projects/#{project}/datasets/#{dataset}/tables/#{table}"
|
124
|
-
end
|
125
|
-
|
126
107
|
extend self
|
127
108
|
end
|
128
109
|
end
|
@@ -223,6 +223,29 @@ module Google
|
|
223
223
|
# @return [::Gapic::Operation]
|
224
224
|
#
|
225
225
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
226
|
+
#
|
227
|
+
# @example Basic example
|
228
|
+
# require "google/cloud/dataplex/v1"
|
229
|
+
#
|
230
|
+
# # Create a client object. The client can be reused for multiple calls.
|
231
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Rest::Client.new
|
232
|
+
#
|
233
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
234
|
+
# request = Google::Cloud::Dataplex::V1::CreateDataScanRequest.new
|
235
|
+
#
|
236
|
+
# # Call the create_data_scan method.
|
237
|
+
# result = client.create_data_scan request
|
238
|
+
#
|
239
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
240
|
+
# # check the status of an operation, cancel it, or wait for results.
|
241
|
+
# # Here is how to wait for a response.
|
242
|
+
# result.wait_until_done! timeout: 60
|
243
|
+
# if result.response?
|
244
|
+
# p result.response
|
245
|
+
# else
|
246
|
+
# puts "No response received."
|
247
|
+
# end
|
248
|
+
#
|
226
249
|
def create_data_scan request, options = nil
|
227
250
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
228
251
|
|
@@ -293,6 +316,29 @@ module Google
|
|
293
316
|
# @return [::Gapic::Operation]
|
294
317
|
#
|
295
318
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
319
|
+
#
|
320
|
+
# @example Basic example
|
321
|
+
# require "google/cloud/dataplex/v1"
|
322
|
+
#
|
323
|
+
# # Create a client object. The client can be reused for multiple calls.
|
324
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Rest::Client.new
|
325
|
+
#
|
326
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
327
|
+
# request = Google::Cloud::Dataplex::V1::UpdateDataScanRequest.new
|
328
|
+
#
|
329
|
+
# # Call the update_data_scan method.
|
330
|
+
# result = client.update_data_scan request
|
331
|
+
#
|
332
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
333
|
+
# # check the status of an operation, cancel it, or wait for results.
|
334
|
+
# # Here is how to wait for a response.
|
335
|
+
# result.wait_until_done! timeout: 60
|
336
|
+
# if result.response?
|
337
|
+
# p result.response
|
338
|
+
# else
|
339
|
+
# puts "No response received."
|
340
|
+
# end
|
341
|
+
#
|
296
342
|
def update_data_scan request, options = nil
|
297
343
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
298
344
|
|
@@ -359,6 +405,29 @@ module Google
|
|
359
405
|
# @return [::Gapic::Operation]
|
360
406
|
#
|
361
407
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
408
|
+
#
|
409
|
+
# @example Basic example
|
410
|
+
# require "google/cloud/dataplex/v1"
|
411
|
+
#
|
412
|
+
# # Create a client object. The client can be reused for multiple calls.
|
413
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Rest::Client.new
|
414
|
+
#
|
415
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
416
|
+
# request = Google::Cloud::Dataplex::V1::DeleteDataScanRequest.new
|
417
|
+
#
|
418
|
+
# # Call the delete_data_scan method.
|
419
|
+
# result = client.delete_data_scan request
|
420
|
+
#
|
421
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
422
|
+
# # check the status of an operation, cancel it, or wait for results.
|
423
|
+
# # Here is how to wait for a response.
|
424
|
+
# result.wait_until_done! timeout: 60
|
425
|
+
# if result.response?
|
426
|
+
# p result.response
|
427
|
+
# else
|
428
|
+
# puts "No response received."
|
429
|
+
# end
|
430
|
+
#
|
362
431
|
def delete_data_scan request, options = nil
|
363
432
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
364
433
|
|
@@ -427,6 +496,22 @@ module Google
|
|
427
496
|
# @return [::Google::Cloud::Dataplex::V1::DataScan]
|
428
497
|
#
|
429
498
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
499
|
+
#
|
500
|
+
# @example Basic example
|
501
|
+
# require "google/cloud/dataplex/v1"
|
502
|
+
#
|
503
|
+
# # Create a client object. The client can be reused for multiple calls.
|
504
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Rest::Client.new
|
505
|
+
#
|
506
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
507
|
+
# request = Google::Cloud::Dataplex::V1::GetDataScanRequest.new
|
508
|
+
#
|
509
|
+
# # Call the get_data_scan method.
|
510
|
+
# result = client.get_data_scan request
|
511
|
+
#
|
512
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::DataScan.
|
513
|
+
# p result
|
514
|
+
#
|
430
515
|
def get_data_scan request, options = nil
|
431
516
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
432
517
|
|
@@ -506,6 +591,26 @@ module Google
|
|
506
591
|
# @return [::Google::Cloud::Dataplex::V1::ListDataScansResponse]
|
507
592
|
#
|
508
593
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
594
|
+
#
|
595
|
+
# @example Basic example
|
596
|
+
# require "google/cloud/dataplex/v1"
|
597
|
+
#
|
598
|
+
# # Create a client object. The client can be reused for multiple calls.
|
599
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Rest::Client.new
|
600
|
+
#
|
601
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
602
|
+
# request = Google::Cloud::Dataplex::V1::ListDataScansRequest.new
|
603
|
+
#
|
604
|
+
# # Call the list_data_scans method.
|
605
|
+
# result = client.list_data_scans request
|
606
|
+
#
|
607
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
608
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
609
|
+
# result.each do |item|
|
610
|
+
# # Each element is of type ::Google::Cloud::Dataplex::V1::DataScan.
|
611
|
+
# p item
|
612
|
+
# end
|
613
|
+
#
|
509
614
|
def list_data_scans request, options = nil
|
510
615
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
511
616
|
|
@@ -573,6 +678,22 @@ module Google
|
|
573
678
|
# @return [::Google::Cloud::Dataplex::V1::RunDataScanResponse]
|
574
679
|
#
|
575
680
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
681
|
+
#
|
682
|
+
# @example Basic example
|
683
|
+
# require "google/cloud/dataplex/v1"
|
684
|
+
#
|
685
|
+
# # Create a client object. The client can be reused for multiple calls.
|
686
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Rest::Client.new
|
687
|
+
#
|
688
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
689
|
+
# request = Google::Cloud::Dataplex::V1::RunDataScanRequest.new
|
690
|
+
#
|
691
|
+
# # Call the run_data_scan method.
|
692
|
+
# result = client.run_data_scan request
|
693
|
+
#
|
694
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::RunDataScanResponse.
|
695
|
+
# p result
|
696
|
+
#
|
576
697
|
def run_data_scan request, options = nil
|
577
698
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
578
699
|
|
@@ -640,6 +761,22 @@ module Google
|
|
640
761
|
# @return [::Google::Cloud::Dataplex::V1::DataScanJob]
|
641
762
|
#
|
642
763
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
764
|
+
#
|
765
|
+
# @example Basic example
|
766
|
+
# require "google/cloud/dataplex/v1"
|
767
|
+
#
|
768
|
+
# # Create a client object. The client can be reused for multiple calls.
|
769
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Rest::Client.new
|
770
|
+
#
|
771
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
772
|
+
# request = Google::Cloud::Dataplex::V1::GetDataScanJobRequest.new
|
773
|
+
#
|
774
|
+
# # Call the get_data_scan_job method.
|
775
|
+
# result = client.get_data_scan_job request
|
776
|
+
#
|
777
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::DataScanJob.
|
778
|
+
# p result
|
779
|
+
#
|
643
780
|
def get_data_scan_job request, options = nil
|
644
781
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
645
782
|
|
@@ -733,6 +870,26 @@ module Google
|
|
733
870
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::DataScanJob>]
|
734
871
|
#
|
735
872
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
873
|
+
#
|
874
|
+
# @example Basic example
|
875
|
+
# require "google/cloud/dataplex/v1"
|
876
|
+
#
|
877
|
+
# # Create a client object. The client can be reused for multiple calls.
|
878
|
+
# client = Google::Cloud::Dataplex::V1::DataScanService::Rest::Client.new
|
879
|
+
#
|
880
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
881
|
+
# request = Google::Cloud::Dataplex::V1::ListDataScanJobsRequest.new
|
882
|
+
#
|
883
|
+
# # Call the list_data_scan_jobs method.
|
884
|
+
# result = client.list_data_scan_jobs request
|
885
|
+
#
|
886
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
887
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
888
|
+
# result.each do |item|
|
889
|
+
# # Each element is of type ::Google::Cloud::Dataplex::V1::DataScanJob.
|
890
|
+
# p item
|
891
|
+
# end
|
892
|
+
#
|
736
893
|
def list_data_scan_jobs request, options = nil
|
737
894
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
738
895
|
|