google-cloud-spanner-admin-instance-v1 0.4.0 → 0.5.3

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: 2f2aae011b8b515961938a9c94eae3d1020f960d25204d77050c72c825ef8b3b
4
- data.tar.gz: 57ca8a40ceacc0694bb2288888016775ae423fdf38523ae71521e01623923683
3
+ metadata.gz: 186095dfc96b29fe1ed26f955166224e62e06d3bef60a1eb2391cbcbaa4d51f5
4
+ data.tar.gz: f2afb8074fa39356b3e39490df1d1be15f3f3d6ad92e03198c601107e7628742
5
5
  SHA512:
6
- metadata.gz: 392bcd1faec21969cb49f1b4d31acb698084588c7c0c645654551bb764e8b3711d5bb0ece031730fe73eabb0140bcd8ecf7179309c1ecad431cc358ce7c53e44
7
- data.tar.gz: ab8475332335e9dabfe4e60b55b50185c39c7b9dd1e891de1b82d8f2c4d2a821dde5ef226a576d5390b9e4bc14175fce6d681096c73a9857ff027d1e592683f4
6
+ metadata.gz: f34611f63b581e4bb4937b9139266f8045da84c0e10755b5441ca549a236c0c2aa70b04935d81a1995dfc840343902715c2c00688bb7393eb579ffb4277f8f7e
7
+ data.tar.gz: 5f16ae96db9107f9f852e960dee5fc40b862c83e2ccf29657da8983017a111973f8513ab3b5259df177e0b2e131c2cb90200d7faa1c2bd498ed3e76567e7476a
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-spanner-admin-instance-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Credentials}):
68
68
 
69
- 1. `SPANNER_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `SPANNER_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `SPANNER_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `SPANNER_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/spanner/admin/instance/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.ne
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/spanner/admin/instance/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.ne
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/spanner/admin/instance/v1"
data/README.md CHANGED
@@ -9,7 +9,7 @@ https://github.com/googleapis/google-cloud-ruby
9
9
  This gem is a _versioned_ client. It provides basic client classes for a
10
10
  specific version of the Cloud Spanner Instance Admin V1 API. Most users should consider using
11
11
  the main client gem,
