google-cloud-metastore-v1beta 0.1.3 → 0.1.4

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: 44b640d566424394c618e699b89bd5a59a7ad876d72502761c7e87eecd468e1f
4
- data.tar.gz: d0c06f1cca3f489cac7766102fad5465376100b5676cdab32d927fc61b435f6c
3
+ metadata.gz: 39c11be195e76ae1788d83c88e959d2e9c6a836bdcc680d817e632e7ca2b4c62
4
+ data.tar.gz: b5530167c9271a72522f3759d0e5037fa34622b1820af609843bc4cb26c8164b
5
5
  SHA512:
6
- metadata.gz: e7766319ed2bbbe5e12c5874129d75bd11045e48aa55876e9ca7705551c489414ddcd65ad984431c54587551ee7d29ede0329458da2c597848b7bd3b06fec48a
7
- data.tar.gz: d80127bc30e3d3eda2d8df5447b078c6f8b93e5d61c8085812ae996f491f0f209687ae2a7d8a58bf5c3798e2028bd943156bcdf095c6ebc2077d22164c3288bf
6
+ metadata.gz: 37b95032e4c645794cedfeffeabc121e3024666bf6f100712eaba6c5aa81b1223d96223d6bb9521ef0056155d5f9fc077f8ce35367291559cbc91f331b2d1243
7
+ data.tar.gz: 38258306d01969667f185b23fa86f40e98f29341c014486c2a0329da0e37105d1a7b232607915a9361fa02aaa99f411f04d71b12ed1462fd4366c47fd6b19d6f
@@ -248,6 +248,27 @@ module Google
248
248
  #
249
249
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
250
250
  #
251
+ # @example Basic example
252
+ # require "google/cloud/metastore/v1beta"
253
+ #
254
+ # # Create a client object. The client can be reused for multiple calls.
255
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
256
+ #
257
+ # # Create a request. To set request fields, pass in keyword arguments.
258
+ # request = Google::Cloud::Metastore::V1beta::ListServicesRequest.new
259
+ #
260
+ # # Call the list_services method.
261
+ # result = client.list_services request
262
+ #
263
+ # # The returned object is of type Gapic::PagedEnumerable. You can
264
+ # # iterate over all elements by calling #each, and the enumerable
265
+ # # will lazily make API calls to fetch subsequent pages. Other
266
+ # # methods are also available for managing paging directly.
267
+ # result.each do |response|
268
+ # # Each element is of type ::Google::Cloud::Metastore::V1beta::Service.
269
+ # p response
270
+ # end
271
+ #
251
272
  def list_services request, options = nil
252
273
  raise ::ArgumentError, "request must be provided" if request.nil?
253
274
 
@@ -265,9 +286,11 @@ module Google
265
286
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
266
287
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
267
288
 
268
- header_params = {
269
- "parent" => request.parent
270
- }
289
+ header_params = {}
290
+ if request.parent
291
+ header_params["parent"] = request.parent
292
+ end
293
+
271
294
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
272
295
  metadata[:"x-goog-request-params"] ||= request_params_header
273
296
 
@@ -320,6 +343,21 @@ module Google
320
343
  #
321
344
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
322
345
  #
346
+ # @example Basic example
347
+ # require "google/cloud/metastore/v1beta"
348
+ #
349
+ # # Create a client object. The client can be reused for multiple calls.
350
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
351
+ #
352
+ # # Create a request. To set request fields, pass in keyword arguments.
353
+ # request = Google::Cloud::Metastore::V1beta::GetServiceRequest.new
354
+ #
355
+ # # Call the get_service method.
356
+ # result = client.get_service request
357
+ #
358
+ # # The returned object is of type Google::Cloud::Metastore::V1beta::Service.
359
+ # p result
360
+ #
323
361
  def get_service request, options = nil
324
362
  raise ::ArgumentError, "request must be provided" if request.nil?
325
363
 
@@ -337,9 +375,11 @@ module Google
337
375
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
338
376
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
339
377
 
340
- header_params = {
341
- "name" => request.name
342
- }
378
+ header_params = {}
379
+ if request.name
380
+ header_params["name"] = request.name
381
+ end
382
+
343
383
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
344
384
  metadata[:"x-goog-request-params"] ||= request_params_header
