google-cloud-spanner-admin-instance-v1 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b0cd16376d02c410ade9d96c4774b4a28f8171b196f76c284f50a9018aed026
4
- data.tar.gz: 8942cf856286e8c21f0837285ea085202c6f3dc7c14f7fb7d8f0b00a932dbc24
3
+ metadata.gz: 3c6e8bb311465c3a89f39ea44f1d7a57a47a5e343fca51b35a0b8a7fe0c66452
4
+ data.tar.gz: 56f46346eaae3ffcf9840b89b78239ffcce95891f5b4efbcbaa5e84288156d8f
5
5
  SHA512:
6
- metadata.gz: 5ccd139de64d74cc6c6778ef3adec780fb88629ec1b36bfef6f3c6dd64dee89e6b6b159842b08a1ea44a5de29a092ec7606eaffed2f2c755b06a06223df282d5
7
- data.tar.gz: 352743ed061d853dcc982b55d0c6c79afd465c62f0bc5b9a4aa743fb18fa280b31fca15c6e39a199bf1c60b52b7fc4d40062b28fe3a264e83b8eee142de95e4a
6
+ metadata.gz: 75ce4a2dc424c0ca68b2db9b029cf83d9d94f244ce62b7ea688d3ea0c4dd1ff423f2456a6c15a1f4c05b14cda5f75b1f37b15ee52cf07457f4e4c4e80236704e
7
+ data.tar.gz: 07dd2a0738ac12b6efbfdfcc99072b05a5002234ebfc5ab68e63b7b57243d4ffc586756f58fdc7914c362257c32708be8aeadc480ec4e42c10d8001f66d23792
@@ -63,13 +63,12 @@ module Google
63
63
  # See {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client::Configuration}
64
64
  # for a description of the configuration fields.
65
65
  #
66
- # ## Example
66
+ # @example
67
67
  #
68
- # To modify the configuration for all InstanceAdmin clients:
69
- #
70
- # ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.configure do |config|
71
- # config.timeout = 10.0
72
- # end
68
+ # # Modify the configuration for all InstanceAdmin clients
69
+ # ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.configure do |config|
70
+ # config.timeout = 10.0
71
+ # end
73
72
  #
74
73
  # @yield [config] Configure the Client client.
75
74
  # @yieldparam config [Client::Configuration]
@@ -154,19 +153,15 @@ module Google
154
153
  ##
155
154
  # Create a new InstanceAdmin client object.
156
155
  #
157
- # ## Examples
158
- #
159
- # To create a new InstanceAdmin client with the default
160
- # configuration:
161
- #
162
- # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new
156
+ # @example
163
157
  #
164
- # To create a new InstanceAdmin client with a custom
165
- # configuration:
158
+ # # Create a client using the default configuration
159
+ # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new
166
160
  #
167
- # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new do |config|
168
- # config.timeout = 10.0
169
- # end
161
+ # # Create a client using a custom configuration
162
+ # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new do |config|
163
+ # config.timeout = 10.0
164
+ # end
170
165
  #
171
166
  # @yield [config] Configure the InstanceAdmin client.
172
167
  # @yieldparam config [Client::Configuration]
@@ -186,10 +181,9 @@ module Google
186
181
 
187
182
  # Create credentials
188
183
  credentials = @config.credentials
189
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
184
+ # Use self-signed JWT if the endpoint is unchanged from default,
190
185
  # but only if the default endpoint does not have a region prefix.
191
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
192
- @config.endpoint == Client.configure.endpoint &&
186
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
193
187
  !@config.endpoint.split(".").first.include?("-")
194
188
  credentials ||= Credentials.default scope: @config.scope,
195
189
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -286,7 +280,9 @@ module Google
286
280
  options.apply_defaults timeout: @config.rpcs.list_instance_configs.timeout,
287
281
  metadata: metadata,
288
282
  retry_policy: @config.rpcs.list_instance_configs.retry_policy
289
- options.apply_defaults metadata: @config.metadata,
283
+
284
+ options.apply_defaults timeout: @config.timeout,
285
+ metadata: @config.metadata,
290
286
  retry_policy: @config.retry_policy
291
287
 
292
288
  @instance_admin_stub.call_rpc :list_instance_configs, request, options: options do |response, operation|
@@ -354,7 +350,9 @@ module Google
354
350
  options.apply_defaults timeout: @config.rpcs.get_instance_config.timeout,
355
351
  metadata: metadata,
356
352
  retry_policy: @config.rpcs.get_instance_config.retry_policy
357
- options.apply_defaults metadata: @config.metadata,
353
+
354
+ options.apply_defaults timeout: @config.timeout,
355
+ metadata: @config.metadata,
358
356
  retry_policy: @config.retry_policy
359
357
 
360
358
  @instance_admin_stub.call_rpc :get_instance_config, request, options: options do |response, operation|
@@ -448,7 +446,9 @@ module Google
448
446
  options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
449
447
  metadata: metadata,
450
448
  retry_policy: @config.rpcs.list_instances.retry_policy
451
- options.apply_defaults metadata: @config.metadata,
449
+
450
+ options.apply_defaults timeout: @config.timeout,
451
+ metadata: @config.metadata,
452
452
  retry_policy: @config.retry_policy
