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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d756570ac07b8e6285694427bfd7f4ea9f72e7fe7a2acbb1243d635d3edb1af
4
- data.tar.gz: bfea719598d85c7bfb7cbc75580661eabab1e16b03be96a038d2908918a43521
3
+ metadata.gz: 9732ad93faa8c2fd0536822c3792c376cf7c2ed0fd21554b72982dac7f034dd2
4
+ data.tar.gz: 936a8b8bbc7cf98fd3f7b10b3e4974486fff5c85a1a377d72df980bfbc1b0fa4
5
5
  SHA512:
6
- metadata.gz: 2164b00130261e820518aa7911bfcab17216463074e8aa93da2f63ff247e98d62bf207987c034c8d73944a3cc8ef307229e1f0b00927d2e24e2ffd03d5f12f70
7
- data.tar.gz: 409912afb690cbd3c83cfd81dab932fb33ec39fa83358550d5b57b3454f7779279fda08a47596eca55610c7043142c36f85d814ef0e16d0415bd7173d135ef92
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
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all BigtableInstanceAdmin clients:
50
- #
51
- # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config|
52
- # config.timeout = 10.0
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
- # ## Examples
175
- #
176
- # To create a new BigtableInstanceAdmin client with the default
177
- # configuration:
173
+ # @example
178
174
  #
179
- # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
175
+ # # Create a client using the default configuration
176
+ # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
180
177
  #
181
- # To create a new BigtableInstanceAdmin client with a custom
182
- # configuration:
183
- #
184
- # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config|
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
1643
- #
1644
- # To modify the global config, setting the timeout for create_instance
1645
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1646
- #
1647
- # ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.configure do |config|
1648
- # config.timeout = 10.0
1649
- # config.rpcs.create_instance.timeout = 20.0
1650
- # end
1651
- #
1652
- # To apply the above configuration only to a new client:
1653
- #
1654
- # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new do |config|
1655
- # config.timeout = 10.0
1656
- # config.rpcs.create_instance.timeout = 20.0
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
486
- #
487
- # To modify the global config, setting the timeout for list_operations
488
- # to 20 seconds, and all remaining timeouts to 10 seconds:
489
- #
490
- # ::Google::Longrunning::Operations::Client.configure do |config|
491
- # config.timeout = 10.0
492
- # config.rpcs.list_operations.timeout = 20.0
493
- # end
494
- #
495
- # To apply the above configuration only to a new client:
496
- #
497
- # client = ::Google::Longrunning::Operations::Client.new do |config|
498
- # config.timeout = 10.0
499
- # config.rpcs.list_operations.timeout = 20.0
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
- # ## Example
49
+ # @example
50
50
  #
51
- # To modify the configuration for all BigtableTableAdmin clients:
52
- #
53
- # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config|
54
- # config.timeout = 10.0
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
- # ## Examples
173
- #
174
- # To create a new BigtableTableAdmin client with the default
175
- # configuration:
171
+ # @example
176
172
  #
177
- # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new
173
+ # # Create a client using the default configuration
174
+ # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new
178
175
  #
179
- # To create a new BigtableTableAdmin client with a custom
180
- # configuration:
181
- #
182
- # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config|
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
1997
- #
1998
- # To modify the global config, setting the timeout for create_table
1999
- # to 20 seconds, and all remaining timeouts to 10 seconds:
2000
- #
2001
- # ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.configure do |config|
2002
- # config.timeout = 10.0
2003
- # config.rpcs.create_table.timeout = 20.0
2004
- # end
2005
- #
2006
- # To apply the above configuration only to a new client:
2007
- #
2008
- # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client.new do |config|
2009
- # config.timeout = 10.0
2010
- # config.rpcs.create_table.timeout = 20.0
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
486
- #
487
- # To modify the global config, setting the timeout for list_operations
488
- # to 20 seconds, and all remaining timeouts to 10 seconds:
489
- #
490
- # ::Google::Longrunning::Operations::Client.configure do |config|
491
- # config.timeout = 10.0
492
- # config.rpcs.list_operations.timeout = 20.0
493
- # end
494
- #
495
- # To apply the above configuration only to a new client:
496
- #
497
- # client = ::Google::Longrunning::Operations::Client.new do |config|
498
- # config.timeout = 10.0
499
- # config.rpcs.list_operations.timeout = 20.0
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.
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigtable
23
23
  module Admin
24
24
  module V2
25
- VERSION = "0.5.3"
25
+ VERSION = "0.5.4"
26
26
  end
27
27
  end
28
28
  end
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.3
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a