google-cloud-bigtable-admin-v2 0.5.3 → 0.5.4
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/bigtable/admin/v2/bigtable_instance_admin/client.rb +86 -55
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +30 -21
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +95 -58
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +30 -21
- data/lib/google/cloud/bigtable/admin/v2/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9732ad93faa8c2fd0536822c3792c376cf7c2ed0fd21554b72982dac7f034dd2
|
4
|
+
data.tar.gz: 936a8b8bbc7cf98fd3f7b10b3e4974486fff5c85a1a377d72df980bfbc1b0fa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b07f945ce59b03b473d1a4321d9e54816cca5274db8ef5f8aa6c49b469c721aff8004aa5625549430a4eb13e9ba19e2c1e9dafaa3397d633414233979daaec70
|
7
|
+
data.tar.gz: f476006861331bd36fdb55958cda447f8cb849b4faae85922b902f576114296f3d77df40e94925f7841ac6e53feaed4559e404c0b3e4a6939c79dfc0f10657de
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all BigtableInstanceAdmin clients
|
50
|
+
# ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -171,19 +170,15 @@ module Google
|
|
171
170
|
##
|
172
171
|
# Create a new BigtableInstanceAdmin client object.
|
173
172
|
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
# To create a new BigtableInstanceAdmin client with the default
|
177
|
-
# configuration:
|
173
|
+
# @example
|
178
174
|
#
|
179
|
-
#
|
175
|
+
# # Create a client using the default configuration
|
176
|
+
# client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
180
177
|
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
# config.timeout = 10.0
|
186
|
-
# end
|
178
|
+
# # Create a client using a custom configuration
|
179
|
+
# client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config|
|
180
|
+
# config.timeout = 10.0
|
181
|
+
# end
|
187
182
|
#
|
188
183
|
# @yield [config] Configure the BigtableInstanceAdmin 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
|
@@ -308,7 +302,9 @@ module Google
|
|
308
302
|
options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
|
309
303
|
metadata: metadata,
|
310
304
|
retry_policy: @config.rpcs.create_instance.retry_policy
|
311
|
-
|
305
|
+
|
306
|
+
options.apply_defaults timeout: @config.timeout,
|
307
|
+
metadata: @config.metadata,
|
312
308
|
retry_policy: @config.retry_policy
|
313
309
|
|
314
310
|
@bigtable_instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation|
|
@@ -376,7 +372,9 @@ module Google
|
|
376
372
|
options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
|
377
373
|
metadata: metadata,
|
378
374
|
retry_policy: @config.rpcs.get_instance.retry_policy
|
379
|
-
|
375
|
+
|
376
|
+
options.apply_defaults timeout: @config.timeout,
|
377
|
+
metadata: @config.metadata,
|
380
378
|
retry_policy: @config.retry_policy
|
381
379
|
|
382
380
|
@bigtable_instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation|
|
@@ -445,7 +443,9 @@ module Google
|
|
445
443
|
options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
|
446
444
|
metadata: metadata,
|
447
445
|
retry_policy: @config.rpcs.list_instances.retry_policy
|
448
|
-
|
446
|
+
|
447
|
+
options.apply_defaults timeout: @config.timeout,
|
448
|
+
metadata: @config.metadata,
|
449
449
|
retry_policy: @config.retry_policy
|
450
450
|
|
451
451
|
@bigtable_instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation|
|
@@ -532,7 +532,9 @@ module Google
|
|
532
532
|
options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
|
533
533
|
metadata: metadata,
|
534
534
|
retry_policy: @config.rpcs.update_instance.retry_policy
|
535
|
-
|
535
|
+
|
536
|
+
options.apply_defaults timeout: @config.timeout,
|
537
|
+
metadata: @config.metadata,
|
536
538
|
retry_policy: @config.retry_policy
|
537
539
|
|
538
540
|
@bigtable_instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation|
|
@@ -602,7 +604,9 @@ module Google
|
|
602
604
|
options.apply_defaults timeout: @config.rpcs.partial_update_instance.timeout,
|
603
605
|
metadata: metadata,
|
604
606
|
retry_policy: @config.rpcs.partial_update_instance.retry_policy
|
605
|
-
|
607
|
+
|
608
|
+
options.apply_defaults timeout: @config.timeout,
|
609
|
+
metadata: @config.metadata,
|
606
610
|
retry_policy: @config.retry_policy
|
607
611
|
|
608
612
|
@bigtable_instance_admin_stub.call_rpc :partial_update_instance, request, options: options do |response, operation|
|
@@ -670,7 +674,9 @@ module Google
|
|
670
674
|
options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
|
671
675
|
metadata: metadata,
|
672
676
|
retry_policy: @config.rpcs.delete_instance.retry_policy
|
673
|
-
|
677
|
+
|
678
|
+
options.apply_defaults timeout: @config.timeout,
|
679
|
+
metadata: @config.metadata,
|
674
680
|
retry_policy: @config.retry_policy
|
675
681
|
|
676
682
|
@bigtable_instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation|
|
@@ -745,7 +751,9 @@ module Google
|
|
745
751
|
options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
|
746
752
|
metadata: metadata,
|
747
753
|
retry_policy: @config.rpcs.create_cluster.retry_policy
|
748
|
-
|
754
|
+
|
755
|
+
options.apply_defaults timeout: @config.timeout,
|
756
|
+
metadata: @config.metadata,
|
749
757
|
retry_policy: @config.retry_policy
|
750
758
|
|
751
759
|
@bigtable_instance_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation|
|
@@ -813,7 +821,9 @@ module Google
|
|
813
821
|
options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
|
814
822
|
metadata: metadata,
|
815
823
|
retry_policy: @config.rpcs.get_cluster.retry_policy
|
816
|
-
|
824
|
+
|
825
|
+
options.apply_defaults timeout: @config.timeout,
|
826
|
+
metadata: @config.metadata,
|
817
827
|
retry_policy: @config.retry_policy
|
818
828
|
|
819
829
|
@bigtable_instance_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation|
|
@@ -884,7 +894,9 @@ module Google
|
|
884
894
|
options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
|
885
895
|
metadata: metadata,
|
886
896
|
retry_policy: @config.rpcs.list_clusters.retry_policy
|
887
|
-
|
897
|
+
|
898
|
+
options.apply_defaults timeout: @config.timeout,
|
899
|
+
metadata: @config.metadata,
|
888
900
|
retry_policy: @config.retry_policy
|
889
901
|
|
890
902
|
@bigtable_instance_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation|
|
@@ -963,7 +975,9 @@ module Google
|
|
963
975
|
options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
|
964
976
|
metadata: metadata,
|
965
977
|
retry_policy: @config.rpcs.update_cluster.retry_policy
|
966
|
-
|
978
|
+
|
979
|
+
options.apply_defaults timeout: @config.timeout,
|
980
|
+
metadata: @config.metadata,
|
967
981
|
retry_policy: @config.retry_policy
|
968
982
|
|
969
983
|
@bigtable_instance_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation|
|
@@ -1031,7 +1045,9 @@ module Google
|
|
1031
1045
|
options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
|
1032
1046
|
metadata: metadata,
|
1033
1047
|
retry_policy: @config.rpcs.delete_cluster.retry_policy
|
1034
|
-
|
1048
|
+
|
1049
|
+
options.apply_defaults timeout: @config.timeout,
|
1050
|
+
metadata: @config.metadata,
|
1035
1051
|
retry_policy: @config.retry_policy
|
1036
1052
|
|
1037
1053
|
@bigtable_instance_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
|
@@ -1108,7 +1124,9 @@ module Google
|
|
1108
1124
|
options.apply_defaults timeout: @config.rpcs.create_app_profile.timeout,
|
1109
1125
|
metadata: metadata,
|
1110
1126
|
retry_policy: @config.rpcs.create_app_profile.retry_policy
|
1111
|
-
|
1127
|
+
|
1128
|
+
options.apply_defaults timeout: @config.timeout,
|
1129
|
+
metadata: @config.metadata,
|
1112
1130
|
retry_policy: @config.retry_policy
|
1113
1131
|
|
1114
1132
|
@bigtable_instance_admin_stub.call_rpc :create_app_profile, request, options: options do |response, operation|
|
@@ -1175,7 +1193,9 @@ module Google
|
|
1175
1193
|
options.apply_defaults timeout: @config.rpcs.get_app_profile.timeout,
|
1176
1194
|
metadata: metadata,
|
1177
1195
|
retry_policy: @config.rpcs.get_app_profile.retry_policy
|
1178
|
-
|
1196
|
+
|
1197
|
+
options.apply_defaults timeout: @config.timeout,
|
1198
|
+
metadata: @config.metadata,
|
1179
1199
|
retry_policy: @config.retry_policy
|
1180
1200
|
|
1181
1201
|
@bigtable_instance_admin_stub.call_rpc :get_app_profile, request, options: options do |response, operation|
|
@@ -1257,7 +1277,9 @@ module Google
|
|
1257
1277
|
options.apply_defaults timeout: @config.rpcs.list_app_profiles.timeout,
|
1258
1278
|
metadata: metadata,
|
1259
1279
|
retry_policy: @config.rpcs.list_app_profiles.retry_policy
|
1260
|
-
|
1280
|
+
|
1281
|
+
options.apply_defaults timeout: @config.timeout,
|
1282
|
+
metadata: @config.metadata,
|
1261
1283
|
retry_policy: @config.retry_policy
|
1262
1284
|
|
1263
1285
|
@bigtable_instance_admin_stub.call_rpc :list_app_profiles, request, options: options do |response, operation|
|
@@ -1329,7 +1351,9 @@ module Google
|
|
1329
1351
|
options.apply_defaults timeout: @config.rpcs.update_app_profile.timeout,
|
1330
1352
|
metadata: metadata,
|
1331
1353
|
retry_policy: @config.rpcs.update_app_profile.retry_policy
|
1332
|
-
|
1354
|
+
|
1355
|
+
options.apply_defaults timeout: @config.timeout,
|
1356
|
+
metadata: @config.metadata,
|
1333
1357
|
retry_policy: @config.retry_policy
|
1334
1358
|
|
1335
1359
|
@bigtable_instance_admin_stub.call_rpc :update_app_profile, request, options: options do |response, operation|
|
@@ -1399,7 +1423,9 @@ module Google
|
|
1399
1423
|
options.apply_defaults timeout: @config.rpcs.delete_app_profile.timeout,
|
1400
1424
|
metadata: metadata,
|
1401
1425
|
retry_policy: @config.rpcs.delete_app_profile.retry_policy
|
1402
|
-
|
1426
|
+
|
1427
|
+
options.apply_defaults timeout: @config.timeout,
|
1428
|
+
metadata: @config.metadata,
|
1403
1429
|
retry_policy: @config.retry_policy
|
1404
1430
|
|
1405
1431
|
@bigtable_instance_admin_stub.call_rpc :delete_app_profile, request, options: options do |response, operation|
|
@@ -1470,7 +1496,9 @@ module Google
|
|
1470
1496
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
1471
1497
|
metadata: metadata,
|
1472
1498
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
1473
|
-
|
1499
|
+
|
1500
|
+
options.apply_defaults timeout: @config.timeout,
|
1501
|
+
metadata: @config.metadata,
|
1474
1502
|
retry_policy: @config.retry_policy
|
1475
1503
|
|
1476
1504
|
@bigtable_instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -1543,7 +1571,9 @@ module Google
|
|
1543
1571
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1544
1572
|
metadata: metadata,
|
1545
1573
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1546
|
-
|
1574
|
+
|
1575
|
+
options.apply_defaults timeout: @config.timeout,
|
1576
|
+
metadata: @config.metadata,
|
1547
1577
|
retry_policy: @config.retry_policy
|
1548
1578
|
|
1549
1579
|
@bigtable_instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -1615,7 +1645,9 @@ module Google
|
|
1615
1645
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1616
1646
|
metadata: metadata,
|
1617
1647
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1618
|
-
|
1648
|
+
|
1649
|
+
options.apply_defaults timeout: @config.timeout,
|
1650
|
+
metadata: @config.metadata,
|
1619
1651
|
retry_policy: @config.retry_policy
|
1620
1652
|
|
1621
1653
|
@bigtable_instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1639,22 +1671,21 @@ module Google
|
|
1639
1671
|
# Configuration can be applied globally to all clients, or to a single client
|
1640
1672
|
# on construction.
|
1641
1673
|
#
|
1642
|
-
#
|
1643
|
-
#
|
1644
|
-
#
|
1645
|
-
# to 20 seconds,
|
1646
|
-
#
|
1647
|
-
#
|
1648
|
-
#
|
1649
|
-
#
|
1650
|
-
#
|
1651
|
-
#
|
1652
|
-
#
|
1653
|
-
#
|
1654
|
-
#
|
1655
|
-
#
|
1656
|
-
#
|
1657
|
-
# end
|
1674
|
+
# @example
|
1675
|
+
#
|
1676
|
+
# # Modify the global config, setting the timeout for
|
1677
|
+
# # create_instance to 20 seconds,
|
1678
|
+
# # and all remaining timeouts to 10 seconds.
|
1679
|
+
# ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config|
|
1680
|
+
# config.timeout = 10.0
|
1681
|
+
# config.rpcs.create_instance.timeout = 20.0
|
1682
|
+
# end
|
1683
|
+
#
|
1684
|
+
# # Apply the above configuration only to a new client.
|
1685
|
+
# client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config|
|
1686
|
+
# config.timeout = 10.0
|
1687
|
+
# config.rpcs.create_instance.timeout = 20.0
|
1688
|
+
# end
|
1658
1689
|
#
|
1659
1690
|
# @!attribute [rw] endpoint
|
1660
1691
|
# The hostname or hostname:port of the service endpoint.
|
@@ -170,7 +170,9 @@ module Google
|
|
170
170
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
171
171
|
metadata: metadata,
|
172
172
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
173
|
-
|
173
|
+
|
174
|
+
options.apply_defaults timeout: @config.timeout,
|
175
|
+
metadata: @config.metadata,
|
174
176
|
retry_policy: @config.retry_policy
|
175
177
|
|
176
178
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -240,7 +242,9 @@ module Google
|
|
240
242
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
241
243
|
metadata: metadata,
|
242
244
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
243
|
-
|
245
|
+
|
246
|
+
options.apply_defaults timeout: @config.timeout,
|
247
|
+
metadata: @config.metadata,
|
244
248
|
retry_policy: @config.retry_policy
|
245
249
|
|
246
250
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -310,7 +314,9 @@ module Google
|
|
310
314
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
311
315
|
metadata: metadata,
|
312
316
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
313
|
-
|
317
|
+
|
318
|
+
options.apply_defaults timeout: @config.timeout,
|
319
|
+
metadata: @config.metadata,
|
314
320
|
retry_policy: @config.retry_policy
|
315
321
|
|
316
322
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -385,7 +391,9 @@ module Google
|
|
385
391
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
386
392
|
metadata: metadata,
|
387
393
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
388
|
-
|
394
|
+
|
395
|
+
options.apply_defaults timeout: @config.timeout,
|
396
|
+
metadata: @config.metadata,
|
389
397
|
retry_policy: @config.retry_policy
|
390
398
|
|
391
399
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -457,7 +465,9 @@ module Google
|
|
457
465
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
458
466
|
metadata: metadata,
|
459
467
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
460
|
-
|
468
|
+
|
469
|
+
options.apply_defaults timeout: @config.timeout,
|
470
|
+
metadata: @config.metadata,
|
461
471
|
retry_policy: @config.retry_policy
|
462
472
|
|
463
473
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -482,22 +492,21 @@ module Google
|
|
482
492
|
# Configuration can be applied globally to all clients, or to a single client
|
483
493
|
# on construction.
|
484
494
|
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
#
|
488
|
-
# to 20 seconds,
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
# end
|
495
|
+
# @example
|
496
|
+
#
|
497
|
+
# # Modify the global config, setting the timeout for
|
498
|
+
# # list_operations to 20 seconds,
|
499
|
+
# # and all remaining timeouts to 10 seconds.
|
500
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
501
|
+
# config.timeout = 10.0
|
502
|
+
# config.rpcs.list_operations.timeout = 20.0
|
503
|
+
# end
|
504
|
+
#
|
505
|
+
# # Apply the above configuration only to a new client.
|
506
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
507
|
+
# config.timeout = 10.0
|
508
|
+
# config.rpcs.list_operations.timeout = 20.0
|
509
|
+
# end
|
501
510
|
#
|
502
511
|
# @!attribute [rw] endpoint
|
503
512
|
# The hostname or hostname:port of the service endpoint.
|
@@ -46,13 +46,12 @@ module Google
|
|
46
46
|
# See {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client::Configuration}
|
47
47
|
# for a description of the configuration fields.
|
48
48
|
#
|
49
|
-
#
|
49
|
+
# @example
|
50
50
|
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
# end
|
51
|
+
# # Modify the configuration for all BigtableTableAdmin clients
|
52
|
+
# ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config|
|
53
|
+
# config.timeout = 10.0
|
54
|
+
# end
|
56
55
|
#
|
57
56
|
# @yield [config] Configure the Client client.
|
58
57
|
# @yieldparam config [Client::Configuration]
|
@@ -169,19 +168,15 @@ module Google
|
|
169
168
|
##
|
170
169
|
# Create a new BigtableTableAdmin client object.
|
171
170
|
#
|
172
|
-
#
|
173
|
-
#
|
174
|
-
# To create a new BigtableTableAdmin client with the default
|
175
|
-
# configuration:
|
171
|
+
# @example
|
176
172
|
#
|
177
|
-
#
|
173
|
+
# # Create a client using the default configuration
|
174
|
+
# client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new
|
178
175
|
#
|
179
|
-
#
|
180
|
-
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
# config.timeout = 10.0
|
184
|
-
# end
|
176
|
+
# # Create a client using a custom configuration
|
177
|
+
# client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config|
|
178
|
+
# config.timeout = 10.0
|
179
|
+
# end
|
185
180
|
#
|
186
181
|
# @yield [config] Configure the BigtableTableAdmin client.
|
187
182
|
# @yieldparam config [Client::Configuration]
|
@@ -201,10 +196,9 @@ module Google
|
|
201
196
|
|
202
197
|
# Create credentials
|
203
198
|
credentials = @config.credentials
|
204
|
-
# Use self-signed JWT if the
|
199
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
205
200
|
# but only if the default endpoint does not have a region prefix.
|
206
|
-
enable_self_signed_jwt = @config.
|
207
|
-
@config.endpoint == Client.configure.endpoint &&
|
201
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
208
202
|
!@config.endpoint.split(".").first.include?("-")
|
209
203
|
credentials ||= Credentials.default scope: @config.scope,
|
210
204
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -318,7 +312,9 @@ module Google
|
|
318
312
|
options.apply_defaults timeout: @config.rpcs.create_table.timeout,
|
319
313
|
metadata: metadata,
|
320
314
|
retry_policy: @config.rpcs.create_table.retry_policy
|
321
|
-
|
315
|
+
|
316
|
+
options.apply_defaults timeout: @config.timeout,
|
317
|
+
metadata: @config.metadata,
|
322
318
|
retry_policy: @config.retry_policy
|
323
319
|
|
324
320
|
@bigtable_table_admin_stub.call_rpc :create_table, request, options: options do |response, operation|
|
@@ -400,7 +396,9 @@ module Google
|
|
400
396
|
options.apply_defaults timeout: @config.rpcs.create_table_from_snapshot.timeout,
|
401
397
|
metadata: metadata,
|
402
398
|
retry_policy: @config.rpcs.create_table_from_snapshot.retry_policy
|
403
|
-
|
399
|
+
|
400
|
+
options.apply_defaults timeout: @config.timeout,
|
401
|
+
metadata: @config.metadata,
|
404
402
|
retry_policy: @config.retry_policy
|
405
403
|
|
406
404
|
@bigtable_table_admin_stub.call_rpc :create_table_from_snapshot, request, options: options do |response, operation|
|
@@ -483,7 +481,9 @@ module Google
|
|
483
481
|
options.apply_defaults timeout: @config.rpcs.list_tables.timeout,
|
484
482
|
metadata: metadata,
|
485
483
|
retry_policy: @config.rpcs.list_tables.retry_policy
|
486
|
-
|
484
|
+
|
485
|
+
options.apply_defaults timeout: @config.timeout,
|
486
|
+
metadata: @config.metadata,
|
487
487
|
retry_policy: @config.retry_policy
|
488
488
|
|
489
489
|
@bigtable_table_admin_stub.call_rpc :list_tables, request, options: options do |response, operation|
|
@@ -555,7 +555,9 @@ module Google
|
|
555
555
|
options.apply_defaults timeout: @config.rpcs.get_table.timeout,
|
556
556
|
metadata: metadata,
|
557
557
|
retry_policy: @config.rpcs.get_table.retry_policy
|
558
|
-
|
558
|
+
|
559
|
+
options.apply_defaults timeout: @config.timeout,
|
560
|
+
metadata: @config.metadata,
|
559
561
|
retry_policy: @config.retry_policy
|
560
562
|
|
561
563
|
@bigtable_table_admin_stub.call_rpc :get_table, request, options: options do |response, operation|
|
@@ -623,7 +625,9 @@ module Google
|
|
623
625
|
options.apply_defaults timeout: @config.rpcs.delete_table.timeout,
|
624
626
|
metadata: metadata,
|
625
627
|
retry_policy: @config.rpcs.delete_table.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
|
@bigtable_table_admin_stub.call_rpc :delete_table, request, options: options do |response, operation|
|
@@ -699,7 +703,9 @@ module Google
|
|
699
703
|
options.apply_defaults timeout: @config.rpcs.modify_column_families.timeout,
|
700
704
|
metadata: metadata,
|
701
705
|
retry_policy: @config.rpcs.modify_column_families.retry_policy
|
702
|
-
|
706
|
+
|
707
|
+
options.apply_defaults timeout: @config.timeout,
|
708
|
+
metadata: @config.metadata,
|
703
709
|
retry_policy: @config.retry_policy
|
704
710
|
|
705
711
|
@bigtable_table_admin_stub.call_rpc :modify_column_families, request, options: options do |response, operation|
|
@@ -774,7 +780,9 @@ module Google
|
|
774
780
|
options.apply_defaults timeout: @config.rpcs.drop_row_range.timeout,
|
775
781
|
metadata: metadata,
|
776
782
|
retry_policy: @config.rpcs.drop_row_range.retry_policy
|
777
|
-
|
783
|
+
|
784
|
+
options.apply_defaults timeout: @config.timeout,
|
785
|
+
metadata: @config.metadata,
|
778
786
|
retry_policy: @config.retry_policy
|
779
787
|
|
780
788
|
@bigtable_table_admin_stub.call_rpc :drop_row_range, request, options: options do |response, operation|
|
@@ -845,7 +853,9 @@ module Google
|
|
845
853
|
options.apply_defaults timeout: @config.rpcs.generate_consistency_token.timeout,
|
846
854
|
metadata: metadata,
|
847
855
|
retry_policy: @config.rpcs.generate_consistency_token.retry_policy
|
848
|
-
|
856
|
+
|
857
|
+
options.apply_defaults timeout: @config.timeout,
|
858
|
+
metadata: @config.metadata,
|
849
859
|
retry_policy: @config.retry_policy
|
850
860
|
|
851
861
|
@bigtable_table_admin_stub.call_rpc :generate_consistency_token, request, options: options do |response, operation|
|
@@ -917,7 +927,9 @@ module Google
|
|
917
927
|
options.apply_defaults timeout: @config.rpcs.check_consistency.timeout,
|
918
928
|
metadata: metadata,
|
919
929
|
retry_policy: @config.rpcs.check_consistency.retry_policy
|
920
|
-
|
930
|
+
|
931
|
+
options.apply_defaults timeout: @config.timeout,
|
932
|
+
metadata: @config.metadata,
|
921
933
|
retry_policy: @config.retry_policy
|
922
934
|
|
923
935
|
@bigtable_table_admin_stub.call_rpc :check_consistency, request, options: options do |response, operation|
|
@@ -1008,7 +1020,9 @@ module Google
|
|
1008
1020
|
options.apply_defaults timeout: @config.rpcs.snapshot_table.timeout,
|
1009
1021
|
metadata: metadata,
|
1010
1022
|
retry_policy: @config.rpcs.snapshot_table.retry_policy
|
1011
|
-
|
1023
|
+
|
1024
|
+
options.apply_defaults timeout: @config.timeout,
|
1025
|
+
metadata: @config.metadata,
|
1012
1026
|
retry_policy: @config.retry_policy
|
1013
1027
|
|
1014
1028
|
@bigtable_table_admin_stub.call_rpc :snapshot_table, request, options: options do |response, operation|
|
@@ -1083,7 +1097,9 @@ module Google
|
|
1083
1097
|
options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout,
|
1084
1098
|
metadata: metadata,
|
1085
1099
|
retry_policy: @config.rpcs.get_snapshot.retry_policy
|
1086
|
-
|
1100
|
+
|
1101
|
+
options.apply_defaults timeout: @config.timeout,
|
1102
|
+
metadata: @config.metadata,
|
1087
1103
|
retry_policy: @config.retry_policy
|
1088
1104
|
|
1089
1105
|
@bigtable_table_admin_stub.call_rpc :get_snapshot, request, options: options do |response, operation|
|
@@ -1164,7 +1180,9 @@ module Google
|
|
1164
1180
|
options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout,
|
1165
1181
|
metadata: metadata,
|
1166
1182
|
retry_policy: @config.rpcs.list_snapshots.retry_policy
|
1167
|
-
|
1183
|
+
|
1184
|
+
options.apply_defaults timeout: @config.timeout,
|
1185
|
+
metadata: @config.metadata,
|
1168
1186
|
retry_policy: @config.retry_policy
|
1169
1187
|
|
1170
1188
|
@bigtable_table_admin_stub.call_rpc :list_snapshots, request, options: options do |response, operation|
|
@@ -1239,7 +1257,9 @@ module Google
|
|
1239
1257
|
options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout,
|
1240
1258
|
metadata: metadata,
|
1241
1259
|
retry_policy: @config.rpcs.delete_snapshot.retry_policy
|
1242
|
-
|
1260
|
+
|
1261
|
+
options.apply_defaults timeout: @config.timeout,
|
1262
|
+
metadata: @config.metadata,
|
1243
1263
|
retry_policy: @config.retry_policy
|
1244
1264
|
|
1245
1265
|
@bigtable_table_admin_stub.call_rpc :delete_snapshot, request, options: options do |response, operation|
|
@@ -1323,7 +1343,9 @@ module Google
|
|
1323
1343
|
options.apply_defaults timeout: @config.rpcs.create_backup.timeout,
|
1324
1344
|
metadata: metadata,
|
1325
1345
|
retry_policy: @config.rpcs.create_backup.retry_policy
|
1326
|
-
|
1346
|
+
|
1347
|
+
options.apply_defaults timeout: @config.timeout,
|
1348
|
+
metadata: @config.metadata,
|
1327
1349
|
retry_policy: @config.retry_policy
|
1328
1350
|
|
1329
1351
|
@bigtable_table_admin_stub.call_rpc :create_backup, request, options: options do |response, operation|
|
@@ -1392,7 +1414,9 @@ module Google
|
|
1392
1414
|
options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
|
1393
1415
|
metadata: metadata,
|
1394
1416
|
retry_policy: @config.rpcs.get_backup.retry_policy
|
1395
|
-
|
1417
|
+
|
1418
|
+
options.apply_defaults timeout: @config.timeout,
|
1419
|
+
metadata: @config.metadata,
|
1396
1420
|
retry_policy: @config.retry_policy
|
1397
1421
|
|
1398
1422
|
@bigtable_table_admin_stub.call_rpc :get_backup, request, options: options do |response, operation|
|
@@ -1467,7 +1491,9 @@ module Google
|
|
1467
1491
|
options.apply_defaults timeout: @config.rpcs.update_backup.timeout,
|
1468
1492
|
metadata: metadata,
|
1469
1493
|
retry_policy: @config.rpcs.update_backup.retry_policy
|
1470
|
-
|
1494
|
+
|
1495
|
+
options.apply_defaults timeout: @config.timeout,
|
1496
|
+
metadata: @config.metadata,
|
1471
1497
|
retry_policy: @config.retry_policy
|
1472
1498
|
|
1473
1499
|
@bigtable_table_admin_stub.call_rpc :update_backup, request, options: options do |response, operation|
|
@@ -1535,7 +1561,9 @@ module Google
|
|
1535
1561
|
options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
|
1536
1562
|
metadata: metadata,
|
1537
1563
|
retry_policy: @config.rpcs.delete_backup.retry_policy
|
1538
|
-
|
1564
|
+
|
1565
|
+
options.apply_defaults timeout: @config.timeout,
|
1566
|
+
metadata: @config.metadata,
|
1539
1567
|
retry_policy: @config.retry_policy
|
1540
1568
|
|
1541
1569
|
@bigtable_table_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation|
|
@@ -1667,7 +1695,9 @@ module Google
|
|
1667
1695
|
options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
|
1668
1696
|
metadata: metadata,
|
1669
1697
|
retry_policy: @config.rpcs.list_backups.retry_policy
|
1670
|
-
|
1698
|
+
|
1699
|
+
options.apply_defaults timeout: @config.timeout,
|
1700
|
+
metadata: @config.metadata,
|
1671
1701
|
retry_policy: @config.retry_policy
|
1672
1702
|
|
1673
1703
|
@bigtable_table_admin_stub.call_rpc :list_backups, request, options: options do |response, operation|
|
@@ -1751,7 +1781,9 @@ module Google
|
|
1751
1781
|
options.apply_defaults timeout: @config.rpcs.restore_table.timeout,
|
1752
1782
|
metadata: metadata,
|
1753
1783
|
retry_policy: @config.rpcs.restore_table.retry_policy
|
1754
|
-
|
1784
|
+
|
1785
|
+
options.apply_defaults timeout: @config.timeout,
|
1786
|
+
metadata: @config.metadata,
|
1755
1787
|
retry_policy: @config.retry_policy
|
1756
1788
|
|
1757
1789
|
@bigtable_table_admin_stub.call_rpc :restore_table, request, options: options do |response, operation|
|
@@ -1824,7 +1856,9 @@ module Google
|
|
1824
1856
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
1825
1857
|
metadata: metadata,
|
1826
1858
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
1827
|
-
|
1859
|
+
|
1860
|
+
options.apply_defaults timeout: @config.timeout,
|
1861
|
+
metadata: @config.metadata,
|
1828
1862
|
retry_policy: @config.retry_policy
|
1829
1863
|
|
1830
1864
|
@bigtable_table_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -1897,7 +1931,9 @@ module Google
|
|
1897
1931
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1898
1932
|
metadata: metadata,
|
1899
1933
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1900
|
-
|
1934
|
+
|
1935
|
+
options.apply_defaults timeout: @config.timeout,
|
1936
|
+
metadata: @config.metadata,
|
1901
1937
|
retry_policy: @config.retry_policy
|
1902
1938
|
|
1903
1939
|
@bigtable_table_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -1969,7 +2005,9 @@ module Google
|
|
1969
2005
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
1970
2006
|
metadata: metadata,
|
1971
2007
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
1972
|
-
|
2008
|
+
|
2009
|
+
options.apply_defaults timeout: @config.timeout,
|
2010
|
+
metadata: @config.metadata,
|
1973
2011
|
retry_policy: @config.retry_policy
|
1974
2012
|
|
1975
2013
|
@bigtable_table_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -1993,22 +2031,21 @@ module Google
|
|
1993
2031
|
# Configuration can be applied globally to all clients, or to a single client
|
1994
2032
|
# on construction.
|
1995
2033
|
#
|
1996
|
-
#
|
1997
|
-
#
|
1998
|
-
#
|
1999
|
-
# to 20 seconds,
|
2000
|
-
#
|
2001
|
-
#
|
2002
|
-
#
|
2003
|
-
#
|
2004
|
-
#
|
2005
|
-
#
|
2006
|
-
#
|
2007
|
-
#
|
2008
|
-
#
|
2009
|
-
#
|
2010
|
-
#
|
2011
|
-
# end
|
2034
|
+
# @example
|
2035
|
+
#
|
2036
|
+
# # Modify the global config, setting the timeout for
|
2037
|
+
# # create_table to 20 seconds,
|
2038
|
+
# # and all remaining timeouts to 10 seconds.
|
2039
|
+
# ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config|
|
2040
|
+
# config.timeout = 10.0
|
2041
|
+
# config.rpcs.create_table.timeout = 20.0
|
2042
|
+
# end
|
2043
|
+
#
|
2044
|
+
# # Apply the above configuration only to a new client.
|
2045
|
+
# client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config|
|
2046
|
+
# config.timeout = 10.0
|
2047
|
+
# config.rpcs.create_table.timeout = 20.0
|
2048
|
+
# end
|
2012
2049
|
#
|
2013
2050
|
# @!attribute [rw] endpoint
|
2014
2051
|
# The hostname or hostname:port of the service endpoint.
|
@@ -170,7 +170,9 @@ module Google
|
|
170
170
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
171
171
|
metadata: metadata,
|
172
172
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
173
|
-
|
173
|
+
|
174
|
+
options.apply_defaults timeout: @config.timeout,
|
175
|
+
metadata: @config.metadata,
|
174
176
|
retry_policy: @config.retry_policy
|
175
177
|
|
176
178
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -240,7 +242,9 @@ module Google
|
|
240
242
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
241
243
|
metadata: metadata,
|
242
244
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
243
|
-
|
245
|
+
|
246
|
+
options.apply_defaults timeout: @config.timeout,
|
247
|
+
metadata: @config.metadata,
|
244
248
|
retry_policy: @config.retry_policy
|
245
249
|
|
246
250
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -310,7 +314,9 @@ module Google
|
|
310
314
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
311
315
|
metadata: metadata,
|
312
316
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
313
|
-
|
317
|
+
|
318
|
+
options.apply_defaults timeout: @config.timeout,
|
319
|
+
metadata: @config.metadata,
|
314
320
|
retry_policy: @config.retry_policy
|
315
321
|
|
316
322
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -385,7 +391,9 @@ module Google
|
|
385
391
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
386
392
|
metadata: metadata,
|
387
393
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
388
|
-
|
394
|
+
|
395
|
+
options.apply_defaults timeout: @config.timeout,
|
396
|
+
metadata: @config.metadata,
|
389
397
|
retry_policy: @config.retry_policy
|
390
398
|
|
391
399
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -457,7 +465,9 @@ module Google
|
|
457
465
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
458
466
|
metadata: metadata,
|
459
467
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
460
|
-
|
468
|
+
|
469
|
+
options.apply_defaults timeout: @config.timeout,
|
470
|
+
metadata: @config.metadata,
|
461
471
|
retry_policy: @config.retry_policy
|
462
472
|
|
463
473
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -482,22 +492,21 @@ module Google
|
|
482
492
|
# Configuration can be applied globally to all clients, or to a single client
|
483
493
|
# on construction.
|
484
494
|
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
#
|
488
|
-
# to 20 seconds,
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
# end
|
495
|
+
# @example
|
496
|
+
#
|
497
|
+
# # Modify the global config, setting the timeout for
|
498
|
+
# # list_operations to 20 seconds,
|
499
|
+
# # and all remaining timeouts to 10 seconds.
|
500
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
501
|
+
# config.timeout = 10.0
|
502
|
+
# config.rpcs.list_operations.timeout = 20.0
|
503
|
+
# end
|
504
|
+
#
|
505
|
+
# # Apply the above configuration only to a new client.
|
506
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
507
|
+
# config.timeout = 10.0
|
508
|
+
# config.rpcs.list_operations.timeout = 20.0
|
509
|
+
# end
|
501
510
|
#
|
502
511
|
# @!attribute [rw] endpoint
|
503
512
|
# 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-bigtable-admin-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
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
|