google-cloud-spanner-admin-database-v1 0.14.1 → 0.15.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: 165184d6b1addf27fb91b5b86df6c191ace85cd540875e5ba9c20f445864a1c4
4
- data.tar.gz: 0f1ed3d3134959c743b1a545da2c166a5b3079ab5528c1c086ef2537dce80677
3
+ metadata.gz: d80f52c9149db5cb504f370b9032a45c72961067825b82afbef40f4570ae3efb
4
+ data.tar.gz: f09e8f2b540031be683cc0ed3d0d8047189d82508e16f285e7740ae7f94b2fdb
5
5
  SHA512:
6
- metadata.gz: 98e7e833ee1fb4d63c05dbc55434eb0c3d9fb08d52d7de919a120b68c1f56cd42d05b4fb85f8cac61b9d4f154fc9248f42d5635901961ef81200f9db3b442fbd
7
- data.tar.gz: 92b0b92ca12f4e1d41f7026e8a8754080eaacb7472f856932658d98197a9c78f868c29fd2ce4a3b183a44795c00703f3162c98c35ce1d843fa4a0a17706df279
6
+ metadata.gz: 2794516391abb6ef0b55dd961f3ccc2f7cd6f2bffe56eca33328a2e92648c9ea4f4edaba332defe7c28c2527894ba6e08debfb92af92f47189c6ad396ba3be14
7
+ data.tar.gz: 6537551aaca485ab7ef91865b7fac41e38b4ffeeb2c76531691f5c34edeb65765e363e080dfb33902b87e3f2b9eba3d8ff0aef63c9de4af8b31d501a5b2ff4dd
@@ -234,7 +234,8 @@ module Google
234
234
  credentials: credentials,
235
235
  endpoint: @config.endpoint,
236
236
  channel_args: @config.channel_args,
237
- interceptors: @config.interceptors
237
+ interceptors: @config.interceptors,
238
+ channel_pool_config: @config.channel_pool
238
239
  )
239
240
  end
240
241
 
@@ -2606,6 +2607,14 @@ module Google
2606
2607
  end
2607
2608
  end
2608
2609
 
2610
+ ##
2611
+ # Configuration for the channel pool
2612
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2613
+ #
2614
+ def channel_pool
2615
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2616
+ end
2617
+
2609
2618
  ##
2610
2619
  # Configuration RPC class for the DatabaseAdmin API.
2611
2620
  #
@@ -95,7 +95,8 @@ module Google
95
95
  credentials: credentials,
96
96
  endpoint: @config.endpoint,
97
97
  channel_args: @config.channel_args,
98
- interceptors: @config.interceptors
98
+ interceptors: @config.interceptors,
99
+ channel_pool_config: @config.channel_pool
99
100
  )
100
101
 
101
102
  # Used by an LRO wrapper for some methods of this service
@@ -703,6 +704,14 @@ module Google
703
704
  end
704
705
  end
705
706
 
707
+ ##
708
+ # Configuration for the channel pool
709
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
710
+ #
711
+ def channel_pool
712
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
713
+ end
714
+
706
715
  ##
707
716
  # Configuration RPC class for the Operations API.
708
717
  #
@@ -273,6 +273,26 @@ module Google
273
273
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Spanner::Admin::Database::V1::Database>]
274
274
  #
275
275
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
276
+ #
277
+ # @example Basic example
278
+ # require "google/cloud/spanner/admin/database/v1"
279
+ #
280
+ # # Create a client object. The client can be reused for multiple calls.
281
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
282
+ #
283
+ # # Create a request. To set request fields, pass in keyword arguments.
284
+ # request = Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesRequest.new
285
+ #
286
+ # # Call the list_databases method.
287
+ # result = client.list_databases request
288
+ #
289
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
290
+ # # over elements, and API calls will be issued to fetch pages as needed.
291
+ # result.each do |item|
292
+ # # Each element is of type ::Google::Cloud::Spanner::Admin::Database::V1::Database.
293
+ # p item
294
+ # end
295
+ #
276
296
  def list_databases request, options = nil
277
297
  raise ::ArgumentError, "request must be provided" if request.nil?
278
298
 
@@ -361,6 +381,29 @@ module Google
361
381
  # @return [::Gapic::Operation]
362
382
  #
