google-cloud-metastore-v1 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5566303fe84248626d5886217273a4bca109b53153caf591640c5d58d373f9b
4
- data.tar.gz: 57f360cbab2727f33d337b2cec3e3004f94433e3e995a16363ae4b02afe5e36f
3
+ metadata.gz: ac4a8bea604f120099cf58e0d1dfb3301a94937eb0b275125e0c3376480eaa4c
4
+ data.tar.gz: 1ccc1f5c20c36939a480a79138c8f03b70e3367f422936f51259d07b8a2922e6
5
5
  SHA512:
6
- metadata.gz: c4942d943169e4280c9eec3158085a89d000c5db8de14bc5437e2db1c5b7dc2a1931bc14b184a4f5cd190790bb6e18f9d29d9c29950935b4790faef65bc84ab4
7
- data.tar.gz: 2e283dedda4f288b19c05a8fcdaeb2fca8dd6d8c359cc812de11e3a52bdef65ec0267239e0cdb76966b0548c27377a1d8a14c78b12ebc496c576fdfd3c4ac2c8
6
+ metadata.gz: 442fc5a493e527fb962cd07db1bc4d43e43c05879c15e406d8d3613eb1007049848d1c8ce3ab9dbf922b6b7eae8bfcdc148bd6a2a4f84403ab5585c4c7e180a3
7
+ data.tar.gz: 595e85edb85d3e4437284f93050f9e4a58c29dea56db56146500d624bfb1d7cee8bc680d010fa3b2484a63a6d94c61b2adb3485cc2227e82fa4fc863b9578f44
@@ -197,7 +197,8 @@ module Google
197
197
  credentials: credentials,
198
198
  endpoint: @config.endpoint,
199
199
  channel_args: @config.channel_args,
200
- interceptors: @config.interceptors
200
+ interceptors: @config.interceptors,
201
+ channel_pool_config: @config.channel_pool
201
202
  )
202
203
  end
203
204
 
@@ -2297,6 +2298,14 @@ module Google
2297
2298
  end
2298
2299
  end
2299
2300
 
2301
+ ##
2302
+ # Configuration for the channel pool
2303
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2304
+ #
2305
+ def channel_pool
2306
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2307
+ end
2308
+
2300
2309
  ##
2301
2310
  # Configuration RPC class for the DataprocMetastore API.
2302
2311
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -268,6 +268,26 @@ module Google
268
268
  # @return [::Google::Cloud::Metastore::V1::ListServicesResponse]
269
269
  #
270
270
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
271
+ #
272
+ # @example Basic example
273
+ # require "google/cloud/metastore/v1"
274
+ #
275
+ # # Create a client object. The client can be reused for multiple calls.
276
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
277
+ #
278
+ # # Create a request. To set request fields, pass in keyword arguments.
279
+ # request = Google::Cloud::Metastore::V1::ListServicesRequest.new
280
+ #
281
+ # # Call the list_services method.
282
+ # result = client.list_services request
283
+ #
284
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
285
+ # # over elements, and API calls will be issued to fetch pages as needed.
286
+ # result.each do |item|
287
+ # # Each element is of type ::Google::Cloud::Metastore::V1::Service.
288
+ # p item
289
+ # end
290
+ #
271
291
  def list_services request, options = nil
272
292
  raise ::ArgumentError, "request must be provided" if request.nil?
273
293
 
@@ -333,6 +353,22 @@ module Google
333
353
  # @return [::Google::Cloud::Metastore::V1::Service]
334
354
  #
335
355
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
356
+ #
357
+ # @example Basic example
358
+ # require "google/cloud/metastore/v1"
359
+ #
360
+ # # Create a client object. The client can be reused for multiple calls.
361
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
362
+ #
363
+ # # Create a request. To set request fields, pass in keyword arguments.
364
+ # request = Google::Cloud::Metastore::V1::GetServiceRequest.new
365
+ #
366
+ # # Call the get_service method.
367
+ # result = client.get_service request
368
+ #
369
+ # # The returned object is of type Google::Cloud::Metastore::V1::Service.
370
+ # p result
371
+ #
336
372
  def get_service request, options = nil
