google-cloud-metastore-v1 0.4.0 → 0.5.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/metastore/v1/dataproc_metastore/client.rb +76 -54
- data/lib/google/cloud/metastore/v1/dataproc_metastore/operations.rb +12 -14
- data/lib/google/cloud/metastore/v1/dataproc_metastore.rb +1 -1
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/client.rb +44 -18
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/operations.rb +12 -14
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation.rb +1 -1
- data/lib/google/cloud/metastore/v1/version.rb +1 -1
- data/lib/google/cloud/metastore/v1.rb +2 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +47 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85836b778dea961c5cb2b20a13a370554372f38feba88d4e6b08bde71adf79d5
|
4
|
+
data.tar.gz: 7f465484eb4ea2e236aab84facd351524f5328dfd9a7bf287b6f371e192fd614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddc6476dd33a665cdc561547684ebcc725140293237ae0c340c30eeaf2ace9e5b872d0ef35ef70b96209e6eb91b7f3c4171885329dc1eada59917260408af995
|
7
|
+
data.tar.gz: 719e9068b6fb668790a5a2302d2b742946af18bed9ea9a6d75ea25d2ad5672c223bf6211702b9b905454a1ad9d882497eaec58dd7df927c7265e168f1a6893e1
|
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/metastore/v1/metastore_pb"
|
21
|
+
require "google/cloud/location"
|
22
|
+
require "google/iam/v1"
|
21
23
|
|
22
24
|
module Google
|
23
25
|
module Cloud
|
@@ -178,6 +180,18 @@ module Google
|
|
178
180
|
config.endpoint = @config.endpoint
|
179
181
|
end
|
180
182
|
|
183
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
184
|
+
config.credentials = credentials
|
185
|
+
config.quota_project = @quota_project_id
|
186
|
+
config.endpoint = @config.endpoint
|
187
|
+
end
|
188
|
+
|
189
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
190
|
+
config.credentials = credentials
|
191
|
+
config.quota_project = @quota_project_id
|
192
|
+
config.endpoint = @config.endpoint
|
193
|
+
end
|
194
|
+
|
181
195
|
@dataproc_metastore_stub = ::Gapic::ServiceStub.new(
|
182
196
|
::Google::Cloud::Metastore::V1::DataprocMetastore::Stub,
|
183
197
|
credentials: credentials,
|
@@ -194,6 +208,20 @@ module Google
|
|
194
208
|
#
|
195
209
|
attr_reader :operations_client
|
196
210
|
|
211
|
+
##
|
212
|
+
# Get the associated client for mix-in of the Locations.
|
213
|
+
#
|
214
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
215
|
+
#
|
216
|
+
attr_reader :location_client
|
217
|
+
|
218
|
+
##
|
219
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
220
|
+
#
|
221
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
222
|
+
#
|
223
|
+
attr_reader :iam_policy_client
|
224
|
+
|
197
225
|
# Service calls
|
198
226
|
|
199
227
|
##
|
@@ -259,13 +287,11 @@ module Google
|
|
259
287
|
# # Call the list_services method.
|
260
288
|
# result = client.list_services request
|
261
289
|
#
|
262
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
263
|
-
# #
|
264
|
-
#
|
265
|
-
# # methods are also available for managing paging directly.
|
266
|
-
# result.each do |response|
|
290
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
291
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
292
|
+
# result.each do |item|
|
267
293
|
# # Each element is of type ::Google::Cloud::Metastore::V1::Service.
|
268
|
-
# p
|
294
|
+
# p item
|
269
295
|
# end
|
270
296
|
#
|
271
297
|
def list_services request, options = nil
|
@@ -466,14 +492,14 @@ module Google
|
|
466
492
|
# # Call the create_service method.
|
467
493
|
# result = client.create_service request
|
468
494
|
#
|
469
|
-
# # The returned object is of type Gapic::Operation. You can use
|
470
|
-
# #
|
471
|
-
# #
|
495
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
496
|
+
# # check the status of an operation, cancel it, or wait for results.
|
497
|
+
# # Here is how to wait for a response.
|
472
498
|
# result.wait_until_done! timeout: 60
|
473
499
|
# if result.response?
|
474
500
|
# p result.response
|
475
501
|
# else
|
476
|
-
# puts "
|
502
|
+
# puts "No response received."
|
477
503
|
# end
|
478
504
|
#
|
479
505
|
def create_service request, options = nil
|
@@ -581,14 +607,14 @@ module Google
|
|
581
607
|
# # Call the update_service method.
|
582
608
|
# result = client.update_service request
|
583
609
|
#
|
584
|
-
# # The returned object is of type Gapic::Operation. You can use
|
585
|
-
# #
|
586
|
-
# #
|
610
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
611
|
+
# # check the status of an operation, cancel it, or wait for results.
|
612
|
+
# # Here is how to wait for a response.
|
587
613
|
# result.wait_until_done! timeout: 60
|
588
614
|
# if result.response?
|
589
615
|
# p result.response
|
590
616
|
# else
|
591
|
-
# puts "
|
617
|
+
# puts "No response received."
|
592
618
|
# end
|
593
619
|
#
|
594
620
|
def update_service request, options = nil
|
@@ -690,14 +716,14 @@ module Google
|
|
690
716
|
# # Call the delete_service method.
|
691
717
|
# result = client.delete_service request
|
692
718
|
#
|
693
|
-
# # The returned object is of type Gapic::Operation. You can use
|
694
|
-
# #
|
695
|
-
# #
|
719
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
720
|
+
# # check the status of an operation, cancel it, or wait for results.
|
721
|
+
# # Here is how to wait for a response.
|
696
722
|
# result.wait_until_done! timeout: 60
|
697
723
|
# if result.response?
|
698
724
|
# p result.response
|
699
725
|
# else
|
700
|
-
# puts "
|
726
|
+
# puts "No response received."
|
701
727
|
# end
|
702
728
|
#
|
703
729
|
def delete_service request, options = nil
|
@@ -805,13 +831,11 @@ module Google
|
|
805
831
|
# # Call the list_metadata_imports method.
|
806
832
|
# result = client.list_metadata_imports request
|
807
833
|
#
|
808
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
809
|
-
# #
|
810
|
-
#
|
811
|
-
# # methods are also available for managing paging directly.
|
812
|
-
# result.each do |response|
|
834
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
835
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
836
|
+
# result.each do |item|
|
813
837
|
# # Each element is of type ::Google::Cloud::Metastore::V1::MetadataImport.
|
814
|
-
# p
|
838
|
+
# p item
|
815
839
|
# end
|
816
840
|
#
|
817
841
|
def list_metadata_imports request, options = nil
|
@@ -1012,14 +1036,14 @@ module Google
|
|
1012
1036
|
# # Call the create_metadata_import method.
|
1013
1037
|
# result = client.create_metadata_import request
|
1014
1038
|
#
|
1015
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1016
|
-
# #
|
1017
|
-
# #
|
1039
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1040
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1041
|
+
# # Here is how to wait for a response.
|
1018
1042
|
# result.wait_until_done! timeout: 60
|
1019
1043
|
# if result.response?
|
1020
1044
|
# p result.response
|
1021
1045
|
# else
|
1022
|
-
# puts "
|
1046
|
+
# puts "No response received."
|
1023
1047
|
# end
|
1024
1048
|
#
|
1025
1049
|
def create_metadata_import request, options = nil
|
@@ -1128,14 +1152,14 @@ module Google
|
|
1128
1152
|
# # Call the update_metadata_import method.
|
1129
1153
|
# result = client.update_metadata_import request
|
1130
1154
|
#
|
1131
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1132
|
-
# #
|
1133
|
-
# #
|
1155
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1156
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1157
|
+
# # Here is how to wait for a response.
|
1134
1158
|
# result.wait_until_done! timeout: 60
|
1135
1159
|
# if result.response?
|
1136
1160
|
# p result.response
|
1137
1161
|
# else
|
1138
|
-
# puts "
|
1162
|
+
# puts "No response received."
|
1139
1163
|
# end
|
1140
1164
|
#
|
1141
1165
|
def update_metadata_import request, options = nil
|
@@ -1243,14 +1267,14 @@ module Google
|
|
1243
1267
|
# # Call the export_metadata method.
|
1244
1268
|
# result = client.export_metadata request
|
1245
1269
|
#
|
1246
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1247
|
-
# #
|
1248
|
-
# #
|
1270
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1271
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1272
|
+
# # Here is how to wait for a response.
|
1249
1273
|
# result.wait_until_done! timeout: 60
|
1250
1274
|
# if result.response?
|
1251
1275
|
# p result.response
|
1252
1276
|
# else
|
1253
|
-
# puts "
|
1277
|
+
# puts "No response received."
|
1254
1278
|
# end
|
1255
1279
|
#
|
1256
1280
|
def export_metadata request, options = nil
|
@@ -1359,14 +1383,14 @@ module Google
|
|
1359
1383
|
# # Call the restore_service method.
|
1360
1384
|
# result = client.restore_service request
|
1361
1385
|
#
|
1362
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1363
|
-
# #
|
1364
|
-
# #
|
1386
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1387
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1388
|
+
# # Here is how to wait for a response.
|
1365
1389
|
# result.wait_until_done! timeout: 60
|
1366
1390
|
# if result.response?
|
1367
1391
|
# p result.response
|
1368
1392
|
# else
|
1369
|
-
# puts "
|
1393
|
+
# puts "No response received."
|
1370
1394
|
# end
|
1371
1395
|
#
|
1372
1396
|
def restore_service request, options = nil
|
@@ -1474,13 +1498,11 @@ module Google
|
|
1474
1498
|
# # Call the list_backups method.
|
1475
1499
|
# result = client.list_backups request
|
1476
1500
|
#
|
1477
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1478
|
-
# #
|
1479
|
-
#
|
1480
|
-
# # methods are also available for managing paging directly.
|
1481
|
-
# result.each do |response|
|
1501
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1502
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1503
|
+
# result.each do |item|
|
1482
1504
|
# # Each element is of type ::Google::Cloud::Metastore::V1::Backup.
|
1483
|
-
# p
|
1505
|
+
# p item
|
1484
1506
|
# end
|
1485
1507
|
#
|
1486
1508
|
def list_backups request, options = nil
|
@@ -1680,14 +1702,14 @@ module Google
|
|
1680
1702
|
# # Call the create_backup method.
|
1681
1703
|
# result = client.create_backup request
|
1682
1704
|
#
|
1683
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1684
|
-
# #
|
1685
|
-
# #
|
1705
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1706
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1707
|
+
# # Here is how to wait for a response.
|
1686
1708
|
# result.wait_until_done! timeout: 60
|
1687
1709
|
# if result.response?
|
1688
1710
|
# p result.response
|
1689
1711
|
# else
|
1690
|
-
# puts "
|
1712
|
+
# puts "No response received."
|
1691
1713
|
# end
|
1692
1714
|
#
|
1693
1715
|
def create_backup request, options = nil
|
@@ -1789,14 +1811,14 @@ module Google
|
|
1789
1811
|
# # Call the delete_backup method.
|
1790
1812
|
# result = client.delete_backup request
|
1791
1813
|
#
|
1792
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1793
|
-
# #
|
1794
|
-
# #
|
1814
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1815
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1816
|
+
# # Here is how to wait for a response.
|
1795
1817
|
# result.wait_until_done! timeout: 60
|
1796
1818
|
# if result.response?
|
1797
1819
|
# p result.response
|
1798
1820
|
# else
|
1799
|
-
# puts "
|
1821
|
+
# puts "No response received."
|
1800
1822
|
# end
|
1801
1823
|
#
|
1802
1824
|
def delete_backup request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -50,7 +50,7 @@ module Google
|
|
50
50
|
#
|
51
51
|
# `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
|
52
52
|
#
|
53
|
-
#
|
53
|
+
# @example Load this service and instantiate a gRPC client
|
54
54
|
#
|
55
55
|
# require "google/cloud/metastore/v1/dataproc_metastore"
|
56
56
|
# client = ::Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/metastore/v1/metastore_federation_pb"
|
21
|
+
require "google/cloud/location"
|
22
|
+
require "google/iam/v1"
|
21
23
|
|
22
24
|
module Google
|
23
25
|
module Cloud
|
@@ -151,6 +153,18 @@ module Google
|
|
151
153
|
config.endpoint = @config.endpoint
|
152
154
|
end
|
153
155
|
|
156
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
157
|
+
config.credentials = credentials
|
158
|
+
config.quota_project = @quota_project_id
|
159
|
+
config.endpoint = @config.endpoint
|
160
|
+
end
|
161
|
+
|
162
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
163
|
+
config.credentials = credentials
|
164
|
+
config.quota_project = @quota_project_id
|
165
|
+
config.endpoint = @config.endpoint
|
166
|
+
end
|
167
|
+
|
154
168
|
@dataproc_metastore_federation_stub = ::Gapic::ServiceStub.new(
|
155
169
|
::Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Stub,
|
156
170
|
credentials: credentials,
|
@@ -167,6 +181,20 @@ module Google
|
|
167
181
|
#
|
168
182
|
attr_reader :operations_client
|
169
183
|
|
184
|
+
##
|
185
|
+
# Get the associated client for mix-in of the Locations.
|
186
|
+
#
|
187
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
188
|
+
#
|
189
|
+
attr_reader :location_client
|
190
|
+
|
191
|
+
##
|
192
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
193
|
+
#
|
194
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
195
|
+
#
|
196
|
+
attr_reader :iam_policy_client
|
197
|
+
|
170
198
|
# Service calls
|
171
199
|
|
172
200
|
##
|
@@ -231,13 +259,11 @@ module Google
|
|
231
259
|
# # Call the list_federations method.
|
232
260
|
# result = client.list_federations request
|
233
261
|
#
|
234
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
235
|
-
# #
|
236
|
-
#
|
237
|
-
# # methods are also available for managing paging directly.
|
238
|
-
# result.each do |response|
|
262
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
263
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
264
|
+
# result.each do |item|
|
239
265
|
# # Each element is of type ::Google::Cloud::Metastore::V1::Federation.
|
240
|
-
# p
|
266
|
+
# p item
|
241
267
|
# end
|
242
268
|
#
|
243
269
|
def list_federations request, options = nil
|
@@ -438,14 +464,14 @@ module Google
|
|
438
464
|
# # Call the create_federation method.
|
439
465
|
# result = client.create_federation request
|
440
466
|
#
|
441
|
-
# # The returned object is of type Gapic::Operation. You can use
|
442
|
-
# #
|
443
|
-
# #
|
467
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
468
|
+
# # check the status of an operation, cancel it, or wait for results.
|
469
|
+
# # Here is how to wait for a response.
|
444
470
|
# result.wait_until_done! timeout: 60
|
445
471
|
# if result.response?
|
446
472
|
# p result.response
|
447
473
|
# else
|
448
|
-
# puts "
|
474
|
+
# puts "No response received."
|
449
475
|
# end
|
450
476
|
#
|
451
477
|
def create_federation request, options = nil
|
@@ -553,14 +579,14 @@ module Google
|
|
553
579
|
# # Call the update_federation method.
|
554
580
|
# result = client.update_federation request
|
555
581
|
#
|
556
|
-
# # The returned object is of type Gapic::Operation. You can use
|
557
|
-
# #
|
558
|
-
# #
|
582
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
583
|
+
# # check the status of an operation, cancel it, or wait for results.
|
584
|
+
# # Here is how to wait for a response.
|
559
585
|
# result.wait_until_done! timeout: 60
|
560
586
|
# if result.response?
|
561
587
|
# p result.response
|
562
588
|
# else
|
563
|
-
# puts "
|
589
|
+
# puts "No response received."
|
564
590
|
# end
|
565
591
|
#
|
566
592
|
def update_federation request, options = nil
|
@@ -662,14 +688,14 @@ module Google
|
|
662
688
|
# # Call the delete_federation method.
|
663
689
|
# result = client.delete_federation request
|
664
690
|
#
|
665
|
-
# # The returned object is of type Gapic::Operation. You can use
|
666
|
-
# #
|
667
|
-
# #
|
691
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
692
|
+
# # check the status of an operation, cancel it, or wait for results.
|
693
|
+
# # Here is how to wait for a response.
|
668
694
|
# result.wait_until_done! timeout: 60
|
669
695
|
# if result.response?
|
670
696
|
# p result.response
|
671
697
|
# else
|
672
|
-
# puts "
|
698
|
+
# puts "No response received."
|
673
699
|
# end
|
674
700
|
#
|
675
701
|
def delete_federation request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -46,7 +46,7 @@ module Google
|
|
46
46
|
# form:
|
47
47
|
# `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
|
48
48
|
#
|
49
|
-
#
|
49
|
+
# @example Load this service and instantiate a gRPC client
|
50
50
|
#
|
51
51
|
# require "google/cloud/metastore/v1/dataproc_metastore_federation"
|
52
52
|
# client = ::Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Client.new
|
@@ -24,9 +24,9 @@ module Google
|
|
24
24
|
module Cloud
|
25
25
|
module Metastore
|
26
26
|
##
|
27
|
-
#
|
27
|
+
# API client module.
|
28
28
|
#
|
29
|
-
# @example
|
29
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
30
30
|
#
|
31
31
|
# require "google/cloud/metastore/v1"
|
32
32
|
# client = ::Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-metastore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-17 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:
|
19
|
+
version: 0.17.1
|
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:
|
29
|
+
version: 0.17.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -44,20 +44,60 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-cloud-location
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.4'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.4'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: google-iam-v1
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.4'
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.a
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.4'
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.a
|
47
87
|
- !ruby/object:Gem::Dependency
|
48
88
|
name: google-style
|
49
89
|
requirement: !ruby/object:Gem::Requirement
|
50
90
|
requirements:
|
51
91
|
- - "~>"
|
52
92
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
93
|
+
version: 1.26.3
|
54
94
|
type: :development
|
55
95
|
prerelease: false
|
56
96
|
version_requirements: !ruby/object:Gem::Requirement
|
57
97
|
requirements:
|
58
98
|
- - "~>"
|
59
99
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
100
|
+
version: 1.26.3
|
61
101
|
- !ruby/object:Gem::Dependency
|
62
102
|
name: minitest
|
63
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
264
|
- !ruby/object:Gem::Version
|
225
265
|
version: '0'
|
226
266
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
267
|
+
rubygems_version: 3.4.2
|
228
268
|
signing_key:
|
229
269
|
specification_version: 4
|
230
270
|
summary: API Client library for the Dataproc Metastore V1 API
|