363
383
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
384
+ #
385
+ # @example Basic example
386
+ # require "google/cloud/spanner/admin/database/v1"
387
+ #
388
+ # # Create a client object. The client can be reused for multiple calls.
389
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
390
+ #
391
+ # # Create a request. To set request fields, pass in keyword arguments.
392
+ # request = Google::Cloud::Spanner::Admin::Database::V1::CreateDatabaseRequest.new
393
+ #
394
+ # # Call the create_database method.
395
+ # result = client.create_database request
396
+ #
397
+ # # The returned object is of type Gapic::Operation. You can use it to
398
+ # # check the status of an operation, cancel it, or wait for results.
399
+ # # Here is how to wait for a response.
400
+ # result.wait_until_done! timeout: 60
401
+ # if result.response?
402
+ # p result.response
403
+ # else
404
+ # puts "No response received."
405
+ # end
406
+ #
364
407
  def create_database request, options = nil
365
408
  raise ::ArgumentError, "request must be provided" if request.nil?
366
409
 
@@ -425,6 +468,22 @@ module Google
425
468
  # @return [::Google::Cloud::Spanner::Admin::Database::V1::Database]
426
469
  #
427
470
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
471
+ #
472
+ # @example Basic example
473
+ # require "google/cloud/spanner/admin/database/v1"
474
+ #
475
+ # # Create a client object. The client can be reused for multiple calls.
476
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
477
+ #
478
+ # # Create a request. To set request fields, pass in keyword arguments.
479
+ # request = Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseRequest.new
480
+ #
481
+ # # Call the get_database method.
482
+ # result = client.get_database request
483
+ #
484
+ # # The returned object is of type Google::Cloud::Spanner::Admin::Database::V1::Database.
485
+ # p result
486
+ #
428
487
  def get_database request, options = nil
429
488
  raise ::ArgumentError, "request must be provided" if request.nil?
430
489
 
@@ -527,6 +586,29 @@ module Google
527
586
  # @return [::Gapic::Operation]
528
587
  #
529
588
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
589
+ #
590
+ # @example Basic example
591
+ # require "google/cloud/spanner/admin/database/v1"
592
+ #
593
+ # # Create a client object. The client can be reused for multiple calls.
594
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
595
+ #
596
+ # # Create a request. To set request fields, pass in keyword arguments.
597
+ # request = Google::Cloud::Spanner::Admin::Database::V1::UpdateDatabaseRequest.new
598
+ #
599
+ # # Call the update_database method.
600
+ # result = client.update_database request
601
+ #
602
+ # # The returned object is of type Gapic::Operation. You can use it to
603
+ # # check the status of an operation, cancel it, or wait for results.
604
+ # # Here is how to wait for a response.
605
+ # result.wait_until_done! timeout: 60
606
+ # if result.response?
607
+ # p result.response
608
+ # else
609
+ # puts "No response received."
610
+ # end
611
+ #
530
612
  def update_database request, options = nil
531
613
  raise ::ArgumentError, "request must be provided" if request.nil?
532
614
 
@@ -618,6 +700,29 @@ module Google
618
700
  # @return [::Gapic::Operation]
619
701
  #
620
702
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
703
+ #
704
+ # @example Basic example
705
+ # require "google/cloud/spanner/admin/database/v1"
706
+ #
707
+ # # Create a client object. The client can be reused for multiple calls.
708
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
709
+ #
710
+ # # Create a request. To set request fields, pass in keyword arguments.
711
+ # request = Google::Cloud::Spanner::Admin::Database::V1::UpdateDatabaseDdlRequest.new
712
+ #
713
+ # # Call the update_database_ddl method.
714
+ # result = client.update_database_ddl request
715
+ #
716
+ # # The returned object is of type Gapic::Operation. You can use it to
717
+ # # check the status of an operation, cancel it, or wait for results.
718
+ # # Here is how to wait for a response.
719
+ # result.wait_until_done! timeout: 60
720
+ # if result.response?
721
+ # p result.response
722
+ # else
723
+ # puts "No response received."
724
+ # end
725
+ #
621
726
  def update_database_ddl request, options = nil
622
727
  raise ::ArgumentError, "request must be provided" if request.nil?
623
728
 
@@ -685,6 +790,22 @@ module Google
685
790
  # @return [::Google::Protobuf::Empty]
686
791
  #