337
373
  raise ::ArgumentError, "request must be provided" if request.nil?
338
374
 
@@ -422,6 +458,29 @@ module Google
422
458
  # @return [::Gapic::Operation]
423
459
  #
424
460
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
461
+ #
462
+ # @example Basic example
463
+ # require "google/cloud/metastore/v1"
464
+ #
465
+ # # Create a client object. The client can be reused for multiple calls.
466
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
467
+ #
468
+ # # Create a request. To set request fields, pass in keyword arguments.
469
+ # request = Google::Cloud::Metastore::V1::CreateServiceRequest.new
470
+ #
471
+ # # Call the create_service method.
472
+ # result = client.create_service request
473
+ #
474
+ # # The returned object is of type Gapic::Operation. You can use it to
475
+ # # check the status of an operation, cancel it, or wait for results.
476
+ # # Here is how to wait for a response.
477
+ # result.wait_until_done! timeout: 60
478
+ # if result.response?
479
+ # p result.response
480
+ # else
481
+ # puts "No response received."
482
+ # end
483
+ #
425
484
  def create_service request, options = nil
426
485
  raise ::ArgumentError, "request must be provided" if request.nil?
427
486
 
@@ -507,6 +566,29 @@ module Google
507
566
  # @return [::Gapic::Operation]
508
567
  #
509
568
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
569
+ #
570
+ # @example Basic example
571
+ # require "google/cloud/metastore/v1"
572
+ #
573
+ # # Create a client object. The client can be reused for multiple calls.
574
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
575
+ #
576
+ # # Create a request. To set request fields, pass in keyword arguments.
577
+ # request = Google::Cloud::Metastore::V1::UpdateServiceRequest.new
578
+ #
579
+ # # Call the update_service method.
580
+ # result = client.update_service request
581
+ #
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.
585
+ # result.wait_until_done! timeout: 60
586
+ # if result.response?
587
+ # p result.response
588
+ # else
589
+ # puts "No response received."
590
+ # end
591
+ #
510
592
  def update_service request, options = nil
511
593
  raise ::ArgumentError, "request must be provided" if request.nil?
512
594
 
@@ -586,6 +668,29 @@ module Google
586
668
  # @return [::Gapic::Operation]
587
669
  #
588
670
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
671
+ #
672
+ # @example Basic example
673
+ # require "google/cloud/metastore/v1"
674
+ #
675
+ # # Create a client object. The client can be reused for multiple calls.
676
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
677
+ #
678
+ # # Create a request. To set request fields, pass in keyword arguments.
679
+ # request = Google::Cloud::Metastore::V1::DeleteServiceRequest.new
680
+ #
681
+ # # Call the delete_service method.
682
+ # result = client.delete_service request
683
+ #
684
+ # # The returned object is of type Gapic::Operation. You can use it to
685
+ # # check the status of an operation, cancel it, or wait for results.
686
+ # # Here is how to wait for a response.
687
+ # result.wait_until_done! timeout: 60
688
+ # if result.response?
689
+ # p result.response
690
+ # else
691
+ # puts "No response received."
692
+ # end
693
+ #
589
694
  def delete_service request, options = nil
590
695
  raise ::ArgumentError, "request must be provided" if request.nil?
591
696
 
@@ -672,6 +777,26 @@ module Google
672
777
  # @return [::Google::Cloud::Metastore::V1::ListMetadataImportsResponse]
673
778
  #
674
779
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
780
+ #
781
+ # @example Basic example
782
+ # require "google/cloud/metastore/v1"
783
+ #
784
+ # # Create a client object. The client can be reused for multiple calls.
785
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
786
+ #
787
+ # # Create a request. To set request fields, pass in keyword arguments.
788
+ # request = Google::Cloud::Metastore::V1::ListMetadataImportsRequest.new
789
+ #
790
+ # # Call the list_metadata_imports method.
791
+ # result = client.list_metadata_imports request
792
+ #
793
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
794
+ # # over elements, and API calls will be issued to fetch pages as needed.
795
+ # result.each do |item|
796
+ # # Each element is of type ::Google::Cloud::Metastore::V1::MetadataImport.
797
+ # p item
798
+ # end
799
+ #
675
800
  def list_metadata_imports request, options = nil
