google-cloud-spanner-admin-database-v1 0.11.0 → 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/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/client.rb +40 -50
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/operations.rb +12 -14
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/client.rb +2121 -0
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/operations.rb +880 -0
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb +1214 -0
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest.rb +63 -0
- data/lib/google/cloud/spanner/admin/database/v1/database_admin.rb +7 -1
- data/lib/google/cloud/spanner/admin/database/v1/rest.rb +41 -0
- data/lib/google/cloud/spanner/admin/database/v1/version.rb +1 -1
- data/lib/google/cloud/spanner/admin/database/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/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +16 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dd7e7bcd60f178f114d0d9bcc20c5677f09c4b3a0e865ef9a4bee0fed39dc91
|
4
|
+
data.tar.gz: 7e0f9a2ef395b8c5713213a979914e51db9631c44bca6cdcb94a9b8f3eca8a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c28d6a25a2dff217e9f30cc279a959498de5464545a715aceeda38010552d9cc45d87b7cacbd899ed2ad83fc329a399e46f300f180032ba61a4813c8fdefe1d2
|
7
|
+
data.tar.gz: 88163d15d90874e82b8ce2774fe3d549ff3d87d422e377a3270a8ea44691bcef43235fdcdafdbfed1545474bf28b9ed4dd0d3239b5fd1ede50c5cc04062afa0c
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Spanner Database Admin V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.
|
4
4
|
|
5
5
|
Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.
|
6
6
|
|
@@ -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.
|
@@ -291,13 +291,11 @@ module Google
|
|
291
291
|
# # Call the list_databases method.
|
292
292
|
# result = client.list_databases request
|
293
293
|
#
|
294
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
295
|
-
# #
|
296
|
-
#
|
297
|
-
# # methods are also available for managing paging directly.
|
298
|
-
# result.each do |response|
|
294
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
295
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
296
|
+
# result.each do |item|
|
299
297
|
# # Each element is of type ::Google::Cloud::Spanner::Admin::Database::V1::Database.
|
300
|
-
# p
|
298
|
+
# p item
|
301
299
|
# end
|
302
300
|
#
|
303
301
|
def list_databases request, options = nil
|
@@ -408,14 +406,14 @@ module Google
|
|
408
406
|
# # Call the create_database method.
|
409
407
|
# result = client.create_database request
|
410
408
|
#
|
411
|
-
# # The returned object is of type Gapic::Operation. You can use
|
412
|
-
# #
|
413
|
-
# #
|
409
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
410
|
+
# # check the status of an operation, cancel it, or wait for results.
|
411
|
+
# # Here is how to wait for a response.
|
414
412
|
# result.wait_until_done! timeout: 60
|
415
413
|
# if result.response?
|
416
414
|
# p result.response
|
417
415
|
# else
|
418
|
-
# puts "
|
416
|
+
# puts "No response received."
|
419
417
|
# end
|
420
418
|
#
|
421
419
|
def create_database request, options = nil
|
@@ -615,14 +613,14 @@ module Google
|
|
615
613
|
# # Call the update_database_ddl method.
|
616
614
|
# result = client.update_database_ddl request
|
617
615
|
#
|
618
|
-
# # The returned object is of type Gapic::Operation. You can use
|
619
|
-
# #
|
620
|
-
# #
|
616
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
617
|
+
# # check the status of an operation, cancel it, or wait for results.
|
618
|
+
# # Here is how to wait for a response.
|
621
619
|
# result.wait_until_done! timeout: 60
|
622
620
|
# if result.response?
|
623
621
|
# p result.response
|
624
622
|
# else
|
625
|
-
# puts "
|
623
|
+
# puts "No response received."
|
626
624
|
# end
|
627
625
|
#
|
628
626
|
def update_database_ddl request, options = nil
|
@@ -1213,14 +1211,14 @@ module Google
|
|
1213
1211
|
# # Call the create_backup method.
|
1214
1212
|
# result = client.create_backup request
|
1215
1213
|
#
|
1216
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1217
|
-
# #
|
1218
|
-
# #
|
1214
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1215
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1216
|
+
# # Here is how to wait for a response.
|
1219
1217
|
# result.wait_until_done! timeout: 60
|
1220
1218
|
# if result.response?
|
1221
1219
|
# p result.response
|
1222
1220
|
# else
|
1223
|
-
# puts "
|
1221
|
+
# puts "No response received."
|
1224
1222
|
# end
|
1225
1223
|
#
|
1226
1224
|
def create_backup request, options = nil
|
@@ -1341,14 +1339,14 @@ module Google
|
|
1341
1339
|
# # Call the copy_backup method.
|
1342
1340
|
# result = client.copy_backup request
|
1343
1341
|
#
|
1344
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1345
|
-
# #
|
1346
|
-
# #
|
1342
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1343
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1344
|
+
# # Here is how to wait for a response.
|
1347
1345
|
# result.wait_until_done! timeout: 60
|
1348
1346
|
# if result.response?
|
1349
1347
|
# p result.response
|
1350
1348
|
# else
|
1351
|
-
# puts "
|
1349
|
+
# puts "No response received."
|
1352
1350
|
# end
|
1353
1351
|
#
|
1354
1352
|
def copy_backup request, options = nil
|
@@ -1749,13 +1747,11 @@ module Google
|
|
1749
1747
|
# # Call the list_backups method.
|
1750
1748
|
# result = client.list_backups request
|
1751
1749
|
#
|
1752
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1753
|
-
# #
|
1754
|
-
#
|
1755
|
-
# # methods are also available for managing paging directly.
|
1756
|
-
# result.each do |response|
|
1750
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1751
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1752
|
+
# result.each do |item|
|
1757
1753
|
# # Each element is of type ::Google::Cloud::Spanner::Admin::Database::V1::Backup.
|
1758
|
-
# p
|
1754
|
+
# p item
|
1759
1755
|
# end
|
1760
1756
|
#
|
1761
1757
|
def list_backups request, options = nil
|
@@ -1876,14 +1872,14 @@ module Google
|
|
1876
1872
|
# # Call the restore_database method.
|
1877
1873
|
# result = client.restore_database request
|
1878
1874
|
#
|
1879
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1880
|
-
# #
|
1881
|
-
# #
|
1875
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1876
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1877
|
+
# # Here is how to wait for a response.
|
1882
1878
|
# result.wait_until_done! timeout: 60
|
1883
1879
|
# if result.response?
|
1884
1880
|
# p result.response
|
1885
1881
|
# else
|
1886
|
-
# puts "
|
1882
|
+
# puts "No response received."
|
1887
1883
|
# end
|
1888
1884
|
#
|
1889
1885
|
def restore_database request, options = nil
|
@@ -2028,13 +2024,11 @@ module Google
|
|
2028
2024
|
# # Call the list_database_operations method.
|
2029
2025
|
# result = client.list_database_operations request
|
2030
2026
|
#
|
2031
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2032
|
-
# #
|
2033
|
-
#
|
2034
|
-
# # methods are also available for managing paging directly.
|
2035
|
-
# result.each do |response|
|
2027
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2028
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2029
|
+
# result.each do |item|
|
2036
2030
|
# # Each element is of type ::Google::Longrunning::Operation.
|
2037
|
-
# p
|
2031
|
+
# p item
|
2038
2032
|
# end
|
2039
2033
|
#
|
2040
2034
|
def list_database_operations request, options = nil
|
@@ -2206,13 +2200,11 @@ module Google
|
|
2206
2200
|
# # Call the list_backup_operations method.
|
2207
2201
|
# result = client.list_backup_operations request
|
2208
2202
|
#
|
2209
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2210
|
-
# #
|
2211
|
-
#
|
2212
|
-
# # methods are also available for managing paging directly.
|
2213
|
-
# result.each do |response|
|
2203
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2204
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2205
|
+
# result.each do |item|
|
2214
2206
|
# # Each element is of type ::Google::Longrunning::Operation.
|
2215
|
-
# p
|
2207
|
+
# p item
|
2216
2208
|
# end
|
2217
2209
|
#
|
2218
2210
|
def list_backup_operations request, options = nil
|
@@ -2308,13 +2300,11 @@ module Google
|
|
2308
2300
|
# # Call the list_database_roles method.
|
2309
2301
|
# result = client.list_database_roles request
|
2310
2302
|
#
|
2311
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2312
|
-
# #
|
2313
|
-
#
|
2314
|
-
# # methods are also available for managing paging directly.
|
2315
|
-
# result.each do |response|
|
2303
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2304
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2305
|
+
# result.each do |item|
|
2316
2306
|
# # Each element is of type ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseRole.
|
2317
|
-
# p
|
2307
|
+
# p item
|
2318
2308
|
# end
|
2319
2309
|
#
|
2320
2310
|
def list_database_roles 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
|