345
385
 
@@ -415,6 +455,28 @@ module Google
415
455
  #
416
456
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
417
457
  #
458
+ # @example Basic example
459
+ # require "google/cloud/metastore/v1beta"
460
+ #
461
+ # # Create a client object. The client can be reused for multiple calls.
462
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
463
+ #
464
+ # # Create a request. To set request fields, pass in keyword arguments.
465
+ # request = Google::Cloud::Metastore::V1beta::CreateServiceRequest.new
466
+ #
467
+ # # Call the create_service method.
468
+ # result = client.create_service request
469
+ #
470
+ # # The returned object is of type Gapic::Operation. You can use this
471
+ # # object to check the status of an operation, cancel it, or wait
472
+ # # for results. Here is how to block until completion:
473
+ # result.wait_until_done! timeout: 60
474
+ # if result.response?
475
+ # p result.response
476
+ # else
477
+ # puts "Error!"
478
+ # end
479
+ #
418
480
  def create_service request, options = nil
419
481
  raise ::ArgumentError, "request must be provided" if request.nil?
420
482
 
@@ -432,9 +494,11 @@ module Google
432
494
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
433
495
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
434
496
 
435
- header_params = {
436
- "parent" => request.parent
437
- }
497
+ header_params = {}
498
+ if request.parent
499
+ header_params["parent"] = request.parent
500
+ end
501
+
438
502
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
439
503
  metadata[:"x-goog-request-params"] ||= request_params_header
440
504
 
@@ -506,6 +570,28 @@ module Google
506
570
  #
507
571
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
508
572
  #
573
+ # @example Basic example
574
+ # require "google/cloud/metastore/v1beta"
575
+ #
576
+ # # Create a client object. The client can be reused for multiple calls.
577
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
578
+ #
579
+ # # Create a request. To set request fields, pass in keyword arguments.
580
+ # request = Google::Cloud::Metastore::V1beta::UpdateServiceRequest.new
581
+ #
582
+ # # Call the update_service method.
583
+ # result = client.update_service request
584
+ #
585
+ # # The returned object is of type Gapic::Operation. You can use this
586
+ # # object to check the status of an operation, cancel it, or wait
587
+ # # for results. Here is how to block until completion:
588
+ # result.wait_until_done! timeout: 60
589
+ # if result.response?
590
+ # p result.response
591
+ # else
592
+ # puts "Error!"
593
+ # end
594
+ #
509
595
  def update_service request, options = nil
510
596
  raise ::ArgumentError, "request must be provided" if request.nil?
511
597
 
@@ -523,9 +609,11 @@ module Google
523
609
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
524
610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
525
611
 
526
- header_params = {
527
- "service.name" => request.service.name
528
- }
612
+ header_params = {}
613
+ if request.service&.name
614
+ header_params["service.name"] = request.service.name
615
+ end
616
+
529
617
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
530
618
  metadata[:"x-goog-request-params"] ||= request_params_header
531
619
 
@@ -591,6 +679,28 @@ module Google
591
679
  #
592
680
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
593
681
  #
682
+ # @example Basic example
683
+ # require "google/cloud/metastore/v1beta"
684
+ #
685
+ # # Create a client object. The client can be reused for multiple calls.
686
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
687
+ #
688
+ # # Create a request. To set request fields, pass in keyword arguments.
689
+ # request = Google::Cloud::Metastore::V1beta::DeleteServiceRequest.new
690
+ #
691
+ # # Call the delete_service method.
692
+ # result = client.delete_service request
693
+ #
694
+ # # The returned object is of type Gapic::Operation. You can use this
695
+ # # object to check the status of an operation, cancel it, or wait
696
+ # # for results. Here is how to block until completion:
697
+ # result.wait_until_done! timeout: 60
698
+ # if result.response?
699
+ # p result.response
700
+ # else
701
+ # puts "Error!"
702
+ # end
703
+ #
594
704
  def delete_service request, options = nil
595
705
  raise ::ArgumentError, "request must be provided" if request.nil?
596
706
 