676
801
  raise ::ArgumentError, "request must be provided" if request.nil?
677
802
 
@@ -737,6 +862,22 @@ module Google
737
862
  # @return [::Google::Cloud::Metastore::V1::MetadataImport]
738
863
  #
739
864
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
865
+ #
866
+ # @example Basic example
867
+ # require "google/cloud/metastore/v1"
868
+ #
869
+ # # Create a client object. The client can be reused for multiple calls.
870
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
871
+ #
872
+ # # Create a request. To set request fields, pass in keyword arguments.
873
+ # request = Google::Cloud::Metastore::V1::GetMetadataImportRequest.new
874
+ #
875
+ # # Call the get_metadata_import method.
876
+ # result = client.get_metadata_import request
877
+ #
878
+ # # The returned object is of type Google::Cloud::Metastore::V1::MetadataImport.
879
+ # p result
880
+ #
740
881
  def get_metadata_import request, options = nil
741
882
  raise ::ArgumentError, "request must be provided" if request.nil?
742
883
 
@@ -826,6 +967,29 @@ module Google
826
967
  # @return [::Gapic::Operation]
827
968
  #
828
969
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
970
+ #
971
+ # @example Basic example
972
+ # require "google/cloud/metastore/v1"
973
+ #
974
+ # # Create a client object. The client can be reused for multiple calls.
975
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
976
+ #
977
+ # # Create a request. To set request fields, pass in keyword arguments.
978
+ # request = Google::Cloud::Metastore::V1::CreateMetadataImportRequest.new
979
+ #
980
+ # # Call the create_metadata_import method.
981
+ # result = client.create_metadata_import request
982
+ #
983
+ # # The returned object is of type Gapic::Operation. You can use it to
984
+ # # check the status of an operation, cancel it, or wait for results.
985
+ # # Here is how to wait for a response.
986
+ # result.wait_until_done! timeout: 60
987
+ # if result.response?
988
+ # p result.response
989
+ # else
990
+ # puts "No response received."
991
+ # end
992
+ #
829
993
  def create_metadata_import request, options = nil
830
994
  raise ::ArgumentError, "request must be provided" if request.nil?
831
995
 
@@ -912,6 +1076,29 @@ module Google
912
1076
  # @return [::Gapic::Operation]
913
1077
  #
914
1078
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1079
+ #
1080
+ # @example Basic example
1081
+ # require "google/cloud/metastore/v1"
1082
+ #
1083
+ # # Create a client object. The client can be reused for multiple calls.
1084
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1085
+ #
1086
+ # # Create a request. To set request fields, pass in keyword arguments.
1087
+ # request = Google::Cloud::Metastore::V1::UpdateMetadataImportRequest.new
1088
+ #
1089
+ # # Call the update_metadata_import method.
1090
+ # result = client.update_metadata_import request
1091
+ #
1092
+ # # The returned object is of type Gapic::Operation. You can use it to
1093
+ # # check the status of an operation, cancel it, or wait for results.
1094
+ # # Here is how to wait for a response.
1095
+ # result.wait_until_done! timeout: 60
1096
+ # if result.response?
1097
+ # p result.response
1098
+ # else
1099
+ # puts "No response received."
1100
+ # end
1101
+ #
915
1102
  def update_metadata_import request, options = nil
916
1103
  raise ::ArgumentError, "request must be provided" if request.nil?
917
1104
 
@@ -998,6 +1185,29 @@ module Google
998
1185
  # @return [::Gapic::Operation]
999
1186
  #