687
792
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
793
+ #
794
+ # @example Basic example
795
+ # require "google/cloud/spanner/admin/database/v1"
796
+ #
797
+ # # Create a client object. The client can be reused for multiple calls.
798
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
799
+ #
800
+ # # Create a request. To set request fields, pass in keyword arguments.
801
+ # request = Google::Cloud::Spanner::Admin::Database::V1::DropDatabaseRequest.new
802
+ #
803
+ # # Call the drop_database method.
804
+ # result = client.drop_database request
805
+ #
806
+ # # The returned object is of type Google::Protobuf::Empty.
807
+ # p result
808
+ #
688
809
  def drop_database request, options = nil
689
810
  raise ::ArgumentError, "request must be provided" if request.nil?
690
811
 
@@ -751,6 +872,22 @@ module Google
751
872
  # @return [::Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlResponse]
752
873
  #
753
874
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
875
+ #
876
+ # @example Basic example
877
+ # require "google/cloud/spanner/admin/database/v1"
878
+ #
879
+ # # Create a client object. The client can be reused for multiple calls.
880
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
881
+ #
882
+ # # Create a request. To set request fields, pass in keyword arguments.
883
+ # request = Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlRequest.new
884
+ #
885
+ # # Call the get_database_ddl method.
886
+ # result = client.get_database_ddl request
887
+ #
888
+ # # The returned object is of type Google::Cloud::Spanner::Admin::Database::V1::GetDatabaseDdlResponse.
889
+ # p result
890
+ #
754
891
  def get_database_ddl request, options = nil
755
892
  raise ::ArgumentError, "request must be provided" if request.nil?
756
893
 
@@ -831,6 +968,22 @@ module Google
831
968
  # @return [::Google::Iam::V1::Policy]
832
969
  #
833
970
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
971
+ #
972
+ # @example Basic example
973
+ # require "google/cloud/spanner/admin/database/v1"
974
+ #
975
+ # # Create a client object. The client can be reused for multiple calls.
976
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
977
+ #
978
+ # # Create a request. To set request fields, pass in keyword arguments.
979
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
980
+ #
981
+ # # Call the set_iam_policy method.
982
+ # result = client.set_iam_policy request
983
+ #
984
+ # # The returned object is of type Google::Iam::V1::Policy.
985
+ # p result
986
+ #
834
987
  def set_iam_policy request, options = nil
835
988
  raise ::ArgumentError, "request must be provided" if request.nil?
836
989
 
@@ -904,6 +1057,22 @@ module Google
904
1057
  # @return [::Google::Iam::V1::Policy]
905
1058
  #
906
1059
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1060
+ #
1061
+ # @example Basic example
1062
+ # require "google/cloud/spanner/admin/database/v1"
1063
+ #
1064
+ # # Create a client object. The client can be reused for multiple calls.
1065
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
1066
+ #
1067
+ # # Create a request. To set request fields, pass in keyword arguments.
1068
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1069
+ #
1070
+ # # Call the get_iam_policy method.
1071
+ # result = client.get_iam_policy request
1072
+ #
1073
+ # # The returned object is of type Google::Iam::V1::Policy.
1074
+ # p result
1075
+ #
907
1076
  def get_iam_policy request, options = nil
908
1077
  raise ::ArgumentError, "request must be provided" if request.nil?
909
1078
 
@@ -981,6 +1150,22 @@ module Google
981
1150
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
982
1151
  #
983
1152
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1153
+ #
1154
+ # @example Basic example
1155
+ # require "google/cloud/spanner/admin/database/v1"
1156
+ #
1157
+ # # Create a client object. The client can be reused for multiple calls.
1158
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
1159
+ #
1160
+ # # Create a request. To set request fields, pass in keyword arguments.
1161
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1162
+ #
1163
+ # # Call the test_iam_permissions method.
1164
+ # result = client.test_iam_permissions request
1165
+ #
1166
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1167
+ # p result
1168
+ #
984
1169
  def test_iam_permissions request, options = nil
985
1170
  raise ::ArgumentError, "request must be provided" if request.nil?
986
1171
 
@@ -1071,6 +1256,29 @@ module Google
1071
1256
  # @return [::Gapic::Operation]
1072
1257
  #
