google-cloud-spanner-admin-instance-v1 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/client.rb +28 -34
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/operations.rb +12 -14
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/rest/client.rb +1701 -0
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/rest/operations.rb +824 -0
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/rest/service_stub.rb +885 -0
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/rest.rb +77 -0
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin.rb +7 -1
- data/lib/google/cloud/spanner/admin/instance/v1/rest.rb +41 -0
- data/lib/google/cloud/spanner/admin/instance/v1/version.rb +1 -1
- data/lib/google/cloud/spanner/admin/instance/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 276c00474aac9657725db28deeb043afc788319d7096b5cc570ec495366d2ec8
|
4
|
+
data.tar.gz: bae07af2b455584a84d48b718d3eb9eccc9837db8d0cacaf2bf751b50433d9bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9560a499b8ee39cb00b65d99703bc715a654f3af304cb24381e49694eb4d2b9c06ff3b607cc237e4d3fc53590413a29910e278c6cd85f255d8d14d7a7389ec35
|
7
|
+
data.tar.gz: 8b3ce86f7c9b563dc46095aa1b023af382df9b41375694417b050b6257a8ffdb0d84bec80751ed7d0fa4aeba3e0e20db5abf8149050a7689e0ae9efe80b294a8
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -268,13 +268,11 @@ module Google
|
|
268
268
|
# # Call the list_instance_configs method.
|
269
269
|
# result = client.list_instance_configs request
|
270
270
|
#
|
271
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
272
|
-
# #
|
273
|
-
#
|
274
|
-
# # methods are also available for managing paging directly.
|
275
|
-
# result.each do |response|
|
271
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
272
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
273
|
+
# result.each do |item|
|
276
274
|
# # Each element is of type ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceConfig.
|
277
|
-
# p
|
275
|
+
# p item
|
278
276
|
# end
|
279
277
|
#
|
280
278
|
def list_instance_configs request, options = nil
|
@@ -501,14 +499,14 @@ module Google
|
|
501
499
|
# # Call the create_instance_config method.
|
502
500
|
# result = client.create_instance_config request
|
503
501
|
#
|
504
|
-
# # The returned object is of type Gapic::Operation. You can use
|
505
|
-
# #
|
506
|
-
# #
|
502
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
503
|
+
# # check the status of an operation, cancel it, or wait for results.
|
504
|
+
# # Here is how to wait for a response.
|
507
505
|
# result.wait_until_done! timeout: 60
|
508
506
|
# if result.response?
|
509
507
|
# p result.response
|
510
508
|
# else
|
511
|
-
# puts "
|
509
|
+
# puts "No response received."
|
512
510
|
# end
|
513
511
|
#
|
514
512
|
def create_instance_config request, options = nil
|
@@ -652,14 +650,14 @@ module Google
|
|
652
650
|
# # Call the update_instance_config method.
|
653
651
|
# result = client.update_instance_config request
|
654
652
|
#
|
655
|
-
# # The returned object is of type Gapic::Operation. You can use
|
656
|
-
# #
|
657
|
-
# #
|
653
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
654
|
+
# # check the status of an operation, cancel it, or wait for results.
|
655
|
+
# # Here is how to wait for a response.
|
658
656
|
# result.wait_until_done! timeout: 60
|
659
657
|
# if result.response?
|
660
658
|
# p result.response
|
661
659
|
# else
|
662
|
-
# puts "
|
660
|
+
# puts "No response received."
|
663
661
|
# end
|
664
662
|
#
|
665
663
|
def update_instance_config request, options = nil
|
@@ -914,13 +912,11 @@ module Google
|
|
914
912
|
# # Call the list_instance_config_operations method.
|
915
913
|
# result = client.list_instance_config_operations request
|
916
914
|
#
|
917
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
918
|
-
# #
|
919
|
-
#
|
920
|
-
# # methods are also available for managing paging directly.
|
921
|
-
# result.each do |response|
|
915
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
916
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
917
|
+
# result.each do |item|
|
922
918
|
# # Each element is of type ::Google::Longrunning::Operation.
|
923
|
-
# p
|
919
|
+
# p item
|
924
920
|
# end
|
925
921
|
#
|
926
922
|
def list_instance_config_operations request, options = nil
|
@@ -1036,13 +1032,11 @@ module Google
|
|
1036
1032
|
# # Call the list_instances method.
|
1037
1033
|
# result = client.list_instances request
|
1038
1034
|
#
|
1039
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1040
|
-
# #
|
1041
|
-
#
|
1042
|
-
# # methods are also available for managing paging directly.
|
1043
|
-
# result.each do |response|
|
1035
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1036
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1037
|
+
# result.each do |item|
|
1044
1038
|
# # Each element is of type ::Google::Cloud::Spanner::Admin::Instance::V1::Instance.
|
1045
|
-
# p
|
1039
|
+
# p item
|
1046
1040
|
# end
|
1047
1041
|
#
|
1048
1042
|
def list_instances request, options = nil
|
@@ -1260,14 +1254,14 @@ module Google
|
|
1260
1254
|
# # Call the create_instance method.
|
1261
1255
|
# result = client.create_instance request
|
1262
1256
|
#
|
1263
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1264
|
-
# #
|
1265
|
-
# #
|
1257
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1258
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1259
|
+
# # Here is how to wait for a response.
|
1266
1260
|
# result.wait_until_done! timeout: 60
|
1267
1261
|
# if result.response?
|
1268
1262
|
# p result.response
|
1269
1263
|
# else
|
1270
|
-
# puts "
|
1264
|
+
# puts "No response received."
|
1271
1265
|
# end
|
1272
1266
|
#
|
1273
1267
|
def create_instance request, options = nil
|
@@ -1401,14 +1395,14 @@ module Google
|
|
1401
1395
|
# # Call the update_instance method.
|
1402
1396
|
# result = client.update_instance request
|
1403
1397
|
#
|
1404
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1405
|
-
# #
|
1406
|
-
# #
|
1398
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1399
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1400
|
+
# # Here is how to wait for a response.
|
1407
1401
|
# result.wait_until_done! timeout: 60
|
1408
1402
|
# if result.response?
|
1409
1403
|
# p result.response
|
1410
1404
|
# else
|
1411
|
-
# puts "
|
1405
|
+
# puts "No response received."
|
1412
1406
|
# end
|
1413
1407
|
#
|
1414
1408
|
def update_instance request, options = nil
|
@@ -160,13 +160,11 @@ module Google
|
|
160
160
|
# # Call the list_operations method.
|
161
161
|
# result = client.list_operations request
|
162
162
|
#
|
163
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
164
|
-
# #
|
165
|
-
#
|
166
|
-
# # methods are also available for managing paging directly.
|
167
|
-
# result.each do |response|
|
163
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
164
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
165
|
+
# result.each do |item|
|
168
166
|
# # Each element is of type ::Google::Longrunning::Operation.
|
169
|
-
# p
|
167
|
+
# p item
|
170
168
|
# end
|
171
169
|
#
|
172
170
|
def list_operations request, options = nil
|
@@ -255,14 +253,14 @@ module Google
|
|
255
253
|
# # Call the get_operation method.
|
256
254
|
# result = client.get_operation request
|
257
255
|
#
|
258
|
-
# # The returned object is of type Gapic::Operation. You can use
|
259
|
-
# #
|
260
|
-
# #
|
256
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
257
|
+
# # check the status of an operation, cancel it, or wait for results.
|
258
|
+
# # Here is how to wait for a response.
|
261
259
|
# result.wait_until_done! timeout: 60
|
262
260
|
# if result.response?
|
263
261
|
# p result.response
|
264
262
|
# else
|
265
|
-
# puts "
|
263
|
+
# puts "No response received."
|
266
264
|
# end
|
267
265
|
#
|
268
266
|
def get_operation request, options = nil
|
@@ -542,14 +540,14 @@ module Google
|
|
542
540
|
# # Call the wait_operation method.
|
543
541
|
# result = client.wait_operation request
|
544
542
|
#
|
545
|
-
# # The returned object is of type Gapic::Operation. You can use
|
546
|
-
# #
|
547
|
-
# #
|
543
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
544
|
+
# # check the status of an operation, cancel it, or wait for results.
|
545
|
+
# # Here is how to wait for a response.
|
548
546
|
# result.wait_until_done! timeout: 60
|
549
547
|
# if result.response?
|
550
548
|
# p result.response
|
551
549
|
# else
|
552
|
-
# puts "
|
550
|
+
# puts "No response received."
|
553
551
|
# end
|
554
552
|
#
|
555
553
|
def wait_operation request, options = nil
|