453
453
 
454
454
  @instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation|
@@ -520,7 +520,9 @@ module Google
520
520
  options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
521
521
  metadata: metadata,
522
522
  retry_policy: @config.rpcs.get_instance.retry_policy
523
- options.apply_defaults metadata: @config.metadata,
523
+
524
+ options.apply_defaults timeout: @config.timeout,
525
+ metadata: @config.metadata,
524
526
  retry_policy: @config.retry_policy
525
527
 
526
528
  @instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation|
@@ -627,7 +629,9 @@ module Google
627
629
  options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
628
630
  metadata: metadata,
629
631
  retry_policy: @config.rpcs.create_instance.retry_policy
630
- options.apply_defaults metadata: @config.metadata,
632
+
633
+ options.apply_defaults timeout: @config.timeout,
634
+ metadata: @config.metadata,
631
635
  retry_policy: @config.retry_policy
632
636
 
633
637
  @instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation|
@@ -739,7 +743,9 @@ module Google
739
743
  options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
740
744
  metadata: metadata,
741
745
  retry_policy: @config.rpcs.update_instance.retry_policy
742
- options.apply_defaults metadata: @config.metadata,
746
+
747
+ options.apply_defaults timeout: @config.timeout,
748
+ metadata: @config.metadata,
743
749
  retry_policy: @config.retry_policy
744
750
 
745
751
  @instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation|
@@ -817,7 +823,9 @@ module Google
817
823
  options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
818
824
  metadata: metadata,
819
825
  retry_policy: @config.rpcs.delete_instance.retry_policy
820
- options.apply_defaults metadata: @config.metadata,
826
+
827
+ options.apply_defaults timeout: @config.timeout,
828
+ metadata: @config.metadata,
821
829
  retry_policy: @config.retry_policy
822
830
 
823
831
  @instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation|
@@ -893,7 +901,9 @@ module Google
893
901
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
894
902
  metadata: metadata,
895
903
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
896
- options.apply_defaults metadata: @config.metadata,
904
+
905
+ options.apply_defaults timeout: @config.timeout,
906
+ metadata: @config.metadata,
897
907
  retry_policy: @config.retry_policy
898
908
 
899
909
  @instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -967,7 +977,9 @@ module Google
967
977
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
968
978
  metadata: metadata,
969
979
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
970
- options.apply_defaults metadata: @config.metadata,
980
+
981
+ options.apply_defaults timeout: @config.timeout,
982
+ metadata: @config.metadata,
971
983
  retry_policy: @config.retry_policy
972
984
 
973
985
  @instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -1044,7 +1056,9 @@ module Google
1044
1056
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1045
1057
  metadata: metadata,
1046
1058
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1047
- options.apply_defaults metadata: @config.metadata,
1059
+
1060
+ options.apply_defaults timeout: @config.timeout,
1061
+ metadata: @config.metadata,
1048
1062
  retry_policy: @config.retry_policy
1049
1063
 
1050
1064
  @instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -1068,22 +1082,21 @@ module Google
1068
1082
  # Configuration can be applied globally to all clients, or to a single client
1069
1083
  # on construction.
1070
1084
  #
1071
- # # Examples
1072
- #
1073
- # To modify the global config, setting the timeout for list_instance_configs
1074
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1075
- #
1076
- # ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.configure do |config|
1077
- # config.timeout = 10.0
1078
- # config.rpcs.list_instance_configs.timeout = 20.0
1079
- # end
1080
- #
1081
- # To apply the above configuration only to a new client:
1082
- #
1083
- # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new do |config|
1084
- # config.timeout = 10.0
1085
- # config.rpcs.list_instance_configs.timeout = 20.0
1086
- # end
1085
+ # @example
1086
+ #
1087
+ # # Modify the global config, setting the timeout for
1088
+ # # list_instance_configs to 20 seconds,
1089
+ # # and all remaining timeouts to 10 seconds.
1090
+ # ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.configure do |config|
1091
+ # config.timeout = 10.0
1092
+ # config.rpcs.list_instance_configs.timeout = 20.0
1093
+ # end
1094
+ #
1095
+ # # Apply the above configuration only to a new client.
1096
+ # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new do |config|
1097
+ # config.timeout = 10.0
1098
+ # config.rpcs.list_instance_configs.timeout = 20.0
1099
+ # end
1087
1100
  #
1088
1101
  # @!attribute [rw] endpoint
1089
1102
  # 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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
487
- #
488
- # To modify the global config, setting the timeout for list_operations
489
- # to 20 seconds, and all remaining timeouts to 10 seconds:
490
- #
491
- # ::Google::Longrunning::Operations::Client.configure do |config|
492
- # config.timeout = 10.0
493
- # config.rpcs.list_operations.timeout = 20.0
494
- # end
495
- #
496
- # To apply the above configuration only to a new client:
497
- #
498
- # client = ::Google::Longrunning::Operations::Client.new do |config|
499
- # config.timeout = 10.0
500
- # config.rpcs.list_operations.timeout = 20.0
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.
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Instance
25
25
  module V1
26
- VERSION = "0.5.1"
26
+ VERSION = "0.5.2"
27
27
  end
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner-admin-instance-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.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-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