@@ -608,9 +718,11 @@ module Google
608
718
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
609
719
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
610
720
 
611
- header_params = {
612
- "name" => request.name
613
- }
721
+ header_params = {}
722
+ if request.name
723
+ header_params["name"] = request.name
724
+ end
725
+
614
726
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
615
727
  metadata[:"x-goog-request-params"] ||= request_params_header
616
728
 
@@ -683,6 +795,27 @@ module Google
683
795
  #
684
796
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
685
797
  #
798
+ # @example Basic example
799
+ # require "google/cloud/metastore/v1beta"
800
+ #
801
+ # # Create a client object. The client can be reused for multiple calls.
802
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
803
+ #
804
+ # # Create a request. To set request fields, pass in keyword arguments.
805
+ # request = Google::Cloud::Metastore::V1beta::ListMetadataImportsRequest.new
806
+ #
807
+ # # Call the list_metadata_imports method.
808
+ # result = client.list_metadata_imports request
809
+ #
810
+ # # The returned object is of type Gapic::PagedEnumerable. You can
811
+ # # iterate over all elements by calling #each, and the enumerable
812
+ # # will lazily make API calls to fetch subsequent pages. Other
813
+ # # methods are also available for managing paging directly.
814
+ # result.each do |response|
815
+ # # Each element is of type ::Google::Cloud::Metastore::V1beta::MetadataImport.
816
+ # p response
817
+ # end
818
+ #
686
819
  def list_metadata_imports request, options = nil
687
820
  raise ::ArgumentError, "request must be provided" if request.nil?
688
821
 
@@ -700,9 +833,11 @@ module Google
700
833
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
701
834
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
702
835
 
703
- header_params = {
704
- "parent" => request.parent
705
- }
836
+ header_params = {}
837
+ if request.parent
838
+ header_params["parent"] = request.parent
839
+ end
840
+
706
841
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
707
842
  metadata[:"x-goog-request-params"] ||= request_params_header
708
843
 
@@ -755,6 +890,21 @@ module Google
755
890
  #
756
891
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
757
892
  #
893
+ # @example Basic example
894
+ # require "google/cloud/metastore/v1beta"
895
+ #
896
+ # # Create a client object. The client can be reused for multiple calls.
897
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
898
+ #
899
+ # # Create a request. To set request fields, pass in keyword arguments.
900
+ # request = Google::Cloud::Metastore::V1beta::GetMetadataImportRequest.new
901
+ #
902
+ # # Call the get_metadata_import method.
903
+ # result = client.get_metadata_import request
904
+ #
905
+ # # The returned object is of type Google::Cloud::Metastore::V1beta::MetadataImport.
906
+ # p result
907
+ #
758
908
  def get_metadata_import request, options = nil
759
909
  raise ::ArgumentError, "request must be provided" if request.nil?
760
910
 
@@ -772,9 +922,11 @@ module Google
772
922
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
773
923
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
774
924
 
775
- header_params = {
776
- "name" => request.name
777
- }
925
+ header_params = {}
926
+ if request.name
927
+ header_params["name"] = request.name
928
+ end
929
+
778
930
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
779
931
  metadata[:"x-goog-request-params"] ||= request_params_header
780
932
 
@@ -850,6 +1002,28 @@ module Google
850
1002
  #
851
1003
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
852
1004
  #
1005
+ # @example Basic example
1006
+ # require "google/cloud/metastore/v1beta"
1007
+ #
1008
+ # # Create a client object. The client can be reused for multiple calls.
1009
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
1010
+ #
1011
+ # # Create a request. To set request fields, pass in keyword arguments.
1012
+ # request = Google::Cloud::Metastore::V1beta::CreateMetadataImportRequest.new
1013
+ #
1014
+ # # Call the create_metadata_import method.
1015
+ # result = client.create_metadata_import request
1016
+ #
1017
+ # # The returned object is of type Gapic::Operation. You can use this
1018
+ # # object to check the status of an operation, cancel it, or wait
1019
+ # # for results. Here is how to block until completion:
1020
+ # result.wait_until_done! timeout: 60
1021
+ # if result.response?
1022
+ # p result.response
1023
+ # else
1024
+ # puts "Error!"
1025
+ # end
1026
+ #
853
1027
  def create_metadata_import request, options = nil
854
1028
  raise ::ArgumentError, "request must be provided" if request.nil?
855
1029
 
@@ -867,9 +1041,11 @@ module Google
867
1041
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
868
1042
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
869
1043
 
870
- header_params = {
871
- "parent" => request.parent
872
- }
1044
+ header_params = {}
1045
+ if request.parent
1046
+ header_params["parent"] = request.parent
1047
+ end
1048
+
873
1049
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
874
1050
  metadata[:"x-goog-request-params"] ||= request_params_header
875
1051
 
@@ -942,6 +1118,28 @@ module Google
942
1118
  #
943
1119
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
944
1120
  #
1121
+ # @example Basic example
1122
+ # require "google/cloud/metastore/v1beta"
1123
+ #
1124
+ # # Create a client object. The client can be reused for multiple calls.
1125
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
1126
+ #
1127
+ # # Create a request. To set request fields, pass in keyword arguments.
1128
+ # request = Google::Cloud::Metastore::V1beta::UpdateMetadataImportRequest.new
1129
+ #
1130
+ # # Call the update_metadata_import method.
1131
+ # result = client.update_metadata_import request
1132
+ #
1133
+ # # The returned object is of type Gapic::Operation. You can use this
1134
+ # # object to check the status of an operation, cancel it, or wait
1135
+ # # for results. Here is how to block until completion:
1136
+ # result.wait_until_done! timeout: 60
1137
+ # if result.response?
1138
+ # p result.response
1139
+ # else
1140
+ # puts "Error!"
1141
+ # end
1142
+ #
945
1143
  def update_metadata_import request, options = nil
946
1144
  raise ::ArgumentError, "request must be provided" if request.nil?
947
1145
 
@@ -959,9 +1157,11 @@ module Google
959
1157
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
960
1158
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
961
1159
 
962
- header_params = {
963
- "metadata_import.name" => request.metadata_import.name
964
- }
1160
+ header_params = {}
1161
+ if request.metadata_import&.name
1162
+ header_params["metadata_import.name"] = request.metadata_import.name
1163
+ end
1164
+
965
1165
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
966
1166
  metadata[:"x-goog-request-params"] ||= request_params_header
967
1167
 
@@ -1034,6 +1234,28 @@ module Google
1034
1234
  #
1035
1235
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1036
1236
  #
1237
+ # @example Basic example
1238
+ # require "google/cloud/metastore/v1beta"
1239
+ #
1240
+ # # Create a client object. The client can be reused for multiple calls.
1241
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
1242
+ #
1243
+ # # Create a request. To set request fields, pass in keyword arguments.
1244
+ # request = Google::Cloud::Metastore::V1beta::ExportMetadataRequest.new
1245
+ #
1246
+ # # Call the export_metadata method.
1247
+ # result = client.export_metadata request
1248
+ #
1249
+ # # The returned object is of type Gapic::Operation. You can use this
1250
+ # # object to check the status of an operation, cancel it, or wait
1251
+ # # for results. Here is how to block until completion:
1252
+ # result.wait_until_done! timeout: 60
1253
+ # if result.response?
1254
+ # p result.response
1255
+ # else
1256
+ # puts "Error!"
1257
+ # end
1258
+ #
1037
1259
  def export_metadata request, options = nil
1038
1260
  raise ::ArgumentError, "request must be provided" if request.nil?
1039
1261
 
@@ -1051,9 +1273,11 @@ module Google
1051
1273
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
1052
1274
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1053
1275
 
1054
- header_params = {
1055
- "service" => request.service
1056
- }
1276
+ header_params = {}
1277
+ if request.service
1278
+ header_params["service"] = request.service
1279
+ end
1280
+
1057
1281
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1058
1282
  metadata[:"x-goog-request-params"] ||= request_params_header
1059
1283
 
@@ -1126,6 +1350,28 @@ module Google
1126
1350
  #
1127
1351
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1128
1352
  #
1353
+ # @example Basic example
1354
+ # require "google/cloud/metastore/v1beta"
1355
+ #
1356
+ # # Create a client object. The client can be reused for multiple calls.
1357
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
1358
+ #
1359
+ # # Create a request. To set request fields, pass in keyword arguments.
1360
+ # request = Google::Cloud::Metastore::V1beta::RestoreServiceRequest.new
1361
+ #
1362
+ # # Call the restore_service method.
1363
+ # result = client.restore_service request
1364
+ #
1365
+ # # The returned object is of type Gapic::Operation. You can use this
1366
+ # # object to check the status of an operation, cancel it, or wait
1367
+ # # for results. Here is how to block until completion:
1368
+ # result.wait_until_done! timeout: 60
1369
+ # if result.response?
1370
+ # p result.response
1371
+ # else
1372
+ # puts "Error!"
1373
+ # end
1374
+ #
1129
1375
  def restore_service request, options = nil
1130
1376
  raise ::ArgumentError, "request must be provided" if request.nil?
1131
1377
 
@@ -1143,9 +1389,11 @@ module Google
1143
1389
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
1144
1390
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1145
1391
 
1146
- header_params = {
1147
- "service" => request.service
1148
- }
1392
+ header_params = {}
1393
+ if request.service
1394
+ header_params["service"] = request.service
1395
+ end
1396
+
1149
1397
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1150
1398
  metadata[:"x-goog-request-params"] ||= request_params_header
1151
1399
 
@@ -1218,6 +1466,27 @@ module Google
1218
1466
  #
1219
1467
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1220
1468
  #
1469
+ # @example Basic example
1470
+ # require "google/cloud/metastore/v1beta"
1471
+ #
1472
+ # # Create a client object. The client can be reused for multiple calls.
1473
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
1474
+ #
1475
+ # # Create a request. To set request fields, pass in keyword arguments.
1476
+ # request = Google::Cloud::Metastore::V1beta::ListBackupsRequest.new
1477
+ #
1478
+ # # Call the list_backups method.
1479
+ # result = client.list_backups request
1480
+ #
1481
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1482
+ # # iterate over all elements by calling #each, and the enumerable
1483
+ # # will lazily make API calls to fetch subsequent pages. Other
1484
+ # # methods are also available for managing paging directly.
1485
+ # result.each do |response|
1486
+ # # Each element is of type ::Google::Cloud::Metastore::V1beta::Backup.
1487
+ # p response
1488
+ # end
1489
+ #
1221
1490
  def list_backups request, options = nil
1222
1491
  raise ::ArgumentError, "request must be provided" if request.nil?
1223
1492
 
@@ -1235,9 +1504,11 @@ module Google
1235
1504
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
1236
1505
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1237
1506
 
1238
- header_params = {
1239
- "parent" => request.parent
1240
- }
1507
+ header_params = {}
1508
+ if request.parent
1509
+ header_params["parent"] = request.parent
1510
+ end
1511
+
1241
1512
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1242
1513
  metadata[:"x-goog-request-params"] ||= request_params_header
1243
1514
 
@@ -1290,6 +1561,21 @@ module Google
1290
1561
  #
1291
1562
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1292
1563
  #
1564
+ # @example Basic example
1565
+ # require "google/cloud/metastore/v1beta"
1566
+ #
1567
+ # # Create a client object. The client can be reused for multiple calls.
1568
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
1569
+ #
1570
+ # # Create a request. To set request fields, pass in keyword arguments.
1571
+ # request = Google::Cloud::Metastore::V1beta::GetBackupRequest.new
1572
+ #
1573
+ # # Call the get_backup method.
1574
+ # result = client.get_backup request
1575
+ #
1576
+ # # The returned object is of type Google::Cloud::Metastore::V1beta::Backup.
1577
+ # p result
1578
+ #
1293
1579
  def get_backup request, options = nil
1294
1580
  raise ::ArgumentError, "request must be provided" if request.nil?
1295
1581
 
@@ -1307,9 +1593,11 @@ module Google
1307
1593
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
1308
1594
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1309
1595
 
1310
- header_params = {
1311
- "name" => request.name
1312
- }
1596
+ header_params = {}
1597
+ if request.name
1598
+ header_params["name"] = request.name
1599
+ end
1600
+
1313
1601
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1314
1602
  metadata[:"x-goog-request-params"] ||= request_params_header