1073
1258
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1259
+ #
1260
+ # @example Basic example
1261
+ # require "google/cloud/spanner/admin/database/v1"
1262
+ #
1263
+ # # Create a client object. The client can be reused for multiple calls.
1264
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
1265
+ #
1266
+ # # Create a request. To set request fields, pass in keyword arguments.
1267
+ # request = Google::Cloud::Spanner::Admin::Database::V1::CreateBackupRequest.new
1268
+ #
1269
+ # # Call the create_backup method.
1270
+ # result = client.create_backup request
1271
+ #
1272
+ # # The returned object is of type Gapic::Operation. You can use it to
1273
+ # # check the status of an operation, cancel it, or wait for results.
1274
+ # # Here is how to wait for a response.
1275
+ # result.wait_until_done! timeout: 60
1276
+ # if result.response?
1277
+ # p result.response
1278
+ # else
1279
+ # puts "No response received."
1280
+ # end
1281
+ #
1074
1282
  def create_backup request, options = nil
1075
1283
  raise ::ArgumentError, "request must be provided" if request.nil?
1076
1284
 
@@ -1169,6 +1377,29 @@ module Google
1169
1377
  # @return [::Gapic::Operation]
1170
1378
  #
1171
1379
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1380
+ #
1381
+ # @example Basic example
1382
+ # require "google/cloud/spanner/admin/database/v1"
1383
+ #
1384
+ # # Create a client object. The client can be reused for multiple calls.
1385
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
1386
+ #
1387
+ # # Create a request. To set request fields, pass in keyword arguments.
1388
+ # request = Google::Cloud::Spanner::Admin::Database::V1::CopyBackupRequest.new
1389
+ #
1390
+ # # Call the copy_backup method.
1391
+ # result = client.copy_backup request
1392
+ #
1393
+ # # The returned object is of type Gapic::Operation. You can use it to
1394
+ # # check the status of an operation, cancel it, or wait for results.
1395
+ # # Here is how to wait for a response.
1396
+ # result.wait_until_done! timeout: 60
1397
+ # if result.response?
1398
+ # p result.response
1399
+ # else
1400
+ # puts "No response received."
1401
+ # end
1402
+ #
1172
1403
  def copy_backup request, options = nil
1173
1404
  raise ::ArgumentError, "request must be provided" if request.nil?
1174
1405
 
@@ -1234,6 +1465,22 @@ module Google
1234
1465
  # @return [::Google::Cloud::Spanner::Admin::Database::V1::Backup]
1235
1466
  #
1236
1467
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1468
+ #
1469
+ # @example Basic example
1470
+ # require "google/cloud/spanner/admin/database/v1"
1471
+ #
1472
+ # # Create a client object. The client can be reused for multiple calls.
1473
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
1474
+ #
1475
+ # # Create a request. To set request fields, pass in keyword arguments.
1476
+ # request = Google::Cloud::Spanner::Admin::Database::V1::GetBackupRequest.new
1477
+ #
1478
+ # # Call the get_backup method.
1479
+ # result = client.get_backup request
1480
+ #
1481
+ # # The returned object is of type Google::Cloud::Spanner::Admin::Database::V1::Backup.
1482
+ # p result
1483
+ #
1237
1484
  def get_backup request, options = nil
1238
1485
  raise ::ArgumentError, "request must be provided" if request.nil?
1239
1486
 
@@ -1305,6 +1552,22 @@ module Google
1305
1552
  # @return [::Google::Cloud::Spanner::Admin::Database::V1::Backup]
1306
1553
  #
1307
1554
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1555
+ #
1556
+ # @example Basic example
1557
+ # require "google/cloud/spanner/admin/database/v1"
1558
+ #
1559
+ # # Create a client object. The client can be reused for multiple calls.
1560
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
1561
+ #
1562
+ # # Create a request. To set request fields, pass in keyword arguments.
1563
+ # request = Google::Cloud::Spanner::Admin::Database::V1::UpdateBackupRequest.new
1564
+ #
1565
+ # # Call the update_backup method.
1566
+ # result = client.update_backup request
1567
+ #
1568
+ # # The returned object is of type Google::Cloud::Spanner::Admin::Database::V1::Backup.
1569
+ # p result
1570
+ #
1308
1571
  def update_backup request, options = nil
1309
1572
  raise ::ArgumentError, "request must be provided" if request.nil?
1310
1573
 
@@ -1369,6 +1632,22 @@ module Google
1369
1632
  # @return [::Google::Protobuf::Empty]
1370
1633
  #