1000
1187
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1188
+ #
1189
+ # @example Basic example
1190
+ # require "google/cloud/metastore/v1"
1191
+ #
1192
+ # # Create a client object. The client can be reused for multiple calls.
1193
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1194
+ #
1195
+ # # Create a request. To set request fields, pass in keyword arguments.
1196
+ # request = Google::Cloud::Metastore::V1::ExportMetadataRequest.new
1197
+ #
1198
+ # # Call the export_metadata method.
1199
+ # result = client.export_metadata request
1200
+ #
1201
+ # # The returned object is of type Gapic::Operation. You can use it to
1202
+ # # check the status of an operation, cancel it, or wait for results.
1203
+ # # Here is how to wait for a response.
1204
+ # result.wait_until_done! timeout: 60
1205
+ # if result.response?
1206
+ # p result.response
1207
+ # else
1208
+ # puts "No response received."
1209
+ # end
1210
+ #
1001
1211
  def export_metadata request, options = nil
1002
1212
  raise ::ArgumentError, "request must be provided" if request.nil?
1003
1213
 
@@ -1084,6 +1294,29 @@ module Google
1084
1294
  # @return [::Gapic::Operation]
1085
1295
  #
1086
1296
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1297
+ #
1298
+ # @example Basic example
1299
+ # require "google/cloud/metastore/v1"
1300
+ #
1301
+ # # Create a client object. The client can be reused for multiple calls.
1302
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1303
+ #
1304
+ # # Create a request. To set request fields, pass in keyword arguments.
1305
+ # request = Google::Cloud::Metastore::V1::RestoreServiceRequest.new
1306
+ #
1307
+ # # Call the restore_service method.
1308
+ # result = client.restore_service request
1309
+ #
1310
+ # # The returned object is of type Gapic::Operation. You can use it to
1311
+ # # check the status of an operation, cancel it, or wait for results.
1312
+ # # Here is how to wait for a response.
1313
+ # result.wait_until_done! timeout: 60
1314
+ # if result.response?
1315
+ # p result.response
1316
+ # else
1317
+ # puts "No response received."
1318
+ # end
1319
+ #
1087
1320
  def restore_service request, options = nil
1088
1321
  raise ::ArgumentError, "request must be provided" if request.nil?
1089
1322
 
@@ -1170,6 +1403,26 @@ module Google
1170
1403
  # @return [::Google::Cloud::Metastore::V1::ListBackupsResponse]
1171
1404
  #
1172
1405
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1406
+ #
1407
+ # @example Basic example
1408
+ # require "google/cloud/metastore/v1"
1409
+ #
1410
+ # # Create a client object. The client can be reused for multiple calls.
1411
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1412
+ #
1413
+ # # Create a request. To set request fields, pass in keyword arguments.
1414
+ # request = Google::Cloud::Metastore::V1::ListBackupsRequest.new
1415
+ #
1416
+ # # Call the list_backups method.
1417
+ # result = client.list_backups request
1418
+ #
1419
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1420
+ # # over elements, and API calls will be issued to fetch pages as needed.
1421
+ # result.each do |item|
1422
+ # # Each element is of type ::Google::Cloud::Metastore::V1::Backup.
1423
+ # p item
1424
+ # end
1425
+ #
1173
1426
  def list_backups request, options = nil
1174
1427
  raise ::ArgumentError, "request must be provided" if request.nil?
1175
1428
 
@@ -1235,6 +1488,22 @@ module Google
1235
1488
  # @return [::Google::Cloud::Metastore::V1::Backup]
1236
1489
  #
1237
1490
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1491
+ #
1492
+ # @example Basic example
1493
+ # require "google/cloud/metastore/v1"
1494
+ #
1495
+ # # Create a client object. The client can be reused for multiple calls.
1496
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1497
+ #
1498
+ # # Create a request. To set request fields, pass in keyword arguments.
1499
+ # request = Google::Cloud::Metastore::V1::GetBackupRequest.new
1500
+ #
1501
+ # # Call the get_backup method.
1502
+ # result = client.get_backup request
1503
+ #
1504
+ # # The returned object is of type Google::Cloud::Metastore::V1::Backup.
1505
+ # p result
1506
+ #
1238
1507
  def get_backup request, options = nil
1239
1508
  raise ::ArgumentError, "request must be provided" if request.nil?
1240
1509
 
@@ -1323,6 +1592,29 @@ module Google
1323
1592
  # @return [::Gapic::Operation]
1324
1593
  #
