google-cloud-dataplex-v1 0.10.1 → 0.11.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/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_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/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
- 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
|
|
@@ -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
|
#
|
@@ -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
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -159,7 +159,8 @@ module Google
|
|
159
159
|
credentials: credentials,
|
160
160
|
endpoint: @config.endpoint,
|
161
161
|
channel_args: @config.channel_args,
|
162
|
-
interceptors: @config.interceptors
|
162
|
+
interceptors: @config.interceptors,
|
163
|
+
channel_pool_config: @config.channel_pool
|
163
164
|
)
|
164
165
|
end
|
165
166
|
|
@@ -1792,6 +1793,14 @@ module Google
|
|
1792
1793
|
end
|
1793
1794
|
end
|
1794
1795
|
|
1796
|
+
##
|
1797
|
+
# Configuration for the channel pool
|
1798
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1799
|
+
#
|
1800
|
+
def channel_pool
|
1801
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1802
|
+
end
|
1803
|
+
|
1795
1804
|
##
|
1796
1805
|
# Configuration RPC class for the DataTaxonomyService API.
|
1797
1806
|
#
|
@@ -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
|
#
|