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

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07bc45d6296b16fe69148df9967b64d20cb83b82e6393b0cb4029eb4b743bd0a
4
- data.tar.gz: cd13156a1692aa1a5c96868f9e3d06f964b70256480f227693741650243ba477
3
+ metadata.gz: 3c6e8bb311465c3a89f39ea44f1d7a57a47a5e343fca51b35a0b8a7fe0c66452
4
+ data.tar.gz: 56f46346eaae3ffcf9840b89b78239ffcce95891f5b4efbcbaa5e84288156d8f
5
5
  SHA512:
6
- metadata.gz: 3376f80df7aa950ed61b7d7f504b32363758b9acc9ba178d387a5e35b40dd4ddd8e35601b9d087ea8f97bd87403c74b0a99ce2ffa5c7a50f4de1e4a07597c9d8
7
- data.tar.gz: 76cc5e2711864a7e3a2ac4c6339d1d2fa406aa3d302b23054ae5785f1ac363e22a74edc05b0a714e4c899e238c6fe68bd629e0393c5478db34e9586bd576707e
6
+ metadata.gz: 75ce4a2dc424c0ca68b2db9b029cf83d9d94f244ce62b7ea688d3ea0c4dd1ff423f2456a6c15a1f4c05b14cda5f75b1f37b15ee52cf07457f4e4c4e80236704e
7
+ data.tar.gz: 07dd2a0738ac12b6efbfdfcc99072b05a5002234ebfc5ab68e63b7b57243d4ffc586756f58fdc7914c362257c32708be8aeadc480ec4e42c10d8001f66d23792
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
@@ -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
 
@@ -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.3.1"
26
+ VERSION = "0.5.2"
27
27
  end
28
28
  end
29
29
  end
@@ -30,12 +30,14 @@ 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
36
37
  optional :config, :string, 2
37
38
  optional :display_name, :string, 3
38
39
  optional :node_count, :int32, 5
40
+ optional :processing_units, :int32, 9
39
41
  optional :state, :enum, 6, "google.spanner.admin.instance.v1.Instance.State"
40
42
  map :labels, :string, :string, 7
41
43
  repeated :endpoint_uris, :string, 8
@@ -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
@@ -118,6 +122,11 @@ module Google
118
122
  # See [the
119
123
  # documentation](https://cloud.google.com/spanner/docs/instances#node_count)
120
124
  # for more information about nodes.
125
+ # @!attribute [rw] processing_units
126
+ # @return [::Integer]
127
+ # The number of processing units allocated to this instance. At most one of
128
+ # processing_units or node_count should be present in the message. This may
129
+ # be zero in API responses for instances that are not yet in state `READY`.
121
130
  # @!attribute [r] state
122
131
  # @return [::Google::Cloud::Spanner::Admin::Instance::V1::Instance::State]
123
132
  # Output only. The current instance state. For
@@ -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,29 +1,35 @@
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.3.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-04-05 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.4'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.4'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +53,7 @@ dependencies:
47
53
  version: 0.6.10
48
54
  - - "<"
49
55
  - !ruby/object:Gem::Version
50
- version: '2.0'
56
+ version: 2.a
51
57
  type: :runtime
52
58
  prerelease: false
53
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +63,7 @@ dependencies:
57
63
  version: 0.6.10
58
64
  - - "<"
59
65
  - !ruby/object:Gem::Version
60
- version: '2.0'
66
+ version: 2.a
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: google-style
63
69
  requirement: !ruby/object:Gem::Requirement
@@ -228,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
234
  - !ruby/object:Gem::Version
229
235
  version: '0'
230
236
  requirements: []
231
- rubygems_version: 3.2.13
237
+ rubygems_version: 3.2.17
232
238
  signing_key:
233
239
  specification_version: 4
234
240
  summary: API Client library for the Cloud Spanner Instance Admin V1 API