1325
1594
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1595
+ #
1596
+ # @example Basic example
1597
+ # require "google/cloud/metastore/v1"
1598
+ #
1599
+ # # Create a client object. The client can be reused for multiple calls.
1600
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1601
+ #
1602
+ # # Create a request. To set request fields, pass in keyword arguments.
1603
+ # request = Google::Cloud::Metastore::V1::CreateBackupRequest.new
1604
+ #
1605
+ # # Call the create_backup method.
1606
+ # result = client.create_backup request
1607
+ #
1608
+ # # The returned object is of type Gapic::Operation. You can use it to
1609
+ # # check the status of an operation, cancel it, or wait for results.
1610
+ # # Here is how to wait for a response.
1611
+ # result.wait_until_done! timeout: 60
1612
+ # if result.response?
1613
+ # p result.response
1614
+ # else
1615
+ # puts "No response received."
1616
+ # end
1617
+ #
1326
1618
  def create_backup request, options = nil
1327
1619
  raise ::ArgumentError, "request must be provided" if request.nil?
1328
1620
 
@@ -1402,6 +1694,29 @@ module Google
1402
1694
  # @return [::Gapic::Operation]
1403
1695
  #
1404
1696
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1697
+ #
1698
+ # @example Basic example
1699
+ # require "google/cloud/metastore/v1"
1700
+ #
1701
+ # # Create a client object. The client can be reused for multiple calls.
1702
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1703
+ #
1704
+ # # Create a request. To set request fields, pass in keyword arguments.
1705
+ # request = Google::Cloud::Metastore::V1::DeleteBackupRequest.new
1706
+ #
1707
+ # # Call the delete_backup method.
1708
+ # result = client.delete_backup request
1709
+ #
1710
+ # # The returned object is of type Gapic::Operation. You can use it to
1711
+ # # check the status of an operation, cancel it, or wait for results.
1712
+ # # Here is how to wait for a response.
1713
+ # result.wait_until_done! timeout: 60
1714
+ # if result.response?
1715
+ # p result.response
1716
+ # else
1717
+ # puts "No response received."
1718
+ # end
1719
+ #
1405
1720
  def delete_backup request, options = nil
1406
1721
  raise ::ArgumentError, "request must be provided" if request.nil?
1407
1722
 
@@ -1471,6 +1786,29 @@ module Google
1471
1786
  # @return [::Gapic::Operation]
1472
1787
  #
1473
1788
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1789
+ #
1790
+ # @example Basic example
1791
+ # require "google/cloud/metastore/v1"
1792
+ #
1793
+ # # Create a client object. The client can be reused for multiple calls.
1794
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1795
+ #
1796
+ # # Create a request. To set request fields, pass in keyword arguments.
1797
+ # request = Google::Cloud::Metastore::V1::QueryMetadataRequest.new
1798
+ #
1799
+ # # Call the query_metadata method.
1800
+ # result = client.query_metadata request
1801
+ #
1802
+ # # The returned object is of type Gapic::Operation. You can use it to
1803
+ # # check the status of an operation, cancel it, or wait for results.
1804
+ # # Here is how to wait for a response.
1805
+ # result.wait_until_done! timeout: 60
1806
+ # if result.response?
1807
+ # p result.response
1808
+ # else
1809
+ # puts "No response received."
1810
+ # end
1811
+ #
1474
1812
  def query_metadata request, options = nil
1475
1813
  raise ::ArgumentError, "request must be provided" if request.nil?
1476
1814
 
@@ -1543,6 +1881,29 @@ module Google
1543
1881
  # @return [::Gapic::Operation]
1544
1882
  #
1545
1883
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1884
+ #
1885
+ # @example Basic example
1886
+ # require "google/cloud/metastore/v1"
1887
+ #
1888
+ # # Create a client object. The client can be reused for multiple calls.
1889
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1890
+ #
1891
+ # # Create a request. To set request fields, pass in keyword arguments.
1892
+ # request = Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest.new
1893
+ #
1894
+ # # Call the move_table_to_database method.
1895
+ # result = client.move_table_to_database request
1896
+ #
1897
+ # # The returned object is of type Gapic::Operation. You can use it to
1898
+ # # check the status of an operation, cancel it, or wait for results.
1899
+ # # Here is how to wait for a response.
1900
+ # result.wait_until_done! timeout: 60
1901
+ # if result.response?
1902
+ # p result.response
1903
+ # else
1904
+ # puts "No response received."
1905
+ # end
1906
+ #
1546
1907
  def move_table_to_database request, options = nil
