google-cloud-data_catalog-v1 0.8.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +972 -83
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +273 -41
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +60 -9
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/bigquery_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/common_pb.rb +6 -0
- data/lib/google/cloud/datacatalog/v1/data_source_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +47 -2
- data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +27 -3
- data/lib/google/cloud/datacatalog/v1/gcs_fileset_spec_pb.rb +2 -2
- data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +2 -2
- data/lib/google/cloud/datacatalog/v1/policytagmanager_services_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +3 -3
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_services_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/schema_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/search_pb.rb +4 -2
- data/lib/google/cloud/datacatalog/v1/table_spec_pb.rb +3 -2
- data/lib/google/cloud/datacatalog/v1/tags_pb.rb +2 -2
- data/lib/google/cloud/datacatalog/v1/timestamps_pb.rb +2 -2
- data/lib/google/cloud/datacatalog/v1/usage_pb.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/datacatalog/v1/common.rb +12 -0
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +133 -12
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +2 -4
- data/proto_docs/google/cloud/datacatalog/v1/search.rb +7 -0
- data/proto_docs/google/cloud/datacatalog/v1/table_spec.rb +3 -0
- data/proto_docs/google/cloud/datacatalog/v1/tags.rb +4 -25
- metadata +3 -3
@@ -184,6 +184,21 @@ module Google
|
|
184
184
|
#
|
185
185
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
186
186
|
#
|
187
|
+
# @example Basic example
|
188
|
+
# require "google/cloud/data_catalog/v1"
|
189
|
+
#
|
190
|
+
# # Create a client object. The client can be reused for multiple calls.
|
191
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
192
|
+
#
|
193
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
194
|
+
# request = Google::Cloud::DataCatalog::V1::CreateTaxonomyRequest.new
|
195
|
+
#
|
196
|
+
# # Call the create_taxonomy method.
|
197
|
+
# result = client.create_taxonomy request
|
198
|
+
#
|
199
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Taxonomy.
|
200
|
+
# p result
|
201
|
+
#
|
187
202
|
def create_taxonomy request, options = nil
|
188
203
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
189
204
|
|
@@ -201,9 +216,11 @@ module Google
|
|
201
216
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
202
217
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
203
218
|
|
204
|
-
header_params = {
|
205
|
-
|
206
|
-
|
219
|
+
header_params = {}
|
220
|
+
if request.parent
|
221
|
+
header_params["parent"] = request.parent
|
222
|
+
end
|
223
|
+
|
207
224
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
208
225
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
209
226
|
|
@@ -256,6 +273,21 @@ module Google
|
|
256
273
|
#
|
257
274
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
258
275
|
#
|
276
|
+
# @example Basic example
|
277
|
+
# require "google/cloud/data_catalog/v1"
|
278
|
+
#
|
279
|
+
# # Create a client object. The client can be reused for multiple calls.
|
280
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
281
|
+
#
|
282
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
283
|
+
# request = Google::Cloud::DataCatalog::V1::DeleteTaxonomyRequest.new
|
284
|
+
#
|
285
|
+
# # Call the delete_taxonomy method.
|
286
|
+
# result = client.delete_taxonomy request
|
287
|
+
#
|
288
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
289
|
+
# p result
|
290
|
+
#
|
259
291
|
def delete_taxonomy request, options = nil
|
260
292
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
261
293
|
|
@@ -273,9 +305,11 @@ module Google
|
|
273
305
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
274
306
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
275
307
|
|
276
|
-
header_params = {
|
277
|
-
|
278
|
-
|
308
|
+
header_params = {}
|
309
|
+
if request.name
|
310
|
+
header_params["name"] = request.name
|
311
|
+
end
|
312
|
+
|
279
313
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
280
314
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
281
315
|
|
@@ -332,6 +366,21 @@ module Google
|
|
332
366
|
#
|
333
367
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
334
368
|
#
|
369
|
+
# @example Basic example
|
370
|
+
# require "google/cloud/data_catalog/v1"
|
371
|
+
#
|
372
|
+
# # Create a client object. The client can be reused for multiple calls.
|
373
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
374
|
+
#
|
375
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
376
|
+
# request = Google::Cloud::DataCatalog::V1::UpdateTaxonomyRequest.new
|
377
|
+
#
|
378
|
+
# # Call the update_taxonomy method.
|
379
|
+
# result = client.update_taxonomy request
|
380
|
+
#
|
381
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Taxonomy.
|
382
|
+
# p result
|
383
|
+
#
|
335
384
|
def update_taxonomy request, options = nil
|
336
385
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
337
386
|
|
@@ -349,9 +398,11 @@ module Google
|
|
349
398
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
350
399
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
351
400
|
|
352
|
-
header_params = {
|
353
|
-
|
354
|
-
|
401
|
+
header_params = {}
|
402
|
+
if request.taxonomy&.name
|
403
|
+
header_params["taxonomy.name"] = request.taxonomy.name
|
404
|
+
end
|
405
|
+
|
355
406
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
356
407
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
357
408
|
|
@@ -409,6 +460,27 @@ module Google
|
|
409
460
|
#
|
410
461
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
411
462
|
#
|
463
|
+
# @example Basic example
|
464
|
+
# require "google/cloud/data_catalog/v1"
|
465
|
+
#
|
466
|
+
# # Create a client object. The client can be reused for multiple calls.
|
467
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
468
|
+
#
|
469
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
470
|
+
# request = Google::Cloud::DataCatalog::V1::ListTaxonomiesRequest.new
|
471
|
+
#
|
472
|
+
# # Call the list_taxonomies method.
|
473
|
+
# result = client.list_taxonomies request
|
474
|
+
#
|
475
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
476
|
+
# # iterate over all elements by calling #each, and the enumerable
|
477
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
478
|
+
# # methods are also available for managing paging directly.
|
479
|
+
# result.each do |response|
|
480
|
+
# # Each element is of type ::Google::Cloud::DataCatalog::V1::Taxonomy.
|
481
|
+
# p response
|
482
|
+
# end
|
483
|
+
#
|
412
484
|
def list_taxonomies request, options = nil
|
413
485
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
414
486
|
|
@@ -426,9 +498,11 @@ module Google
|
|
426
498
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
427
499
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
428
500
|
|
429
|
-
header_params = {
|
430
|
-
|
431
|
-
|
501
|
+
header_params = {}
|
502
|
+
if request.parent
|
503
|
+
header_params["parent"] = request.parent
|
504
|
+
end
|
505
|
+
|
432
506
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
433
507
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
434
508
|
|
@@ -478,6 +552,21 @@ module Google
|
|
478
552
|
#
|
479
553
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
480
554
|
#
|
555
|
+
# @example Basic example
|
556
|
+
# require "google/cloud/data_catalog/v1"
|
557
|
+
#
|
558
|
+
# # Create a client object. The client can be reused for multiple calls.
|
559
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
560
|
+
#
|
561
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
562
|
+
# request = Google::Cloud::DataCatalog::V1::GetTaxonomyRequest.new
|
563
|
+
#
|
564
|
+
# # Call the get_taxonomy method.
|
565
|
+
# result = client.get_taxonomy request
|
566
|
+
#
|
567
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Taxonomy.
|
568
|
+
# p result
|
569
|
+
#
|
481
570
|
def get_taxonomy request, options = nil
|
482
571
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
483
572
|
|
@@ -495,9 +584,11 @@ module Google
|
|
495
584
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
496
585
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
497
586
|
|
498
|
-
header_params = {
|
499
|
-
|
500
|
-
|
587
|
+
header_params = {}
|
588
|
+
if request.name
|
589
|
+
header_params["name"] = request.name
|
590
|
+
end
|
591
|
+
|
501
592
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
502
593
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
503
594
|
|
@@ -536,8 +627,7 @@ module Google
|
|
536
627
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
537
628
|
#
|
538
629
|
# @param parent [::String]
|
539
|
-
# Required. Resource name of the taxonomy that the policy tag will belong to
|
540
|
-
# />
|
630
|
+
# Required. Resource name of the taxonomy that the policy tag will belong to.
|
541
631
|
# @param policy_tag [::Google::Cloud::DataCatalog::V1::PolicyTag, ::Hash]
|
542
632
|
# The policy tag to create.
|
543
633
|
#
|
@@ -549,6 +639,21 @@ module Google
|
|
549
639
|
#
|
550
640
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
551
641
|
#
|
642
|
+
# @example Basic example
|
643
|
+
# require "google/cloud/data_catalog/v1"
|
644
|
+
#
|
645
|
+
# # Create a client object. The client can be reused for multiple calls.
|
646
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
647
|
+
#
|
648
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
649
|
+
# request = Google::Cloud::DataCatalog::V1::CreatePolicyTagRequest.new
|
650
|
+
#
|
651
|
+
# # Call the create_policy_tag method.
|
652
|
+
# result = client.create_policy_tag request
|
653
|
+
#
|
654
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::PolicyTag.
|
655
|
+
# p result
|
656
|
+
#
|
552
657
|
def create_policy_tag request, options = nil
|
553
658
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
554
659
|
|
@@ -566,9 +671,11 @@ module Google
|
|
566
671
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
567
672
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
568
673
|
|
569
|
-
header_params = {
|
570
|
-
|
571
|
-
|
674
|
+
header_params = {}
|
675
|
+
if request.parent
|
676
|
+
header_params["parent"] = request.parent
|
677
|
+
end
|
678
|
+
|
572
679
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
573
680
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
574
681
|
|
@@ -624,6 +731,21 @@ module Google
|
|
624
731
|
#
|
625
732
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
626
733
|
#
|
734
|
+
# @example Basic example
|
735
|
+
# require "google/cloud/data_catalog/v1"
|
736
|
+
#
|
737
|
+
# # Create a client object. The client can be reused for multiple calls.
|
738
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
739
|
+
#
|
740
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
741
|
+
# request = Google::Cloud::DataCatalog::V1::DeletePolicyTagRequest.new
|
742
|
+
#
|
743
|
+
# # Call the delete_policy_tag method.
|
744
|
+
# result = client.delete_policy_tag request
|
745
|
+
#
|
746
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
747
|
+
# p result
|
748
|
+
#
|
627
749
|
def delete_policy_tag request, options = nil
|
628
750
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
629
751
|
|
@@ -641,9 +763,11 @@ module Google
|
|
641
763
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
642
764
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
643
765
|
|
644
|
-
header_params = {
|
645
|
-
|
646
|
-
|
766
|
+
header_params = {}
|
767
|
+
if request.name
|
768
|
+
header_params["name"] = request.name
|
769
|
+
end
|
770
|
+
|
647
771
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
648
772
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
649
773
|
|
@@ -701,6 +825,21 @@ module Google
|
|
701
825
|
#
|
702
826
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
703
827
|
#
|
828
|
+
# @example Basic example
|
829
|
+
# require "google/cloud/data_catalog/v1"
|
830
|
+
#
|
831
|
+
# # Create a client object. The client can be reused for multiple calls.
|
832
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
833
|
+
#
|
834
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
835
|
+
# request = Google::Cloud::DataCatalog::V1::UpdatePolicyTagRequest.new
|
836
|
+
#
|
837
|
+
# # Call the update_policy_tag method.
|
838
|
+
# result = client.update_policy_tag request
|
839
|
+
#
|
840
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::PolicyTag.
|
841
|
+
# p result
|
842
|
+
#
|
704
843
|
def update_policy_tag request, options = nil
|
705
844
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
706
845
|
|
@@ -718,9 +857,11 @@ module Google
|
|
718
857
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
719
858
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
720
859
|
|
721
|
-
header_params = {
|
722
|
-
|
723
|
-
|
860
|
+
header_params = {}
|
861
|
+
if request.policy_tag&.name
|
862
|
+
header_params["policy_tag.name"] = request.policy_tag.name
|
863
|
+
end
|
864
|
+
|
724
865
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
725
866
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
726
867
|
|
@@ -778,6 +919,27 @@ module Google
|
|
778
919
|
#
|
779
920
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
780
921
|
#
|
922
|
+
# @example Basic example
|
923
|
+
# require "google/cloud/data_catalog/v1"
|
924
|
+
#
|
925
|
+
# # Create a client object. The client can be reused for multiple calls.
|
926
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
927
|
+
#
|
928
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
929
|
+
# request = Google::Cloud::DataCatalog::V1::ListPolicyTagsRequest.new
|
930
|
+
#
|
931
|
+
# # Call the list_policy_tags method.
|
932
|
+
# result = client.list_policy_tags request
|
933
|
+
#
|
934
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
935
|
+
# # iterate over all elements by calling #each, and the enumerable
|
936
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
937
|
+
# # methods are also available for managing paging directly.
|
938
|
+
# result.each do |response|
|
939
|
+
# # Each element is of type ::Google::Cloud::DataCatalog::V1::PolicyTag.
|
940
|
+
# p response
|
941
|
+
# end
|
942
|
+
#
|
781
943
|
def list_policy_tags request, options = nil
|
782
944
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
783
945
|
|
@@ -795,9 +957,11 @@ module Google
|
|
795
957
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
796
958
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
797
959
|
|
798
|
-
header_params = {
|
799
|
-
|
800
|
-
|
960
|
+
header_params = {}
|
961
|
+
if request.parent
|
962
|
+
header_params["parent"] = request.parent
|
963
|
+
end
|
964
|
+
|
801
965
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
802
966
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
803
967
|
|
@@ -847,6 +1011,21 @@ module Google
|
|
847
1011
|
#
|
848
1012
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
849
1013
|
#
|
1014
|
+
# @example Basic example
|
1015
|
+
# require "google/cloud/data_catalog/v1"
|
1016
|
+
#
|
1017
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1018
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
1019
|
+
#
|
1020
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1021
|
+
# request = Google::Cloud::DataCatalog::V1::GetPolicyTagRequest.new
|
1022
|
+
#
|
1023
|
+
# # Call the get_policy_tag method.
|
1024
|
+
# result = client.get_policy_tag request
|
1025
|
+
#
|
1026
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::PolicyTag.
|
1027
|
+
# p result
|
1028
|
+
#
|
850
1029
|
def get_policy_tag request, options = nil
|
851
1030
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
852
1031
|
|
@@ -864,9 +1043,11 @@ module Google
|
|
864
1043
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
865
1044
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
866
1045
|
|
867
|
-
header_params = {
|
868
|
-
|
869
|
-
|
1046
|
+
header_params = {}
|
1047
|
+
if request.name
|
1048
|
+
header_params["name"] = request.name
|
1049
|
+
end
|
1050
|
+
|
870
1051
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
871
1052
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
872
1053
|
|
@@ -919,6 +1100,21 @@ module Google
|
|
919
1100
|
#
|
920
1101
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
921
1102
|
#
|
1103
|
+
# @example Basic example
|
1104
|
+
# require "google/cloud/data_catalog/v1"
|
1105
|
+
#
|
1106
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1107
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
1108
|
+
#
|
1109
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1110
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
1111
|
+
#
|
1112
|
+
# # Call the get_iam_policy method.
|
1113
|
+
# result = client.get_iam_policy request
|
1114
|
+
#
|
1115
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1116
|
+
# p result
|
1117
|
+
#
|
922
1118
|
def get_iam_policy request, options = nil
|
923
1119
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
924
1120
|
|
@@ -936,9 +1132,11 @@ module Google
|
|
936
1132
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
937
1133
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
938
1134
|
|
939
|
-
header_params = {
|
940
|
-
|
941
|
-
|
1135
|
+
header_params = {}
|
1136
|
+
if request.resource
|
1137
|
+
header_params["resource"] = request.resource
|
1138
|
+
end
|
1139
|
+
|
942
1140
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
943
1141
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
944
1142
|
|
@@ -993,6 +1191,21 @@ module Google
|
|
993
1191
|
#
|
994
1192
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
995
1193
|
#
|
1194
|
+
# @example Basic example
|
1195
|
+
# require "google/cloud/data_catalog/v1"
|
1196
|
+
#
|
1197
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1198
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
1199
|
+
#
|
1200
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1201
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1202
|
+
#
|
1203
|
+
# # Call the set_iam_policy method.
|
1204
|
+
# result = client.set_iam_policy request
|
1205
|
+
#
|
1206
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1207
|
+
# p result
|
1208
|
+
#
|
996
1209
|
def set_iam_policy request, options = nil
|
997
1210
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
998
1211
|
|
@@ -1010,9 +1223,11 @@ module Google
|
|
1010
1223
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
1011
1224
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1012
1225
|
|
1013
|
-
header_params = {
|
1014
|
-
|
1015
|
-
|
1226
|
+
header_params = {}
|
1227
|
+
if request.resource
|
1228
|
+
header_params["resource"] = request.resource
|
1229
|
+
end
|
1230
|
+
|
1016
1231
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1017
1232
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1018
1233
|
|
@@ -1068,6 +1283,21 @@ module Google
|
|
1068
1283
|
#
|
1069
1284
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1070
1285
|
#
|
1286
|
+
# @example Basic example
|
1287
|
+
# require "google/cloud/data_catalog/v1"
|
1288
|
+
#
|
1289
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1290
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
1291
|
+
#
|
1292
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1293
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1294
|
+
#
|
1295
|
+
# # Call the test_iam_permissions method.
|
1296
|
+
# result = client.test_iam_permissions request
|
1297
|
+
#
|
1298
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1299
|
+
# p result
|
1300
|
+
#
|
1071
1301
|
def test_iam_permissions request, options = nil
|
1072
1302
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1073
1303
|
|
@@ -1085,9 +1315,11 @@ module Google
|
|
1085
1315
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
1086
1316
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1087
1317
|
|
1088
|
-
header_params = {
|
1089
|
-
|
1090
|
-
|
1318
|
+
header_params = {}
|
1319
|
+
if request.resource
|
1320
|
+
header_params["resource"] = request.resource
|
1321
|
+
end
|
1322
|
+
|
1091
1323
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1092
1324
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1093
1325
|
|
@@ -192,6 +192,21 @@ module Google
|
|
192
192
|
#
|
193
193
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
194
194
|
#
|
195
|
+
# @example Basic example
|
196
|
+
# require "google/cloud/data_catalog/v1"
|
197
|
+
#
|
198
|
+
# # Create a client object. The client can be reused for multiple calls.
|
199
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
200
|
+
#
|
201
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
202
|
+
# request = Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest.new
|
203
|
+
#
|
204
|
+
# # Call the replace_taxonomy method.
|
205
|
+
# result = client.replace_taxonomy request
|
206
|
+
#
|
207
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Taxonomy.
|
208
|
+
# p result
|
209
|
+
#
|
195
210
|
def replace_taxonomy request, options = nil
|
196
211
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
197
212
|
|
@@ -209,9 +224,11 @@ module Google
|
|
209
224
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
210
225
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
211
226
|
|
212
|
-
header_params = {
|
213
|
-
|
214
|
-
|
227
|
+
header_params = {}
|
228
|
+
if request.name
|
229
|
+
header_params["name"] = request.name
|
230
|
+
end
|
231
|
+
|
215
232
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
216
233
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
217
234
|
|
@@ -271,6 +288,21 @@ module Google
|
|
271
288
|
#
|
272
289
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
273
290
|
#
|
291
|
+
# @example Basic example
|
292
|
+
# require "google/cloud/data_catalog/v1"
|
293
|
+
#
|
294
|
+
# # Create a client object. The client can be reused for multiple calls.
|
295
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
296
|
+
#
|
297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
298
|
+
# request = Google::Cloud::DataCatalog::V1::ImportTaxonomiesRequest.new
|
299
|
+
#
|
300
|
+
# # Call the import_taxonomies method.
|
301
|
+
# result = client.import_taxonomies request
|
302
|
+
#
|
303
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::ImportTaxonomiesResponse.
|
304
|
+
# p result
|
305
|
+
#
|
274
306
|
def import_taxonomies request, options = nil
|
275
307
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
276
308
|
|
@@ -288,9 +320,11 @@ module Google
|
|
288
320
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
289
321
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
290
322
|
|
291
|
-
header_params = {
|
292
|
-
|
293
|
-
|
323
|
+
header_params = {}
|
324
|
+
if request.parent
|
325
|
+
header_params["parent"] = request.parent
|
326
|
+
end
|
327
|
+
|
294
328
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
295
329
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
296
330
|
|
@@ -349,6 +383,21 @@ module Google
|
|
349
383
|
#
|
350
384
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
351
385
|
#
|
386
|
+
# @example Basic example
|
387
|
+
# require "google/cloud/data_catalog/v1"
|
388
|
+
#
|
389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
390
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
391
|
+
#
|
392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
393
|
+
# request = Google::Cloud::DataCatalog::V1::ExportTaxonomiesRequest.new
|
394
|
+
#
|
395
|
+
# # Call the export_taxonomies method.
|
396
|
+
# result = client.export_taxonomies request
|
397
|
+
#
|
398
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::ExportTaxonomiesResponse.
|
399
|
+
# p result
|
400
|
+
#
|
352
401
|
def export_taxonomies request, options = nil
|
353
402
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
354
403
|
|
@@ -366,9 +415,11 @@ module Google
|
|
366
415
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
367
416
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
368
417
|
|
369
|
-
header_params = {
|
370
|
-
|
371
|
-
|
418
|
+
header_params = {}
|
419
|
+
if request.parent
|
420
|
+
header_params["parent"] = request.parent
|
421
|
+
end
|
422
|
+
|
372
423
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
373
424
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
374
425
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/datacatalog/v1/bigquery.proto
|
3
3
|
|
4
|
+
require 'google/api/field_behavior_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/field_behavior_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/datacatalog/v1/bigquery.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.datacatalog.v1.BigQueryConnectionSpec" do
|
@@ -1,10 +1,15 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/datacatalog/v1/common.proto
|
3
3
|
|
4
|
+
require 'google/protobuf/timestamp_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
8
|
add_file("google/cloud/datacatalog/v1/common.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.datacatalog.v1.PersonalDetails" do
|
10
|
+
optional :starred, :bool, 1
|
11
|
+
optional :star_time, :message, 2, "google.protobuf.Timestamp"
|
12
|
+
end
|
8
13
|
add_enum "google.cloud.datacatalog.v1.IntegratedSystem" do
|
9
14
|
value :INTEGRATED_SYSTEM_UNSPECIFIED, 0
|
10
15
|
value :BIGQUERY, 1
|
@@ -18,6 +23,7 @@ module Google
|
|
18
23
|
module Cloud
|
19
24
|
module DataCatalog
|
20
25
|
module V1
|
26
|
+
PersonalDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.PersonalDetails").msgclass
|
21
27
|
IntegratedSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.IntegratedSystem").enummodule
|
22
28
|
end
|
23
29
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/datacatalog/v1/data_source.proto
|
3
3
|
|
4
|
+
require 'google/api/field_behavior_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/field_behavior_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/datacatalog/v1/data_source.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.datacatalog.v1.DataSource" do
|