1371
1634
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1635
+ #
1636
+ # @example Basic example
1637
+ # require "google/cloud/spanner/admin/database/v1"
1638
+ #
1639
+ # # Create a client object. The client can be reused for multiple calls.
1640
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
1641
+ #
1642
+ # # Create a request. To set request fields, pass in keyword arguments.
1643
+ # request = Google::Cloud::Spanner::Admin::Database::V1::DeleteBackupRequest.new
1644
+ #
1645
+ # # Call the delete_backup method.
1646
+ # result = client.delete_backup request
1647
+ #
1648
+ # # The returned object is of type Google::Protobuf::Empty.
1649
+ # p result
1650
+ #
1372
1651
  def delete_backup request, options = nil
1373
1652
  raise ::ArgumentError, "request must be provided" if request.nil?
1374
1653
 
@@ -1478,6 +1757,26 @@ module Google
1478
1757
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Spanner::Admin::Database::V1::Backup>]
1479
1758
  #
1480
1759
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1760
+ #
1761
+ # @example Basic example
1762
+ # require "google/cloud/spanner/admin/database/v1"
1763
+ #
1764
+ # # Create a client object. The client can be reused for multiple calls.
1765
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
1766
+ #
1767
+ # # Create a request. To set request fields, pass in keyword arguments.
1768
+ # request = Google::Cloud::Spanner::Admin::Database::V1::ListBackupsRequest.new
1769
+ #
1770
+ # # Call the list_backups method.
1771
+ # result = client.list_backups request
1772
+ #
1773
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1774
+ # # over elements, and API calls will be issued to fetch pages as needed.
1775
+ # result.each do |item|
1776
+ # # Each element is of type ::Google::Cloud::Spanner::Admin::Database::V1::Backup.
1777
+ # p item
1778
+ # end
1779
+ #
1481
1780
  def list_backups request, options = nil
1482
1781
  raise ::ArgumentError, "request must be provided" if request.nil?
1483
1782
 
@@ -1576,6 +1875,29 @@ module Google
1576
1875
  # @return [::Gapic::Operation]
1577
1876
  #
1578
1877
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1878
+ #
1879
+ # @example Basic example
1880
+ # require "google/cloud/spanner/admin/database/v1"
1881
+ #
1882
+ # # Create a client object. The client can be reused for multiple calls.
1883
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
1884
+ #
1885
+ # # Create a request. To set request fields, pass in keyword arguments.
1886
+ # request = Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseRequest.new
1887
+ #
1888
+ # # Call the restore_database method.
1889
+ # result = client.restore_database request
1890
+ #
1891
+ # # The returned object is of type Gapic::Operation. You can use it to
1892
+ # # check the status of an operation, cancel it, or wait for results.
1893
+ # # Here is how to wait for a response.
1894
+ # result.wait_until_done! timeout: 60
1895
+ # if result.response?
1896
+ # p result.response
1897
+ # else
1898
+ # puts "No response received."
1899
+ # end
1900
+ #
1579
1901
  def restore_database request, options = nil
1580
1902
  raise ::ArgumentError, "request must be provided" if request.nil?
1581
1903
 
@@ -1698,6 +2020,26 @@ module Google
1698
2020
  # @return [::Gapic::Operation]
1699
2021
  #
1700
2022
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2023
+ #
2024
+ # @example Basic example
2025
+ # require "google/cloud/spanner/admin/database/v1"
2026
+ #
2027
+ # # Create a client object. The client can be reused for multiple calls.
2028
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
2029
+ #
2030
+ # # Create a request. To set request fields, pass in keyword arguments.
2031
+ # request = Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsRequest.new
2032
+ #
2033
+ # # Call the list_database_operations method.
2034
+ # result = client.list_database_operations request
2035
+ #
2036
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2037
+ # # over elements, and API calls will be issued to fetch pages as needed.
2038
+ # result.each do |item|
2039
+ # # Each element is of type ::Google::Longrunning::Operation.
2040
+ # p item
2041
+ # end
2042
+ #
1701
2043
  def list_database_operations request, options = nil
1702
2044
  raise ::ArgumentError, "request must be provided" if request.nil?
1703
2045
 
@@ -1846,6 +2188,26 @@ module Google
1846
2188
  # @return [::Gapic::Operation]
1847
2189
  #