1547
1908
  raise ::ArgumentError, "request must be provided" if request.nil?
1548
1909
 
@@ -1622,6 +1983,29 @@ module Google
1622
1983
  # @return [::Gapic::Operation]
1623
1984
  #
1624
1985
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1986
+ #
1987
+ # @example Basic example
1988
+ # require "google/cloud/metastore/v1"
1989
+ #
1990
+ # # Create a client object. The client can be reused for multiple calls.
1991
+ # client = Google::Cloud::Metastore::V1::DataprocMetastore::Rest::Client.new
1992
+ #
1993
+ # # Create a request. To set request fields, pass in keyword arguments.
1994
+ # request = Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest.new
1995
+ #
1996
+ # # Call the alter_metadata_resource_location method.
1997
+ # result = client.alter_metadata_resource_location request
1998
+ #
1999
+ # # The returned object is of type Gapic::Operation. You can use it to
2000
+ # # check the status of an operation, cancel it, or wait for results.
2001
+ # # Here is how to wait for a response.
2002
+ # result.wait_until_done! timeout: 60
2003
+ # if result.response?
2004
+ # p result.response
2005
+ # else
2006
+ # puts "No response received."
2007
+ # end
2008
+ #
1625
2009
  def alter_metadata_resource_location request, options = nil
1626
2010
  raise ::ArgumentError, "request must be provided" if request.nil?
1627
2011
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -170,7 +170,8 @@ module Google
170
170
  credentials: credentials,
171
171
  endpoint: @config.endpoint,
172
172
  channel_args: @config.channel_args,
173
- interceptors: @config.interceptors
173
+ interceptors: @config.interceptors,
174
+ channel_pool_config: @config.channel_pool
174
175
  )
175
176
  end
176
177
 
@@ -860,6 +861,14 @@ module Google
860
861
  end
861
862
  end
862
863
 
864
+ ##
865
+ # Configuration for the channel pool
866
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
867
+ #
868
+ def channel_pool
869
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
870
+ end
871
+
863
872
  ##
864
873
  # Configuration RPC class for the DataprocMetastoreFederation API.
865
874
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -239,6 +239,26 @@ module Google
239
239
  # @return [::Google::Cloud::Metastore::V1::ListFederationsResponse]
240
240
  #
241
241
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
242
+ #
243
+ # @example Basic example
244
+ # require "google/cloud/metastore/v1"
245
+ #
246
+ # # Create a client object. The client can be reused for multiple calls.
247
+ # client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
248
+ #
249
+ # # Create a request. To set request fields, pass in keyword arguments.
250
+ # request = Google::Cloud::Metastore::V1::ListFederationsRequest.new
251
+ #
252
+ # # Call the list_federations method.
253
+ # result = client.list_federations request
254
+ #
255
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
256
+ # # over elements, and API calls will be issued to fetch pages as needed.
257
+ # result.each do |item|
258
+ # # Each element is of type ::Google::Cloud::Metastore::V1::Federation.
259
+ # p item
260
+ # end
261
+ #
242
262
  def list_federations request, options = nil
243
263
  raise ::ArgumentError, "request must be provided" if request.nil?
244
264
 
@@ -304,6 +324,22 @@ module Google
304
324
  # @return [::Google::Cloud::Metastore::V1::Federation]
305
325
  #
306
326
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
327
+ #
328
+ # @example Basic example
329
+ # require "google/cloud/metastore/v1"
330
+ #
331
+ # # Create a client object. The client can be reused for multiple calls.
332
+ # client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
333
+ #
334
+ # # Create a request. To set request fields, pass in keyword arguments.
335
+ # request = Google::Cloud::Metastore::V1::GetFederationRequest.new
336
+ #
337
+ # # Call the get_federation method.
338
+ # result = client.get_federation request
339
+ #
340
+ # # The returned object is of type Google::Cloud::Metastore::V1::Federation.
341
+ # p result
342
+ #
307
343
  def get_federation request, options = nil
