google-cloud-data_catalog-v1 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +11 -2
- data/lib/google/cloud/data_catalog/v1/data_catalog/operations.rb +10 -1
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/client.rb +575 -1
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/operations.rb +75 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +10 -1
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/client.rb +216 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +10 -1
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/client.rb +48 -0
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +1 -1
- metadata +5 -5
@@ -252,7 +252,7 @@ module Google
|
|
252
252
|
#
|
253
253
|
# If this parameter is omitted, it defaults to the descending `relevance`.
|
254
254
|
# @param admin_search [::Boolean]
|
255
|
-
# Optional. If set,
|
255
|
+
# Optional. If set, use searchAll permission granted on organizations from
|
256
256
|
# `include_org_ids` and projects from `include_project_ids` instead of the
|
257
257
|
# fine grained per resource permissions when filtering the search results.
|
258
258
|
# The only allowed `order_by` criteria for admin_search mode is `default`.
|
@@ -264,6 +264,26 @@ module Google
|
|
264
264
|
# @return [::Google::Cloud::DataCatalog::V1::SearchCatalogResponse]
|
265
265
|
#
|
266
266
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
267
|
+
#
|
268
|
+
# @example Basic example
|
269
|
+
# require "google/cloud/data_catalog/v1"
|
270
|
+
#
|
271
|
+
# # Create a client object. The client can be reused for multiple calls.
|
272
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
273
|
+
#
|
274
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
275
|
+
# request = Google::Cloud::DataCatalog::V1::SearchCatalogRequest.new
|
276
|
+
#
|
277
|
+
# # Call the search_catalog method.
|
278
|
+
# result = client.search_catalog request
|
279
|
+
#
|
280
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
281
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
282
|
+
# result.each do |item|
|
283
|
+
# # Each element is of type ::Google::Cloud::DataCatalog::V1::SearchCatalogResult.
|
284
|
+
# p item
|
285
|
+
# end
|
286
|
+
#
|
267
287
|
def search_catalog request, options = nil
|
268
288
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
269
289
|
|
@@ -364,6 +384,22 @@ module Google
|
|
364
384
|
# @return [::Google::Cloud::DataCatalog::V1::EntryGroup]
|
365
385
|
#
|
366
386
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
387
|
+
#
|
388
|
+
# @example Basic example
|
389
|
+
# require "google/cloud/data_catalog/v1"
|
390
|
+
#
|
391
|
+
# # Create a client object. The client can be reused for multiple calls.
|
392
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
393
|
+
#
|
394
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
395
|
+
# request = Google::Cloud::DataCatalog::V1::CreateEntryGroupRequest.new
|
396
|
+
#
|
397
|
+
# # Call the create_entry_group method.
|
398
|
+
# result = client.create_entry_group request
|
399
|
+
#
|
400
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::EntryGroup.
|
401
|
+
# p result
|
402
|
+
#
|
367
403
|
def create_entry_group request, options = nil
|
368
404
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
405
|
|
@@ -428,6 +464,22 @@ module Google
|
|
428
464
|
# @return [::Google::Cloud::DataCatalog::V1::EntryGroup]
|
429
465
|
#
|
430
466
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
467
|
+
#
|
468
|
+
# @example Basic example
|
469
|
+
# require "google/cloud/data_catalog/v1"
|
470
|
+
#
|
471
|
+
# # Create a client object. The client can be reused for multiple calls.
|
472
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
473
|
+
#
|
474
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
475
|
+
# request = Google::Cloud::DataCatalog::V1::GetEntryGroupRequest.new
|
476
|
+
#
|
477
|
+
# # Call the get_entry_group method.
|
478
|
+
# result = client.get_entry_group request
|
479
|
+
#
|
480
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::EntryGroup.
|
481
|
+
# p result
|
482
|
+
#
|
431
483
|
def get_entry_group request, options = nil
|
432
484
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
433
485
|
|
@@ -501,6 +553,22 @@ module Google
|
|
501
553
|
# @return [::Google::Cloud::DataCatalog::V1::EntryGroup]
|
502
554
|
#
|
503
555
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
556
|
+
#
|
557
|
+
# @example Basic example
|
558
|
+
# require "google/cloud/data_catalog/v1"
|
559
|
+
#
|
560
|
+
# # Create a client object. The client can be reused for multiple calls.
|
561
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
562
|
+
#
|
563
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
564
|
+
# request = Google::Cloud::DataCatalog::V1::UpdateEntryGroupRequest.new
|
565
|
+
#
|
566
|
+
# # Call the update_entry_group method.
|
567
|
+
# result = client.update_entry_group request
|
568
|
+
#
|
569
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::EntryGroup.
|
570
|
+
# p result
|
571
|
+
#
|
504
572
|
def update_entry_group request, options = nil
|
505
573
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
506
574
|
|
@@ -570,6 +638,22 @@ module Google
|
|
570
638
|
# @return [::Google::Protobuf::Empty]
|
571
639
|
#
|
572
640
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
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::DataCatalog::Rest::Client.new
|
647
|
+
#
|
648
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
649
|
+
# request = Google::Cloud::DataCatalog::V1::DeleteEntryGroupRequest.new
|
650
|
+
#
|
651
|
+
# # Call the delete_entry_group method.
|
652
|
+
# result = client.delete_entry_group request
|
653
|
+
#
|
654
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
655
|
+
# p result
|
656
|
+
#
|
573
657
|
def delete_entry_group request, options = nil
|
574
658
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
575
659
|
|
@@ -642,6 +726,26 @@ module Google
|
|
642
726
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1::EntryGroup>]
|
643
727
|
#
|
644
728
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
729
|
+
#
|
730
|
+
# @example Basic example
|
731
|
+
# require "google/cloud/data_catalog/v1"
|
732
|
+
#
|
733
|
+
# # Create a client object. The client can be reused for multiple calls.
|
734
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
735
|
+
#
|
736
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
737
|
+
# request = Google::Cloud::DataCatalog::V1::ListEntryGroupsRequest.new
|
738
|
+
#
|
739
|
+
# # Call the list_entry_groups method.
|
740
|
+
# result = client.list_entry_groups request
|
741
|
+
#
|
742
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
743
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
744
|
+
# result.each do |item|
|
745
|
+
# # Each element is of type ::Google::Cloud::DataCatalog::V1::EntryGroup.
|
746
|
+
# p item
|
747
|
+
# end
|
748
|
+
#
|
645
749
|
def list_entry_groups request, options = nil
|
646
750
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
647
751
|
|
@@ -726,6 +830,22 @@ module Google
|
|
726
830
|
# @return [::Google::Cloud::DataCatalog::V1::Entry]
|
727
831
|
#
|
728
832
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
833
|
+
#
|
834
|
+
# @example Basic example
|
835
|
+
# require "google/cloud/data_catalog/v1"
|
836
|
+
#
|
837
|
+
# # Create a client object. The client can be reused for multiple calls.
|
838
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
839
|
+
#
|
840
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
841
|
+
# request = Google::Cloud::DataCatalog::V1::CreateEntryRequest.new
|
842
|
+
#
|
843
|
+
# # Call the create_entry method.
|
844
|
+
# result = client.create_entry request
|
845
|
+
#
|
846
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Entry.
|
847
|
+
# p result
|
848
|
+
#
|
729
849
|
def create_entry request, options = nil
|
730
850
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
731
851
|
|
@@ -823,6 +943,22 @@ module Google
|
|
823
943
|
# @return [::Google::Cloud::DataCatalog::V1::Entry]
|
824
944
|
#
|
825
945
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
946
|
+
#
|
947
|
+
# @example Basic example
|
948
|
+
# require "google/cloud/data_catalog/v1"
|
949
|
+
#
|
950
|
+
# # Create a client object. The client can be reused for multiple calls.
|
951
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
952
|
+
#
|
953
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
954
|
+
# request = Google::Cloud::DataCatalog::V1::UpdateEntryRequest.new
|
955
|
+
#
|
956
|
+
# # Call the update_entry method.
|
957
|
+
# result = client.update_entry request
|
958
|
+
#
|
959
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Entry.
|
960
|
+
# p result
|
961
|
+
#
|
826
962
|
def update_entry request, options = nil
|
827
963
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
828
964
|
|
@@ -894,6 +1030,22 @@ module Google
|
|
894
1030
|
# @return [::Google::Protobuf::Empty]
|
895
1031
|
#
|
896
1032
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1033
|
+
#
|
1034
|
+
# @example Basic example
|
1035
|
+
# require "google/cloud/data_catalog/v1"
|
1036
|
+
#
|
1037
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1038
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1039
|
+
#
|
1040
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1041
|
+
# request = Google::Cloud::DataCatalog::V1::DeleteEntryRequest.new
|
1042
|
+
#
|
1043
|
+
# # Call the delete_entry method.
|
1044
|
+
# result = client.delete_entry request
|
1045
|
+
#
|
1046
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1047
|
+
# p result
|
1048
|
+
#
|
897
1049
|
def delete_entry request, options = nil
|
898
1050
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
899
1051
|
|
@@ -956,6 +1108,22 @@ module Google
|
|
956
1108
|
# @return [::Google::Cloud::DataCatalog::V1::Entry]
|
957
1109
|
#
|
958
1110
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1111
|
+
#
|
1112
|
+
# @example Basic example
|
1113
|
+
# require "google/cloud/data_catalog/v1"
|
1114
|
+
#
|
1115
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1116
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1117
|
+
#
|
1118
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1119
|
+
# request = Google::Cloud::DataCatalog::V1::GetEntryRequest.new
|
1120
|
+
#
|
1121
|
+
# # Call the get_entry method.
|
1122
|
+
# result = client.get_entry request
|
1123
|
+
#
|
1124
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Entry.
|
1125
|
+
# p result
|
1126
|
+
#
|
959
1127
|
def get_entry request, options = nil
|
960
1128
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
961
1129
|
|
@@ -1067,6 +1235,22 @@ module Google
|
|
1067
1235
|
# @return [::Google::Cloud::DataCatalog::V1::Entry]
|
1068
1236
|
#
|
1069
1237
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1238
|
+
#
|
1239
|
+
# @example Basic example
|
1240
|
+
# require "google/cloud/data_catalog/v1"
|
1241
|
+
#
|
1242
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1243
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1244
|
+
#
|
1245
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1246
|
+
# request = Google::Cloud::DataCatalog::V1::LookupEntryRequest.new
|
1247
|
+
#
|
1248
|
+
# # Call the lookup_entry method.
|
1249
|
+
# result = client.lookup_entry request
|
1250
|
+
#
|
1251
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Entry.
|
1252
|
+
# p result
|
1253
|
+
#
|
1070
1254
|
def lookup_entry request, options = nil
|
1071
1255
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1072
1256
|
|
@@ -1147,6 +1331,26 @@ module Google
|
|
1147
1331
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1::Entry>]
|
1148
1332
|
#
|
1149
1333
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1334
|
+
#
|
1335
|
+
# @example Basic example
|
1336
|
+
# require "google/cloud/data_catalog/v1"
|
1337
|
+
#
|
1338
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1339
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1340
|
+
#
|
1341
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1342
|
+
# request = Google::Cloud::DataCatalog::V1::ListEntriesRequest.new
|
1343
|
+
#
|
1344
|
+
# # Call the list_entries method.
|
1345
|
+
# result = client.list_entries request
|
1346
|
+
#
|
1347
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1348
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1349
|
+
# result.each do |item|
|
1350
|
+
# # Each element is of type ::Google::Cloud::DataCatalog::V1::Entry.
|
1351
|
+
# p item
|
1352
|
+
# end
|
1353
|
+
#
|
1150
1354
|
def list_entries request, options = nil
|
1151
1355
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1152
1356
|
|
@@ -1216,6 +1420,22 @@ module Google
|
|
1216
1420
|
# @return [::Google::Cloud::DataCatalog::V1::EntryOverview]
|
1217
1421
|
#
|
1218
1422
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1423
|
+
#
|
1424
|
+
# @example Basic example
|
1425
|
+
# require "google/cloud/data_catalog/v1"
|
1426
|
+
#
|
1427
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1428
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1429
|
+
#
|
1430
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1431
|
+
# request = Google::Cloud::DataCatalog::V1::ModifyEntryOverviewRequest.new
|
1432
|
+
#
|
1433
|
+
# # Call the modify_entry_overview method.
|
1434
|
+
# result = client.modify_entry_overview request
|
1435
|
+
#
|
1436
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::EntryOverview.
|
1437
|
+
# p result
|
1438
|
+
#
|
1219
1439
|
def modify_entry_overview request, options = nil
|
1220
1440
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1221
1441
|
|
@@ -1284,6 +1504,22 @@ module Google
|
|
1284
1504
|
# @return [::Google::Cloud::DataCatalog::V1::Contacts]
|
1285
1505
|
#
|
1286
1506
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1507
|
+
#
|
1508
|
+
# @example Basic example
|
1509
|
+
# require "google/cloud/data_catalog/v1"
|
1510
|
+
#
|
1511
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1512
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1513
|
+
#
|
1514
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1515
|
+
# request = Google::Cloud::DataCatalog::V1::ModifyEntryContactsRequest.new
|
1516
|
+
#
|
1517
|
+
# # Call the modify_entry_contacts method.
|
1518
|
+
# result = client.modify_entry_contacts request
|
1519
|
+
#
|
1520
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Contacts.
|
1521
|
+
# p result
|
1522
|
+
#
|
1287
1523
|
def modify_entry_contacts request, options = nil
|
1288
1524
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1289
1525
|
|
@@ -1360,6 +1596,22 @@ module Google
|
|
1360
1596
|
# @return [::Google::Cloud::DataCatalog::V1::TagTemplate]
|
1361
1597
|
#
|
1362
1598
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1599
|
+
#
|
1600
|
+
# @example Basic example
|
1601
|
+
# require "google/cloud/data_catalog/v1"
|
1602
|
+
#
|
1603
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1604
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1605
|
+
#
|
1606
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1607
|
+
# request = Google::Cloud::DataCatalog::V1::CreateTagTemplateRequest.new
|
1608
|
+
#
|
1609
|
+
# # Call the create_tag_template method.
|
1610
|
+
# result = client.create_tag_template request
|
1611
|
+
#
|
1612
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::TagTemplate.
|
1613
|
+
# p result
|
1614
|
+
#
|
1363
1615
|
def create_tag_template request, options = nil
|
1364
1616
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1365
1617
|
|
@@ -1422,6 +1674,22 @@ module Google
|
|
1422
1674
|
# @return [::Google::Cloud::DataCatalog::V1::TagTemplate]
|
1423
1675
|
#
|
1424
1676
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1677
|
+
#
|
1678
|
+
# @example Basic example
|
1679
|
+
# require "google/cloud/data_catalog/v1"
|
1680
|
+
#
|
1681
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1682
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1683
|
+
#
|
1684
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1685
|
+
# request = Google::Cloud::DataCatalog::V1::GetTagTemplateRequest.new
|
1686
|
+
#
|
1687
|
+
# # Call the get_tag_template method.
|
1688
|
+
# result = client.get_tag_template request
|
1689
|
+
#
|
1690
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::TagTemplate.
|
1691
|
+
# p result
|
1692
|
+
#
|
1425
1693
|
def get_tag_template request, options = nil
|
1426
1694
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1427
1695
|
|
@@ -1502,6 +1770,22 @@ module Google
|
|
1502
1770
|
# @return [::Google::Cloud::DataCatalog::V1::TagTemplate]
|
1503
1771
|
#
|
1504
1772
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1773
|
+
#
|
1774
|
+
# @example Basic example
|
1775
|
+
# require "google/cloud/data_catalog/v1"
|
1776
|
+
#
|
1777
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1778
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1779
|
+
#
|
1780
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1781
|
+
# request = Google::Cloud::DataCatalog::V1::UpdateTagTemplateRequest.new
|
1782
|
+
#
|
1783
|
+
# # Call the update_tag_template method.
|
1784
|
+
# result = client.update_tag_template request
|
1785
|
+
#
|
1786
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::TagTemplate.
|
1787
|
+
# p result
|
1788
|
+
#
|
1505
1789
|
def update_tag_template request, options = nil
|
1506
1790
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1507
1791
|
|
@@ -1572,6 +1856,22 @@ module Google
|
|
1572
1856
|
# @return [::Google::Protobuf::Empty]
|
1573
1857
|
#
|
1574
1858
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1859
|
+
#
|
1860
|
+
# @example Basic example
|
1861
|
+
# require "google/cloud/data_catalog/v1"
|
1862
|
+
#
|
1863
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1864
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1865
|
+
#
|
1866
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1867
|
+
# request = Google::Cloud::DataCatalog::V1::DeleteTagTemplateRequest.new
|
1868
|
+
#
|
1869
|
+
# # Call the delete_tag_template method.
|
1870
|
+
# result = client.delete_tag_template request
|
1871
|
+
#
|
1872
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1873
|
+
# p result
|
1874
|
+
#
|
1575
1875
|
def delete_tag_template request, options = nil
|
1576
1876
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1577
1877
|
|
@@ -1650,6 +1950,22 @@ module Google
|
|
1650
1950
|
# @return [::Google::Cloud::DataCatalog::V1::TagTemplateField]
|
1651
1951
|
#
|
1652
1952
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1953
|
+
#
|
1954
|
+
# @example Basic example
|
1955
|
+
# require "google/cloud/data_catalog/v1"
|
1956
|
+
#
|
1957
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1958
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
1959
|
+
#
|
1960
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1961
|
+
# request = Google::Cloud::DataCatalog::V1::CreateTagTemplateFieldRequest.new
|
1962
|
+
#
|
1963
|
+
# # Call the create_tag_template_field method.
|
1964
|
+
# result = client.create_tag_template_field request
|
1965
|
+
#
|
1966
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::TagTemplateField.
|
1967
|
+
# p result
|
1968
|
+
#
|
1653
1969
|
def create_tag_template_field request, options = nil
|
1654
1970
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1655
1971
|
|
@@ -1738,6 +2054,22 @@ module Google
|
|
1738
2054
|
# @return [::Google::Cloud::DataCatalog::V1::TagTemplateField]
|
1739
2055
|
#
|
1740
2056
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2057
|
+
#
|
2058
|
+
# @example Basic example
|
2059
|
+
# require "google/cloud/data_catalog/v1"
|
2060
|
+
#
|
2061
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2062
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2063
|
+
#
|
2064
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2065
|
+
# request = Google::Cloud::DataCatalog::V1::UpdateTagTemplateFieldRequest.new
|
2066
|
+
#
|
2067
|
+
# # Call the update_tag_template_field method.
|
2068
|
+
# result = client.update_tag_template_field request
|
2069
|
+
#
|
2070
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::TagTemplateField.
|
2071
|
+
# p result
|
2072
|
+
#
|
1741
2073
|
def update_tag_template_field request, options = nil
|
1742
2074
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1743
2075
|
|
@@ -1807,6 +2139,22 @@ module Google
|
|
1807
2139
|
# @return [::Google::Cloud::DataCatalog::V1::TagTemplateField]
|
1808
2140
|
#
|
1809
2141
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2142
|
+
#
|
2143
|
+
# @example Basic example
|
2144
|
+
# require "google/cloud/data_catalog/v1"
|
2145
|
+
#
|
2146
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2147
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2148
|
+
#
|
2149
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2150
|
+
# request = Google::Cloud::DataCatalog::V1::RenameTagTemplateFieldRequest.new
|
2151
|
+
#
|
2152
|
+
# # Call the rename_tag_template_field method.
|
2153
|
+
# result = client.rename_tag_template_field request
|
2154
|
+
#
|
2155
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::TagTemplateField.
|
2156
|
+
# p result
|
2157
|
+
#
|
1810
2158
|
def rename_tag_template_field request, options = nil
|
1811
2159
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1812
2160
|
|
@@ -1874,6 +2222,22 @@ module Google
|
|
1874
2222
|
# @return [::Google::Cloud::DataCatalog::V1::TagTemplateField]
|
1875
2223
|
#
|
1876
2224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2225
|
+
#
|
2226
|
+
# @example Basic example
|
2227
|
+
# require "google/cloud/data_catalog/v1"
|
2228
|
+
#
|
2229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2230
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2231
|
+
#
|
2232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2233
|
+
# request = Google::Cloud::DataCatalog::V1::RenameTagTemplateFieldEnumValueRequest.new
|
2234
|
+
#
|
2235
|
+
# # Call the rename_tag_template_field_enum_value method.
|
2236
|
+
# result = client.rename_tag_template_field_enum_value request
|
2237
|
+
#
|
2238
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::TagTemplateField.
|
2239
|
+
# p result
|
2240
|
+
#
|
1877
2241
|
def rename_tag_template_field_enum_value request, options = nil
|
1878
2242
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1879
2243
|
|
@@ -1945,6 +2309,22 @@ module Google
|
|
1945
2309
|
# @return [::Google::Protobuf::Empty]
|
1946
2310
|
#
|
1947
2311
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2312
|
+
#
|
2313
|
+
# @example Basic example
|
2314
|
+
# require "google/cloud/data_catalog/v1"
|
2315
|
+
#
|
2316
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2317
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2318
|
+
#
|
2319
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2320
|
+
# request = Google::Cloud::DataCatalog::V1::DeleteTagTemplateFieldRequest.new
|
2321
|
+
#
|
2322
|
+
# # Call the delete_tag_template_field method.
|
2323
|
+
# result = client.delete_tag_template_field request
|
2324
|
+
#
|
2325
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2326
|
+
# p result
|
2327
|
+
#
|
1948
2328
|
def delete_tag_template_field request, options = nil
|
1949
2329
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1950
2330
|
|
@@ -2026,6 +2406,22 @@ module Google
|
|
2026
2406
|
# @return [::Google::Cloud::DataCatalog::V1::Tag]
|
2027
2407
|
#
|
2028
2408
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2409
|
+
#
|
2410
|
+
# @example Basic example
|
2411
|
+
# require "google/cloud/data_catalog/v1"
|
2412
|
+
#
|
2413
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2414
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2415
|
+
#
|
2416
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2417
|
+
# request = Google::Cloud::DataCatalog::V1::CreateTagRequest.new
|
2418
|
+
#
|
2419
|
+
# # Call the create_tag method.
|
2420
|
+
# result = client.create_tag request
|
2421
|
+
#
|
2422
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Tag.
|
2423
|
+
# p result
|
2424
|
+
#
|
2029
2425
|
def create_tag request, options = nil
|
2030
2426
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2031
2427
|
|
@@ -2095,6 +2491,22 @@ module Google
|
|
2095
2491
|
# @return [::Google::Cloud::DataCatalog::V1::Tag]
|
2096
2492
|
#
|
2097
2493
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2494
|
+
#
|
2495
|
+
# @example Basic example
|
2496
|
+
# require "google/cloud/data_catalog/v1"
|
2497
|
+
#
|
2498
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2499
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2500
|
+
#
|
2501
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2502
|
+
# request = Google::Cloud::DataCatalog::V1::UpdateTagRequest.new
|
2503
|
+
#
|
2504
|
+
# # Call the update_tag method.
|
2505
|
+
# result = client.update_tag request
|
2506
|
+
#
|
2507
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Tag.
|
2508
|
+
# p result
|
2509
|
+
#
|
2098
2510
|
def update_tag request, options = nil
|
2099
2511
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2100
2512
|
|
@@ -2157,6 +2569,22 @@ module Google
|
|
2157
2569
|
# @return [::Google::Protobuf::Empty]
|
2158
2570
|
#
|
2159
2571
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2572
|
+
#
|
2573
|
+
# @example Basic example
|
2574
|
+
# require "google/cloud/data_catalog/v1"
|
2575
|
+
#
|
2576
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2577
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2578
|
+
#
|
2579
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2580
|
+
# request = Google::Cloud::DataCatalog::V1::DeleteTagRequest.new
|
2581
|
+
#
|
2582
|
+
# # Call the delete_tag method.
|
2583
|
+
# result = client.delete_tag request
|
2584
|
+
#
|
2585
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2586
|
+
# p result
|
2587
|
+
#
|
2160
2588
|
def delete_tag request, options = nil
|
2161
2589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2162
2590
|
|
@@ -2230,6 +2658,26 @@ module Google
|
|
2230
2658
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1::Tag>]
|
2231
2659
|
#
|
2232
2660
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2661
|
+
#
|
2662
|
+
# @example Basic example
|
2663
|
+
# require "google/cloud/data_catalog/v1"
|
2664
|
+
#
|
2665
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2666
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2667
|
+
#
|
2668
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2669
|
+
# request = Google::Cloud::DataCatalog::V1::ListTagsRequest.new
|
2670
|
+
#
|
2671
|
+
# # Call the list_tags method.
|
2672
|
+
# result = client.list_tags request
|
2673
|
+
#
|
2674
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2675
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2676
|
+
# result.each do |item|
|
2677
|
+
# # Each element is of type ::Google::Cloud::DataCatalog::V1::Tag.
|
2678
|
+
# p item
|
2679
|
+
# end
|
2680
|
+
#
|
2233
2681
|
def list_tags request, options = nil
|
2234
2682
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2235
2683
|
|
@@ -2316,6 +2764,29 @@ module Google
|
|
2316
2764
|
# @return [::Gapic::Operation]
|
2317
2765
|
#
|
2318
2766
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2767
|
+
#
|
2768
|
+
# @example Basic example
|
2769
|
+
# require "google/cloud/data_catalog/v1"
|
2770
|
+
#
|
2771
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2772
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2773
|
+
#
|
2774
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2775
|
+
# request = Google::Cloud::DataCatalog::V1::ReconcileTagsRequest.new
|
2776
|
+
#
|
2777
|
+
# # Call the reconcile_tags method.
|
2778
|
+
# result = client.reconcile_tags request
|
2779
|
+
#
|
2780
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2781
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2782
|
+
# # Here is how to wait for a response.
|
2783
|
+
# result.wait_until_done! timeout: 60
|
2784
|
+
# if result.response?
|
2785
|
+
# p result.response
|
2786
|
+
# else
|
2787
|
+
# puts "No response received."
|
2788
|
+
# end
|
2789
|
+
#
|
2319
2790
|
def reconcile_tags request, options = nil
|
2320
2791
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2321
2792
|
|
@@ -2380,6 +2851,22 @@ module Google
|
|
2380
2851
|
# @return [::Google::Cloud::DataCatalog::V1::StarEntryResponse]
|
2381
2852
|
#
|
2382
2853
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2854
|
+
#
|
2855
|
+
# @example Basic example
|
2856
|
+
# require "google/cloud/data_catalog/v1"
|
2857
|
+
#
|
2858
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2859
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2860
|
+
#
|
2861
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2862
|
+
# request = Google::Cloud::DataCatalog::V1::StarEntryRequest.new
|
2863
|
+
#
|
2864
|
+
# # Call the star_entry method.
|
2865
|
+
# result = client.star_entry request
|
2866
|
+
#
|
2867
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::StarEntryResponse.
|
2868
|
+
# p result
|
2869
|
+
#
|
2383
2870
|
def star_entry request, options = nil
|
2384
2871
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2385
2872
|
|
@@ -2443,6 +2930,22 @@ module Google
|
|
2443
2930
|
# @return [::Google::Cloud::DataCatalog::V1::UnstarEntryResponse]
|
2444
2931
|
#
|
2445
2932
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2933
|
+
#
|
2934
|
+
# @example Basic example
|
2935
|
+
# require "google/cloud/data_catalog/v1"
|
2936
|
+
#
|
2937
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2938
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
2939
|
+
#
|
2940
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2941
|
+
# request = Google::Cloud::DataCatalog::V1::UnstarEntryRequest.new
|
2942
|
+
#
|
2943
|
+
# # Call the unstar_entry method.
|
2944
|
+
# result = client.unstar_entry request
|
2945
|
+
#
|
2946
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::UnstarEntryResponse.
|
2947
|
+
# p result
|
2948
|
+
#
|
2446
2949
|
def unstar_entry request, options = nil
|
2447
2950
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2448
2951
|
|
@@ -2533,6 +3036,22 @@ module Google
|
|
2533
3036
|
# @return [::Google::Iam::V1::Policy]
|
2534
3037
|
#
|
2535
3038
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3039
|
+
#
|
3040
|
+
# @example Basic example
|
3041
|
+
# require "google/cloud/data_catalog/v1"
|
3042
|
+
#
|
3043
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3044
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
3045
|
+
#
|
3046
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3047
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
3048
|
+
#
|
3049
|
+
# # Call the set_iam_policy method.
|
3050
|
+
# result = client.set_iam_policy request
|
3051
|
+
#
|
3052
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
3053
|
+
# p result
|
3054
|
+
#
|
2536
3055
|
def set_iam_policy request, options = nil
|
2537
3056
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2538
3057
|
|
@@ -2619,6 +3138,22 @@ module Google
|
|
2619
3138
|
# @return [::Google::Iam::V1::Policy]
|
2620
3139
|
#
|
2621
3140
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3141
|
+
#
|
3142
|
+
# @example Basic example
|
3143
|
+
# require "google/cloud/data_catalog/v1"
|
3144
|
+
#
|
3145
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3146
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
3147
|
+
#
|
3148
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3149
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
3150
|
+
#
|
3151
|
+
# # Call the get_iam_policy method.
|
3152
|
+
# result = client.get_iam_policy request
|
3153
|
+
#
|
3154
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
3155
|
+
# p result
|
3156
|
+
#
|
2622
3157
|
def get_iam_policy request, options = nil
|
2623
3158
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2624
3159
|
|
@@ -2700,6 +3235,22 @@ module Google
|
|
2700
3235
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
2701
3236
|
#
|
2702
3237
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3238
|
+
#
|
3239
|
+
# @example Basic example
|
3240
|
+
# require "google/cloud/data_catalog/v1"
|
3241
|
+
#
|
3242
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3243
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
3244
|
+
#
|
3245
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3246
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
3247
|
+
#
|
3248
|
+
# # Call the test_iam_permissions method.
|
3249
|
+
# result = client.test_iam_permissions request
|
3250
|
+
#
|
3251
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
3252
|
+
# p result
|
3253
|
+
#
|
2703
3254
|
def test_iam_permissions request, options = nil
|
2704
3255
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2705
3256
|
|
@@ -2784,6 +3335,29 @@ module Google
|
|
2784
3335
|
# @return [::Gapic::Operation]
|
2785
3336
|
#
|
2786
3337
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3338
|
+
#
|
3339
|
+
# @example Basic example
|
3340
|
+
# require "google/cloud/data_catalog/v1"
|
3341
|
+
#
|
3342
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3343
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
3344
|
+
#
|
3345
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3346
|
+
# request = Google::Cloud::DataCatalog::V1::ImportEntriesRequest.new
|
3347
|
+
#
|
3348
|
+
# # Call the import_entries method.
|
3349
|
+
# result = client.import_entries request
|
3350
|
+
#
|
3351
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3352
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3353
|
+
# # Here is how to wait for a response.
|
3354
|
+
# result.wait_until_done! timeout: 60
|
3355
|
+
# if result.response?
|
3356
|
+
# p result.response
|
3357
|
+
# else
|
3358
|
+
# puts "No response received."
|
3359
|
+
# end
|
3360
|
+
#
|
2787
3361
|
def import_entries request, options = nil
|
2788
3362
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2789
3363
|
|