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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataplex/v1/bindings_override.rb +327 -0
  4. data/lib/google/cloud/dataplex/v1/content_service/client.rb +4 -6
  5. data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +969 -0
  6. data/lib/google/cloud/dataplex/v1/content_service/rest/service_stub.rb +584 -0
  7. data/lib/google/cloud/dataplex/v1/content_service/rest.rb +53 -0
  8. data/lib/google/cloud/dataplex/v1/content_service.rb +6 -0
  9. data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +55 -53
  10. data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +12 -14
  11. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +948 -0
  12. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +793 -0
  13. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +523 -0
  14. data/lib/google/cloud/dataplex/v1/data_scan_service/rest.rb +56 -0
  15. data/lib/google/cloud/dataplex/v1/data_scan_service.rb +10 -0
  16. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +100 -120
  17. data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +12 -14
  18. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +2910 -0
  19. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +793 -0
  20. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +1947 -0
  21. data/lib/google/cloud/dataplex/v1/dataplex_service/rest.rb +58 -0
  22. data/lib/google/cloud/dataplex/v1/dataplex_service.rb +6 -0
  23. data/lib/google/cloud/dataplex/v1/datascans_services_pb.rb +11 -8
  24. data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +8 -12
  25. data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +1051 -0
  26. data/lib/google/cloud/dataplex/v1/metadata_service/rest/service_stub.rb +582 -0
  27. data/lib/google/cloud/dataplex/v1/metadata_service/rest.rb +54 -0
  28. data/lib/google/cloud/dataplex/v1/metadata_service.rb +6 -0
  29. data/lib/google/cloud/dataplex/v1/rest.rb +41 -0
  30. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  31. data/lib/google/cloud/dataplex/v1.rb +5 -0
  32. data/proto_docs/google/cloud/dataplex/v1/datascans.rb +49 -41
  33. 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 dataScan resource.
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/\\{project}/locations/\\{location_id}
207
- # where `{project}` refers to a project_id or project_number and
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 this
240
- # # object to check the status of an operation, cancel it, or wait
241
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # Update the dataScan resource.
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. Update description.
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 this
336
- # # object to check the status of an operation, cancel it, or wait
337
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # Delete the dataScan resource.
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/\\{project}/locations/\\{location_id}/dataScans/\\{data_scan_id}
408
- # where `{project}` refers to a project_id or project_number and
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 this
432
- # # object to check the status of an operation, cancel it, or wait
433
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # Get dataScan resource.
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/\\{project}/locations/\\{location_id}/dataScans/\\{data_scan_id}
504
- # where `{project}` refers to a project_id or project_number and
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. Used to select the subset of DataScan information to return.
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 dataScans.
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. projects/\\{project}/locations/\\{location_id}
594
- # where `{project}` refers to a project_id or project_number and
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
- # # iterate over all elements by calling #each, and the enumerable
633
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # Run an on demand execution of a DataScan.
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/\\{project}/locations/\\{location_id}/dataScans/\\{data_scan_id}.
703
- # where `{project}` refers to a project_id or project_number and
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
- # Only on-demand DataScans are allowed.
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
- # Get DataScanJob resource.
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/\\{project}/locations/\\{location_id}/dataScans/\\{data_scan_id}/dataScanJobs/\\{data_scan_job_id}
792
- # where `{project}` refers to a project_id or project_number and
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. Used to select the subset of DataScan information to return.
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 dataScan.
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/\\{project}/locations/\\{location_id}/dataScans/\\{data_scan_id}
883
- # where `{project}` refers to a project_id or project_number and
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
- # # iterate over all elements by calling #each, and the enumerable
918
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil