google-cloud-alloy_db-v1beta 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/client.rb +10 -1
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/operations.rb +10 -1
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/client.rb +635 -0
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/operations.rb +75 -0
- data/lib/google/cloud/alloy_db/v1beta/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 546378e5ad5a89a6b6a7041d2781e5edb137a4646be36f65dfe39f18eba57aaf
|
4
|
+
data.tar.gz: 268354cf93163992e72f96bb6b21b312173a6353cb9e975161f86caae0e71622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bf03fd7bf94330b8df385f487e103da9fef03b88f9bc6cff32e8d3ac15bf432aa091037144354e3f6dc7771759f7a3443560ac300ecb2e5b732500dbf238808
|
7
|
+
data.tar.gz: 7736c85c05c8c29cc4220d5ec6e3487a2c3a8b394f6fb599666cee9646fba70a8d292b42d973ab6d781dfc51e0a1c65ed6d4741f1595662a0c6363bd3998b311
|
@@ -215,7 +215,8 @@ module Google
|
|
215
215
|
credentials: credentials,
|
216
216
|
endpoint: @config.endpoint,
|
217
217
|
channel_args: @config.channel_args,
|
218
|
-
interceptors: @config.interceptors
|
218
|
+
interceptors: @config.interceptors,
|
219
|
+
channel_pool_config: @config.channel_pool
|
219
220
|
)
|
220
221
|
end
|
221
222
|
|
@@ -3731,6 +3732,14 @@ module Google
|
|
3731
3732
|
end
|
3732
3733
|
end
|
3733
3734
|
|
3735
|
+
##
|
3736
|
+
# Configuration for the channel pool
|
3737
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
3738
|
+
#
|
3739
|
+
def channel_pool
|
3740
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
3741
|
+
end
|
3742
|
+
|
3734
3743
|
##
|
3735
3744
|
# Configuration RPC class for the AlloyDBAdmin API.
|
3736
3745
|
#
|
@@ -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
|
#
|
@@ -273,6 +273,26 @@ module Google
|
|
273
273
|
# @return [::Google::Cloud::AlloyDB::V1beta::ListClustersResponse]
|
274
274
|
#
|
275
275
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
276
|
+
#
|
277
|
+
# @example Basic example
|
278
|
+
# require "google/cloud/alloy_db/v1beta"
|
279
|
+
#
|
280
|
+
# # Create a client object. The client can be reused for multiple calls.
|
281
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
282
|
+
#
|
283
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
284
|
+
# request = Google::Cloud::AlloyDB::V1beta::ListClustersRequest.new
|
285
|
+
#
|
286
|
+
# # Call the list_clusters method.
|
287
|
+
# result = client.list_clusters 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::AlloyDB::V1beta::Cluster.
|
293
|
+
# p item
|
294
|
+
# end
|
295
|
+
#
|
276
296
|
def list_clusters request, options = nil
|
277
297
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
278
298
|
|
@@ -339,6 +359,22 @@ module Google
|
|
339
359
|
# @return [::Google::Cloud::AlloyDB::V1beta::Cluster]
|
340
360
|
#
|
341
361
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
362
|
+
#
|
363
|
+
# @example Basic example
|
364
|
+
# require "google/cloud/alloy_db/v1beta"
|
365
|
+
#
|
366
|
+
# # Create a client object. The client can be reused for multiple calls.
|
367
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
368
|
+
#
|
369
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
370
|
+
# request = Google::Cloud::AlloyDB::V1beta::GetClusterRequest.new
|
371
|
+
#
|
372
|
+
# # Call the get_cluster method.
|
373
|
+
# result = client.get_cluster request
|
374
|
+
#
|
375
|
+
# # The returned object is of type Google::Cloud::AlloyDB::V1beta::Cluster.
|
376
|
+
# p result
|
377
|
+
#
|
342
378
|
def get_cluster request, options = nil
|
343
379
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
380
|
|
@@ -424,6 +460,29 @@ module Google
|
|
424
460
|
# @return [::Gapic::Operation]
|
425
461
|
#
|
426
462
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
463
|
+
#
|
464
|
+
# @example Basic example
|
465
|
+
# require "google/cloud/alloy_db/v1beta"
|
466
|
+
#
|
467
|
+
# # Create a client object. The client can be reused for multiple calls.
|
468
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
469
|
+
#
|
470
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
471
|
+
# request = Google::Cloud::AlloyDB::V1beta::CreateClusterRequest.new
|
472
|
+
#
|
473
|
+
# # Call the create_cluster method.
|
474
|
+
# result = client.create_cluster request
|
475
|
+
#
|
476
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
477
|
+
# # check the status of an operation, cancel it, or wait for results.
|
478
|
+
# # Here is how to wait for a response.
|
479
|
+
# result.wait_until_done! timeout: 60
|
480
|
+
# if result.response?
|
481
|
+
# p result.response
|
482
|
+
# else
|
483
|
+
# puts "No response received."
|
484
|
+
# end
|
485
|
+
#
|
427
486
|
def create_cluster request, options = nil
|
428
487
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
429
488
|
|
@@ -514,6 +573,29 @@ module Google
|
|
514
573
|
# @return [::Gapic::Operation]
|
515
574
|
#
|
516
575
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
576
|
+
#
|
577
|
+
# @example Basic example
|
578
|
+
# require "google/cloud/alloy_db/v1beta"
|
579
|
+
#
|
580
|
+
# # Create a client object. The client can be reused for multiple calls.
|
581
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
582
|
+
#
|
583
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
584
|
+
# request = Google::Cloud::AlloyDB::V1beta::UpdateClusterRequest.new
|
585
|
+
#
|
586
|
+
# # Call the update_cluster method.
|
587
|
+
# result = client.update_cluster request
|
588
|
+
#
|
589
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
590
|
+
# # check the status of an operation, cancel it, or wait for results.
|
591
|
+
# # Here is how to wait for a response.
|
592
|
+
# result.wait_until_done! timeout: 60
|
593
|
+
# if result.response?
|
594
|
+
# p result.response
|
595
|
+
# else
|
596
|
+
# puts "No response received."
|
597
|
+
# end
|
598
|
+
#
|
517
599
|
def update_cluster request, options = nil
|
518
600
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
519
601
|
|
@@ -601,6 +683,29 @@ module Google
|
|
601
683
|
# @return [::Gapic::Operation]
|
602
684
|
#
|
603
685
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
686
|
+
#
|
687
|
+
# @example Basic example
|
688
|
+
# require "google/cloud/alloy_db/v1beta"
|
689
|
+
#
|
690
|
+
# # Create a client object. The client can be reused for multiple calls.
|
691
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
692
|
+
#
|
693
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
694
|
+
# request = Google::Cloud::AlloyDB::V1beta::DeleteClusterRequest.new
|
695
|
+
#
|
696
|
+
# # Call the delete_cluster method.
|
697
|
+
# result = client.delete_cluster request
|
698
|
+
#
|
699
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
700
|
+
# # check the status of an operation, cancel it, or wait for results.
|
701
|
+
# # Here is how to wait for a response.
|
702
|
+
# result.wait_until_done! timeout: 60
|
703
|
+
# if result.response?
|
704
|
+
# p result.response
|
705
|
+
# else
|
706
|
+
# puts "No response received."
|
707
|
+
# end
|
708
|
+
#
|
604
709
|
def delete_cluster request, options = nil
|
605
710
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
606
711
|
|
@@ -689,6 +794,29 @@ module Google
|
|
689
794
|
# @return [::Gapic::Operation]
|
690
795
|
#
|
691
796
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
797
|
+
#
|
798
|
+
# @example Basic example
|
799
|
+
# require "google/cloud/alloy_db/v1beta"
|
800
|
+
#
|
801
|
+
# # Create a client object. The client can be reused for multiple calls.
|
802
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
803
|
+
#
|
804
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
805
|
+
# request = Google::Cloud::AlloyDB::V1beta::PromoteClusterRequest.new
|
806
|
+
#
|
807
|
+
# # Call the promote_cluster method.
|
808
|
+
# result = client.promote_cluster request
|
809
|
+
#
|
810
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
811
|
+
# # check the status of an operation, cancel it, or wait for results.
|
812
|
+
# # Here is how to wait for a response.
|
813
|
+
# result.wait_until_done! timeout: 60
|
814
|
+
# if result.response?
|
815
|
+
# p result.response
|
816
|
+
# else
|
817
|
+
# puts "No response received."
|
818
|
+
# end
|
819
|
+
#
|
692
820
|
def promote_cluster request, options = nil
|
693
821
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
694
822
|
|
@@ -782,6 +910,29 @@ module Google
|
|
782
910
|
# @return [::Gapic::Operation]
|
783
911
|
#
|
784
912
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
913
|
+
#
|
914
|
+
# @example Basic example
|
915
|
+
# require "google/cloud/alloy_db/v1beta"
|
916
|
+
#
|
917
|
+
# # Create a client object. The client can be reused for multiple calls.
|
918
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
919
|
+
#
|
920
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
921
|
+
# request = Google::Cloud::AlloyDB::V1beta::RestoreClusterRequest.new
|
922
|
+
#
|
923
|
+
# # Call the restore_cluster method.
|
924
|
+
# result = client.restore_cluster request
|
925
|
+
#
|
926
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
927
|
+
# # check the status of an operation, cancel it, or wait for results.
|
928
|
+
# # Here is how to wait for a response.
|
929
|
+
# result.wait_until_done! timeout: 60
|
930
|
+
# if result.response?
|
931
|
+
# p result.response
|
932
|
+
# else
|
933
|
+
# puts "No response received."
|
934
|
+
# end
|
935
|
+
#
|
785
936
|
def restore_cluster request, options = nil
|
786
937
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
787
938
|
|
@@ -869,6 +1020,29 @@ module Google
|
|
869
1020
|
# @return [::Gapic::Operation]
|
870
1021
|
#
|
871
1022
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1023
|
+
#
|
1024
|
+
# @example Basic example
|
1025
|
+
# require "google/cloud/alloy_db/v1beta"
|
1026
|
+
#
|
1027
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1028
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1029
|
+
#
|
1030
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1031
|
+
# request = Google::Cloud::AlloyDB::V1beta::CreateSecondaryClusterRequest.new
|
1032
|
+
#
|
1033
|
+
# # Call the create_secondary_cluster method.
|
1034
|
+
# result = client.create_secondary_cluster request
|
1035
|
+
#
|
1036
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1037
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1038
|
+
# # Here is how to wait for a response.
|
1039
|
+
# result.wait_until_done! timeout: 60
|
1040
|
+
# if result.response?
|
1041
|
+
# p result.response
|
1042
|
+
# else
|
1043
|
+
# puts "No response received."
|
1044
|
+
# end
|
1045
|
+
#
|
872
1046
|
def create_secondary_cluster request, options = nil
|
873
1047
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
874
1048
|
|
@@ -946,6 +1120,26 @@ module Google
|
|
946
1120
|
# @return [::Google::Cloud::AlloyDB::V1beta::ListInstancesResponse]
|
947
1121
|
#
|
948
1122
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1123
|
+
#
|
1124
|
+
# @example Basic example
|
1125
|
+
# require "google/cloud/alloy_db/v1beta"
|
1126
|
+
#
|
1127
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1128
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1129
|
+
#
|
1130
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1131
|
+
# request = Google::Cloud::AlloyDB::V1beta::ListInstancesRequest.new
|
1132
|
+
#
|
1133
|
+
# # Call the list_instances method.
|
1134
|
+
# result = client.list_instances request
|
1135
|
+
#
|
1136
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1137
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1138
|
+
# result.each do |item|
|
1139
|
+
# # Each element is of type ::Google::Cloud::AlloyDB::V1beta::Instance.
|
1140
|
+
# p item
|
1141
|
+
# end
|
1142
|
+
#
|
949
1143
|
def list_instances request, options = nil
|
950
1144
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
951
1145
|
|
@@ -1011,6 +1205,22 @@ module Google
|
|
1011
1205
|
# @return [::Google::Cloud::AlloyDB::V1beta::Instance]
|
1012
1206
|
#
|
1013
1207
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1208
|
+
#
|
1209
|
+
# @example Basic example
|
1210
|
+
# require "google/cloud/alloy_db/v1beta"
|
1211
|
+
#
|
1212
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1213
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1214
|
+
#
|
1215
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1216
|
+
# request = Google::Cloud::AlloyDB::V1beta::GetInstanceRequest.new
|
1217
|
+
#
|
1218
|
+
# # Call the get_instance method.
|
1219
|
+
# result = client.get_instance request
|
1220
|
+
#
|
1221
|
+
# # The returned object is of type Google::Cloud::AlloyDB::V1beta::Instance.
|
1222
|
+
# p result
|
1223
|
+
#
|
1014
1224
|
def get_instance request, options = nil
|
1015
1225
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1016
1226
|
|
@@ -1096,6 +1306,29 @@ module Google
|
|
1096
1306
|
# @return [::Gapic::Operation]
|
1097
1307
|
#
|
1098
1308
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1309
|
+
#
|
1310
|
+
# @example Basic example
|
1311
|
+
# require "google/cloud/alloy_db/v1beta"
|
1312
|
+
#
|
1313
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1314
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1315
|
+
#
|
1316
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1317
|
+
# request = Google::Cloud::AlloyDB::V1beta::CreateInstanceRequest.new
|
1318
|
+
#
|
1319
|
+
# # Call the create_instance method.
|
1320
|
+
# result = client.create_instance request
|
1321
|
+
#
|
1322
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1323
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1324
|
+
# # Here is how to wait for a response.
|
1325
|
+
# result.wait_until_done! timeout: 60
|
1326
|
+
# if result.response?
|
1327
|
+
# p result.response
|
1328
|
+
# else
|
1329
|
+
# puts "No response received."
|
1330
|
+
# end
|
1331
|
+
#
|
1099
1332
|
def create_instance request, options = nil
|
1100
1333
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1101
1334
|
|
@@ -1182,6 +1415,29 @@ module Google
|
|
1182
1415
|
# @return [::Gapic::Operation]
|
1183
1416
|
#
|
1184
1417
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1418
|
+
#
|
1419
|
+
# @example Basic example
|
1420
|
+
# require "google/cloud/alloy_db/v1beta"
|
1421
|
+
#
|
1422
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1423
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1424
|
+
#
|
1425
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1426
|
+
# request = Google::Cloud::AlloyDB::V1beta::CreateSecondaryInstanceRequest.new
|
1427
|
+
#
|
1428
|
+
# # Call the create_secondary_instance method.
|
1429
|
+
# result = client.create_secondary_instance request
|
1430
|
+
#
|
1431
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1432
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1433
|
+
# # Here is how to wait for a response.
|
1434
|
+
# result.wait_until_done! timeout: 60
|
1435
|
+
# if result.response?
|
1436
|
+
# p result.response
|
1437
|
+
# else
|
1438
|
+
# puts "No response received."
|
1439
|
+
# end
|
1440
|
+
#
|
1185
1441
|
def create_secondary_instance request, options = nil
|
1186
1442
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1187
1443
|
|
@@ -1270,6 +1526,29 @@ module Google
|
|
1270
1526
|
# @return [::Gapic::Operation]
|
1271
1527
|
#
|
1272
1528
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1529
|
+
#
|
1530
|
+
# @example Basic example
|
1531
|
+
# require "google/cloud/alloy_db/v1beta"
|
1532
|
+
#
|
1533
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1534
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1535
|
+
#
|
1536
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1537
|
+
# request = Google::Cloud::AlloyDB::V1beta::BatchCreateInstancesRequest.new
|
1538
|
+
#
|
1539
|
+
# # Call the batch_create_instances method.
|
1540
|
+
# result = client.batch_create_instances request
|
1541
|
+
#
|
1542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1544
|
+
# # Here is how to wait for a response.
|
1545
|
+
# result.wait_until_done! timeout: 60
|
1546
|
+
# if result.response?
|
1547
|
+
# p result.response
|
1548
|
+
# else
|
1549
|
+
# puts "No response received."
|
1550
|
+
# end
|
1551
|
+
#
|
1273
1552
|
def batch_create_instances request, options = nil
|
1274
1553
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1275
1554
|
|
@@ -1360,6 +1639,29 @@ module Google
|
|
1360
1639
|
# @return [::Gapic::Operation]
|
1361
1640
|
#
|
1362
1641
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1642
|
+
#
|
1643
|
+
# @example Basic example
|
1644
|
+
# require "google/cloud/alloy_db/v1beta"
|
1645
|
+
#
|
1646
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1647
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1648
|
+
#
|
1649
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1650
|
+
# request = Google::Cloud::AlloyDB::V1beta::UpdateInstanceRequest.new
|
1651
|
+
#
|
1652
|
+
# # Call the update_instance method.
|
1653
|
+
# result = client.update_instance request
|
1654
|
+
#
|
1655
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1656
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1657
|
+
# # Here is how to wait for a response.
|
1658
|
+
# result.wait_until_done! timeout: 60
|
1659
|
+
# if result.response?
|
1660
|
+
# p result.response
|
1661
|
+
# else
|
1662
|
+
# puts "No response received."
|
1663
|
+
# end
|
1664
|
+
#
|
1363
1665
|
def update_instance request, options = nil
|
1364
1666
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1365
1667
|
|
@@ -1445,6 +1747,29 @@ module Google
|
|
1445
1747
|
# @return [::Gapic::Operation]
|
1446
1748
|
#
|
1447
1749
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1750
|
+
#
|
1751
|
+
# @example Basic example
|
1752
|
+
# require "google/cloud/alloy_db/v1beta"
|
1753
|
+
#
|
1754
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1755
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1756
|
+
#
|
1757
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1758
|
+
# request = Google::Cloud::AlloyDB::V1beta::DeleteInstanceRequest.new
|
1759
|
+
#
|
1760
|
+
# # Call the delete_instance method.
|
1761
|
+
# result = client.delete_instance request
|
1762
|
+
#
|
1763
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1764
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1765
|
+
# # Here is how to wait for a response.
|
1766
|
+
# result.wait_until_done! timeout: 60
|
1767
|
+
# if result.response?
|
1768
|
+
# p result.response
|
1769
|
+
# else
|
1770
|
+
# puts "No response received."
|
1771
|
+
# end
|
1772
|
+
#
|
1448
1773
|
def delete_instance request, options = nil
|
1449
1774
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1450
1775
|
|
@@ -1528,6 +1853,29 @@ module Google
|
|
1528
1853
|
# @return [::Gapic::Operation]
|
1529
1854
|
#
|
1530
1855
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1856
|
+
#
|
1857
|
+
# @example Basic example
|
1858
|
+
# require "google/cloud/alloy_db/v1beta"
|
1859
|
+
#
|
1860
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1861
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1862
|
+
#
|
1863
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1864
|
+
# request = Google::Cloud::AlloyDB::V1beta::FailoverInstanceRequest.new
|
1865
|
+
#
|
1866
|
+
# # Call the failover_instance method.
|
1867
|
+
# result = client.failover_instance request
|
1868
|
+
#
|
1869
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1870
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1871
|
+
# # Here is how to wait for a response.
|
1872
|
+
# result.wait_until_done! timeout: 60
|
1873
|
+
# if result.response?
|
1874
|
+
# p result.response
|
1875
|
+
# else
|
1876
|
+
# puts "No response received."
|
1877
|
+
# end
|
1878
|
+
#
|
1531
1879
|
def failover_instance request, options = nil
|
1532
1880
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1533
1881
|
|
@@ -1613,6 +1961,29 @@ module Google
|
|
1613
1961
|
# @return [::Gapic::Operation]
|
1614
1962
|
#
|
1615
1963
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1964
|
+
#
|
1965
|
+
# @example Basic example
|
1966
|
+
# require "google/cloud/alloy_db/v1beta"
|
1967
|
+
#
|
1968
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1969
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1970
|
+
#
|
1971
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1972
|
+
# request = Google::Cloud::AlloyDB::V1beta::InjectFaultRequest.new
|
1973
|
+
#
|
1974
|
+
# # Call the inject_fault method.
|
1975
|
+
# result = client.inject_fault request
|
1976
|
+
#
|
1977
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1978
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1979
|
+
# # Here is how to wait for a response.
|
1980
|
+
# result.wait_until_done! timeout: 60
|
1981
|
+
# if result.response?
|
1982
|
+
# p result.response
|
1983
|
+
# else
|
1984
|
+
# puts "No response received."
|
1985
|
+
# end
|
1986
|
+
#
|
1616
1987
|
def inject_fault request, options = nil
|
1617
1988
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1618
1989
|
|
@@ -1695,6 +2066,29 @@ module Google
|
|
1695
2066
|
# @return [::Gapic::Operation]
|
1696
2067
|
#
|
1697
2068
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2069
|
+
#
|
2070
|
+
# @example Basic example
|
2071
|
+
# require "google/cloud/alloy_db/v1beta"
|
2072
|
+
#
|
2073
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2074
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2075
|
+
#
|
2076
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2077
|
+
# request = Google::Cloud::AlloyDB::V1beta::RestartInstanceRequest.new
|
2078
|
+
#
|
2079
|
+
# # Call the restart_instance method.
|
2080
|
+
# result = client.restart_instance request
|
2081
|
+
#
|
2082
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2083
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2084
|
+
# # Here is how to wait for a response.
|
2085
|
+
# result.wait_until_done! timeout: 60
|
2086
|
+
# if result.response?
|
2087
|
+
# p result.response
|
2088
|
+
# else
|
2089
|
+
# puts "No response received."
|
2090
|
+
# end
|
2091
|
+
#
|
1698
2092
|
def restart_instance request, options = nil
|
1699
2093
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1700
2094
|
|
@@ -1767,6 +2161,26 @@ module Google
|
|
1767
2161
|
# @return [::Google::Cloud::AlloyDB::V1beta::ListBackupsResponse]
|
1768
2162
|
#
|
1769
2163
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2164
|
+
#
|
2165
|
+
# @example Basic example
|
2166
|
+
# require "google/cloud/alloy_db/v1beta"
|
2167
|
+
#
|
2168
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2169
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2170
|
+
#
|
2171
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2172
|
+
# request = Google::Cloud::AlloyDB::V1beta::ListBackupsRequest.new
|
2173
|
+
#
|
2174
|
+
# # Call the list_backups method.
|
2175
|
+
# result = client.list_backups request
|
2176
|
+
#
|
2177
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2178
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2179
|
+
# result.each do |item|
|
2180
|
+
# # Each element is of type ::Google::Cloud::AlloyDB::V1beta::Backup.
|
2181
|
+
# p item
|
2182
|
+
# end
|
2183
|
+
#
|
1770
2184
|
def list_backups request, options = nil
|
1771
2185
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1772
2186
|
|
@@ -1829,6 +2243,22 @@ module Google
|
|
1829
2243
|
# @return [::Google::Cloud::AlloyDB::V1beta::Backup]
|
1830
2244
|
#
|
1831
2245
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2246
|
+
#
|
2247
|
+
# @example Basic example
|
2248
|
+
# require "google/cloud/alloy_db/v1beta"
|
2249
|
+
#
|
2250
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2251
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2252
|
+
#
|
2253
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2254
|
+
# request = Google::Cloud::AlloyDB::V1beta::GetBackupRequest.new
|
2255
|
+
#
|
2256
|
+
# # Call the get_backup method.
|
2257
|
+
# result = client.get_backup request
|
2258
|
+
#
|
2259
|
+
# # The returned object is of type Google::Cloud::AlloyDB::V1beta::Backup.
|
2260
|
+
# p result
|
2261
|
+
#
|
1832
2262
|
def get_backup request, options = nil
|
1833
2263
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1834
2264
|
|
@@ -1912,6 +2342,29 @@ module Google
|
|
1912
2342
|
# @return [::Gapic::Operation]
|
1913
2343
|
#
|
1914
2344
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2345
|
+
#
|
2346
|
+
# @example Basic example
|
2347
|
+
# require "google/cloud/alloy_db/v1beta"
|
2348
|
+
#
|
2349
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2350
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2351
|
+
#
|
2352
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2353
|
+
# request = Google::Cloud::AlloyDB::V1beta::CreateBackupRequest.new
|
2354
|
+
#
|
2355
|
+
# # Call the create_backup method.
|
2356
|
+
# result = client.create_backup request
|
2357
|
+
#
|
2358
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2359
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2360
|
+
# # Here is how to wait for a response.
|
2361
|
+
# result.wait_until_done! timeout: 60
|
2362
|
+
# if result.response?
|
2363
|
+
# p result.response
|
2364
|
+
# else
|
2365
|
+
# puts "No response received."
|
2366
|
+
# end
|
2367
|
+
#
|
1915
2368
|
def create_backup request, options = nil
|
1916
2369
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1917
2370
|
|
@@ -2001,6 +2454,29 @@ module Google
|
|
2001
2454
|
# @return [::Gapic::Operation]
|
2002
2455
|
#
|
2003
2456
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2457
|
+
#
|
2458
|
+
# @example Basic example
|
2459
|
+
# require "google/cloud/alloy_db/v1beta"
|
2460
|
+
#
|
2461
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2462
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2463
|
+
#
|
2464
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2465
|
+
# request = Google::Cloud::AlloyDB::V1beta::UpdateBackupRequest.new
|
2466
|
+
#
|
2467
|
+
# # Call the update_backup method.
|
2468
|
+
# result = client.update_backup request
|
2469
|
+
#
|
2470
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2471
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2472
|
+
# # Here is how to wait for a response.
|
2473
|
+
# result.wait_until_done! timeout: 60
|
2474
|
+
# if result.response?
|
2475
|
+
# p result.response
|
2476
|
+
# else
|
2477
|
+
# puts "No response received."
|
2478
|
+
# end
|
2479
|
+
#
|
2004
2480
|
def update_backup request, options = nil
|
2005
2481
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2006
2482
|
|
@@ -2086,6 +2562,29 @@ module Google
|
|
2086
2562
|
# @return [::Gapic::Operation]
|
2087
2563
|
#
|
2088
2564
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2565
|
+
#
|
2566
|
+
# @example Basic example
|
2567
|
+
# require "google/cloud/alloy_db/v1beta"
|
2568
|
+
#
|
2569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2570
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2571
|
+
#
|
2572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2573
|
+
# request = Google::Cloud::AlloyDB::V1beta::DeleteBackupRequest.new
|
2574
|
+
#
|
2575
|
+
# # Call the delete_backup method.
|
2576
|
+
# result = client.delete_backup request
|
2577
|
+
#
|
2578
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2579
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2580
|
+
# # Here is how to wait for a response.
|
2581
|
+
# result.wait_until_done! timeout: 60
|
2582
|
+
# if result.response?
|
2583
|
+
# p result.response
|
2584
|
+
# else
|
2585
|
+
# puts "No response received."
|
2586
|
+
# end
|
2587
|
+
#
|
2089
2588
|
def delete_backup request, options = nil
|
2090
2589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2091
2590
|
|
@@ -2160,6 +2659,26 @@ module Google
|
|
2160
2659
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag>]
|
2161
2660
|
#
|
2162
2661
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2662
|
+
#
|
2663
|
+
# @example Basic example
|
2664
|
+
# require "google/cloud/alloy_db/v1beta"
|
2665
|
+
#
|
2666
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2667
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2668
|
+
#
|
2669
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2670
|
+
# request = Google::Cloud::AlloyDB::V1beta::ListSupportedDatabaseFlagsRequest.new
|
2671
|
+
#
|
2672
|
+
# # Call the list_supported_database_flags method.
|
2673
|
+
# result = client.list_supported_database_flags request
|
2674
|
+
#
|
2675
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2676
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2677
|
+
# result.each do |item|
|
2678
|
+
# # Each element is of type ::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag.
|
2679
|
+
# p item
|
2680
|
+
# end
|
2681
|
+
#
|
2163
2682
|
def list_supported_database_flags request, options = nil
|
2164
2683
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2165
2684
|
|
@@ -2252,6 +2771,22 @@ module Google
|
|
2252
2771
|
# @return [::Google::Cloud::AlloyDB::V1beta::GenerateClientCertificateResponse]
|
2253
2772
|
#
|
2254
2773
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2774
|
+
#
|
2775
|
+
# @example Basic example
|
2776
|
+
# require "google/cloud/alloy_db/v1beta"
|
2777
|
+
#
|
2778
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2779
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2780
|
+
#
|
2781
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2782
|
+
# request = Google::Cloud::AlloyDB::V1beta::GenerateClientCertificateRequest.new
|
2783
|
+
#
|
2784
|
+
# # Call the generate_client_certificate method.
|
2785
|
+
# result = client.generate_client_certificate request
|
2786
|
+
#
|
2787
|
+
# # The returned object is of type Google::Cloud::AlloyDB::V1beta::GenerateClientCertificateResponse.
|
2788
|
+
# p result
|
2789
|
+
#
|
2255
2790
|
def generate_client_certificate request, options = nil
|
2256
2791
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2257
2792
|
|
@@ -2329,6 +2864,22 @@ module Google
|
|
2329
2864
|
# @return [::Google::Cloud::AlloyDB::V1beta::ConnectionInfo]
|
2330
2865
|
#
|
2331
2866
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2867
|
+
#
|
2868
|
+
# @example Basic example
|
2869
|
+
# require "google/cloud/alloy_db/v1beta"
|
2870
|
+
#
|
2871
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2872
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2873
|
+
#
|
2874
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2875
|
+
# request = Google::Cloud::AlloyDB::V1beta::GetConnectionInfoRequest.new
|
2876
|
+
#
|
2877
|
+
# # Call the get_connection_info method.
|
2878
|
+
# result = client.get_connection_info request
|
2879
|
+
#
|
2880
|
+
# # The returned object is of type Google::Cloud::AlloyDB::V1beta::ConnectionInfo.
|
2881
|
+
# p result
|
2882
|
+
#
|
2332
2883
|
def get_connection_info request, options = nil
|
2333
2884
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2334
2885
|
|
@@ -2400,6 +2951,26 @@ module Google
|
|
2400
2951
|
# @return [::Google::Cloud::AlloyDB::V1beta::ListUsersResponse]
|
2401
2952
|
#
|
2402
2953
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2954
|
+
#
|
2955
|
+
# @example Basic example
|
2956
|
+
# require "google/cloud/alloy_db/v1beta"
|
2957
|
+
#
|
2958
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2959
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2960
|
+
#
|
2961
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2962
|
+
# request = Google::Cloud::AlloyDB::V1beta::ListUsersRequest.new
|
2963
|
+
#
|
2964
|
+
# # Call the list_users method.
|
2965
|
+
# result = client.list_users request
|
2966
|
+
#
|
2967
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2968
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2969
|
+
# result.each do |item|
|
2970
|
+
# # Each element is of type ::Google::Cloud::AlloyDB::V1beta::User.
|
2971
|
+
# p item
|
2972
|
+
# end
|
2973
|
+
#
|
2403
2974
|
def list_users request, options = nil
|
2404
2975
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2405
2976
|
|
@@ -2463,6 +3034,22 @@ module Google
|
|
2463
3034
|
# @return [::Google::Cloud::AlloyDB::V1beta::User]
|
2464
3035
|
#
|
2465
3036
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3037
|
+
#
|
3038
|
+
# @example Basic example
|
3039
|
+
# require "google/cloud/alloy_db/v1beta"
|
3040
|
+
#
|
3041
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3042
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
3043
|
+
#
|
3044
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3045
|
+
# request = Google::Cloud::AlloyDB::V1beta::GetUserRequest.new
|
3046
|
+
#
|
3047
|
+
# # Call the get_user method.
|
3048
|
+
# result = client.get_user request
|
3049
|
+
#
|
3050
|
+
# # The returned object is of type Google::Cloud::AlloyDB::V1beta::User.
|
3051
|
+
# p result
|
3052
|
+
#
|
2466
3053
|
def get_user request, options = nil
|
2467
3054
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2468
3055
|
|
@@ -2546,6 +3133,22 @@ module Google
|
|
2546
3133
|
# @return [::Google::Cloud::AlloyDB::V1beta::User]
|
2547
3134
|
#
|
2548
3135
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3136
|
+
#
|
3137
|
+
# @example Basic example
|
3138
|
+
# require "google/cloud/alloy_db/v1beta"
|
3139
|
+
#
|
3140
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3141
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
3142
|
+
#
|
3143
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3144
|
+
# request = Google::Cloud::AlloyDB::V1beta::CreateUserRequest.new
|
3145
|
+
#
|
3146
|
+
# # Call the create_user method.
|
3147
|
+
# result = client.create_user request
|
3148
|
+
#
|
3149
|
+
# # The returned object is of type Google::Cloud::AlloyDB::V1beta::User.
|
3150
|
+
# p result
|
3151
|
+
#
|
2549
3152
|
def create_user request, options = nil
|
2550
3153
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2551
3154
|
|
@@ -2633,6 +3236,22 @@ module Google
|
|
2633
3236
|
# @return [::Google::Cloud::AlloyDB::V1beta::User]
|
2634
3237
|
#
|
2635
3238
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3239
|
+
#
|
3240
|
+
# @example Basic example
|
3241
|
+
# require "google/cloud/alloy_db/v1beta"
|
3242
|
+
#
|
3243
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3244
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
3245
|
+
#
|
3246
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3247
|
+
# request = Google::Cloud::AlloyDB::V1beta::UpdateUserRequest.new
|
3248
|
+
#
|
3249
|
+
# # Call the update_user method.
|
3250
|
+
# result = client.update_user request
|
3251
|
+
#
|
3252
|
+
# # The returned object is of type Google::Cloud::AlloyDB::V1beta::User.
|
3253
|
+
# p result
|
3254
|
+
#
|
2636
3255
|
def update_user request, options = nil
|
2637
3256
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2638
3257
|
|
@@ -2713,6 +3332,22 @@ module Google
|
|
2713
3332
|
# @return [::Google::Protobuf::Empty]
|
2714
3333
|
#
|
2715
3334
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3335
|
+
#
|
3336
|
+
# @example Basic example
|
3337
|
+
# require "google/cloud/alloy_db/v1beta"
|
3338
|
+
#
|
3339
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3340
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
3341
|
+
#
|
3342
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3343
|
+
# request = Google::Cloud::AlloyDB::V1beta::DeleteUserRequest.new
|
3344
|
+
#
|
3345
|
+
# # Call the delete_user method.
|
3346
|
+
# result = client.delete_user request
|
3347
|
+
#
|
3348
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3349
|
+
# p result
|
3350
|
+
#
|
2716
3351
|
def delete_user request, options = nil
|
2717
3352
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2718
3353
|
|
@@ -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
|
|
@@ -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-alloy_db-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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-
|
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
|
+
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.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
- !ruby/object:Gem::Version
|
272
272
|
version: '0'
|
273
273
|
requirements: []
|
274
|
-
rubygems_version: 3.4.
|
274
|
+
rubygems_version: 3.4.19
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
277
|
summary: AlloyDB for PostgreSQL is an open source-compatible database service that
|