google-cloud-dataplex-v1 0.6.0 → 0.7.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/README.md +1 -1
- data/lib/google/cloud/dataplex/v1/bindings_override.rb +327 -0
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +4 -6
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +969 -0
- data/lib/google/cloud/dataplex/v1/content_service/rest/service_stub.rb +584 -0
- data/lib/google/cloud/dataplex/v1/content_service/rest.rb +53 -0
- data/lib/google/cloud/dataplex/v1/content_service.rb +6 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +55 -53
- data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +12 -14
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +948 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +793 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +523 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest.rb +56 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service.rb +10 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +100 -120
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +12 -14
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +2910 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +793 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +1947 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest.rb +58 -0
- data/lib/google/cloud/dataplex/v1/dataplex_service.rb +6 -0
- data/lib/google/cloud/dataplex/v1/datascans_services_pb.rb +11 -8
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +8 -12
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +1051 -0
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/service_stub.rb +582 -0
- data/lib/google/cloud/dataplex/v1/metadata_service/rest.rb +54 -0
- data/lib/google/cloud/dataplex/v1/metadata_service.rb +6 -0
- data/lib/google/cloud/dataplex/v1/rest.rb +41 -0
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/lib/google/cloud/dataplex/v1.rb +5 -0
- data/proto_docs/google/cloud/dataplex/v1/datascans.rb +49 -41
- metadata +28 -12
@@ -29,6 +29,10 @@ module Google
|
|
29
29
|
##
|
30
30
|
# Client for the DataScanService service.
|
31
31
|
#
|
32
|
+
# DataScanService manages DataScan resources which can be configured to run
|
33
|
+
# various types of data scanning workload and generate enriched metadata (e.g.
|
34
|
+
# Data Profile, Data Quality) for the data source.
|
35
|
+
#
|
32
36
|
class Client
|
33
37
|
include Paths
|
34
38
|
|
@@ -184,7 +188,7 @@ module Google
|
|
184
188
|
# Service calls
|
185
189
|
|
186
190
|
##
|
187
|
-
# Creates a
|
191
|
+
# Creates a DataScan resource.
|
188
192
|
#
|
189
193
|
# @overload create_data_scan(request, options = nil)
|
190
194
|
# Pass arguments to `create_data_scan` via a request object, either of type
|
@@ -203,13 +207,14 @@ module Google
|
|
203
207
|
#
|
204
208
|
# @param parent [::String]
|
205
209
|
# Required. The resource name of the parent location:
|
206
|
-
# projects
|
207
|
-
# where `
|
210
|
+
# `projects/{project}/locations/{location_id}`
|
211
|
+
# where `project` refers to a *project_id* or *project_number* and
|
208
212
|
# `location_id` refers to a GCP region.
|
209
213
|
# @param data_scan [::Google::Cloud::Dataplex::V1::DataScan, ::Hash]
|
210
214
|
# Required. DataScan resource.
|
211
215
|
# @param data_scan_id [::String]
|
212
216
|
# Required. DataScan identifier.
|
217
|
+
#
|
213
218
|
# * Must contain only lowercase letters, numbers and hyphens.
|
214
219
|
# * Must start with a letter.
|
215
220
|
# * Must end with a number or a letter.
|
@@ -236,14 +241,14 @@ module Google
|
|
236
241
|
# # Call the create_data_scan method.
|
237
242
|
# result = client.create_data_scan request
|
238
243
|
#
|
239
|
-
# # The returned object is of type Gapic::Operation. You can use
|
240
|
-
# #
|
241
|
-
# #
|
244
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
245
|
+
# # check the status of an operation, cancel it, or wait for results.
|
246
|
+
# # Here is how to wait for a response.
|
242
247
|
# result.wait_until_done! timeout: 60
|
243
248
|
# if result.response?
|
244
249
|
# p result.response
|
245
250
|
# else
|
246
|
-
# puts "
|
251
|
+
# puts "No response received."
|
247
252
|
# end
|
248
253
|
#
|
249
254
|
def create_data_scan request, options = nil
|
@@ -289,7 +294,7 @@ module Google
|
|
289
294
|
end
|
290
295
|
|
291
296
|
##
|
292
|
-
#
|
297
|
+
# Updates a DataScan resource.
|
293
298
|
#
|
294
299
|
# @overload update_data_scan(request, options = nil)
|
295
300
|
# Pass arguments to `update_data_scan` via a request object, either of type
|
@@ -307,7 +312,8 @@ module Google
|
|
307
312
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
308
313
|
#
|
309
314
|
# @param data_scan [::Google::Cloud::Dataplex::V1::DataScan, ::Hash]
|
310
|
-
# Required.
|
315
|
+
# Required. DataScan resource to be updated.
|
316
|
+
#
|
311
317
|
# Only fields specified in `update_mask` are updated.
|
312
318
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
313
319
|
# Required. Mask of fields to update.
|
@@ -332,14 +338,14 @@ module Google
|
|
332
338
|
# # Call the update_data_scan method.
|
333
339
|
# result = client.update_data_scan request
|
334
340
|
#
|
335
|
-
# # The returned object is of type Gapic::Operation. You can use
|
336
|
-
# #
|
337
|
-
# #
|
341
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
342
|
+
# # check the status of an operation, cancel it, or wait for results.
|
343
|
+
# # Here is how to wait for a response.
|
338
344
|
# result.wait_until_done! timeout: 60
|
339
345
|
# if result.response?
|
340
346
|
# p result.response
|
341
347
|
# else
|
342
|
-
# puts "
|
348
|
+
# puts "No response received."
|
343
349
|
# end
|
344
350
|
#
|
345
351
|
def update_data_scan request, options = nil
|
@@ -385,7 +391,7 @@ module Google
|
|
385
391
|
end
|
386
392
|
|
387
393
|
##
|
388
|
-
#
|
394
|
+
# Deletes a DataScan resource.
|
389
395
|
#
|
390
396
|
# @overload delete_data_scan(request, options = nil)
|
391
397
|
# Pass arguments to `delete_data_scan` via a request object, either of type
|
@@ -404,8 +410,8 @@ module Google
|
|
404
410
|
#
|
405
411
|
# @param name [::String]
|
406
412
|
# Required. The resource name of the dataScan:
|
407
|
-
# projects
|
408
|
-
# where `
|
413
|
+
# `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`
|
414
|
+
# where `project` refers to a *project_id* or *project_number* and
|
409
415
|
# `location_id` refers to a GCP region.
|
410
416
|
#
|
411
417
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -428,14 +434,14 @@ module Google
|
|
428
434
|
# # Call the delete_data_scan method.
|
429
435
|
# result = client.delete_data_scan request
|
430
436
|
#
|
431
|
-
# # The returned object is of type Gapic::Operation. You can use
|
432
|
-
# #
|
433
|
-
# #
|
437
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
438
|
+
# # check the status of an operation, cancel it, or wait for results.
|
439
|
+
# # Here is how to wait for a response.
|
434
440
|
# result.wait_until_done! timeout: 60
|
435
441
|
# if result.response?
|
436
442
|
# p result.response
|
437
443
|
# else
|
438
|
-
# puts "
|
444
|
+
# puts "No response received."
|
439
445
|
# end
|
440
446
|
#
|
441
447
|
def delete_data_scan request, options = nil
|
@@ -481,7 +487,7 @@ module Google
|
|
481
487
|
end
|
482
488
|
|
483
489
|
##
|
484
|
-
#
|
490
|
+
# Gets a DataScan resource.
|
485
491
|
#
|
486
492
|
# @overload get_data_scan(request, options = nil)
|
487
493
|
# Pass arguments to `get_data_scan` via a request object, either of type
|
@@ -500,12 +506,11 @@ module Google
|
|
500
506
|
#
|
501
507
|
# @param name [::String]
|
502
508
|
# Required. The resource name of the dataScan:
|
503
|
-
# projects
|
504
|
-
# where `
|
509
|
+
# `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`
|
510
|
+
# where `project` refers to a *project_id* or *project_number* and
|
505
511
|
# `location_id` refers to a GCP region.
|
506
512
|
# @param view [::Google::Cloud::Dataplex::V1::GetDataScanRequest::DataScanView]
|
507
|
-
# Optional.
|
508
|
-
# Defaults to `BASIC`.
|
513
|
+
# Optional. Select the DataScan view to return. Defaults to `BASIC`.
|
509
514
|
#
|
510
515
|
# @yield [response, operation] Access the result along with the RPC operation
|
511
516
|
# @yieldparam response [::Google::Cloud::Dataplex::V1::DataScan]
|
@@ -572,7 +577,7 @@ module Google
|
|
572
577
|
end
|
573
578
|
|
574
579
|
##
|
575
|
-
# Lists
|
580
|
+
# Lists DataScans.
|
576
581
|
#
|
577
582
|
# @overload list_data_scans(request, options = nil)
|
578
583
|
# Pass arguments to `list_data_scans` via a request object, either of type
|
@@ -590,8 +595,9 @@ module Google
|
|
590
595
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
591
596
|
#
|
592
597
|
# @param parent [::String]
|
593
|
-
# Required.
|
594
|
-
#
|
598
|
+
# Required. The resource name of the parent location:
|
599
|
+
# `projects/{project}/locations/{location_id}`
|
600
|
+
# where `project` refers to a *project_id* or *project_number* and
|
595
601
|
# `location_id` refers to a GCP region.
|
596
602
|
# @param page_size [::Integer]
|
597
603
|
# Optional. Maximum number of dataScans to return. The service may return
|
@@ -605,7 +611,7 @@ module Google
|
|
605
611
|
# @param filter [::String]
|
606
612
|
# Optional. Filter request.
|
607
613
|
# @param order_by [::String]
|
608
|
-
# Optional. Order by fields (name or create_time) for the result.
|
614
|
+
# Optional. Order by fields (`name` or `create_time`) for the result.
|
609
615
|
# If not specified, the ordering is undefined.
|
610
616
|
#
|
611
617
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -628,13 +634,11 @@ module Google
|
|
628
634
|
# # Call the list_data_scans method.
|
629
635
|
# result = client.list_data_scans request
|
630
636
|
#
|
631
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
632
|
-
# #
|
633
|
-
#
|
634
|
-
# # methods are also available for managing paging directly.
|
635
|
-
# result.each do |response|
|
637
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
638
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
639
|
+
# result.each do |item|
|
636
640
|
# # Each element is of type ::Google::Cloud::Dataplex::V1::DataScan.
|
637
|
-
# p
|
641
|
+
# p item
|
638
642
|
# end
|
639
643
|
#
|
640
644
|
def list_data_scans request, options = nil
|
@@ -680,7 +684,7 @@ module Google
|
|
680
684
|
end
|
681
685
|
|
682
686
|
##
|
683
|
-
#
|
687
|
+
# Runs an on-demand execution of a DataScan
|
684
688
|
#
|
685
689
|
# @overload run_data_scan(request, options = nil)
|
686
690
|
# Pass arguments to `run_data_scan` via a request object, either of type
|
@@ -699,10 +703,11 @@ module Google
|
|
699
703
|
#
|
700
704
|
# @param name [::String]
|
701
705
|
# Required. The resource name of the DataScan:
|
702
|
-
# projects
|
703
|
-
# where `
|
706
|
+
# `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`.
|
707
|
+
# where `project` refers to a *project_id* or *project_number* and
|
704
708
|
# `location_id` refers to a GCP region.
|
705
|
-
#
|
709
|
+
#
|
710
|
+
# Only **OnDemand** data scans are allowed.
|
706
711
|
#
|
707
712
|
# @yield [response, operation] Access the result along with the RPC operation
|
708
713
|
# @yieldparam response [::Google::Cloud::Dataplex::V1::RunDataScanResponse]
|
@@ -769,7 +774,7 @@ module Google
|
|
769
774
|
end
|
770
775
|
|
771
776
|
##
|
772
|
-
#
|
777
|
+
# Gets a DataScanJob resource.
|
773
778
|
#
|
774
779
|
# @overload get_data_scan_job(request, options = nil)
|
775
780
|
# Pass arguments to `get_data_scan_job` via a request object, either of type
|
@@ -788,12 +793,11 @@ module Google
|
|
788
793
|
#
|
789
794
|
# @param name [::String]
|
790
795
|
# Required. The resource name of the DataScanJob:
|
791
|
-
# projects
|
792
|
-
# where `
|
796
|
+
# `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/dataScanJobs/{data_scan_job_id}`
|
797
|
+
# where `project` refers to a *project_id* or *project_number* and
|
793
798
|
# `location_id` refers to a GCP region.
|
794
799
|
# @param view [::Google::Cloud::Dataplex::V1::GetDataScanJobRequest::DataScanJobView]
|
795
|
-
# Optional.
|
796
|
-
# Defaults to `BASIC`.
|
800
|
+
# Optional. Select the DataScanJob view to return. Defaults to `BASIC`.
|
797
801
|
#
|
798
802
|
# @yield [response, operation] Access the result along with the RPC operation
|
799
803
|
# @yieldparam response [::Google::Cloud::Dataplex::V1::DataScanJob]
|
@@ -860,7 +864,7 @@ module Google
|
|
860
864
|
end
|
861
865
|
|
862
866
|
##
|
863
|
-
# Lists DataScanJobs under the given
|
867
|
+
# Lists DataScanJobs under the given DataScan.
|
864
868
|
#
|
865
869
|
# @overload list_data_scan_jobs(request, options = nil)
|
866
870
|
# Pass arguments to `list_data_scan_jobs` via a request object, either of type
|
@@ -879,8 +883,8 @@ module Google
|
|
879
883
|
#
|
880
884
|
# @param parent [::String]
|
881
885
|
# Required. The resource name of the parent environment:
|
882
|
-
# projects
|
883
|
-
# where `
|
886
|
+
# `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`
|
887
|
+
# where `project` refers to a *project_id* or *project_number* and
|
884
888
|
# `location_id` refers to a GCP region.
|
885
889
|
# @param page_size [::Integer]
|
886
890
|
# Optional. Maximum number of DataScanJobs to return. The service may return
|
@@ -913,13 +917,11 @@ module Google
|
|
913
917
|
# # Call the list_data_scan_jobs method.
|
914
918
|
# result = client.list_data_scan_jobs request
|
915
919
|
#
|
916
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
917
|
-
# #
|
918
|
-
#
|
919
|
-
# # methods are also available for managing paging directly.
|
920
|
-
# result.each do |response|
|
920
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
921
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
922
|
+
# result.each do |item|
|
921
923
|
# # Each element is of type ::Google::Cloud::Dataplex::V1::DataScanJob.
|
922
|
-
# p
|
924
|
+
# p item
|
923
925
|
# end
|
924
926
|
#
|
925
927
|
def list_data_scan_jobs request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|