308
344
  raise ::ArgumentError, "request must be provided" if request.nil?
309
345
 
@@ -393,6 +429,29 @@ module Google
393
429
  # @return [::Gapic::Operation]
394
430
  #
395
431
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
432
+ #
433
+ # @example Basic example
434
+ # require "google/cloud/metastore/v1"
435
+ #
436
+ # # Create a client object. The client can be reused for multiple calls.
437
+ # client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
438
+ #
439
+ # # Create a request. To set request fields, pass in keyword arguments.
440
+ # request = Google::Cloud::Metastore::V1::CreateFederationRequest.new
441
+ #
442
+ # # Call the create_federation method.
443
+ # result = client.create_federation request
444
+ #
445
+ # # The returned object is of type Gapic::Operation. You can use it to
446
+ # # check the status of an operation, cancel it, or wait for results.
447
+ # # Here is how to wait for a response.
448
+ # result.wait_until_done! timeout: 60
449
+ # if result.response?
450
+ # p result.response
451
+ # else
452
+ # puts "No response received."
453
+ # end
454
+ #
396
455
  def create_federation request, options = nil
397
456
  raise ::ArgumentError, "request must be provided" if request.nil?
398
457
 
@@ -478,6 +537,29 @@ module Google
478
537
  # @return [::Gapic::Operation]
479
538
  #
480
539
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
540
+ #
541
+ # @example Basic example
542
+ # require "google/cloud/metastore/v1"
543
+ #
544
+ # # Create a client object. The client can be reused for multiple calls.
545
+ # client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
546
+ #
547
+ # # Create a request. To set request fields, pass in keyword arguments.
548
+ # request = Google::Cloud::Metastore::V1::UpdateFederationRequest.new
549
+ #
550
+ # # Call the update_federation method.
551
+ # result = client.update_federation request
552
+ #
553
+ # # The returned object is of type Gapic::Operation. You can use it to
554
+ # # check the status of an operation, cancel it, or wait for results.
555
+ # # Here is how to wait for a response.
556
+ # result.wait_until_done! timeout: 60
557
+ # if result.response?
558
+ # p result.response
559
+ # else
560
+ # puts "No response received."
561
+ # end
562
+ #
481
563
  def update_federation request, options = nil
482
564
  raise ::ArgumentError, "request must be provided" if request.nil?
483
565
 
@@ -557,6 +639,29 @@ module Google
557
639
  # @return [::Gapic::Operation]
558
640
  #
559
641
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
642
+ #
643
+ # @example Basic example
644
+ # require "google/cloud/metastore/v1"
645
+ #
646
+ # # Create a client object. The client can be reused for multiple calls.
647
+ # client = Google::Cloud::Metastore::V1::DataprocMetastoreFederation::Rest::Client.new
648
+ #
649
+ # # Create a request. To set request fields, pass in keyword arguments.
650
+ # request = Google::Cloud::Metastore::V1::DeleteFederationRequest.new
651
+ #
652
+ # # Call the delete_federation method.
653
+ # result = client.delete_federation request
654
+ #
655
+ # # The returned object is of type Gapic::Operation. You can use it to
656
+ # # check the status of an operation, cancel it, or wait for results.
657
+ # # Here is how to wait for a response.
658
+ # result.wait_until_done! timeout: 60
659
+ # if result.response?
660
+ # p result.response
661
+ # else
662
+ # puts "No response received."
663
+ # end
664
+ #
560
665
  def delete_federation request, options = nil
561
666
  raise ::ArgumentError, "request must be provided" if request.nil?
562
667
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Metastore
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
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.9.0
4
+ version: 0.10.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: 2023-07-10 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.1
19
+ version: 0.20.0
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  - !ruby/object:Gem::Version
276
276
  version: '0'
277
277
  requirements: []
278
- rubygems_version: 3.4.2
278
+ rubygems_version: 3.4.19
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: The Dataproc Metastore API is used to manage the lifecycle and configuration