1848
2190
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2191
+ #
2192
+ # @example Basic example
2193
+ # require "google/cloud/spanner/admin/database/v1"
2194
+ #
2195
+ # # Create a client object. The client can be reused for multiple calls.
2196
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
2197
+ #
2198
+ # # Create a request. To set request fields, pass in keyword arguments.
2199
+ # request = Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsRequest.new
2200
+ #
2201
+ # # Call the list_backup_operations method.
2202
+ # result = client.list_backup_operations request
2203
+ #
2204
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2205
+ # # over elements, and API calls will be issued to fetch pages as needed.
2206
+ # result.each do |item|
2207
+ # # Each element is of type ::Google::Longrunning::Operation.
2208
+ # p item
2209
+ # end
2210
+ #
1849
2211
  def list_backup_operations request, options = nil
1850
2212
  raise ::ArgumentError, "request must be provided" if request.nil?
1851
2213
 
@@ -1918,6 +2280,26 @@ module Google
1918
2280
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Spanner::Admin::Database::V1::DatabaseRole>]
1919
2281
  #
1920
2282
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2283
+ #
2284
+ # @example Basic example
2285
+ # require "google/cloud/spanner/admin/database/v1"
2286
+ #
2287
+ # # Create a client object. The client can be reused for multiple calls.
2288
+ # client = Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Rest::Client.new
2289
+ #
2290
+ # # Create a request. To set request fields, pass in keyword arguments.
2291
+ # request = Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseRolesRequest.new
2292
+ #
2293
+ # # Call the list_database_roles method.
2294
+ # result = client.list_database_roles request
2295
+ #
2296
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2297
+ # # over elements, and API calls will be issued to fetch pages as needed.
2298
+ # result.each do |item|
2299
+ # # Each element is of type ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseRole.
2300
+ # p item
2301
+ # end
2302
+ #
1921
2303
  def list_database_roles request, options = nil
1922
2304
  raise ::ArgumentError, "request must be provided" if request.nil?
1923
2305
 
@@ -138,6 +138,26 @@ module Google
138
138
  # @return [::Gapic::Operation]
139
139
  #
140
140
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
141
+ #
142
+ # @example Basic example
143
+ # require "google/longrunning"
144
+ #
145
+ # # Create a client object. The client can be reused for multiple calls.
146
+ # client = Google::Longrunning::Operations::Rest::Client.new
147
+ #
148
+ # # Create a request. To set request fields, pass in keyword arguments.
149
+ # request = Google::Longrunning::ListOperationsRequest.new
150
+ #
151
+ # # Call the list_operations method.
152
+ # result = client.list_operations request
153
+ #
154
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
155
+ # # over elements, and API calls will be issued to fetch pages as needed.
156
+ # result.each do |item|
157
+ # # Each element is of type ::Google::Longrunning::Operation.
158
+ # p item
159
+ # end
160
+ #
141
161
  def list_operations request, options = nil
142
162
  raise ::ArgumentError, "request must be provided" if request.nil?
143
163
 
@@ -203,6 +223,29 @@ module Google
203
223
  # @return [::Gapic::Operation]
204
224
  #
205
225
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
226
+ #
227
+ # @example Basic example
228
+ # require "google/longrunning"
229
+ #
230
+ # # Create a client object. The client can be reused for multiple calls.
231
+ # client = Google::Longrunning::Operations::Rest::Client.new
232
+ #
233
+ # # Create a request. To set request fields, pass in keyword arguments.
234
+ # request = Google::Longrunning::GetOperationRequest.new
235
+ #
236
+ # # Call the get_operation method.
237
+ # result = client.get_operation request
238
+ #
239
+ # # The returned object is of type Gapic::Operation. You can use it to
240
+ # # check the status of an operation, cancel it, or wait for results.
241
+ # # Here is how to wait for a response.
242
+ # result.wait_until_done! timeout: 60
243
+ # if result.response?
244
+ # p result.response
245
+ # else
246
+ # puts "No response received."
247
+ # end
248
+ #
206
249
  def get_operation request, options = nil
207
250
  raise ::ArgumentError, "request must be provided" if request.nil?
208
251
 
@@ -269,6 +312,22 @@ module Google
269
312
  # @return [::Google::Protobuf::Empty]
270
313
  #
271
314
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
315
+ #
316
+ # @example Basic example
317
+ # require "google/longrunning"
318
+ #
319
+ # # Create a client object. The client can be reused for multiple calls.
320
+ # client = Google::Longrunning::Operations::Rest::Client.new
321
+ #
322
+ # # Create a request. To set request fields, pass in keyword arguments.
323
+ # request = Google::Longrunning::DeleteOperationRequest.new
324
+ #
325
+ # # Call the delete_operation method.
326
+ # result = client.delete_operation request
327
+ #
328
+ # # The returned object is of type Google::Protobuf::Empty.
329
+ # p result
330
+ #
272
331
  def delete_operation request, options = nil
273
332
  raise ::ArgumentError, "request must be provided" if request.nil?
274
333
 
@@ -340,6 +399,22 @@ module Google
340
399
  # @return [::Google::Protobuf::Empty]
341
400
  #
342
401
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
402
+ #
403
+ # @example Basic example
404
+ # require "google/longrunning"
405
+ #
406
+ # # Create a client object. The client can be reused for multiple calls.
407
+ # client = Google::Longrunning::Operations::Rest::Client.new
408
+ #
409
+ # # Create a request. To set request fields, pass in keyword arguments.
410
+ # request = Google::Longrunning::CancelOperationRequest.new
411
+ #
412
+ # # Call the cancel_operation method.
413
+ # result = client.cancel_operation request
414
+ #
415
+ # # The returned object is of type Google::Protobuf::Empty.
416
+ # p result
417
+ #
343
418
  def cancel_operation request, options = nil
344
419
  raise ::ArgumentError, "request must be provided" if request.nil?
345
420
 
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Database
25
25
  module V1
26
- VERSION = "0.14.1"
26
+ VERSION = "0.15.0"
27
27
  end
28
28
  end
29
29
  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
@@ -40,6 +40,7 @@ module Google
40
40
  #
41
41
  # **JSON example:**
42
42
  #
43
+ # ```
43
44
  # {
44
45
  # "bindings": [
45
46
  # {
@@ -67,9 +68,11 @@ module Google
67
68
  # "etag": "BwWWja0YfJA=",
68
69
  # "version": 3
69
70
  # }
71
+ # ```
70
72
  #
71
73
  # **YAML example:**
72
74
  #
75
+ # ```
73
76
  # bindings:
74
77
  # - members:
75
78
  # - user:mike@example.com
@@ -86,6 +89,7 @@ module Google
86
89
  # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
87
90
  # etag: BwWWja0YfJA=
88
91
  # version: 3
92
+ # ```
89
93
  #
90
94
  # For a description of IAM and its features, see the
91
95
  # [IAM documentation](https://cloud.google.com/iam/docs/).
@@ -157,7 +161,7 @@ module Google
157
161
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
158
162
  # @!attribute [rw] members
159
163
  # @return [::Array<::String>]
160
- # Specifies the principals requesting access for a Cloud Platform resource.
164
+ # Specifies the principals requesting access for a Google Cloud resource.
161
165
  # `members` can have the following values:
162
166
  #
163
167
  # * `allUsers`: A special identifier that represents anyone who is
@@ -267,8 +271,8 @@ module Google
267
271
  # }
268
272
  #
269
273
  # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
270
- # logging. It also exempts jose@example.com from DATA_READ logging, and
271
- # aliya@example.com from DATA_WRITE logging.
274
+ # logging. It also exempts `jose@example.com` from DATA_READ logging, and
275
+ # `aliya@example.com` from DATA_WRITE logging.
272
276
  # @!attribute [rw] service
273
277
  # @return [::String]
274
278
  # Specifies a service that will be enabled for audit logging.
@@ -356,7 +360,7 @@ module Google
356
360
  # Required
357
361
  # @!attribute [rw] member
358
362
  # @return [::String]
359
- # A single identity requesting access for a Cloud Platform resource.
363
+ # A single identity requesting access for a Google Cloud resource.
360
364
  # Follows the same format of Binding.members.
361
365
  # Required
362
366
  # @!attribute [rw] condition
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner-admin-database-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.15.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-06-06 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
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  - !ruby/object:Gem::Version
239
239
  version: '0'
240
240
  requirements: []
241
- rubygems_version: 3.4.2
241
+ rubygems_version: 3.4.19
242
242
  signing_key:
243
243
  specification_version: 4
244
244
  summary: Cloud Spanner is a managed, mission-critical, globally consistent and scalable