12
- [google-cloud-spanner-admin-instance](https://rubygems.org/gems/google-cloud-spanner-admin-instance).
12
+ [google-cloud-spanner](https://rubygems.org/gems/google-cloud-spanner).
13
13
  See the section below titled *Which client should I use?* for more information.
14
14
 
15
15
  ## Installation
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/spanner/admin/instance/v1"
34
34
 
35
35
  client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigsRequest.new # (request fields as keyword arguments...)
37
37
  response = client.list_instance_configs request
38
38
  ```
39
39
 
@@ -83,7 +83,7 @@ about the Ruby support schedule.
83
83
  ## Which client should I use?
84
84
 
85
85
  Most modern Ruby client libraries for Google APIs come in two flavors: the main
86
- client library with a name such as `google-cloud-spanner-admin-instance`,
86
+ client library with a name such as `google-cloud-spanner`,
87
87
  and lower-level _versioned_ client libraries with names such as
88
88
  `google-cloud-spanner-admin-instance-v1`.
89
89
  _In most cases, you should install the main client._
@@ -110,7 +110,7 @@ service version.
110
110
 
111
111
  We recommend that most users install the main client gem for a service. You can
112
112
  identify this gem as the one _without_ a version in its name, e.g.
113
- `google-cloud-spanner-admin-instance`.
113
+ `google-cloud-spanner`.
114
114
  The main client is recommended because it will embody the best practices for
115
115
  accessing the service, and may also provide more convenient interfaces or
116
116
  tighter integration into frameworks and third-party libraries. In addition, the
@@ -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]
@@ -89,34 +88,22 @@ module Google
89
88
 
90
89
  default_config.rpcs.list_instance_configs.timeout = 3600.0
91
90
  default_config.rpcs.list_instance_configs.retry_policy = {
92
- initial_delay: 1.0,
93
- max_delay: 32.0,
94
- multiplier: 1.3,
95
- retry_codes: [14, 4]
91
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
96
92
  }
97
93
 
98
94
  default_config.rpcs.get_instance_config.timeout = 3600.0
99
95
  default_config.rpcs.get_instance_config.retry_policy = {
100
- initial_delay: 1.0,
101
- max_delay: 32.0,
102
- multiplier: 1.3,
103
- retry_codes: [14, 4]
96
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
104
97
  }
105
98
 
106
99
  default_config.rpcs.list_instances.timeout = 3600.0
107
100
  default_config.rpcs.list_instances.retry_policy = {
108
- initial_delay: 1.0,
109
- max_delay: 32.0,
110
- multiplier: 1.3,
111
- retry_codes: [14, 4]
101
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
112
102
  }
113
103
 
114
104
  default_config.rpcs.get_instance.timeout = 3600.0
115
105
  default_config.rpcs.get_instance.retry_policy = {
116
- initial_delay: 1.0,
117
- max_delay: 32.0,
118
- multiplier: 1.3,
119
- retry_codes: [14, 4]
106
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
120
107
  }
121
108
 
122
109
  default_config.rpcs.create_instance.timeout = 3600.0
@@ -125,20 +112,14 @@ module Google
125
112
 
126
113
  default_config.rpcs.delete_instance.timeout = 3600.0
127
114
  default_config.rpcs.delete_instance.retry_policy = {
128
- initial_delay: 1.0,
129
- max_delay: 32.0,
130
- multiplier: 1.3,
131
- retry_codes: [14, 4]
115
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
132
116
  }
133
117
 
134
118
  default_config.rpcs.set_iam_policy.timeout = 30.0
135
119
 
136
120
  default_config.rpcs.get_iam_policy.timeout = 30.0
137
121
  default_config.rpcs.get_iam_policy.retry_policy = {
138
- initial_delay: 1.0,
139
- max_delay: 32.0,
140
- multiplier: 1.3,
141
- retry_codes: [14, 4]
122
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
142
123
  }
143
124
 
144
125
  default_config.rpcs.test_iam_permissions.timeout = 30.0
@@ -172,19 +153,15 @@ module Google
172
153
  ##
173
154
  # Create a new InstanceAdmin client object.
174
155
  #
175
- # ## Examples
176
- #
177
- # To create a new InstanceAdmin client with the default
178
- # configuration:
179
- #
180
- # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new
156
+ # @example
181
157
  #
182
- # To create a new InstanceAdmin client with a custom
183
- # configuration:
158
+ # # Create a client using the default configuration
159
+ # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new
184
160
  #
185
- # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new do |config|
186
- # config.timeout = 10.0
187
- # 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
188
165
  #
189
166
  # @yield [config] Configure the InstanceAdmin client.
190
167
  # @yieldparam config [Client::Configuration]
@@ -204,14 +181,13 @@ module Google
204
181
 
205
182
  # Create credentials
206
183
  credentials = @config.credentials
207
- # 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,
208
185
  # but only if the default endpoint does not have a region prefix.
209
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
210
- @config.endpoint == Client.configure.endpoint &&
186
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
211
187
  !@config.endpoint.split(".").first.include?("-")
212
188
  credentials ||= Credentials.default scope: @config.scope,
213
189
  enable_self_signed_jwt: enable_self_signed_jwt
214
- if credentials.is_a?(String) || credentials.is_a?(Hash)
190
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
215
191
  credentials = Credentials.new credentials, scope: @config.scope
216
192
  end
217
193
  @quota_project_id = @config.quota_project
@@ -304,7 +280,9 @@ module Google
304
280
  options.apply_defaults timeout: @config.rpcs.list_instance_configs.timeout,
305
281
  metadata: metadata,
306
282
  retry_policy: @config.rpcs.list_instance_configs.retry_policy
307
- options.apply_defaults metadata: @config.metadata,
283
+
284
+ options.apply_defaults timeout: @config.timeout,
285
+ metadata: @config.metadata,
308
286
  retry_policy: @config.retry_policy
309
287
 
310
288
  @instance_admin_stub.call_rpc :list_instance_configs, request, options: options do |response, operation|
@@ -372,7 +350,9 @@ module Google
372
350
  options.apply_defaults timeout: @config.rpcs.get_instance_config.timeout,
373
351
  metadata: metadata,
374
352
  retry_policy: @config.rpcs.get_instance_config.retry_policy
375
- options.apply_defaults metadata: @config.metadata,
353
+
354
+ options.apply_defaults timeout: @config.timeout,
355
+ metadata: @config.metadata,
376
356
  retry_policy: @config.retry_policy
377
357
 
378
358
  @instance_admin_stub.call_rpc :get_instance_config, request, options: options do |response, operation|
@@ -466,7 +446,9 @@ module Google
466
446
  options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
467
447
  metadata: metadata,
468
448
  retry_policy: @config.rpcs.list_instances.retry_policy
469
- options.apply_defaults metadata: @config.metadata,
449
+
450
+ options.apply_defaults timeout: @config.timeout,
451
+ metadata: @config.metadata,
470
452
  retry_policy: @config.retry_policy
471
453
 
472
454
  @instance_admin_stub.call_rpc :list_instances, request, options: options do |response, operation|
@@ -538,7 +520,9 @@ module Google
538
520
  options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
539
521
  metadata: metadata,
540
522
  retry_policy: @config.rpcs.get_instance.retry_policy
541
- options.apply_defaults metadata: @config.metadata,
523
+
524
+ options.apply_defaults timeout: @config.timeout,
525
+ metadata: @config.metadata,
542
526
  retry_policy: @config.retry_policy
543
527
 
544
528
  @instance_admin_stub.call_rpc :get_instance, request, options: options do |response, operation|
@@ -645,7 +629,9 @@ module Google
645
629
  options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
646
630
  metadata: metadata,
647
631
  retry_policy: @config.rpcs.create_instance.retry_policy
648
- options.apply_defaults metadata: @config.metadata,
632
+
633
+ options.apply_defaults timeout: @config.timeout,
634
+ metadata: @config.metadata,
649
635
  retry_policy: @config.retry_policy
650
636
 
651
637
  @instance_admin_stub.call_rpc :create_instance, request, options: options do |response, operation|
@@ -757,7 +743,9 @@ module Google
757
743
  options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
758
744
  metadata: metadata,
759
745
  retry_policy: @config.rpcs.update_instance.retry_policy
760
- options.apply_defaults metadata: @config.metadata,
746
+
747
+ options.apply_defaults timeout: @config.timeout,
748
+ metadata: @config.metadata,
761
749
  retry_policy: @config.retry_policy
762
750
 
763
751
  @instance_admin_stub.call_rpc :update_instance, request, options: options do |response, operation|
@@ -835,7 +823,9 @@ module Google
835
823
  options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
836
824
  metadata: metadata,
837
825
  retry_policy: @config.rpcs.delete_instance.retry_policy
838
- options.apply_defaults metadata: @config.metadata,
826
+
827
+ options.apply_defaults timeout: @config.timeout,
828
+ metadata: @config.metadata,
839
829
  retry_policy: @config.retry_policy
840
830
 
841
831
  @instance_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation|
@@ -911,7 +901,9 @@ module Google
911
901
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
912
902
  metadata: metadata,
913
903
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
914
- options.apply_defaults metadata: @config.metadata,
904
+
905
+ options.apply_defaults timeout: @config.timeout,
906
+ metadata: @config.metadata,
915
907
  retry_policy: @config.retry_policy
916
908
 
917
909
  @instance_admin_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -985,7 +977,9 @@ module Google
985
977
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
986
978
  metadata: metadata,
987
979
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
988
- options.apply_defaults metadata: @config.metadata,
980
+
981
+ options.apply_defaults timeout: @config.timeout,
982
+ metadata: @config.metadata,
989
983
  retry_policy: @config.retry_policy
990
984
 
991
985
  @instance_admin_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -1062,7 +1056,9 @@ module Google
1062
1056
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1063
1057
  metadata: metadata,
1064
1058
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1065
- options.apply_defaults metadata: @config.metadata,
1059
+
1060
+ options.apply_defaults timeout: @config.timeout,
1061
+ metadata: @config.metadata,
1066
1062
  retry_policy: @config.retry_policy
1067
1063
 
1068
1064
  @instance_admin_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -1086,22 +1082,21 @@ module Google
1086
1082
  # Configuration can be applied globally to all clients, or to a single client
1087
1083
  # on construction.
1088
1084
  #
1089
- # # Examples
1090
- #
1091
- # To modify the global config, setting the timeout for list_instance_configs
1092
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1093
- #
1094
- # ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.configure do |config|
1095
- # config.timeout = 10.0
1096
- # config.rpcs.list_instance_configs.timeout = 20.0
1097
- # end
1098
- #
1099
- # To apply the above configuration only to a new client:
1100
- #
1101
- # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new do |config|
1102
- # config.timeout = 10.0
1103
- # config.rpcs.list_instance_configs.timeout = 20.0
1104
- # 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
1105
1100
  #
1106
1101
  # @!attribute [rw] endpoint
1107
1102
  # The hostname or hostname:port of the service endpoint.
@@ -84,7 +84,7 @@ module Google
84
84
  # Create credentials
85
85
  credentials = @config.credentials
86
86
  credentials ||= Credentials.default scope: @config.scope
87
- if credentials.is_a?(String) || credentials.is_a?(Hash)
87
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
88
88
  credentials = Credentials.new credentials, scope: @config.scope
89
89
  end
90
90
  @quota_project_id = @config.quota_project
@@ -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|
@@ -398,9 +406,9 @@ module Google
398
406
  end
399
407
 
400
408
  ##
401
- # Waits for the specified long-running operation until it is done or reaches
402
- # at most a specified timeout, returning the latest state. If the operation
403
- # is already done, the latest state is immediately returned. If the timeout
409
+ # Waits until the specified long-running operation is done or reaches at most
410
+ # a specified timeout, returning the latest state. If the operation is
411
+ # already done, the latest state is immediately returned. If the timeout
404
412
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
405
413
  # timeout is used. If the server does not support this method, it returns
406
414
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -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.4.0"
26
+ VERSION = "0.5.3"
27
27
  end
28
28
  end
29
29
  end
@@ -30,6 +30,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
30
30
  optional :name, :string, 1
31
31
  optional :display_name, :string, 2
32
32
  repeated :replicas, :message, 3, "google.spanner.admin.instance.v1.ReplicaInfo"
33
+ repeated :leader_options, :string, 4
33
34
  end
34
35
  add_message "google.spanner.admin.instance.v1.Instance" do
35
36
  optional :name, :string, 1
@@ -49,7 +49,7 @@ module Google
49
49
  # databases in that instance, and their performance may suffer.
50
50
  class Service
51
51
 
52
- include ::GRPC::GenericService
52
+ include GRPC::GenericService
53
53
 
54
54
  self.marshal_class_method = :encode
55
55
  self.unmarshal_class_method = :decode
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -88,6 +88,10 @@ module Google
88
88
  # @return [::Array<::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo>]
89
89
  # The geographic placement of nodes in this instance configuration and their
90
90
  # replication properties.
91
+ # @!attribute [rw] leader_options
92
+ # @return [::Array<::String>]
93
+ # Allowed values of the “default_leader” schema option for databases in
94
+ # instances that use this instance configuration.
91
95
  class InstanceConfig
92
96
  include ::Google::Protobuf::MessageExts
93
97
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -19,30 +19,53 @@
19
19
 
20
20
  module Google
21
21
  module Type
22
- # Represents an expression text. Example:
22
+ # Represents a textual expression in the Common Expression Language (CEL)
23
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
24
+ # are documented at https://github.com/google/cel-spec.
23
25
  #
24
- # title: "User account presence"
25
- # description: "Determines whether the request has a user account"
26
- # expression: "size(request.user) > 0"
26
+ # Example (Comparison):
27
+ #
28
+ # title: "Summary size limit"
29
+ # description: "Determines if a summary is less than 100 chars"
30
+ # expression: "document.summary.size() < 100"
31
+ #
32
+ # Example (Equality):
33
+ #
34
+ # title: "Requestor is owner"
35
+ # description: "Determines if requestor is the document owner"
36
+ # expression: "document.owner == request.auth.claims.email"
37
+ #
38
+ # Example (Logic):
39
+ #
40
+ # title: "Public documents"
41
+ # description: "Determine whether the document should be publicly visible"
42
+ # expression: "document.type != 'private' && document.type != 'internal'"
43
+ #
44
+ # Example (Data Manipulation):
45
+ #
46
+ # title: "Notification string"
47
+ # description: "Create a notification string with a timestamp."
48
+ # expression: "'New message received at ' + string(document.create_time)"
49
+ #
50
+ # The exact variables and functions that may be referenced within an expression
51
+ # are determined by the service that evaluates it. See the service
52
+ # documentation for additional information.
27
53
  # @!attribute [rw] expression
28
54
  # @return [::String]
29
- # Textual representation of an expression in
30
- # Common Expression Language syntax.
31
- #
32
- # The application context of the containing message determines which
33
- # well-known feature set of CEL is supported.
55
+ # Textual representation of an expression in Common Expression Language
56
+ # syntax.
34
57
  # @!attribute [rw] title
35
58
  # @return [::String]
36
- # An optional title for the expression, i.e. a short string describing
59
+ # Optional. Title for the expression, i.e. a short string describing
37
60
  # its purpose. This can be used e.g. in UIs which allow to enter the
38
61
  # expression.
39
62
  # @!attribute [rw] description
40
63
  # @return [::String]
41
- # An optional description of the expression. This is a longer text which
64
+ # Optional. Description of the expression. This is a longer text which
42
65
  # describes the expression, e.g. when hovered over it in a UI.
43
66
  # @!attribute [rw] location
44
67
  # @return [::String]
45
- # An optional string indicating the location of the expression for error
68
+ # Optional. String indicating the location of the expression for error
46
69
  # reporting, e.g. a file name and a position in the file.
47
70
  class Expr
48
71
  include ::Google::Protobuf::MessageExts
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.4.0
4
+ version: 0.5.3
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-06-17 00:00:00.000000000 Z
11
+ date: 2021-08-30 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
@@ -179,8 +179,7 @@ dependencies:
179
179
  description: Cloud Spanner is a managed, mission-critical, globally consistent and
180
180
  scalable relational database service. Note that google-cloud-spanner-admin-instance-v1
181
181
  is a version-specific client library. For most uses, we recommend installing the
182
- main client library google-cloud-spanner-admin-instance instead. See the readme
183
- for more details.
182
+ main client library google-cloud-spanner instead. See the readme for more details.
184
183
  email: googleapis-packages@google.com
185
184
  executables: []
186
185
  extensions: []