google-cloud-spanner-admin-instance-v1 0.10.2 → 0.12.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/spanner/admin/instance/v1/instance_admin/client.rb +10 -1
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/operations.rb +10 -1
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/rest/client.rb +264 -0
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/rest/operations.rb +75 -0
- data/lib/google/cloud/spanner/admin/instance/v1/version.rb +1 -1
- data/lib/google/spanner/admin/instance/v1/spanner_instance_admin_pb.rb +4 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb +76 -4
- 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: d1aedcaa0f2ce41b6f1d7926138a1c179692b32eb186ad00f8bdc8d6cad74104
|
4
|
+
data.tar.gz: 942a7c743b13cf58452d8a56d4ea63915d5072b210c9af427f18a831c31734c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb7edf0b87f8d01bd6d0aec305e186f911fd2efbec4053685ed63ab36dba0055e739f14cab26ba750c4850db363a2ac46578e46d53792319b4e71b2f2847ba3d
|
7
|
+
data.tar.gz: '008975143d89684c648edd0e239e2081abaebfd1fd663fd840f0b0ec82ed87c2b0af2756b96151bb35774398a1dc1aebbc3fa219d346f66ac2260d5e620afa5a'
|
@@ -204,7 +204,8 @@ module Google
|
|
204
204
|
credentials: credentials,
|
205
205
|
endpoint: @config.endpoint,
|
206
206
|
channel_args: @config.channel_args,
|
207
|
-
interceptors: @config.interceptors
|
207
|
+
interceptors: @config.interceptors,
|
208
|
+
channel_pool_config: @config.channel_pool
|
208
209
|
)
|
209
210
|
end
|
210
211
|
|
@@ -1952,6 +1953,14 @@ module Google
|
|
1952
1953
|
end
|
1953
1954
|
end
|
1954
1955
|
|
1956
|
+
##
|
1957
|
+
# Configuration for the channel pool
|
1958
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1959
|
+
#
|
1960
|
+
def channel_pool
|
1961
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1962
|
+
end
|
1963
|
+
|
1955
1964
|
##
|
1956
1965
|
# Configuration RPC class for the InstanceAdmin API.
|
1957
1966
|
#
|
@@ -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
|
#
|
@@ -245,6 +245,26 @@ module Google
|
|
245
245
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig>]
|
246
246
|
#
|
247
247
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
248
|
+
#
|
249
|
+
# @example Basic example
|
250
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
251
|
+
#
|
252
|
+
# # Create a client object. The client can be reused for multiple calls.
|
253
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
254
|
+
#
|
255
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
256
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigsRequest.new
|
257
|
+
#
|
258
|
+
# # Call the list_instance_configs method.
|
259
|
+
# result = client.list_instance_configs request
|
260
|
+
#
|
261
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
262
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
263
|
+
# result.each do |item|
|
264
|
+
# # Each element is of type ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig.
|
265
|
+
# p item
|
266
|
+
# end
|
267
|
+
#
|
248
268
|
def list_instance_configs request, options = nil
|
249
269
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
250
270
|
|
@@ -309,6 +329,22 @@ module Google
|
|
309
329
|
# @return [::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig]
|
310
330
|
#
|
311
331
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
332
|
+
#
|
333
|
+
# @example Basic example
|
334
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
335
|
+
#
|
336
|
+
# # Create a client object. The client can be reused for multiple calls.
|
337
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
338
|
+
#
|
339
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
340
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::GetInstanceConfigRequest.new
|
341
|
+
#
|
342
|
+
# # Call the get_instance_config method.
|
343
|
+
# result = client.get_instance_config request
|
344
|
+
#
|
345
|
+
# # The returned object is of type Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig.
|
346
|
+
# p result
|
347
|
+
#
|
312
348
|
def get_instance_config request, options = nil
|
313
349
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
314
350
|
|
@@ -426,6 +462,29 @@ module Google
|
|
426
462
|
# @return [::Gapic::Operation]
|
427
463
|
#
|
428
464
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
465
|
+
#
|
466
|
+
# @example Basic example
|
467
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
468
|
+
#
|
469
|
+
# # Create a client object. The client can be reused for multiple calls.
|
470
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
471
|
+
#
|
472
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
473
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceConfigRequest.new
|
474
|
+
#
|
475
|
+
# # Call the create_instance_config method.
|
476
|
+
# result = client.create_instance_config request
|
477
|
+
#
|
478
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
479
|
+
# # check the status of an operation, cancel it, or wait for results.
|
480
|
+
# # Here is how to wait for a response.
|
481
|
+
# result.wait_until_done! timeout: 60
|
482
|
+
# if result.response?
|
483
|
+
# p result.response
|
484
|
+
# else
|
485
|
+
# puts "No response received."
|
486
|
+
# end
|
487
|
+
#
|
429
488
|
def create_instance_config request, options = nil
|
430
489
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
431
490
|
|
@@ -547,6 +606,29 @@ module Google
|
|
547
606
|
# @return [::Gapic::Operation]
|
548
607
|
#
|
549
608
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
609
|
+
#
|
610
|
+
# @example Basic example
|
611
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
612
|
+
#
|
613
|
+
# # Create a client object. The client can be reused for multiple calls.
|
614
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
615
|
+
#
|
616
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
617
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstanceConfigRequest.new
|
618
|
+
#
|
619
|
+
# # Call the update_instance_config method.
|
620
|
+
# result = client.update_instance_config request
|
621
|
+
#
|
622
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
623
|
+
# # check the status of an operation, cancel it, or wait for results.
|
624
|
+
# # Here is how to wait for a response.
|
625
|
+
# result.wait_until_done! timeout: 60
|
626
|
+
# if result.response?
|
627
|
+
# p result.response
|
628
|
+
# else
|
629
|
+
# puts "No response received."
|
630
|
+
# end
|
631
|
+
#
|
550
632
|
def update_instance_config request, options = nil
|
551
633
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
552
634
|
|
@@ -630,6 +712,22 @@ module Google
|
|
630
712
|
# @return [::Google::Protobuf::Empty]
|
631
713
|
#
|
632
714
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
715
|
+
#
|
716
|
+
# @example Basic example
|
717
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
718
|
+
#
|
719
|
+
# # Create a client object. The client can be reused for multiple calls.
|
720
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
721
|
+
#
|
722
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
723
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::DeleteInstanceConfigRequest.new
|
724
|
+
#
|
725
|
+
# # Call the delete_instance_config method.
|
726
|
+
# result = client.delete_instance_config request
|
727
|
+
#
|
728
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
729
|
+
# p result
|
730
|
+
#
|
633
731
|
def delete_instance_config request, options = nil
|
634
732
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
635
733
|
|
@@ -756,6 +854,26 @@ module Google
|
|
756
854
|
# @return [::Gapic::Operation]
|
757
855
|
#
|
758
856
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
857
|
+
#
|
858
|
+
# @example Basic example
|
859
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
860
|
+
#
|
861
|
+
# # Create a client object. The client can be reused for multiple calls.
|
862
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
863
|
+
#
|
864
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
865
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigOperationsRequest.new
|
866
|
+
#
|
867
|
+
# # Call the list_instance_config_operations method.
|
868
|
+
# result = client.list_instance_config_operations request
|
869
|
+
#
|
870
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
871
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
872
|
+
# result.each do |item|
|
873
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
874
|
+
# p item
|
875
|
+
# end
|
876
|
+
#
|
759
877
|
def list_instance_config_operations request, options = nil
|
760
878
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
761
879
|
|
@@ -848,6 +966,26 @@ module Google
|
|
848
966
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Spanner::Admin::Instance::V1::Instance>]
|
849
967
|
#
|
850
968
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
969
|
+
#
|
970
|
+
# @example Basic example
|
971
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
972
|
+
#
|
973
|
+
# # Create a client object. The client can be reused for multiple calls.
|
974
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
975
|
+
#
|
976
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
977
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::ListInstancesRequest.new
|
978
|
+
#
|
979
|
+
# # Call the list_instances method.
|
980
|
+
# result = client.list_instances request
|
981
|
+
#
|
982
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
983
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
984
|
+
# result.each do |item|
|
985
|
+
# # Each element is of type ::Google::Cloud::Spanner::Admin::Instance::V1::Instance.
|
986
|
+
# p item
|
987
|
+
# end
|
988
|
+
#
|
851
989
|
def list_instances request, options = nil
|
852
990
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
853
991
|
|
@@ -917,6 +1055,22 @@ module Google
|
|
917
1055
|
# @return [::Google::Cloud::Spanner::Admin::Instance::V1::Instance]
|
918
1056
|
#
|
919
1057
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1058
|
+
#
|
1059
|
+
# @example Basic example
|
1060
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
1061
|
+
#
|
1062
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1063
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
1064
|
+
#
|
1065
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1066
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::GetInstanceRequest.new
|
1067
|
+
#
|
1068
|
+
# # Call the get_instance method.
|
1069
|
+
# result = client.get_instance request
|
1070
|
+
#
|
1071
|
+
# # The returned object is of type Google::Cloud::Spanner::Admin::Instance::V1::Instance.
|
1072
|
+
# p result
|
1073
|
+
#
|
920
1074
|
def get_instance request, options = nil
|
921
1075
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
922
1076
|
|
@@ -1020,6 +1174,29 @@ module Google
|
|
1020
1174
|
# @return [::Gapic::Operation]
|
1021
1175
|
#
|
1022
1176
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1177
|
+
#
|
1178
|
+
# @example Basic example
|
1179
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
1180
|
+
#
|
1181
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1182
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
1183
|
+
#
|
1184
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1185
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceRequest.new
|
1186
|
+
#
|
1187
|
+
# # Call the create_instance method.
|
1188
|
+
# result = client.create_instance request
|
1189
|
+
#
|
1190
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1191
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1192
|
+
# # Here is how to wait for a response.
|
1193
|
+
# result.wait_until_done! timeout: 60
|
1194
|
+
# if result.response?
|
1195
|
+
# p result.response
|
1196
|
+
# else
|
1197
|
+
# puts "No response received."
|
1198
|
+
# end
|
1199
|
+
#
|
1023
1200
|
def create_instance request, options = nil
|
1024
1201
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1025
1202
|
|
@@ -1131,6 +1308,29 @@ module Google
|
|
1131
1308
|
# @return [::Gapic::Operation]
|
1132
1309
|
#
|
1133
1310
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1311
|
+
#
|
1312
|
+
# @example Basic example
|
1313
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
1314
|
+
#
|
1315
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1316
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
1317
|
+
#
|
1318
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1319
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstanceRequest.new
|
1320
|
+
#
|
1321
|
+
# # Call the update_instance method.
|
1322
|
+
# result = client.update_instance request
|
1323
|
+
#
|
1324
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1325
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1326
|
+
# # Here is how to wait for a response.
|
1327
|
+
# result.wait_until_done! timeout: 60
|
1328
|
+
# if result.response?
|
1329
|
+
# p result.response
|
1330
|
+
# else
|
1331
|
+
# puts "No response received."
|
1332
|
+
# end
|
1333
|
+
#
|
1134
1334
|
def update_instance request, options = nil
|
1135
1335
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1136
1336
|
|
@@ -1205,6 +1405,22 @@ module Google
|
|
1205
1405
|
# @return [::Google::Protobuf::Empty]
|
1206
1406
|
#
|
1207
1407
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1408
|
+
#
|
1409
|
+
# @example Basic example
|
1410
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
1411
|
+
#
|
1412
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1413
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
1414
|
+
#
|
1415
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1416
|
+
# request = Google::Cloud::Spanner::Admin::Instance::V1::DeleteInstanceRequest.new
|
1417
|
+
#
|
1418
|
+
# # Call the delete_instance method.
|
1419
|
+
# result = client.delete_instance request
|
1420
|
+
#
|
1421
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1422
|
+
# p result
|
1423
|
+
#
|
1208
1424
|
def delete_instance request, options = nil
|
1209
1425
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1210
1426
|
|
@@ -1283,6 +1499,22 @@ module Google
|
|
1283
1499
|
# @return [::Google::Iam::V1::Policy]
|
1284
1500
|
#
|
1285
1501
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1502
|
+
#
|
1503
|
+
# @example Basic example
|
1504
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
1505
|
+
#
|
1506
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1507
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
1508
|
+
#
|
1509
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1510
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1511
|
+
#
|
1512
|
+
# # Call the set_iam_policy method.
|
1513
|
+
# result = client.set_iam_policy request
|
1514
|
+
#
|
1515
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1516
|
+
# p result
|
1517
|
+
#
|
1286
1518
|
def set_iam_policy request, options = nil
|
1287
1519
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1288
1520
|
|
@@ -1353,6 +1585,22 @@ module Google
|
|
1353
1585
|
# @return [::Google::Iam::V1::Policy]
|
1354
1586
|
#
|
1355
1587
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1588
|
+
#
|
1589
|
+
# @example Basic example
|
1590
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
1591
|
+
#
|
1592
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1593
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
1594
|
+
#
|
1595
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1596
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
1597
|
+
#
|
1598
|
+
# # Call the get_iam_policy method.
|
1599
|
+
# result = client.get_iam_policy request
|
1600
|
+
#
|
1601
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1602
|
+
# p result
|
1603
|
+
#
|
1356
1604
|
def get_iam_policy request, options = nil
|
1357
1605
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1358
1606
|
|
@@ -1426,6 +1674,22 @@ module Google
|
|
1426
1674
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
1427
1675
|
#
|
1428
1676
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1677
|
+
#
|
1678
|
+
# @example Basic example
|
1679
|
+
# require "google/cloud/spanner/admin/instance/v1"
|
1680
|
+
#
|
1681
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1682
|
+
# client = Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Rest::Client.new
|
1683
|
+
#
|
1684
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1685
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1686
|
+
#
|
1687
|
+
# # Call the test_iam_permissions method.
|
1688
|
+
# result = client.test_iam_permissions request
|
1689
|
+
#
|
1690
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1691
|
+
# p result
|
1692
|
+
#
|
1429
1693
|
def test_iam_permissions request, options = nil
|
1430
1694
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1431
1695
|
|
@@ -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
|
|
@@ -17,7 +17,7 @@ require 'google/protobuf/timestamp_pb'
|
|
17
17
|
require 'google/spanner/admin/instance/v1/common_pb'
|
18
18
|
|
19
19
|
|
20
|
-
descriptor_data = "\n=google/spanner/admin/instance/v1/spanner_instance_admin.proto\x12 google.spanner.admin.instance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-google/spanner/admin/instance/v1/common.proto\"\xda\x01\n\x0bReplicaInfo\x12\x10\n\x08location\x18\x01 \x01(\t\x12G\n\x04type\x18\x02 \x01(\x0e\x32\x39.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType\x12\x1f\n\x17\x64\x65\x66\x61ult_leader_location\x18\x03 \x01(\x08\"O\n\x0bReplicaType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nREAD_WRITE\x10\x01\x12\r\n\tREAD_ONLY\x10\x02\x12\x0b\n\x07WITNESS\x10\x03\"\xbe\x06\n\x0eInstanceConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12O\n\x0b\x63onfig_type\x18\x05 \x01(\x0e\x32\x35.google.spanner.admin.instance.v1.InstanceConfig.TypeB\x03\xe0\x41\x03\x12?\n\x08replicas\x18\x03 \x03(\x0b\x32-.google.spanner.admin.instance.v1.ReplicaInfo\x12M\n\x11optional_replicas\x18\x06 \x03(\x0b\x32-.google.spanner.admin.instance.v1.ReplicaInfoB\x03\xe0\x41\x03\x12?\n\x0b\x62\x61se_config\x18\x07 \x01(\tB*\xfa\x41\'\n%spanner.googleapis.com/InstanceConfig\x12L\n\x06labels\x18\x08 \x03(\x0b\x32<.google.spanner.admin.instance.v1.InstanceConfig.LabelsEntry\x12\x0c\n\x04\x65tag\x18\t \x01(\t\x12\x16\n\x0eleader_options\x18\x04 \x03(\t\x12\x18\n\x0breconciling\x18\n \x01(\x08\x42\x03\xe0\x41\x03\x12J\n\x05state\x18\x0b \x01(\x0e\x32\x36.google.spanner.admin.instance.v1.InstanceConfig.StateB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"B\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eGOOGLE_MANAGED\x10\x01\x12\x10\n\x0cUSER_MANAGED\x10\x02\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02:`\xea\x41]\n%spanner.googleapis.com/InstanceConfig\x12\x34projects/{project}/instanceConfigs/{instance_config}\"\xed\x04\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12=\n\x06\x63onfig\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%spanner.googleapis.com/InstanceConfig\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nnode_count\x18\x05 \x01(\x05\x12\x18\n\x10processing_units\x18\t \x01(\x05\x12\x44\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.spanner.admin.instance.v1.Instance.StateB\x03\xe0\x41\x03\x12\x46\n\x06labels\x18\x07 \x03(\x0b\x32\x36.google.spanner.admin.instance.v1.Instance.LabelsEntry\x12\x15\n\rendpoint_uris\x18\x08 \x03(\t\x12\x34\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02:M\xea\x41J\n\x1fspanner.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}\"\x88\x01\n\x1aListInstanceConfigsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1bListInstanceConfigsResponse\x12J\n\x10instance_configs\x18\x01 \x03(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"W\n\x18GetInstanceConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%spanner.googleapis.com/InstanceConfig\"\xea\x01\n\x1b\x43reateInstanceConfigRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x1f\n\x12instance_config_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12N\n\x0finstance_config\x18\x03 \x01(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfigB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xba\x01\n\x1bUpdateInstanceConfigRequest\x12N\n\x0finstance_config\x18\x01 \x01(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\x7f\n\x1b\x44\x65leteInstanceConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%spanner.googleapis.com/InstanceConfig\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xa1\x01\n#ListInstanceConfigOperationsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"r\n$ListInstanceConfigOperationsResponse\x12\x31\n\noperations\x18\x01 \x03(\x0b\x32\x1d.google.longrunning.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x12GetInstanceRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb9\x01\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x08instance\x18\x03 \x01(\x0b\x32*.google.spanner.admin.instance.v1.InstanceB\x03\xe0\x41\x02\"\x92\x01\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"o\n\x15ListInstancesResponse\x12=\n\tinstances\x18\x01 \x03(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8f\x01\n\x15UpdateInstanceRequest\x12\x41\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.InstanceB\x03\xe0\x41\x02\x12\x33\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"N\n\x15\x44\x65leteInstanceRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\"\xe5\x01\n\x16\x43reateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe5\x01\n\x16UpdateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe1\x01\n\x1c\x43reateInstanceConfigMetadata\x12I\n\x0finstance_config\x18\x01 \x01(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfig\x12\x45\n\x08progress\x18\x02 \x01(\x0b\x32\x33.google.spanner.admin.instance.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe1\x01\n\x1cUpdateInstanceConfigMetadata\x12I\n\x0finstance_config\x18\x01 \x01(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfig\x12\x45\n\x08progress\x18\x02 \x01(\x0b\x32\x33.google.spanner.admin.instance.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xf2\x18\n\rInstanceAdmin\x12\xcc\x01\n\x13ListInstanceConfigs\x12<.google.spanner.admin.instance.v1.ListInstanceConfigsRequest\x1a=.google.spanner.admin.instance.v1.ListInstanceConfigsResponse\"8\x82\xd3\xe4\x93\x02)\x12\'/v1/{parent=projects/*}/instanceConfigs\xda\x41\x06parent\x12\xb9\x01\n\x11GetInstanceConfig\x12:.google.spanner.admin.instance.v1.GetInstanceConfigRequest\x1a\x30.google.spanner.admin.instance.v1.InstanceConfig\"6\x82\xd3\xe4\x93\x02)\x12\'/v1/{name=projects/*/instanceConfigs/*}\xda\x41\x04name\x12\xc8\x02\n\x14\x43reateInstanceConfig\x12=.google.spanner.admin.instance.v1.CreateInstanceConfigRequest\x1a\x1d.google.longrunning.Operation\"\xd1\x01\x82\xd3\xe4\x93\x02,\"\'/v1/{parent=projects/*}/instanceConfigs:\x01*\xda\x41)parent,instance_config,instance_config_id\xca\x41p\n/google.spanner.admin.instance.v1.InstanceConfig\x12=google.spanner.admin.instance.v1.CreateInstanceConfigMetadata\x12\xca\x02\n\x14UpdateInstanceConfig\x12=.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\x82\xd3\xe4\x93\x02<27/v1/{instance_config.name=projects/*/instanceConfigs/*}:\x01*\xda\x41\x1binstance_config,update_mask\xca\x41p\n/google.spanner.admin.instance.v1.InstanceConfig\x12=google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata\x12\xa5\x01\n\x14\x44\x65leteInstanceConfig\x12=.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest\x1a\x16.google.protobuf.Empty\"6\x82\xd3\xe4\x93\x02)*\'/v1/{name=projects/*/instanceConfigs/*}\xda\x41\x04name\x12\xf0\x01\n\x1cListInstanceConfigOperations\x12\x45.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest\x1a\x46.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*}/instanceConfigOperations\xda\x41\x06parent\x12\xb4\x01\n\rListInstances\x12\x36.google.spanner.admin.instance.v1.ListInstancesRequest\x1a\x37.google.spanner.admin.instance.v1.ListInstancesResponse\"2\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=projects/*}/instances\xda\x41\x06parent\x12\xa1\x01\n\x0bGetInstance\x12\x34.google.spanner.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.admin.instance.v1.Instance\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/instances/*}\xda\x41\x04name\x12\x9c\x02\n\x0e\x43reateInstance\x12\x37.google.spanner.admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xb1\x01\x82\xd3\xe4\x93\x02&\"!/v1/{parent=projects/*}/instances:\x01*\xda\x41\x1bparent,instance_id,instance\xca\x41\x64\n)google.spanner.admin.instance.v1.Instance\x12\x37google.spanner.admin.instance.v1.CreateInstanceMetadata\x12\x9d\x02\n\x0eUpdateInstance\x12\x37.google.spanner.admin.instance.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\x82\xd3\xe4\x93\x02/2*/v1/{instance.name=projects/*/instances/*}:\x01*\xda\x41\x13instance,field_mask\xca\x41\x64\n)google.spanner.admin.instance.v1.Instance\x12\x37google.spanner.admin.instance.v1.UpdateInstanceMetadata\x12\x93\x01\n\x0e\x44\x65leteInstance\x12\x37.google.spanner.admin.instance.v1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02#*!/v1/{name=projects/*/instances/*}\xda\x41\x04name\x12\x9a\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"O\x82\xd3\xe4\x93\x02\x37\"2/v1/{resource=projects/*/instances/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\x93\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"H\x82\xd3\xe4\x93\x02\x37\"2/v1/{resource=projects/*/instances/*}:getIamPolicy:\x01*\xda\x41\x08resource\x12\xc5\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"Z\x82\xd3\xe4\x93\x02=\"8/v1/{resource=projects/*/instances/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x1ax\xca\x41\x16spanner.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/spanner.adminB\x8b\x02\n$com.google.spanner.admin.instance.v1B\x19SpannerInstanceAdminProtoP\x01ZFcloud.google.com/go/spanner/admin/instance/apiv1/instancepb;instancepb\xaa\x02&Google.Cloud.Spanner.Admin.Instance.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Instance\\V1\xea\x02+Google::Cloud::Spanner::Admin::Instance::V1b\x06proto3"
|
20
|
+
descriptor_data = "\n=google/spanner/admin/instance/v1/spanner_instance_admin.proto\x12 google.spanner.admin.instance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-google/spanner/admin/instance/v1/common.proto\"\xda\x01\n\x0bReplicaInfo\x12\x10\n\x08location\x18\x01 \x01(\t\x12G\n\x04type\x18\x02 \x01(\x0e\x32\x39.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType\x12\x1f\n\x17\x64\x65\x66\x61ult_leader_location\x18\x03 \x01(\x08\"O\n\x0bReplicaType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nREAD_WRITE\x10\x01\x12\r\n\tREAD_ONLY\x10\x02\x12\x0b\n\x07WITNESS\x10\x03\"\xbe\x06\n\x0eInstanceConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12O\n\x0b\x63onfig_type\x18\x05 \x01(\x0e\x32\x35.google.spanner.admin.instance.v1.InstanceConfig.TypeB\x03\xe0\x41\x03\x12?\n\x08replicas\x18\x03 \x03(\x0b\x32-.google.spanner.admin.instance.v1.ReplicaInfo\x12M\n\x11optional_replicas\x18\x06 \x03(\x0b\x32-.google.spanner.admin.instance.v1.ReplicaInfoB\x03\xe0\x41\x03\x12?\n\x0b\x62\x61se_config\x18\x07 \x01(\tB*\xfa\x41\'\n%spanner.googleapis.com/InstanceConfig\x12L\n\x06labels\x18\x08 \x03(\x0b\x32<.google.spanner.admin.instance.v1.InstanceConfig.LabelsEntry\x12\x0c\n\x04\x65tag\x18\t \x01(\t\x12\x16\n\x0eleader_options\x18\x04 \x03(\t\x12\x18\n\x0breconciling\x18\n \x01(\x08\x42\x03\xe0\x41\x03\x12J\n\x05state\x18\x0b \x01(\x0e\x32\x36.google.spanner.admin.instance.v1.InstanceConfig.StateB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"B\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eGOOGLE_MANAGED\x10\x01\x12\x10\n\x0cUSER_MANAGED\x10\x02\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02:`\xea\x41]\n%spanner.googleapis.com/InstanceConfig\x12\x34projects/{project}/instanceConfigs/{instance_config}\"\xf3\x03\n\x11\x41utoscalingConfig\x12\x66\n\x12\x61utoscaling_limits\x18\x01 \x01(\x0b\x32\x45.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimitsB\x03\xe0\x41\x02\x12h\n\x13\x61utoscaling_targets\x18\x02 \x01(\x0b\x32\x46.google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargetsB\x03\xe0\x41\x02\x1a\x97\x01\n\x11\x41utoscalingLimits\x12\x13\n\tmin_nodes\x18\x01 \x01(\x05H\x00\x12\x1e\n\x14min_processing_units\x18\x02 \x01(\x05H\x00\x12\x13\n\tmax_nodes\x18\x03 \x01(\x05H\x01\x12\x1e\n\x14max_processing_units\x18\x04 \x01(\x05H\x01\x42\x0b\n\tmin_limitB\x0b\n\tmax_limit\x1ar\n\x12\x41utoscalingTargets\x12\x32\n%high_priority_cpu_utilization_percent\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12(\n\x1bstorage_utilization_percent\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xc3\x05\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12=\n\x06\x63onfig\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%spanner.googleapis.com/InstanceConfig\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nnode_count\x18\x05 \x01(\x05\x12\x18\n\x10processing_units\x18\t \x01(\x05\x12T\n\x12\x61utoscaling_config\x18\x11 \x01(\x0b\x32\x33.google.spanner.admin.instance.v1.AutoscalingConfigB\x03\xe0\x41\x01\x12\x44\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.spanner.admin.instance.v1.Instance.StateB\x03\xe0\x41\x03\x12\x46\n\x06labels\x18\x07 \x03(\x0b\x32\x36.google.spanner.admin.instance.v1.Instance.LabelsEntry\x12\x15\n\rendpoint_uris\x18\x08 \x03(\t\x12\x34\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02:M\xea\x41J\n\x1fspanner.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}\"\x88\x01\n\x1aListInstanceConfigsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1bListInstanceConfigsResponse\x12J\n\x10instance_configs\x18\x01 \x03(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"W\n\x18GetInstanceConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%spanner.googleapis.com/InstanceConfig\"\xea\x01\n\x1b\x43reateInstanceConfigRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x1f\n\x12instance_config_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12N\n\x0finstance_config\x18\x03 \x01(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfigB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xba\x01\n\x1bUpdateInstanceConfigRequest\x12N\n\x0finstance_config\x18\x01 \x01(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\x7f\n\x1b\x44\x65leteInstanceConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%spanner.googleapis.com/InstanceConfig\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xa1\x01\n#ListInstanceConfigOperationsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"r\n$ListInstanceConfigOperationsResponse\x12\x31\n\noperations\x18\x01 \x03(\x0b\x32\x1d.google.longrunning.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x12GetInstanceRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb9\x01\n\x15\x43reateInstanceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x08instance\x18\x03 \x01(\x0b\x32*.google.spanner.admin.instance.v1.InstanceB\x03\xe0\x41\x02\"\x92\x01\n\x14ListInstancesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"o\n\x15ListInstancesResponse\x12=\n\tinstances\x18\x01 \x03(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8f\x01\n\x15UpdateInstanceRequest\x12\x41\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.InstanceB\x03\xe0\x41\x02\x12\x33\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"N\n\x15\x44\x65leteInstanceRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\"\xe5\x01\n\x16\x43reateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe5\x01\n\x16UpdateInstanceMetadata\x12<\n\x08instance\x18\x01 \x01(\x0b\x32*.google.spanner.admin.instance.v1.Instance\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe1\x01\n\x1c\x43reateInstanceConfigMetadata\x12I\n\x0finstance_config\x18\x01 \x01(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfig\x12\x45\n\x08progress\x18\x02 \x01(\x0b\x32\x33.google.spanner.admin.instance.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe1\x01\n\x1cUpdateInstanceConfigMetadata\x12I\n\x0finstance_config\x18\x01 \x01(\x0b\x32\x30.google.spanner.admin.instance.v1.InstanceConfig\x12\x45\n\x08progress\x18\x02 \x01(\x0b\x32\x33.google.spanner.admin.instance.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xf2\x18\n\rInstanceAdmin\x12\xcc\x01\n\x13ListInstanceConfigs\x12<.google.spanner.admin.instance.v1.ListInstanceConfigsRequest\x1a=.google.spanner.admin.instance.v1.ListInstanceConfigsResponse\"8\x82\xd3\xe4\x93\x02)\x12\'/v1/{parent=projects/*}/instanceConfigs\xda\x41\x06parent\x12\xb9\x01\n\x11GetInstanceConfig\x12:.google.spanner.admin.instance.v1.GetInstanceConfigRequest\x1a\x30.google.spanner.admin.instance.v1.InstanceConfig\"6\x82\xd3\xe4\x93\x02)\x12\'/v1/{name=projects/*/instanceConfigs/*}\xda\x41\x04name\x12\xc8\x02\n\x14\x43reateInstanceConfig\x12=.google.spanner.admin.instance.v1.CreateInstanceConfigRequest\x1a\x1d.google.longrunning.Operation\"\xd1\x01\x82\xd3\xe4\x93\x02,\"\'/v1/{parent=projects/*}/instanceConfigs:\x01*\xda\x41)parent,instance_config,instance_config_id\xca\x41p\n/google.spanner.admin.instance.v1.InstanceConfig\x12=google.spanner.admin.instance.v1.CreateInstanceConfigMetadata\x12\xca\x02\n\x14UpdateInstanceConfig\x12=.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\x82\xd3\xe4\x93\x02<27/v1/{instance_config.name=projects/*/instanceConfigs/*}:\x01*\xda\x41\x1binstance_config,update_mask\xca\x41p\n/google.spanner.admin.instance.v1.InstanceConfig\x12=google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata\x12\xa5\x01\n\x14\x44\x65leteInstanceConfig\x12=.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest\x1a\x16.google.protobuf.Empty\"6\x82\xd3\xe4\x93\x02)*\'/v1/{name=projects/*/instanceConfigs/*}\xda\x41\x04name\x12\xf0\x01\n\x1cListInstanceConfigOperations\x12\x45.google.spanner.admin.instance.v1.ListInstanceConfigOperationsRequest\x1a\x46.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*}/instanceConfigOperations\xda\x41\x06parent\x12\xb4\x01\n\rListInstances\x12\x36.google.spanner.admin.instance.v1.ListInstancesRequest\x1a\x37.google.spanner.admin.instance.v1.ListInstancesResponse\"2\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=projects/*}/instances\xda\x41\x06parent\x12\xa1\x01\n\x0bGetInstance\x12\x34.google.spanner.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.admin.instance.v1.Instance\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/instances/*}\xda\x41\x04name\x12\x9c\x02\n\x0e\x43reateInstance\x12\x37.google.spanner.admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xb1\x01\x82\xd3\xe4\x93\x02&\"!/v1/{parent=projects/*}/instances:\x01*\xda\x41\x1bparent,instance_id,instance\xca\x41\x64\n)google.spanner.admin.instance.v1.Instance\x12\x37google.spanner.admin.instance.v1.CreateInstanceMetadata\x12\x9d\x02\n\x0eUpdateInstance\x12\x37.google.spanner.admin.instance.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\x82\xd3\xe4\x93\x02/2*/v1/{instance.name=projects/*/instances/*}:\x01*\xda\x41\x13instance,field_mask\xca\x41\x64\n)google.spanner.admin.instance.v1.Instance\x12\x37google.spanner.admin.instance.v1.UpdateInstanceMetadata\x12\x93\x01\n\x0e\x44\x65leteInstance\x12\x37.google.spanner.admin.instance.v1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02#*!/v1/{name=projects/*/instances/*}\xda\x41\x04name\x12\x9a\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"O\x82\xd3\xe4\x93\x02\x37\"2/v1/{resource=projects/*/instances/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\x93\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"H\x82\xd3\xe4\x93\x02\x37\"2/v1/{resource=projects/*/instances/*}:getIamPolicy:\x01*\xda\x41\x08resource\x12\xc5\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"Z\x82\xd3\xe4\x93\x02=\"8/v1/{resource=projects/*/instances/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x1ax\xca\x41\x16spanner.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/spanner.adminB\x8b\x02\n$com.google.spanner.admin.instance.v1B\x19SpannerInstanceAdminProtoP\x01ZFcloud.google.com/go/spanner/admin/instance/apiv1/instancepb;instancepb\xaa\x02&Google.Cloud.Spanner.Admin.Instance.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Instance\\V1\xea\x02+Google::Cloud::Spanner::Admin::Instance::V1b\x06proto3"
|
21
21
|
|
22
22
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
23
|
|
@@ -58,6 +58,9 @@ module Google
|
|
58
58
|
InstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.InstanceConfig").msgclass
|
59
59
|
InstanceConfig::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.InstanceConfig.Type").enummodule
|
60
60
|
InstanceConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.InstanceConfig.State").enummodule
|
61
|
+
AutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.AutoscalingConfig").msgclass
|
62
|
+
AutoscalingConfig::AutoscalingLimits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits").msgclass
|
63
|
+
AutoscalingConfig::AutoscalingTargets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets").msgclass
|
61
64
|
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.Instance").msgclass
|
62
65
|
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.Instance.State").enummodule
|
63
66
|
ListInstanceConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.instance.v1.ListInstanceConfigsRequest").msgclass
|
@@ -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
|
@@ -187,6 +187,63 @@ module Google
|
|
187
187
|
end
|
188
188
|
end
|
189
189
|
|
190
|
+
# Autoscaling config for an instance.
|
191
|
+
# @!attribute [rw] autoscaling_limits
|
192
|
+
# @return [::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingLimits]
|
193
|
+
# Required. Autoscaling limits for an instance.
|
194
|
+
# @!attribute [rw] autoscaling_targets
|
195
|
+
# @return [::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig::AutoscalingTargets]
|
196
|
+
# Required. The autoscaling targets for an instance.
|
197
|
+
class AutoscalingConfig
|
198
|
+
include ::Google::Protobuf::MessageExts
|
199
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
200
|
+
|
201
|
+
# The autoscaling limits for the instance. Users can define the minimum and
|
202
|
+
# maximum compute capacity allocated to the instance, and the autoscaler will
|
203
|
+
# only scale within that range. Users can either use nodes or processing
|
204
|
+
# units to specify the limits, but should use the same unit to set both the
|
205
|
+
# min_limit and max_limit.
|
206
|
+
# @!attribute [rw] min_nodes
|
207
|
+
# @return [::Integer]
|
208
|
+
# Minimum number of nodes allocated to the instance. If set, this number
|
209
|
+
# should be greater than or equal to 1.
|
210
|
+
# @!attribute [rw] min_processing_units
|
211
|
+
# @return [::Integer]
|
212
|
+
# Minimum number of processing units allocated to the instance. If set,
|
213
|
+
# this number should be multiples of 1000.
|
214
|
+
# @!attribute [rw] max_nodes
|
215
|
+
# @return [::Integer]
|
216
|
+
# Maximum number of nodes allocated to the instance. If set, this number
|
217
|
+
# should be greater than or equal to min_nodes.
|
218
|
+
# @!attribute [rw] max_processing_units
|
219
|
+
# @return [::Integer]
|
220
|
+
# Maximum number of processing units allocated to the instance. If set,
|
221
|
+
# this number should be multiples of 1000 and be greater than or equal to
|
222
|
+
# min_processing_units.
|
223
|
+
class AutoscalingLimits
|
224
|
+
include ::Google::Protobuf::MessageExts
|
225
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
226
|
+
end
|
227
|
+
|
228
|
+
# The autoscaling targets for an instance.
|
229
|
+
# @!attribute [rw] high_priority_cpu_utilization_percent
|
230
|
+
# @return [::Integer]
|
231
|
+
# Required. The target high priority cpu utilization percentage that the
|
232
|
+
# autoscaler should be trying to achieve for the instance. This number is
|
233
|
+
# on a scale from 0 (no utilization) to 100 (full utilization). The valid
|
234
|
+
# range is [10, 90] inclusive.
|
235
|
+
# @!attribute [rw] storage_utilization_percent
|
236
|
+
# @return [::Integer]
|
237
|
+
# Required. The target storage utilization percentage that the autoscaler
|
238
|
+
# should be trying to achieve for the instance. This number is on a scale
|
239
|
+
# from 0 (no utilization) to 100 (full utilization). The valid range is
|
240
|
+
# [10, 100] inclusive.
|
241
|
+
class AutoscalingTargets
|
242
|
+
include ::Google::Protobuf::MessageExts
|
243
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
190
247
|
# An isolated set of Cloud Spanner resources on which databases can be hosted.
|
191
248
|
# @!attribute [rw] name
|
192
249
|
# @return [::String]
|
@@ -207,8 +264,12 @@ module Google
|
|
207
264
|
# @!attribute [rw] node_count
|
208
265
|
# @return [::Integer]
|
209
266
|
# The number of nodes allocated to this instance. At most one of either
|
210
|
-
# node_count or processing_units should be present in the message.
|
211
|
-
#
|
267
|
+
# node_count or processing_units should be present in the message.
|
268
|
+
#
|
269
|
+
# Users can set the node_count field to specify the target number of nodes
|
270
|
+
# allocated to the instance.
|
271
|
+
#
|
272
|
+
# This may be zero in API responses for instances that are not yet in state
|
212
273
|
# `READY`.
|
213
274
|
#
|
214
275
|
# See [the
|
@@ -217,12 +278,23 @@ module Google
|
|
217
278
|
# @!attribute [rw] processing_units
|
218
279
|
# @return [::Integer]
|
219
280
|
# The number of processing units allocated to this instance. At most one of
|
220
|
-
# processing_units or node_count should be present in the message.
|
221
|
-
#
|
281
|
+
# processing_units or node_count should be present in the message.
|
282
|
+
#
|
283
|
+
# Users can set the processing_units field to specify the target number of
|
284
|
+
# processing units allocated to the instance.
|
285
|
+
#
|
286
|
+
# This may be zero in API responses for instances that are not yet in state
|
287
|
+
# `READY`.
|
222
288
|
#
|
223
289
|
# See [the
|
224
290
|
# documentation](https://cloud.google.com/spanner/docs/compute-capacity)
|
225
291
|
# for more information about nodes and processing units.
|
292
|
+
# @!attribute [rw] autoscaling_config
|
293
|
+
# @return [::Google::Cloud::Spanner::Admin::Instance::V1::AutoscalingConfig]
|
294
|
+
# Optional. The autoscaling configuration. Autoscaling is enabled if this
|
295
|
+
# field is set. When autoscaling is enabled, node_count and processing_units
|
296
|
+
# are treated as OUTPUT_ONLY fields and reflect the current compute capacity
|
297
|
+
# allocated to the instance.
|
226
298
|
# @!attribute [r] state
|
227
299
|
# @return [::Google::Cloud::Spanner::Admin::Instance::V1::Instance::State]
|
228
300
|
# Output only. The current instance state. For
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-spanner-admin-instance-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.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-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 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
|
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
236
|
- !ruby/object:Gem::Version
|
237
237
|
version: '0'
|
238
238
|
requirements: []
|
239
|
-
rubygems_version: 3.4.
|
239
|
+
rubygems_version: 3.4.19
|
240
240
|
signing_key:
|
241
241
|
specification_version: 4
|
242
242
|
summary: API Client library for the Cloud Spanner Instance Admin V1 API
|