google-cloud-spanner-admin-database-v1 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e667a0721a791dcde0187312d332b41a7a98ee2a424a9996ee11e4c384b769eb
|
4
|
+
data.tar.gz: dcc846c6376006f40f0c7590b18be135b44ffaa69070eedca6605ce9ef83a520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a3be5fe9c5dc14bc99505d5bd064c20643742d52ca152abf786f462660d8e7bfb52b5016716ab37d5560216fd6cc9224d088ed147787c593da7a709c75cc6a1
|
7
|
+
data.tar.gz: efffbfcead68f490708c964bb9d8eab0147fff28cc280c35ada2d63b081cdf8547328ef63a155041b3502c7219ff40d11ed7b513564f542e4f7201e995850248
|
@@ -48,13 +48,12 @@ module Google
|
|
48
48
|
# See {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client::Configuration}
|
49
49
|
# for a description of the configuration fields.
|
50
50
|
#
|
51
|
-
#
|
51
|
+
# @example
|
52
52
|
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
# end
|
53
|
+
# # Modify the configuration for all DatabaseAdmin clients
|
54
|
+
# ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.configure do |config|
|
55
|
+
# config.timeout = 10.0
|
56
|
+
# end
|
58
57
|
#
|
59
58
|
# @yield [config] Configure the Client client.
|
60
59
|
# @yieldparam config [Client::Configuration]
|
@@ -171,19 +170,15 @@ module Google
|
|
171
170
|
##
|
172
171
|
# Create a new DatabaseAdmin client object.
|
173
172
|
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
# To create a new DatabaseAdmin client with the default
|
177
|
-
# configuration:
|
178
|
-
#
|
179
|
-
# client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.new
|
173
|
+
# @example
|
180
174
|
#
|
181
|
-
#
|
182
|
-
#
|
175
|
+
# # Create a client using the default configuration
|
176
|
+
# client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.new
|
183
177
|
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
178
|
+
# # Create a client using a custom configuration
|
179
|
+
# client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.new do |config|
|
180
|
+
# config.timeout = 10.0
|
181
|
+
# end
|
187
182
|
#
|
188
183
|
# @yield [config] Configure the DatabaseAdmin client.
|
189
184
|
# @yieldparam config [Client::Configuration]
|
@@ -203,10 +198,9 @@ module Google
|
|
203
198
|
|
204
199
|
# Create credentials
|
205
200
|
credentials = @config.credentials
|
206
|
-
# Use self-signed JWT if the
|
201
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
207
202
|
# but only if the default endpoint does not have a region prefix.
|
208
|
-
enable_self_signed_jwt = @config.
|
209
|
-
@config.endpoint == Client.configure.endpoint &&
|
203
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
210
204
|
!@config.endpoint.split(".").first.include?("-")
|
211
205
|
credentials ||= Credentials.default scope: @config.scope,
|
212
206
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -302,7 +296,9 @@ module Google
|
|
302
296
|
options.apply_defaults timeout: @config.rpcs.list_databases.timeout,
|
303
297
|
metadata: metadata,
|
304
298
|
retry_policy: @config.rpcs.list_databases.retry_policy
|
305
|
-
|
299
|
+
|
300
|
+
options.apply_defaults timeout: @config.timeout,
|
301
|
+
metadata: @config.metadata,
|
306
302
|
retry_policy: @config.retry_policy
|
307
303
|
|
308
304
|
@database_admin_stub.call_rpc :list_databases, request, options: options do |response, operation|
|
@@ -392,7 +388,9 @@ module Google
|
|
392
388
|
options.apply_defaults timeout: @config.rpcs.create_database.timeout,
|
393
389
|
metadata: metadata,
|
394
390
|
retry_policy: @config.rpcs.create_database.retry_policy
|
395
|
-
|
391
|
+
|
392
|
+
options.apply_defaults timeout: @config.timeout,
|
393
|
+
metadata: @config.metadata,
|
396
394
|
retry_policy: @config.retry_policy
|
397
395
|
|
398
396
|
@database_admin_stub.call_rpc :create_database, request, options: options do |response, operation|
|
@@ -460,7 +458,9 @@ module Google
|
|
460
458
|
options.apply_defaults timeout: @config.rpcs.get_database.timeout,
|
461
459
|
metadata: metadata,
|
462
460
|
retry_policy: @config.rpcs.get_database.retry_policy
|
463
|
-
|
461
|
+
|
462
|
+
options.apply_defaults timeout: @config.timeout,
|
463
|
+
metadata: @config.metadata,
|
464
464
|
retry_policy: @config.retry_policy
|
465
465
|
|
466
466
|
@database_admin_stub.call_rpc :get_database, request, options: options do |response, operation|
|
@@ -554,7 +554,9 @@ module Google
|
|
554
554
|
options.apply_defaults timeout: @config.rpcs.update_database_ddl.timeout,
|
555
555
|
metadata: metadata,
|
556
556
|
retry_policy: @config.rpcs.update_database_ddl.retry_policy
|
557
|
-
|
557
|
+
|
558
|
+
options.apply_defaults timeout: @config.timeout,
|
559
|
+
metadata: @config.metadata,
|
558
560
|
retry_policy: @config.retry_policy
|
559
561
|
|
560
562
|
@database_admin_stub.call_rpc :update_database_ddl, request, options: options do |response, operation|
|
@@ -623,7 +625,9 @@ module Google
|
|
623
625
|
options.apply_defaults timeout: @config.rpcs.drop_database.timeout,
|
624
626
|
metadata: metadata,
|
625
627
|
retry_policy: @config.rpcs.drop_database.retry_policy
|
626
|
-
|
628
|
+
|
629
|
+
options.apply_defaults timeout: @config.timeout,
|
630
|
+
metadata: @config.metadata,
|
627
631
|
retry_policy: @config.retry_policy
|
628
632
|
|
629
633
|
@database_admin_stub.call_rpc :drop_database, request, options: options do |response, operation|
|
@@ -693,7 +697,9 @@ module Google
|
|
693
697
|
options.apply_defaults timeout: @config.rpcs.get_database_ddl.timeout,
|
694
698
|
metadata: metadata,
|
695
699
|
retry_policy: @config.rpcs.get_database_ddl.retry_policy
|
696
|
-
|
700
|
+
|
701
|
+
options.apply_defaults timeout: @config.timeout,
|
702
|
+
metadata: @config.metadata,
|
697
703
|
retry_policy: @config.retry_policy
|
698
704
|
|
699
705
|
@database_admin_stub.call_rpc :get_database_ddl, request, options: options do |response, operation|
|
@@ -771,7 +777,9 @@ module Google
|
|
771
777
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
772
778
|
metadata: metadata,
|
773
779
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
774
|
-
|
780
|
+
|
781
|
+
options.apply_defaults timeout: @config.timeout,
|
782
|
+
metadata: @config.metadata,
|
775
783
|
retry_policy: @config.retry_policy
|
776
784
|
|
777
785
|
@database_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -848,7 +856,9 @@ module Google
|
|
848
856
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
849
857
|
metadata: metadata,
|
850
858
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
851
|
-
|
859
|
+
|
860
|
+
options.apply_defaults timeout: @config.timeout,
|
861
|
+
metadata: @config.metadata,
|
852
862
|
retry_policy: @config.retry_policy
|
853
863
|
|
854
864
|
@database_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -929,7 +939,9 @@ module Google
|
|
929
939
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
930
940
|
metadata: metadata,
|
931
941
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
932
|
-
|
942
|
+
|
943
|
+
options.apply_defaults timeout: @config.timeout,
|
944
|
+
metadata: @config.metadata,
|
933
945
|
retry_policy: @config.retry_policy
|
934
946
|
|
935
947
|
@database_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1023,7 +1035,9 @@ module Google
|
|
1023
1035
|
options.apply_defaults timeout: @config.rpcs.create_backup.timeout,
|
1024
1036
|
metadata: metadata,
|
1025
1037
|
retry_policy: @config.rpcs.create_backup.retry_policy
|
1026
|
-
|
1038
|
+
|
1039
|
+
options.apply_defaults timeout: @config.timeout,
|
1040
|
+
metadata: @config.metadata,
|
1027
1041
|
retry_policy: @config.retry_policy
|
1028
1042
|
|
1029
1043
|
@database_admin_stub.call_rpc :create_backup, request, options: options do |response, operation|
|
@@ -1092,7 +1106,9 @@ module Google
|
|
1092
1106
|
options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
|
1093
1107
|
metadata: metadata,
|
1094
1108
|
retry_policy: @config.rpcs.get_backup.retry_policy
|
1095
|
-
|
1109
|
+
|
1110
|
+
options.apply_defaults timeout: @config.timeout,
|
1111
|
+
metadata: @config.metadata,
|
1096
1112
|
retry_policy: @config.retry_policy
|
1097
1113
|
|
1098
1114
|
@database_admin_stub.call_rpc :get_backup, request, options: options do |response, operation|
|
@@ -1167,7 +1183,9 @@ module Google
|
|
1167
1183
|
options.apply_defaults timeout: @config.rpcs.update_backup.timeout,
|
1168
1184
|
metadata: metadata,
|
1169
1185
|
retry_policy: @config.rpcs.update_backup.retry_policy
|
1170
|
-
|
1186
|
+
|
1187
|
+
options.apply_defaults timeout: @config.timeout,
|
1188
|
+
metadata: @config.metadata,
|
1171
1189
|
retry_policy: @config.retry_policy
|
1172
1190
|
|
1173
1191
|
@database_admin_stub.call_rpc :update_backup, request, options: options do |response, operation|
|
@@ -1235,7 +1253,9 @@ module Google
|
|
1235
1253
|
options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
|
1236
1254
|
metadata: metadata,
|
1237
1255
|
retry_policy: @config.rpcs.delete_backup.retry_policy
|
1238
|
-
|
1256
|
+
|
1257
|
+
options.apply_defaults timeout: @config.timeout,
|
1258
|
+
metadata: @config.metadata,
|
1239
1259
|
retry_policy: @config.retry_policy
|
1240
1260
|
|
1241
1261
|
@database_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation|
|
@@ -1348,7 +1368,9 @@ module Google
|
|
1348
1368
|
options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
|
1349
1369
|
metadata: metadata,
|
1350
1370
|
retry_policy: @config.rpcs.list_backups.retry_policy
|
1351
|
-
|
1371
|
+
|
1372
|
+
options.apply_defaults timeout: @config.timeout,
|
1373
|
+
metadata: @config.metadata,
|
1352
1374
|
retry_policy: @config.retry_policy
|
1353
1375
|
|
1354
1376
|
@database_admin_stub.call_rpc :list_backups, request, options: options do |response, operation|
|
@@ -1450,7 +1472,9 @@ module Google
|
|
1450
1472
|
options.apply_defaults timeout: @config.rpcs.restore_database.timeout,
|
1451
1473
|
metadata: metadata,
|
1452
1474
|
retry_policy: @config.rpcs.restore_database.retry_policy
|
1453
|
-
|
1475
|
+
|
1476
|
+
options.apply_defaults timeout: @config.timeout,
|
1477
|
+
metadata: @config.metadata,
|
1454
1478
|
retry_policy: @config.retry_policy
|
1455
1479
|
|
1456
1480
|
@database_admin_stub.call_rpc :restore_database, request, options: options do |response, operation|
|
@@ -1574,7 +1598,9 @@ module Google
|
|
1574
1598
|
options.apply_defaults timeout: @config.rpcs.list_database_operations.timeout,
|
1575
1599
|
metadata: metadata,
|
1576
1600
|
retry_policy: @config.rpcs.list_database_operations.retry_policy
|
1577
|
-
|
1601
|
+
|
1602
|
+
options.apply_defaults timeout: @config.timeout,
|
1603
|
+
metadata: @config.metadata,
|
1578
1604
|
retry_policy: @config.retry_policy
|
1579
1605
|
|
1580
1606
|
@database_admin_stub.call_rpc :list_database_operations, request, options: options do |response, operation|
|
@@ -1699,7 +1725,9 @@ module Google
|
|
1699
1725
|
options.apply_defaults timeout: @config.rpcs.list_backup_operations.timeout,
|
1700
1726
|
metadata: metadata,
|
1701
1727
|
retry_policy: @config.rpcs.list_backup_operations.retry_policy
|
1702
|
-
|
1728
|
+
|
1729
|
+
options.apply_defaults timeout: @config.timeout,
|
1730
|
+
metadata: @config.metadata,
|
1703
1731
|
retry_policy: @config.retry_policy
|
1704
1732
|
|
1705
1733
|
@database_admin_stub.call_rpc :list_backup_operations, request, options: options do |response, operation|
|
@@ -1725,22 +1753,21 @@ module Google
|
|
1725
1753
|
# Configuration can be applied globally to all clients, or to a single client
|
1726
1754
|
# on construction.
|
1727
1755
|
#
|
1728
|
-
#
|
1729
|
-
#
|
1730
|
-
#
|
1731
|
-
# to 20 seconds,
|
1732
|
-
#
|
1733
|
-
#
|
1734
|
-
#
|
1735
|
-
#
|
1736
|
-
#
|
1737
|
-
#
|
1738
|
-
#
|
1739
|
-
#
|
1740
|
-
#
|
1741
|
-
#
|
1742
|
-
#
|
1743
|
-
# end
|
1756
|
+
# @example
|
1757
|
+
#
|
1758
|
+
# # Modify the global config, setting the timeout for
|
1759
|
+
# # list_databases to 20 seconds,
|
1760
|
+
# # and all remaining timeouts to 10 seconds.
|
1761
|
+
# ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.configure do |config|
|
1762
|
+
# config.timeout = 10.0
|
1763
|
+
# config.rpcs.list_databases.timeout = 20.0
|
1764
|
+
# end
|
1765
|
+
#
|
1766
|
+
# # Apply the above configuration only to a new client.
|
1767
|
+
# client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.new do |config|
|
1768
|
+
# config.timeout = 10.0
|
1769
|
+
# config.rpcs.list_databases.timeout = 20.0
|
1770
|
+
# end
|
1744
1771
|
#
|
1745
1772
|
# @!attribute [rw] endpoint
|
1746
1773
|
# The hostname or hostname:port of the service endpoint.
|
@@ -171,7 +171,9 @@ module Google
|
|
171
171
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
172
172
|
metadata: metadata,
|
173
173
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
174
|
-
|
174
|
+
|
175
|
+
options.apply_defaults timeout: @config.timeout,
|
176
|
+
metadata: @config.metadata,
|
175
177
|
retry_policy: @config.retry_policy
|
176
178
|
|
177
179
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -241,7 +243,9 @@ module Google
|
|
241
243
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
242
244
|
metadata: metadata,
|
243
245
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
244
|
-
|
246
|
+
|
247
|
+
options.apply_defaults timeout: @config.timeout,
|
248
|
+
metadata: @config.metadata,
|
245
249
|
retry_policy: @config.retry_policy
|
246
250
|
|
247
251
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -311,7 +315,9 @@ module Google
|
|
311
315
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
312
316
|
metadata: metadata,
|
313
317
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
314
|
-
|
318
|
+
|
319
|
+
options.apply_defaults timeout: @config.timeout,
|
320
|
+
metadata: @config.metadata,
|
315
321
|
retry_policy: @config.retry_policy
|
316
322
|
|
317
323
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -386,7 +392,9 @@ module Google
|
|
386
392
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
387
393
|
metadata: metadata,
|
388
394
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
389
|
-
|
395
|
+
|
396
|
+
options.apply_defaults timeout: @config.timeout,
|
397
|
+
metadata: @config.metadata,
|
390
398
|
retry_policy: @config.retry_policy
|
391
399
|
|
392
400
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -458,7 +466,9 @@ module Google
|
|
458
466
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
459
467
|
metadata: metadata,
|
460
468
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
461
|
-
|
469
|
+
|
470
|
+
options.apply_defaults timeout: @config.timeout,
|
471
|
+
metadata: @config.metadata,
|
462
472
|
retry_policy: @config.retry_policy
|
463
473
|
|
464
474
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -483,22 +493,21 @@ module Google
|
|
483
493
|
# Configuration can be applied globally to all clients, or to a single client
|
484
494
|
# on construction.
|
485
495
|
#
|
486
|
-
#
|
487
|
-
#
|
488
|
-
#
|
489
|
-
# to 20 seconds,
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
#
|
501
|
-
# end
|
496
|
+
# @example
|
497
|
+
#
|
498
|
+
# # Modify the global config, setting the timeout for
|
499
|
+
# # list_operations to 20 seconds,
|
500
|
+
# # and all remaining timeouts to 10 seconds.
|
501
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
502
|
+
# config.timeout = 10.0
|
503
|
+
# config.rpcs.list_operations.timeout = 20.0
|
504
|
+
# end
|
505
|
+
#
|
506
|
+
# # Apply the above configuration only to a new client.
|
507
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
508
|
+
# config.timeout = 10.0
|
509
|
+
# config.rpcs.list_operations.timeout = 20.0
|
510
|
+
# end
|
502
511
|
#
|
503
512
|
# @!attribute [rw] endpoint
|
504
513
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-spanner-admin-database-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 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.7'
|
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.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|