google-cloud-spanner-admin-database-v1 0.11.0 → 0.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6929ebcdea92158c0fad9c88ab18ca86cb421e901e4ba3a99f06e6985c0606f8
4
- data.tar.gz: 1afdec85fdeaadf2e9b34261a223c69143ea3bf3d62b446e4d3c65e6d0f193f7
3
+ metadata.gz: 0dd7e7bcd60f178f114d0d9bcc20c5677f09c4b3a0e865ef9a4bee0fed39dc91
4
+ data.tar.gz: 7e0f9a2ef395b8c5713213a979914e51db9631c44bca6cdcb94a9b8f3eca8a4b
5
5
  SHA512:
6
- metadata.gz: 46a4bdf68256441bbe8baf778177e5a5dbe8b9596c89befdefcc22a272bd437aa0a2dc34efe0b95155bff3d0577e5f96c1f6d77f9ac598a2a138323e31fca43c
7
- data.tar.gz: e916351643479cb10eb263e5b55c780bdad6699eed851d405e52b24fb2cf351fd3197ad35ad714defa3368ef153a2561804cb00707230f2317084d745419487f
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
- API Client library for the Cloud Spanner Database Admin V1 API
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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
- # # iterate over all elements by calling #each, and the enumerable
296
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
412
- # # object to check the status of an operation, cancel it, or wait
413
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
619
- # # object to check the status of an operation, cancel it, or wait
620
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1217
- # # object to check the status of an operation, cancel it, or wait
1218
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1345
- # # object to check the status of an operation, cancel it, or wait
1346
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
1754
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
1880
- # # object to check the status of an operation, cancel it, or wait
1881
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
2033
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2211
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
2313
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
165
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
259
- # # object to check the status of an operation, cancel it, or wait
260
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
546
- # # object to check the status of an operation, cancel it, or wait
547
- # # for results. Here is how to block until completion:
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 "Error!"
550
+ # puts "No response received."
553
551
  # end
554
552
  #
555
553
  def wait_operation request, options = nil