google-cloud-data_catalog-v1 0.8.0 → 0.8.1
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 +113 -64
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +68 -49
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +38 -39
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e66f2b0c171f550be083e9c80ea37e49d2f28ea6c73e86061f7ff5491a27ba9
|
4
|
+
data.tar.gz: 8735ad84c57303a81e6c12a24e51f303d62a4920b872bc301d9e3d0dfe2a4308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfae23655cd8eb017f18b070a9f1f309bbee5d0903178612b305fda1df811a2d86fc07e9502846139ef6eb52d381e1afd581f3f1ac4e005bd1f7f05278cca0de
|
7
|
+
data.tar.gz: 9e49af68b78769cd2a27705e613cc60e360f58028641953506f24dbe9293de707010535713dfc36e2c998e0adab7793ae1319ae1a286c50c9420b29dea2cbded
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::DataCatalog::V1::DataCatalog::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all DataCatalog clients
|
48
|
+
# ::Google::Cloud::DataCatalog::V1::DataCatalog::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -137,19 +136,15 @@ module Google
|
|
137
136
|
##
|
138
137
|
# Create a new DataCatalog client object.
|
139
138
|
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
# To create a new DataCatalog client with the default
|
143
|
-
# configuration:
|
144
|
-
#
|
145
|
-
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
139
|
+
# @example
|
146
140
|
#
|
147
|
-
#
|
148
|
-
#
|
141
|
+
# # Create a client using the default configuration
|
142
|
+
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
149
143
|
#
|
150
|
-
#
|
151
|
-
#
|
152
|
-
#
|
144
|
+
# # Create a client using a custom configuration
|
145
|
+
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Client.new do |config|
|
146
|
+
# config.timeout = 10.0
|
147
|
+
# end
|
153
148
|
#
|
154
149
|
# @yield [config] Configure the DataCatalog client.
|
155
150
|
# @yieldparam config [Client::Configuration]
|
@@ -169,10 +164,9 @@ module Google
|
|
169
164
|
|
170
165
|
# Create credentials
|
171
166
|
credentials = @config.credentials
|
172
|
-
# Use self-signed JWT if the
|
167
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
173
168
|
# but only if the default endpoint does not have a region prefix.
|
174
|
-
enable_self_signed_jwt = @config.
|
175
|
-
@config.endpoint == Client.configure.endpoint &&
|
169
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
176
170
|
!@config.endpoint.split(".").first.include?("-")
|
177
171
|
credentials ||= Credentials.default scope: @config.scope,
|
178
172
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -296,7 +290,9 @@ module Google
|
|
296
290
|
options.apply_defaults timeout: @config.rpcs.search_catalog.timeout,
|
297
291
|
metadata: metadata,
|
298
292
|
retry_policy: @config.rpcs.search_catalog.retry_policy
|
299
|
-
|
293
|
+
|
294
|
+
options.apply_defaults timeout: @config.timeout,
|
295
|
+
metadata: @config.metadata,
|
300
296
|
retry_policy: @config.retry_policy
|
301
297
|
|
302
298
|
@data_catalog_stub.call_rpc :search_catalog, request, options: options do |response, operation|
|
@@ -400,7 +396,9 @@ module Google
|
|
400
396
|
options.apply_defaults timeout: @config.rpcs.create_entry_group.timeout,
|
401
397
|
metadata: metadata,
|
402
398
|
retry_policy: @config.rpcs.create_entry_group.retry_policy
|
403
|
-
|
399
|
+
|
400
|
+
options.apply_defaults timeout: @config.timeout,
|
401
|
+
metadata: @config.metadata,
|
404
402
|
retry_policy: @config.retry_policy
|
405
403
|
|
406
404
|
@data_catalog_stub.call_rpc :create_entry_group, request, options: options do |response, operation|
|
@@ -468,7 +466,9 @@ module Google
|
|
468
466
|
options.apply_defaults timeout: @config.rpcs.get_entry_group.timeout,
|
469
467
|
metadata: metadata,
|
470
468
|
retry_policy: @config.rpcs.get_entry_group.retry_policy
|
471
|
-
|
469
|
+
|
470
|
+
options.apply_defaults timeout: @config.timeout,
|
471
|
+
metadata: @config.metadata,
|
472
472
|
retry_policy: @config.retry_policy
|
473
473
|
|
474
474
|
@data_catalog_stub.call_rpc :get_entry_group, request, options: options do |response, operation|
|
@@ -545,7 +545,9 @@ module Google
|
|
545
545
|
options.apply_defaults timeout: @config.rpcs.update_entry_group.timeout,
|
546
546
|
metadata: metadata,
|
547
547
|
retry_policy: @config.rpcs.update_entry_group.retry_policy
|
548
|
-
|
548
|
+
|
549
|
+
options.apply_defaults timeout: @config.timeout,
|
550
|
+
metadata: @config.metadata,
|
549
551
|
retry_policy: @config.retry_policy
|
550
552
|
|
551
553
|
@data_catalog_stub.call_rpc :update_entry_group, request, options: options do |response, operation|
|
@@ -618,7 +620,9 @@ module Google
|
|
618
620
|
options.apply_defaults timeout: @config.rpcs.delete_entry_group.timeout,
|
619
621
|
metadata: metadata,
|
620
622
|
retry_policy: @config.rpcs.delete_entry_group.retry_policy
|
621
|
-
|
623
|
+
|
624
|
+
options.apply_defaults timeout: @config.timeout,
|
625
|
+
metadata: @config.metadata,
|
622
626
|
retry_policy: @config.retry_policy
|
623
627
|
|
624
628
|
@data_catalog_stub.call_rpc :delete_entry_group, request, options: options do |response, operation|
|
@@ -694,7 +698,9 @@ module Google
|
|
694
698
|
options.apply_defaults timeout: @config.rpcs.list_entry_groups.timeout,
|
695
699
|
metadata: metadata,
|
696
700
|
retry_policy: @config.rpcs.list_entry_groups.retry_policy
|
697
|
-
|
701
|
+
|
702
|
+
options.apply_defaults timeout: @config.timeout,
|
703
|
+
metadata: @config.metadata,
|
698
704
|
retry_policy: @config.retry_policy
|
699
705
|
|
700
706
|
@data_catalog_stub.call_rpc :list_entry_groups, request, options: options do |response, operation|
|
@@ -782,7 +788,9 @@ module Google
|
|
782
788
|
options.apply_defaults timeout: @config.rpcs.create_entry.timeout,
|
783
789
|
metadata: metadata,
|
784
790
|
retry_policy: @config.rpcs.create_entry.retry_policy
|
785
|
-
|
791
|
+
|
792
|
+
options.apply_defaults timeout: @config.timeout,
|
793
|
+
metadata: @config.metadata,
|
786
794
|
retry_policy: @config.retry_policy
|
787
795
|
|
788
796
|
@data_catalog_stub.call_rpc :create_entry, request, options: options do |response, operation|
|
@@ -883,7 +891,9 @@ module Google
|
|
883
891
|
options.apply_defaults timeout: @config.rpcs.update_entry.timeout,
|
884
892
|
metadata: metadata,
|
885
893
|
retry_policy: @config.rpcs.update_entry.retry_policy
|
886
|
-
|
894
|
+
|
895
|
+
options.apply_defaults timeout: @config.timeout,
|
896
|
+
metadata: @config.metadata,
|
887
897
|
retry_policy: @config.retry_policy
|
888
898
|
|
889
899
|
@data_catalog_stub.call_rpc :update_entry, request, options: options do |response, operation|
|
@@ -958,7 +968,9 @@ module Google
|
|
958
968
|
options.apply_defaults timeout: @config.rpcs.delete_entry.timeout,
|
959
969
|
metadata: metadata,
|
960
970
|
retry_policy: @config.rpcs.delete_entry.retry_policy
|
961
|
-
|
971
|
+
|
972
|
+
options.apply_defaults timeout: @config.timeout,
|
973
|
+
metadata: @config.metadata,
|
962
974
|
retry_policy: @config.retry_policy
|
963
975
|
|
964
976
|
@data_catalog_stub.call_rpc :delete_entry, request, options: options do |response, operation|
|
@@ -1024,7 +1036,9 @@ module Google
|
|
1024
1036
|
options.apply_defaults timeout: @config.rpcs.get_entry.timeout,
|
1025
1037
|
metadata: metadata,
|
1026
1038
|
retry_policy: @config.rpcs.get_entry.retry_policy
|
1027
|
-
|
1039
|
+
|
1040
|
+
options.apply_defaults timeout: @config.timeout,
|
1041
|
+
metadata: @config.metadata,
|
1028
1042
|
retry_policy: @config.retry_policy
|
1029
1043
|
|
1030
1044
|
@data_catalog_stub.call_rpc :get_entry, request, options: options do |response, operation|
|
@@ -1123,7 +1137,9 @@ module Google
|
|
1123
1137
|
options.apply_defaults timeout: @config.rpcs.lookup_entry.timeout,
|
1124
1138
|
metadata: metadata,
|
1125
1139
|
retry_policy: @config.rpcs.lookup_entry.retry_policy
|
1126
|
-
|
1140
|
+
|
1141
|
+
options.apply_defaults timeout: @config.timeout,
|
1142
|
+
metadata: @config.metadata,
|
1127
1143
|
retry_policy: @config.retry_policy
|
1128
1144
|
|
1129
1145
|
@data_catalog_stub.call_rpc :lookup_entry, request, options: options do |response, operation|
|
@@ -1203,7 +1219,9 @@ module Google
|
|
1203
1219
|
options.apply_defaults timeout: @config.rpcs.list_entries.timeout,
|
1204
1220
|
metadata: metadata,
|
1205
1221
|
retry_policy: @config.rpcs.list_entries.retry_policy
|
1206
|
-
|
1222
|
+
|
1223
|
+
options.apply_defaults timeout: @config.timeout,
|
1224
|
+
metadata: @config.metadata,
|
1207
1225
|
retry_policy: @config.retry_policy
|
1208
1226
|
|
1209
1227
|
@data_catalog_stub.call_rpc :list_entries, request, options: options do |response, operation|
|
@@ -1284,7 +1302,9 @@ module Google
|
|
1284
1302
|
options.apply_defaults timeout: @config.rpcs.create_tag_template.timeout,
|
1285
1303
|
metadata: metadata,
|
1286
1304
|
retry_policy: @config.rpcs.create_tag_template.retry_policy
|
1287
|
-
|
1305
|
+
|
1306
|
+
options.apply_defaults timeout: @config.timeout,
|
1307
|
+
metadata: @config.metadata,
|
1288
1308
|
retry_policy: @config.retry_policy
|
1289
1309
|
|
1290
1310
|
@data_catalog_stub.call_rpc :create_tag_template, request, options: options do |response, operation|
|
@@ -1350,7 +1370,9 @@ module Google
|
|
1350
1370
|
options.apply_defaults timeout: @config.rpcs.get_tag_template.timeout,
|
1351
1371
|
metadata: metadata,
|
1352
1372
|
retry_policy: @config.rpcs.get_tag_template.retry_policy
|
1353
|
-
|
1373
|
+
|
1374
|
+
options.apply_defaults timeout: @config.timeout,
|
1375
|
+
metadata: @config.metadata,
|
1354
1376
|
retry_policy: @config.retry_policy
|
1355
1377
|
|
1356
1378
|
@data_catalog_stub.call_rpc :get_tag_template, request, options: options do |response, operation|
|
@@ -1431,7 +1453,9 @@ module Google
|
|
1431
1453
|
options.apply_defaults timeout: @config.rpcs.update_tag_template.timeout,
|
1432
1454
|
metadata: metadata,
|
1433
1455
|
retry_policy: @config.rpcs.update_tag_template.retry_policy
|
1434
|
-
|
1456
|
+
|
1457
|
+
options.apply_defaults timeout: @config.timeout,
|
1458
|
+
metadata: @config.metadata,
|
1435
1459
|
retry_policy: @config.retry_policy
|
1436
1460
|
|
1437
1461
|
@data_catalog_stub.call_rpc :update_tag_template, request, options: options do |response, operation|
|
@@ -1505,7 +1529,9 @@ module Google
|
|
1505
1529
|
options.apply_defaults timeout: @config.rpcs.delete_tag_template.timeout,
|
1506
1530
|
metadata: metadata,
|
1507
1531
|
retry_policy: @config.rpcs.delete_tag_template.retry_policy
|
1508
|
-
|
1532
|
+
|
1533
|
+
options.apply_defaults timeout: @config.timeout,
|
1534
|
+
metadata: @config.metadata,
|
1509
1535
|
retry_policy: @config.retry_policy
|
1510
1536
|
|
1511
1537
|
@data_catalog_stub.call_rpc :delete_tag_template, request, options: options do |response, operation|
|
@@ -1587,7 +1613,9 @@ module Google
|
|
1587
1613
|
options.apply_defaults timeout: @config.rpcs.create_tag_template_field.timeout,
|
1588
1614
|
metadata: metadata,
|
1589
1615
|
retry_policy: @config.rpcs.create_tag_template_field.retry_policy
|
1590
|
-
|
1616
|
+
|
1617
|
+
options.apply_defaults timeout: @config.timeout,
|
1618
|
+
metadata: @config.metadata,
|
1591
1619
|
retry_policy: @config.retry_policy
|
1592
1620
|
|
1593
1621
|
@data_catalog_stub.call_rpc :create_tag_template_field, request, options: options do |response, operation|
|
@@ -1679,7 +1707,9 @@ module Google
|
|
1679
1707
|
options.apply_defaults timeout: @config.rpcs.update_tag_template_field.timeout,
|
1680
1708
|
metadata: metadata,
|
1681
1709
|
retry_policy: @config.rpcs.update_tag_template_field.retry_policy
|
1682
|
-
|
1710
|
+
|
1711
|
+
options.apply_defaults timeout: @config.timeout,
|
1712
|
+
metadata: @config.metadata,
|
1683
1713
|
retry_policy: @config.retry_policy
|
1684
1714
|
|
1685
1715
|
@data_catalog_stub.call_rpc :update_tag_template_field, request, options: options do |response, operation|
|
@@ -1751,7 +1781,9 @@ module Google
|
|
1751
1781
|
options.apply_defaults timeout: @config.rpcs.rename_tag_template_field.timeout,
|
1752
1782
|
metadata: metadata,
|
1753
1783
|
retry_policy: @config.rpcs.rename_tag_template_field.retry_policy
|
1754
|
-
|
1784
|
+
|
1785
|
+
options.apply_defaults timeout: @config.timeout,
|
1786
|
+
metadata: @config.metadata,
|
1755
1787
|
retry_policy: @config.retry_policy
|
1756
1788
|
|
1757
1789
|
@data_catalog_stub.call_rpc :rename_tag_template_field, request, options: options do |response, operation|
|
@@ -1821,7 +1853,9 @@ module Google
|
|
1821
1853
|
options.apply_defaults timeout: @config.rpcs.rename_tag_template_field_enum_value.timeout,
|
1822
1854
|
metadata: metadata,
|
1823
1855
|
retry_policy: @config.rpcs.rename_tag_template_field_enum_value.retry_policy
|
1824
|
-
|
1856
|
+
|
1857
|
+
options.apply_defaults timeout: @config.timeout,
|
1858
|
+
metadata: @config.metadata,
|
1825
1859
|
retry_policy: @config.retry_policy
|
1826
1860
|
|
1827
1861
|
@data_catalog_stub.call_rpc :rename_tag_template_field_enum_value, request, options: options do |response, operation|
|
@@ -1896,7 +1930,9 @@ module Google
|
|
1896
1930
|
options.apply_defaults timeout: @config.rpcs.delete_tag_template_field.timeout,
|
1897
1931
|
metadata: metadata,
|
1898
1932
|
retry_policy: @config.rpcs.delete_tag_template_field.retry_policy
|
1899
|
-
|
1933
|
+
|
1934
|
+
options.apply_defaults timeout: @config.timeout,
|
1935
|
+
metadata: @config.metadata,
|
1900
1936
|
retry_policy: @config.retry_policy
|
1901
1937
|
|
1902
1938
|
@data_catalog_stub.call_rpc :delete_tag_template_field, request, options: options do |response, operation|
|
@@ -1981,7 +2017,9 @@ module Google
|
|
1981
2017
|
options.apply_defaults timeout: @config.rpcs.create_tag.timeout,
|
1982
2018
|
metadata: metadata,
|
1983
2019
|
retry_policy: @config.rpcs.create_tag.retry_policy
|
1984
|
-
|
2020
|
+
|
2021
|
+
options.apply_defaults timeout: @config.timeout,
|
2022
|
+
metadata: @config.metadata,
|
1985
2023
|
retry_policy: @config.retry_policy
|
1986
2024
|
|
1987
2025
|
@data_catalog_stub.call_rpc :create_tag, request, options: options do |response, operation|
|
@@ -2054,7 +2092,9 @@ module Google
|
|
2054
2092
|
options.apply_defaults timeout: @config.rpcs.update_tag.timeout,
|
2055
2093
|
metadata: metadata,
|
2056
2094
|
retry_policy: @config.rpcs.update_tag.retry_policy
|
2057
|
-
|
2095
|
+
|
2096
|
+
options.apply_defaults timeout: @config.timeout,
|
2097
|
+
metadata: @config.metadata,
|
2058
2098
|
retry_policy: @config.retry_policy
|
2059
2099
|
|
2060
2100
|
@data_catalog_stub.call_rpc :update_tag, request, options: options do |response, operation|
|
@@ -2120,7 +2160,9 @@ module Google
|
|
2120
2160
|
options.apply_defaults timeout: @config.rpcs.delete_tag.timeout,
|
2121
2161
|
metadata: metadata,
|
2122
2162
|
retry_policy: @config.rpcs.delete_tag.retry_policy
|
2123
|
-
|
2163
|
+
|
2164
|
+
options.apply_defaults timeout: @config.timeout,
|
2165
|
+
metadata: @config.metadata,
|
2124
2166
|
retry_policy: @config.retry_policy
|
2125
2167
|
|
2126
2168
|
@data_catalog_stub.call_rpc :delete_tag, request, options: options do |response, operation|
|
@@ -2195,7 +2237,9 @@ module Google
|
|
2195
2237
|
options.apply_defaults timeout: @config.rpcs.list_tags.timeout,
|
2196
2238
|
metadata: metadata,
|
2197
2239
|
retry_policy: @config.rpcs.list_tags.retry_policy
|
2198
|
-
|
2240
|
+
|
2241
|
+
options.apply_defaults timeout: @config.timeout,
|
2242
|
+
metadata: @config.metadata,
|
2199
2243
|
retry_policy: @config.retry_policy
|
2200
2244
|
|
2201
2245
|
@data_catalog_stub.call_rpc :list_tags, request, options: options do |response, operation|
|
@@ -2284,7 +2328,9 @@ module Google
|
|
2284
2328
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
2285
2329
|
metadata: metadata,
|
2286
2330
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
2287
|
-
|
2331
|
+
|
2332
|
+
options.apply_defaults timeout: @config.timeout,
|
2333
|
+
metadata: @config.metadata,
|
2288
2334
|
retry_policy: @config.retry_policy
|
2289
2335
|
|
2290
2336
|
@data_catalog_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -2374,7 +2420,9 @@ module Google
|
|
2374
2420
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
2375
2421
|
metadata: metadata,
|
2376
2422
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
2377
|
-
|
2423
|
+
|
2424
|
+
options.apply_defaults timeout: @config.timeout,
|
2425
|
+
metadata: @config.metadata,
|
2378
2426
|
retry_policy: @config.retry_policy
|
2379
2427
|
|
2380
2428
|
@data_catalog_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -2459,7 +2507,9 @@ module Google
|
|
2459
2507
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
2460
2508
|
metadata: metadata,
|
2461
2509
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
2462
|
-
|
2510
|
+
|
2511
|
+
options.apply_defaults timeout: @config.timeout,
|
2512
|
+
metadata: @config.metadata,
|
2463
2513
|
retry_policy: @config.retry_policy
|
2464
2514
|
|
2465
2515
|
@data_catalog_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -2483,22 +2533,21 @@ module Google
|
|
2483
2533
|
# Configuration can be applied globally to all clients, or to a single client
|
2484
2534
|
# on construction.
|
2485
2535
|
#
|
2486
|
-
#
|
2487
|
-
#
|
2488
|
-
#
|
2489
|
-
# to 20 seconds,
|
2490
|
-
#
|
2491
|
-
#
|
2492
|
-
#
|
2493
|
-
#
|
2494
|
-
#
|
2495
|
-
#
|
2496
|
-
#
|
2497
|
-
#
|
2498
|
-
#
|
2499
|
-
#
|
2500
|
-
#
|
2501
|
-
# end
|
2536
|
+
# @example
|
2537
|
+
#
|
2538
|
+
# # Modify the global config, setting the timeout for
|
2539
|
+
# # search_catalog to 20 seconds,
|
2540
|
+
# # and all remaining timeouts to 10 seconds.
|
2541
|
+
# ::Google::Cloud::DataCatalog::V1::DataCatalog::Client.configure do |config|
|
2542
|
+
# config.timeout = 10.0
|
2543
|
+
# config.rpcs.search_catalog.timeout = 20.0
|
2544
|
+
# end
|
2545
|
+
#
|
2546
|
+
# # Apply the above configuration only to a new client.
|
2547
|
+
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Client.new do |config|
|
2548
|
+
# config.timeout = 10.0
|
2549
|
+
# config.rpcs.search_catalog.timeout = 20.0
|
2550
|
+
# end
|
2502
2551
|
#
|
2503
2552
|
# @!attribute [rw] endpoint
|
2504
2553
|
# The hostname or hostname:port of the service endpoint.
|
@@ -46,13 +46,12 @@ module Google
|
|
46
46
|
# See {::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client::Configuration}
|
47
47
|
# for a description of the configuration fields.
|
48
48
|
#
|
49
|
-
#
|
49
|
+
# @example
|
50
50
|
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
# end
|
51
|
+
# # Modify the configuration for all PolicyTagManager clients
|
52
|
+
# ::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.configure do |config|
|
53
|
+
# config.timeout = 10.0
|
54
|
+
# end
|
56
55
|
#
|
57
56
|
# @yield [config] Configure the Client client.
|
58
57
|
# @yieldparam config [Client::Configuration]
|
@@ -101,19 +100,15 @@ module Google
|
|
101
100
|
##
|
102
101
|
# Create a new PolicyTagManager client object.
|
103
102
|
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
# To create a new PolicyTagManager client with the default
|
107
|
-
# configuration:
|
108
|
-
#
|
109
|
-
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
103
|
+
# @example
|
110
104
|
#
|
111
|
-
#
|
112
|
-
#
|
105
|
+
# # Create a client using the default configuration
|
106
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new
|
113
107
|
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
108
|
+
# # Create a client using a custom configuration
|
109
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new do |config|
|
110
|
+
# config.timeout = 10.0
|
111
|
+
# end
|
117
112
|
#
|
118
113
|
# @yield [config] Configure the PolicyTagManager client.
|
119
114
|
# @yieldparam config [Client::Configuration]
|
@@ -133,10 +128,9 @@ module Google
|
|
133
128
|
|
134
129
|
# Create credentials
|
135
130
|
credentials = @config.credentials
|
136
|
-
# Use self-signed JWT if the
|
131
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
137
132
|
# but only if the default endpoint does not have a region prefix.
|
138
|
-
enable_self_signed_jwt = @config.
|
139
|
-
@config.endpoint == Client.configure.endpoint &&
|
133
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
140
134
|
!@config.endpoint.split(".").first.include?("-")
|
141
135
|
credentials ||= Credentials.default scope: @config.scope,
|
142
136
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -216,7 +210,9 @@ module Google
|
|
216
210
|
options.apply_defaults timeout: @config.rpcs.create_taxonomy.timeout,
|
217
211
|
metadata: metadata,
|
218
212
|
retry_policy: @config.rpcs.create_taxonomy.retry_policy
|
219
|
-
|
213
|
+
|
214
|
+
options.apply_defaults timeout: @config.timeout,
|
215
|
+
metadata: @config.metadata,
|
220
216
|
retry_policy: @config.retry_policy
|
221
217
|
|
222
218
|
@policy_tag_manager_stub.call_rpc :create_taxonomy, request, options: options do |response, operation|
|
@@ -286,7 +282,9 @@ module Google
|
|
286
282
|
options.apply_defaults timeout: @config.rpcs.delete_taxonomy.timeout,
|
287
283
|
metadata: metadata,
|
288
284
|
retry_policy: @config.rpcs.delete_taxonomy.retry_policy
|
289
|
-
|
285
|
+
|
286
|
+
options.apply_defaults timeout: @config.timeout,
|
287
|
+
metadata: @config.metadata,
|
290
288
|
retry_policy: @config.retry_policy
|
291
289
|
|
292
290
|
@policy_tag_manager_stub.call_rpc :delete_taxonomy, request, options: options do |response, operation|
|
@@ -360,7 +358,9 @@ module Google
|
|
360
358
|
options.apply_defaults timeout: @config.rpcs.update_taxonomy.timeout,
|
361
359
|
metadata: metadata,
|
362
360
|
retry_policy: @config.rpcs.update_taxonomy.retry_policy
|
363
|
-
|
361
|
+
|
362
|
+
options.apply_defaults timeout: @config.timeout,
|
363
|
+
metadata: @config.metadata,
|
364
364
|
retry_policy: @config.retry_policy
|
365
365
|
|
366
366
|
@policy_tag_manager_stub.call_rpc :update_taxonomy, request, options: options do |response, operation|
|
@@ -435,7 +435,9 @@ module Google
|
|
435
435
|
options.apply_defaults timeout: @config.rpcs.list_taxonomies.timeout,
|
436
436
|
metadata: metadata,
|
437
437
|
retry_policy: @config.rpcs.list_taxonomies.retry_policy
|
438
|
-
|
438
|
+
|
439
|
+
options.apply_defaults timeout: @config.timeout,
|
440
|
+
metadata: @config.metadata,
|
439
441
|
retry_policy: @config.retry_policy
|
440
442
|
|
441
443
|
@policy_tag_manager_stub.call_rpc :list_taxonomies, request, options: options do |response, operation|
|
@@ -502,7 +504,9 @@ module Google
|
|
502
504
|
options.apply_defaults timeout: @config.rpcs.get_taxonomy.timeout,
|
503
505
|
metadata: metadata,
|
504
506
|
retry_policy: @config.rpcs.get_taxonomy.retry_policy
|
505
|
-
|
507
|
+
|
508
|
+
options.apply_defaults timeout: @config.timeout,
|
509
|
+
metadata: @config.metadata,
|
506
510
|
retry_policy: @config.retry_policy
|
507
511
|
|
508
512
|
@policy_tag_manager_stub.call_rpc :get_taxonomy, request, options: options do |response, operation|
|
@@ -571,7 +575,9 @@ module Google
|
|
571
575
|
options.apply_defaults timeout: @config.rpcs.create_policy_tag.timeout,
|
572
576
|
metadata: metadata,
|
573
577
|
retry_policy: @config.rpcs.create_policy_tag.retry_policy
|
574
|
-
|
578
|
+
|
579
|
+
options.apply_defaults timeout: @config.timeout,
|
580
|
+
metadata: @config.metadata,
|
575
581
|
retry_policy: @config.retry_policy
|
576
582
|
|
577
583
|
@policy_tag_manager_stub.call_rpc :create_policy_tag, request, options: options do |response, operation|
|
@@ -644,7 +650,9 @@ module Google
|
|
644
650
|
options.apply_defaults timeout: @config.rpcs.delete_policy_tag.timeout,
|
645
651
|
metadata: metadata,
|
646
652
|
retry_policy: @config.rpcs.delete_policy_tag.retry_policy
|
647
|
-
|
653
|
+
|
654
|
+
options.apply_defaults timeout: @config.timeout,
|
655
|
+
metadata: @config.metadata,
|
648
656
|
retry_policy: @config.retry_policy
|
649
657
|
|
650
658
|
@policy_tag_manager_stub.call_rpc :delete_policy_tag, request, options: options do |response, operation|
|
@@ -719,7 +727,9 @@ module Google
|
|
719
727
|
options.apply_defaults timeout: @config.rpcs.update_policy_tag.timeout,
|
720
728
|
metadata: metadata,
|
721
729
|
retry_policy: @config.rpcs.update_policy_tag.retry_policy
|
722
|
-
|
730
|
+
|
731
|
+
options.apply_defaults timeout: @config.timeout,
|
732
|
+
metadata: @config.metadata,
|
723
733
|
retry_policy: @config.retry_policy
|
724
734
|
|
725
735
|
@policy_tag_manager_stub.call_rpc :update_policy_tag, request, options: options do |response, operation|
|
@@ -794,7 +804,9 @@ module Google
|
|
794
804
|
options.apply_defaults timeout: @config.rpcs.list_policy_tags.timeout,
|
795
805
|
metadata: metadata,
|
796
806
|
retry_policy: @config.rpcs.list_policy_tags.retry_policy
|
797
|
-
|
807
|
+
|
808
|
+
options.apply_defaults timeout: @config.timeout,
|
809
|
+
metadata: @config.metadata,
|
798
810
|
retry_policy: @config.retry_policy
|
799
811
|
|
800
812
|
@policy_tag_manager_stub.call_rpc :list_policy_tags, request, options: options do |response, operation|
|
@@ -861,7 +873,9 @@ module Google
|
|
861
873
|
options.apply_defaults timeout: @config.rpcs.get_policy_tag.timeout,
|
862
874
|
metadata: metadata,
|
863
875
|
retry_policy: @config.rpcs.get_policy_tag.retry_policy
|
864
|
-
|
876
|
+
|
877
|
+
options.apply_defaults timeout: @config.timeout,
|
878
|
+
metadata: @config.metadata,
|
865
879
|
retry_policy: @config.retry_policy
|
866
880
|
|
867
881
|
@policy_tag_manager_stub.call_rpc :get_policy_tag, request, options: options do |response, operation|
|
@@ -931,7 +945,9 @@ module Google
|
|
931
945
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
932
946
|
metadata: metadata,
|
933
947
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
934
|
-
|
948
|
+
|
949
|
+
options.apply_defaults timeout: @config.timeout,
|
950
|
+
metadata: @config.metadata,
|
935
951
|
retry_policy: @config.retry_policy
|
936
952
|
|
937
953
|
@policy_tag_manager_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -1003,7 +1019,9 @@ module Google
|
|
1003
1019
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1004
1020
|
metadata: metadata,
|
1005
1021
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1006
|
-
|
1022
|
+
|
1023
|
+
options.apply_defaults timeout: @config.timeout,
|
1024
|
+
metadata: @config.metadata,
|
1007
1025
|
retry_policy: @config.retry_policy
|
1008
1026
|
|
1009
1027
|
@policy_tag_manager_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -1076,7 +1094,9 @@ module Google
|
|
1076
1094
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1077
1095
|
metadata: metadata,
|
1078
1096
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1079
|
-
|
1097
|
+
|
1098
|
+
options.apply_defaults timeout: @config.timeout,
|
1099
|
+
metadata: @config.metadata,
|
1080
1100
|
retry_policy: @config.retry_policy
|
1081
1101
|
|
1082
1102
|
@policy_tag_manager_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1100,22 +1120,21 @@ module Google
|
|
1100
1120
|
# Configuration can be applied globally to all clients, or to a single client
|
1101
1121
|
# on construction.
|
1102
1122
|
#
|
1103
|
-
#
|
1104
|
-
#
|
1105
|
-
#
|
1106
|
-
# to 20 seconds,
|
1107
|
-
#
|
1108
|
-
#
|
1109
|
-
#
|
1110
|
-
#
|
1111
|
-
#
|
1112
|
-
#
|
1113
|
-
#
|
1114
|
-
#
|
1115
|
-
#
|
1116
|
-
#
|
1117
|
-
#
|
1118
|
-
# end
|
1123
|
+
# @example
|
1124
|
+
#
|
1125
|
+
# # Modify the global config, setting the timeout for
|
1126
|
+
# # create_taxonomy to 20 seconds,
|
1127
|
+
# # and all remaining timeouts to 10 seconds.
|
1128
|
+
# ::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.configure do |config|
|
1129
|
+
# config.timeout = 10.0
|
1130
|
+
# config.rpcs.create_taxonomy.timeout = 20.0
|
1131
|
+
# end
|
1132
|
+
#
|
1133
|
+
# # Apply the above configuration only to a new client.
|
1134
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client.new do |config|
|
1135
|
+
# config.timeout = 10.0
|
1136
|
+
# config.rpcs.create_taxonomy.timeout = 20.0
|
1137
|
+
# end
|
1119
1138
|
#
|
1120
1139
|
# @!attribute [rw] endpoint
|
1121
1140
|
# The hostname or hostname:port of the service endpoint.
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all PolicyTagManagerSerialization clients
|
50
|
+
# ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -99,19 +98,15 @@ module Google
|
|
99
98
|
##
|
100
99
|
# Create a new PolicyTagManagerSerialization client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new PolicyTagManagerSerialization client with the default
|
105
|
-
# configuration:
|
106
|
-
#
|
107
|
-
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
101
|
+
# @example
|
108
102
|
#
|
109
|
-
#
|
110
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
111
105
|
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the PolicyTagManagerSerialization client.
|
117
112
|
# @yieldparam config [Client::Configuration]
|
@@ -131,10 +126,9 @@ module Google
|
|
131
126
|
|
132
127
|
# Create credentials
|
133
128
|
credentials = @config.credentials
|
134
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
130
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.
|
137
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
138
132
|
!@config.endpoint.split(".").first.include?("-")
|
139
133
|
credentials ||= Credentials.default scope: @config.scope,
|
140
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -224,7 +218,9 @@ module Google
|
|
224
218
|
options.apply_defaults timeout: @config.rpcs.replace_taxonomy.timeout,
|
225
219
|
metadata: metadata,
|
226
220
|
retry_policy: @config.rpcs.replace_taxonomy.retry_policy
|
227
|
-
|
221
|
+
|
222
|
+
options.apply_defaults timeout: @config.timeout,
|
223
|
+
metadata: @config.metadata,
|
228
224
|
retry_policy: @config.retry_policy
|
229
225
|
|
230
226
|
@policy_tag_manager_serialization_stub.call_rpc :replace_taxonomy, request, options: options do |response, operation|
|
@@ -301,7 +297,9 @@ module Google
|
|
301
297
|
options.apply_defaults timeout: @config.rpcs.import_taxonomies.timeout,
|
302
298
|
metadata: metadata,
|
303
299
|
retry_policy: @config.rpcs.import_taxonomies.retry_policy
|
304
|
-
|
300
|
+
|
301
|
+
options.apply_defaults timeout: @config.timeout,
|
302
|
+
metadata: @config.metadata,
|
305
303
|
retry_policy: @config.retry_policy
|
306
304
|
|
307
305
|
@policy_tag_manager_serialization_stub.call_rpc :import_taxonomies, request, options: options do |response, operation|
|
@@ -377,7 +375,9 @@ module Google
|
|
377
375
|
options.apply_defaults timeout: @config.rpcs.export_taxonomies.timeout,
|
378
376
|
metadata: metadata,
|
379
377
|
retry_policy: @config.rpcs.export_taxonomies.retry_policy
|
380
|
-
|
378
|
+
|
379
|
+
options.apply_defaults timeout: @config.timeout,
|
380
|
+
metadata: @config.metadata,
|
381
381
|
retry_policy: @config.retry_policy
|
382
382
|
|
383
383
|
@policy_tag_manager_serialization_stub.call_rpc :export_taxonomies, request, options: options do |response, operation|
|
@@ -401,22 +401,21 @@ module Google
|
|
401
401
|
# Configuration can be applied globally to all clients, or to a single client
|
402
402
|
# on construction.
|
403
403
|
#
|
404
|
-
#
|
405
|
-
#
|
406
|
-
#
|
407
|
-
# to 20 seconds,
|
408
|
-
#
|
409
|
-
#
|
410
|
-
#
|
411
|
-
#
|
412
|
-
#
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
418
|
-
#
|
419
|
-
# end
|
404
|
+
# @example
|
405
|
+
#
|
406
|
+
# # Modify the global config, setting the timeout for
|
407
|
+
# # replace_taxonomy to 20 seconds,
|
408
|
+
# # and all remaining timeouts to 10 seconds.
|
409
|
+
# ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.configure do |config|
|
410
|
+
# config.timeout = 10.0
|
411
|
+
# config.rpcs.replace_taxonomy.timeout = 20.0
|
412
|
+
# end
|
413
|
+
#
|
414
|
+
# # Apply the above configuration only to a new client.
|
415
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new do |config|
|
416
|
+
# config.timeout = 10.0
|
417
|
+
# config.rpcs.replace_taxonomy.timeout = 20.0
|
418
|
+
# end
|
420
419
|
#
|
421
420
|
# @!attribute [rw] endpoint
|
422
421
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-data_catalog-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|