1315
1603
 
@@ -1384,6 +1672,28 @@ module Google
1384
1672
  #
1385
1673
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1386
1674
  #
1675
+ # @example Basic example
1676
+ # require "google/cloud/metastore/v1beta"
1677
+ #
1678
+ # # Create a client object. The client can be reused for multiple calls.
1679
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
1680
+ #
1681
+ # # Create a request. To set request fields, pass in keyword arguments.
1682
+ # request = Google::Cloud::Metastore::V1beta::CreateBackupRequest.new
1683
+ #
1684
+ # # Call the create_backup method.
1685
+ # result = client.create_backup request
1686
+ #
1687
+ # # The returned object is of type Gapic::Operation. You can use this
1688
+ # # object to check the status of an operation, cancel it, or wait
1689
+ # # for results. Here is how to block until completion:
1690
+ # result.wait_until_done! timeout: 60
1691
+ # if result.response?
1692
+ # p result.response
1693
+ # else
1694
+ # puts "Error!"
1695
+ # end
1696
+ #
1387
1697
  def create_backup request, options = nil
1388
1698
  raise ::ArgumentError, "request must be provided" if request.nil?
1389
1699
 
@@ -1401,9 +1711,11 @@ module Google
1401
1711
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
1402
1712
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1403
1713
 
1404
- header_params = {
1405
- "parent" => request.parent
1406
- }
1714
+ header_params = {}
1715
+ if request.parent
1716
+ header_params["parent"] = request.parent
1717
+ end
1718
+
1407
1719
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1408
1720
  metadata[:"x-goog-request-params"] ||= request_params_header
1409
1721
 
@@ -1469,6 +1781,28 @@ module Google
1469
1781
  #
1470
1782
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1471
1783
  #
1784
+ # @example Basic example
1785
+ # require "google/cloud/metastore/v1beta"
1786
+ #
1787
+ # # Create a client object. The client can be reused for multiple calls.
1788
+ # client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
1789
+ #
1790
+ # # Create a request. To set request fields, pass in keyword arguments.
1791
+ # request = Google::Cloud::Metastore::V1beta::DeleteBackupRequest.new
1792
+ #
1793
+ # # Call the delete_backup method.
1794
+ # result = client.delete_backup request
1795
+ #
1796
+ # # The returned object is of type Gapic::Operation. You can use this
1797
+ # # object to check the status of an operation, cancel it, or wait
1798
+ # # for results. Here is how to block until completion:
1799
+ # result.wait_until_done! timeout: 60
1800
+ # if result.response?
1801
+ # p result.response
1802
+ # else
1803
+ # puts "Error!"
1804
+ # end
1805
+ #
1472
1806
  def delete_backup request, options = nil
1473
1807
  raise ::ArgumentError, "request must be provided" if request.nil?
1474
1808
 
@@ -1486,9 +1820,11 @@ module Google
1486
1820
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
1487
1821
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1488
1822
 
1489
- header_params = {
1490
- "name" => request.name
1491
- }
1823
+ header_params = {}
1824
+ if request.name
1825
+ header_params["name"] = request.name
1826
+ end
1827
+
1492
1828
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1493
1829
  metadata[:"x-goog-request-params"] ||= request_params_header
1494
1830
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/metastore/v1beta/metastore.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -12,6 +10,8 @@ require 'google/protobuf/field_mask_pb'
12
10
  require 'google/protobuf/timestamp_pb'
13
11
  require 'google/protobuf/wrappers_pb'
14
12
  require 'google/type/dayofweek_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/metastore/v1beta/metastore.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.metastore.v1beta.Service" do
@@ -43,7 +43,7 @@ module Google
43
43
  # `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
44
44
  class Service
45
45
 
46
- include GRPC::GenericService
46
+ include ::GRPC::GenericService
47
47
 
48
48
  self.marshal_class_method = :encode
49
49
  self.unmarshal_class_method = :decode
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Metastore
23
23
  module V1beta
24
- VERSION = "0.1.3"
24
+ VERSION = "0.1.4"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-metastore-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common