google-cloud-redis-v1beta1 0.1.0 → 0.2.3
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 +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +5 -1
- data/lib/google/cloud/redis/v1beta1.rb +1 -1
- data/lib/google/cloud/redis/v1beta1/cloud_redis.rb +1 -1
- data/lib/google/cloud/redis/v1beta1/cloud_redis/client.rb +211 -206
- data/lib/google/cloud/redis/v1beta1/cloud_redis/credentials.rb +1 -1
- data/lib/google/cloud/redis/v1beta1/cloud_redis/operations.rb +109 -103
- data/lib/google/cloud/redis/v1beta1/cloud_redis/paths.rb +5 -5
- data/lib/google/cloud/redis/v1beta1/cloud_redis_services_pb.rb +1 -1
- data/lib/google/cloud/redis/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb +112 -112
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- metadata +33 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 369b412e774f884d8016624301aa16835fa9a69043e6e0f7010e66dd75ce2054
|
4
|
+
data.tar.gz: d5106f448903d14247920d86ba71a5d7bb25db6a96c0da41565517df61b88026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c50c66876ddfb2e4fc5d205f9495a544438bc5862d2b0ad82b5e285c16d64fa0d4677195f8ade66051bfb28321505a8dc80d62f2f399528b2e395adb8a3f8b19
|
7
|
+
data.tar.gz: f9d5b8df39966c10b5bd23233793009663aab2efd95e5182d198b04dbbb1aa5269ca5a3b7d40d926da0c7d661fb846bbef66f1b5b5fe0648314a1f3591d7dd45
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export REDIS_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/redis/v1beta1"
|
29
29
|
|
30
|
-
client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
30
|
+
client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-redis-v1beta1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::Redis::V1beta1::CloudRedis::Credentials}):
|
67
|
+
{::Google::Cloud::Redis::V1beta1::CloudRedis::Credentials}):
|
68
68
|
|
69
69
|
1. `REDIS_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `REDIS_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/redis/v1beta1"
|
|
77
77
|
|
78
78
|
ENV["REDIS_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
80
|
+
client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/redis/v1beta1"
|
90
90
|
|
91
|
-
client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or configured globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/redis/v1beta1"
|
100
100
|
|
101
|
-
Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config|
|
101
|
+
::Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
105
|
+
client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/redis.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -25,7 +26,7 @@ In order to use this library, you first need to go through the following steps:
|
|
25
26
|
```ruby
|
26
27
|
require "google/cloud/redis/v1beta1"
|
27
28
|
|
28
|
-
client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
29
|
+
client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
29
30
|
request = my_create_request
|
30
31
|
response = client.list_instances request
|
31
32
|
```
|
@@ -33,6 +34,9 @@ response = client.list_instances request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-redis-v1beta1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/memorystore/docs/redis)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# To load this package, including all its services, and instantiate a client:
|
27
27
|
#
|
28
28
|
# require "google/cloud/redis/v1beta1"
|
29
|
-
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
29
|
+
# client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
30
30
|
#
|
31
31
|
module V1beta1
|
32
32
|
end
|
@@ -51,7 +51,7 @@ module Google
|
|
51
51
|
# To load this service and instantiate a client:
|
52
52
|
#
|
53
53
|
# require "google/cloud/redis/v1beta1/cloud_redis"
|
54
|
-
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
54
|
+
# client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
55
55
|
#
|
56
56
|
module CloudRedis
|
57
57
|
end
|
@@ -52,15 +52,15 @@ module Google
|
|
52
52
|
##
|
53
53
|
# Configure the CloudRedis Client class.
|
54
54
|
#
|
55
|
-
# See {Google::Cloud::Redis::V1beta1::CloudRedis::Client::Configuration}
|
55
|
+
# See {::Google::Cloud::Redis::V1beta1::CloudRedis::Client::Configuration}
|
56
56
|
# for a description of the configuration fields.
|
57
57
|
#
|
58
58
|
# ## Example
|
59
59
|
#
|
60
60
|
# To modify the configuration for all CloudRedis clients:
|
61
61
|
#
|
62
|
-
# Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config|
|
63
|
-
# config.timeout =
|
62
|
+
# ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config|
|
63
|
+
# config.timeout = 10.0
|
64
64
|
# end
|
65
65
|
#
|
66
66
|
# @yield [config] Configure the Client client.
|
@@ -110,7 +110,7 @@ module Google
|
|
110
110
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
111
111
|
# should be made on {Client.configure}.
|
112
112
|
#
|
113
|
-
# See {Google::Cloud::Redis::V1beta1::CloudRedis::Client::Configuration}
|
113
|
+
# See {::Google::Cloud::Redis::V1beta1::CloudRedis::Client::Configuration}
|
114
114
|
# for a description of the configuration fields.
|
115
115
|
#
|
116
116
|
# @yield [config] Configure the Client client.
|
@@ -131,13 +131,13 @@ module Google
|
|
131
131
|
# To create a new CloudRedis client with the default
|
132
132
|
# configuration:
|
133
133
|
#
|
134
|
-
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
134
|
+
# client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
135
135
|
#
|
136
136
|
# To create a new CloudRedis client with a custom
|
137
137
|
# configuration:
|
138
138
|
#
|
139
|
-
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
|
140
|
-
# config.timeout =
|
139
|
+
# client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
|
140
|
+
# config.timeout = 10.0
|
141
141
|
# end
|
142
142
|
#
|
143
143
|
# @yield [config] Configure the CloudRedis client.
|
@@ -162,15 +162,16 @@ module Google
|
|
162
162
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
163
163
|
credentials = Credentials.new credentials, scope: @config.scope
|
164
164
|
end
|
165
|
-
@quota_project_id =
|
165
|
+
@quota_project_id = @config.quota_project
|
166
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
166
167
|
|
167
168
|
@operations_client = Operations.new do |config|
|
168
169
|
config.credentials = credentials
|
169
170
|
config.endpoint = @config.endpoint
|
170
171
|
end
|
171
172
|
|
172
|
-
@cloud_redis_stub = Gapic::ServiceStub.new(
|
173
|
-
Google::Cloud::Redis::V1beta1::CloudRedis::Stub,
|
173
|
+
@cloud_redis_stub = ::Gapic::ServiceStub.new(
|
174
|
+
::Google::Cloud::Redis::V1beta1::CloudRedis::Stub,
|
174
175
|
credentials: credentials,
|
175
176
|
endpoint: @config.endpoint,
|
176
177
|
channel_args: @config.channel_args,
|
@@ -181,7 +182,7 @@ module Google
|
|
181
182
|
##
|
182
183
|
# Get the associated client for long-running operations.
|
183
184
|
#
|
184
|
-
# @return [Google::Cloud::Redis::V1beta1::CloudRedis::Operations]
|
185
|
+
# @return [::Google::Cloud::Redis::V1beta1::CloudRedis::Operations]
|
185
186
|
#
|
186
187
|
attr_reader :operations_client
|
187
188
|
|
@@ -200,12 +201,12 @@ module Google
|
|
200
201
|
#
|
201
202
|
# @overload list_instances(request, options = nil)
|
202
203
|
# Pass arguments to `list_instances` via a request object, either of type
|
203
|
-
# {Google::Cloud::Redis::V1beta1::ListInstancesRequest} or an equivalent Hash.
|
204
|
+
# {::Google::Cloud::Redis::V1beta1::ListInstancesRequest} or an equivalent Hash.
|
204
205
|
#
|
205
|
-
# @param request [Google::Cloud::Redis::V1beta1::ListInstancesRequest, Hash]
|
206
|
+
# @param request [::Google::Cloud::Redis::V1beta1::ListInstancesRequest, ::Hash]
|
206
207
|
# A request object representing the call parameters. Required. To specify no
|
207
208
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
208
|
-
# @param options [Gapic::CallOptions, Hash]
|
209
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
209
210
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
210
211
|
#
|
211
212
|
# @overload list_instances(parent: nil, page_size: nil, page_token: nil)
|
@@ -213,43 +214,43 @@ module Google
|
|
213
214
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
214
215
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
215
216
|
#
|
216
|
-
# @param parent [String]
|
217
|
+
# @param parent [::String]
|
217
218
|
# Required. The resource name of the instance location using the form:
|
218
219
|
# `projects/{project_id}/locations/{location_id}`
|
219
220
|
# where `location_id` refers to a GCP region.
|
220
|
-
# @param page_size [Integer]
|
221
|
+
# @param page_size [::Integer]
|
221
222
|
# The maximum number of items to return.
|
222
223
|
#
|
223
224
|
# If not specified, a default value of 1000 will be used by the service.
|
224
225
|
# Regardless of the page_size value, the response may include a partial list
|
225
226
|
# and a caller should only rely on response's
|
226
|
-
# {Google::Cloud::Redis::V1beta1::ListInstancesResponse#next_page_token `next_page_token`}
|
227
|
+
# {::Google::Cloud::Redis::V1beta1::ListInstancesResponse#next_page_token `next_page_token`}
|
227
228
|
# to determine if there are more instances left to be queried.
|
228
|
-
# @param page_token [String]
|
229
|
+
# @param page_token [::String]
|
229
230
|
# The `next_page_token` value returned from a previous
|
230
|
-
# {Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances} request, if any.
|
231
|
+
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances} request, if any.
|
231
232
|
#
|
232
233
|
# @yield [response, operation] Access the result along with the RPC operation
|
233
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
234
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
234
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Redis::V1beta1::Instance>]
|
235
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
235
236
|
#
|
236
|
-
# @return [Gapic::PagedEnumerable
|
237
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Redis::V1beta1::Instance>]
|
237
238
|
#
|
238
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
239
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
239
240
|
#
|
240
241
|
def list_instances request, options = nil
|
241
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
242
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
242
243
|
|
243
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1beta1::ListInstancesRequest
|
244
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::ListInstancesRequest
|
244
245
|
|
245
246
|
# Converts hash and nil to an options object
|
246
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
247
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
247
248
|
|
248
249
|
# Customize the options with defaults
|
249
250
|
metadata = @config.rpcs.list_instances.metadata.to_h
|
250
251
|
|
251
252
|
# Set x-goog-api-client and x-goog-user-project headers
|
252
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
253
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
253
254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
254
255
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
255
256
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -267,12 +268,12 @@ module Google
|
|
267
268
|
retry_policy: @config.retry_policy
|
268
269
|
|
269
270
|
@cloud_redis_stub.call_rpc :list_instances, request, options: options do |response, operation|
|
270
|
-
response = Gapic::PagedEnumerable.new @cloud_redis_stub, :list_instances, request, response, operation, options
|
271
|
+
response = ::Gapic::PagedEnumerable.new @cloud_redis_stub, :list_instances, request, response, operation, options
|
271
272
|
yield response, operation if block_given?
|
272
273
|
return response
|
273
274
|
end
|
274
|
-
rescue GRPC::BadStatus => e
|
275
|
-
raise Google::Cloud::Error.from_error(e)
|
275
|
+
rescue ::GRPC::BadStatus => e
|
276
|
+
raise ::Google::Cloud::Error.from_error(e)
|
276
277
|
end
|
277
278
|
|
278
279
|
##
|
@@ -280,12 +281,12 @@ module Google
|
|
280
281
|
#
|
281
282
|
# @overload get_instance(request, options = nil)
|
282
283
|
# Pass arguments to `get_instance` via a request object, either of type
|
283
|
-
# {Google::Cloud::Redis::V1beta1::GetInstanceRequest} or an equivalent Hash.
|
284
|
+
# {::Google::Cloud::Redis::V1beta1::GetInstanceRequest} or an equivalent Hash.
|
284
285
|
#
|
285
|
-
# @param request [Google::Cloud::Redis::V1beta1::GetInstanceRequest, Hash]
|
286
|
+
# @param request [::Google::Cloud::Redis::V1beta1::GetInstanceRequest, ::Hash]
|
286
287
|
# A request object representing the call parameters. Required. To specify no
|
287
288
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
288
|
-
# @param options [Gapic::CallOptions, Hash]
|
289
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
289
290
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
290
291
|
#
|
291
292
|
# @overload get_instance(name: nil)
|
@@ -293,32 +294,32 @@ module Google
|
|
293
294
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
294
295
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
295
296
|
#
|
296
|
-
# @param name [String]
|
297
|
+
# @param name [::String]
|
297
298
|
# Required. Redis instance resource name using the form:
|
298
299
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
299
300
|
# where `location_id` refers to a GCP region.
|
300
301
|
#
|
301
302
|
# @yield [response, operation] Access the result along with the RPC operation
|
302
|
-
# @yieldparam response [Google::Cloud::Redis::V1beta1::Instance]
|
303
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
303
|
+
# @yieldparam response [::Google::Cloud::Redis::V1beta1::Instance]
|
304
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
304
305
|
#
|
305
|
-
# @return [Google::Cloud::Redis::V1beta1::Instance]
|
306
|
+
# @return [::Google::Cloud::Redis::V1beta1::Instance]
|
306
307
|
#
|
307
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
308
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
308
309
|
#
|
309
310
|
def get_instance request, options = nil
|
310
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
311
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
311
312
|
|
312
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1beta1::GetInstanceRequest
|
313
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::GetInstanceRequest
|
313
314
|
|
314
315
|
# Converts hash and nil to an options object
|
315
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
316
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
316
317
|
|
317
318
|
# Customize the options with defaults
|
318
319
|
metadata = @config.rpcs.get_instance.metadata.to_h
|
319
320
|
|
320
321
|
# Set x-goog-api-client and x-goog-user-project headers
|
321
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
322
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
322
323
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
323
324
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
324
325
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -339,15 +340,15 @@ module Google
|
|
339
340
|
yield response, operation if block_given?
|
340
341
|
return response
|
341
342
|
end
|
342
|
-
rescue GRPC::BadStatus => e
|
343
|
-
raise Google::Cloud::Error.from_error(e)
|
343
|
+
rescue ::GRPC::BadStatus => e
|
344
|
+
raise ::Google::Cloud::Error.from_error(e)
|
344
345
|
end
|
345
346
|
|
346
347
|
##
|
347
348
|
# Creates a Redis instance based on the specified tier and memory size.
|
348
349
|
#
|
349
350
|
# By default, the instance is accessible from the project's
|
350
|
-
# [default network](/
|
351
|
+
# [default network](https://cloud.google.com/vpc/docs/vpc).
|
351
352
|
#
|
352
353
|
# The creation is executed asynchronously and callers may check the returned
|
353
354
|
# operation to track its progress. Once the operation is completed the Redis
|
@@ -359,12 +360,12 @@ module Google
|
|
359
360
|
#
|
360
361
|
# @overload create_instance(request, options = nil)
|
361
362
|
# Pass arguments to `create_instance` via a request object, either of type
|
362
|
-
# {Google::Cloud::Redis::V1beta1::CreateInstanceRequest} or an equivalent Hash.
|
363
|
+
# {::Google::Cloud::Redis::V1beta1::CreateInstanceRequest} or an equivalent Hash.
|
363
364
|
#
|
364
|
-
# @param request [Google::Cloud::Redis::V1beta1::CreateInstanceRequest, Hash]
|
365
|
+
# @param request [::Google::Cloud::Redis::V1beta1::CreateInstanceRequest, ::Hash]
|
365
366
|
# A request object representing the call parameters. Required. To specify no
|
366
367
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
367
|
-
# @param options [Gapic::CallOptions, Hash]
|
368
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
368
369
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
369
370
|
#
|
370
371
|
# @overload create_instance(parent: nil, instance_id: nil, instance: nil)
|
@@ -372,11 +373,11 @@ module Google
|
|
372
373
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
373
374
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
374
375
|
#
|
375
|
-
# @param parent [String]
|
376
|
+
# @param parent [::String]
|
376
377
|
# Required. The resource name of the instance location using the form:
|
377
378
|
# `projects/{project_id}/locations/{location_id}`
|
378
379
|
# where `location_id` refers to a GCP region.
|
379
|
-
# @param instance_id [String]
|
380
|
+
# @param instance_id [::String]
|
380
381
|
# Required. The logical name of the Redis instance in the customer project
|
381
382
|
# with the following restrictions:
|
382
383
|
#
|
@@ -385,30 +386,30 @@ module Google
|
|
385
386
|
# * Must be between 1-40 characters.
|
386
387
|
# * Must end with a number or a letter.
|
387
388
|
# * Must be unique within the customer project / location
|
388
|
-
# @param instance [Google::Cloud::Redis::V1beta1::Instance, Hash]
|
389
|
+
# @param instance [::Google::Cloud::Redis::V1beta1::Instance, ::Hash]
|
389
390
|
# Required. A Redis [Instance] resource
|
390
391
|
#
|
391
392
|
# @yield [response, operation] Access the result along with the RPC operation
|
392
|
-
# @yieldparam response [Gapic::Operation]
|
393
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
393
|
+
# @yieldparam response [::Gapic::Operation]
|
394
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
394
395
|
#
|
395
|
-
# @return [Gapic::Operation]
|
396
|
+
# @return [::Gapic::Operation]
|
396
397
|
#
|
397
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
398
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
398
399
|
#
|
399
400
|
def create_instance request, options = nil
|
400
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
401
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
401
402
|
|
402
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1beta1::CreateInstanceRequest
|
403
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::CreateInstanceRequest
|
403
404
|
|
404
405
|
# Converts hash and nil to an options object
|
405
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
406
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
406
407
|
|
407
408
|
# Customize the options with defaults
|
408
409
|
metadata = @config.rpcs.create_instance.metadata.to_h
|
409
410
|
|
410
411
|
# Set x-goog-api-client and x-goog-user-project headers
|
411
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
412
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
412
413
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
413
414
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
414
415
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -426,12 +427,12 @@ module Google
|
|
426
427
|
retry_policy: @config.retry_policy
|
427
428
|
|
428
429
|
@cloud_redis_stub.call_rpc :create_instance, request, options: options do |response, operation|
|
429
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
430
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
430
431
|
yield response, operation if block_given?
|
431
432
|
return response
|
432
433
|
end
|
433
|
-
rescue GRPC::BadStatus => e
|
434
|
-
raise Google::Cloud::Error.from_error(e)
|
434
|
+
rescue ::GRPC::BadStatus => e
|
435
|
+
raise ::Google::Cloud::Error.from_error(e)
|
435
436
|
end
|
436
437
|
|
437
438
|
##
|
@@ -443,12 +444,12 @@ module Google
|
|
443
444
|
#
|
444
445
|
# @overload update_instance(request, options = nil)
|
445
446
|
# Pass arguments to `update_instance` via a request object, either of type
|
446
|
-
# {Google::Cloud::Redis::V1beta1::UpdateInstanceRequest} or an equivalent Hash.
|
447
|
+
# {::Google::Cloud::Redis::V1beta1::UpdateInstanceRequest} or an equivalent Hash.
|
447
448
|
#
|
448
|
-
# @param request [Google::Cloud::Redis::V1beta1::UpdateInstanceRequest, Hash]
|
449
|
+
# @param request [::Google::Cloud::Redis::V1beta1::UpdateInstanceRequest, ::Hash]
|
449
450
|
# A request object representing the call parameters. Required. To specify no
|
450
451
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
451
|
-
# @param options [Gapic::CallOptions, Hash]
|
452
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
452
453
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
453
454
|
#
|
454
455
|
# @overload update_instance(update_mask: nil, instance: nil)
|
@@ -456,40 +457,40 @@ module Google
|
|
456
457
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
457
458
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
458
459
|
#
|
459
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
460
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
460
461
|
# Required. Mask of fields to update. At least one path must be supplied in
|
461
462
|
# this field. The elements of the repeated paths field may only include these
|
462
|
-
# fields from {Google::Cloud::Redis::V1beta1::Instance Instance}:
|
463
|
+
# fields from {::Google::Cloud::Redis::V1beta1::Instance Instance}:
|
463
464
|
#
|
464
465
|
# * `displayName`
|
465
466
|
# * `labels`
|
466
467
|
# * `memorySizeGb`
|
467
468
|
# * `redisConfig`
|
468
|
-
# @param instance [Google::Cloud::Redis::V1beta1::Instance, Hash]
|
469
|
+
# @param instance [::Google::Cloud::Redis::V1beta1::Instance, ::Hash]
|
469
470
|
# Required. Update description.
|
470
471
|
# Only fields specified in update_mask are updated.
|
471
472
|
#
|
472
473
|
# @yield [response, operation] Access the result along with the RPC operation
|
473
|
-
# @yieldparam response [Gapic::Operation]
|
474
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
474
|
+
# @yieldparam response [::Gapic::Operation]
|
475
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
475
476
|
#
|
476
|
-
# @return [Gapic::Operation]
|
477
|
+
# @return [::Gapic::Operation]
|
477
478
|
#
|
478
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
479
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
479
480
|
#
|
480
481
|
def update_instance request, options = nil
|
481
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
482
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
482
483
|
|
483
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1beta1::UpdateInstanceRequest
|
484
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::UpdateInstanceRequest
|
484
485
|
|
485
486
|
# Converts hash and nil to an options object
|
486
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
487
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
487
488
|
|
488
489
|
# Customize the options with defaults
|
489
490
|
metadata = @config.rpcs.update_instance.metadata.to_h
|
490
491
|
|
491
492
|
# Set x-goog-api-client and x-goog-user-project headers
|
492
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
493
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
493
494
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
494
495
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
495
496
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -507,12 +508,12 @@ module Google
|
|
507
508
|
retry_policy: @config.retry_policy
|
508
509
|
|
509
510
|
@cloud_redis_stub.call_rpc :update_instance, request, options: options do |response, operation|
|
510
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
511
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
511
512
|
yield response, operation if block_given?
|
512
513
|
return response
|
513
514
|
end
|
514
|
-
rescue GRPC::BadStatus => e
|
515
|
-
raise Google::Cloud::Error.from_error(e)
|
515
|
+
rescue ::GRPC::BadStatus => e
|
516
|
+
raise ::Google::Cloud::Error.from_error(e)
|
516
517
|
end
|
517
518
|
|
518
519
|
##
|
@@ -521,12 +522,12 @@ module Google
|
|
521
522
|
#
|
522
523
|
# @overload upgrade_instance(request, options = nil)
|
523
524
|
# Pass arguments to `upgrade_instance` via a request object, either of type
|
524
|
-
# {Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest} or an equivalent Hash.
|
525
|
+
# {::Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest} or an equivalent Hash.
|
525
526
|
#
|
526
|
-
# @param request [Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest, Hash]
|
527
|
+
# @param request [::Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest, ::Hash]
|
527
528
|
# A request object representing the call parameters. Required. To specify no
|
528
529
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
529
|
-
# @param options [Gapic::CallOptions, Hash]
|
530
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
530
531
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
531
532
|
#
|
532
533
|
# @overload upgrade_instance(name: nil, redis_version: nil)
|
@@ -534,34 +535,34 @@ module Google
|
|
534
535
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
535
536
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
536
537
|
#
|
537
|
-
# @param name [String]
|
538
|
+
# @param name [::String]
|
538
539
|
# Required. Redis instance resource name using the form:
|
539
540
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
540
541
|
# where `location_id` refers to a GCP region.
|
541
|
-
# @param redis_version [String]
|
542
|
+
# @param redis_version [::String]
|
542
543
|
# Required. Specifies the target version of Redis software to upgrade to.
|
543
544
|
#
|
544
545
|
# @yield [response, operation] Access the result along with the RPC operation
|
545
|
-
# @yieldparam response [Gapic::Operation]
|
546
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
546
|
+
# @yieldparam response [::Gapic::Operation]
|
547
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
547
548
|
#
|
548
|
-
# @return [Gapic::Operation]
|
549
|
+
# @return [::Gapic::Operation]
|
549
550
|
#
|
550
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
551
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
551
552
|
#
|
552
553
|
def upgrade_instance request, options = nil
|
553
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
554
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
554
555
|
|
555
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest
|
556
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest
|
556
557
|
|
557
558
|
# Converts hash and nil to an options object
|
558
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
559
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
559
560
|
|
560
561
|
# Customize the options with defaults
|
561
562
|
metadata = @config.rpcs.upgrade_instance.metadata.to_h
|
562
563
|
|
563
564
|
# Set x-goog-api-client and x-goog-user-project headers
|
564
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
565
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
565
566
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
566
567
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
567
568
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -579,12 +580,12 @@ module Google
|
|
579
580
|
retry_policy: @config.retry_policy
|
580
581
|
|
581
582
|
@cloud_redis_stub.call_rpc :upgrade_instance, request, options: options do |response, operation|
|
582
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
583
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
583
584
|
yield response, operation if block_given?
|
584
585
|
return response
|
585
586
|
end
|
586
|
-
rescue GRPC::BadStatus => e
|
587
|
-
raise Google::Cloud::Error.from_error(e)
|
587
|
+
rescue ::GRPC::BadStatus => e
|
588
|
+
raise ::Google::Cloud::Error.from_error(e)
|
588
589
|
end
|
589
590
|
|
590
591
|
##
|
@@ -599,12 +600,12 @@ module Google
|
|
599
600
|
#
|
600
601
|
# @overload import_instance(request, options = nil)
|
601
602
|
# Pass arguments to `import_instance` via a request object, either of type
|
602
|
-
# {Google::Cloud::Redis::V1beta1::ImportInstanceRequest} or an equivalent Hash.
|
603
|
+
# {::Google::Cloud::Redis::V1beta1::ImportInstanceRequest} or an equivalent Hash.
|
603
604
|
#
|
604
|
-
# @param request [Google::Cloud::Redis::V1beta1::ImportInstanceRequest, Hash]
|
605
|
+
# @param request [::Google::Cloud::Redis::V1beta1::ImportInstanceRequest, ::Hash]
|
605
606
|
# A request object representing the call parameters. Required. To specify no
|
606
607
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
607
|
-
# @param options [Gapic::CallOptions, Hash]
|
608
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
608
609
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
609
610
|
#
|
610
611
|
# @overload import_instance(name: nil, input_config: nil)
|
@@ -612,34 +613,34 @@ module Google
|
|
612
613
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
613
614
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
614
615
|
#
|
615
|
-
# @param name [String]
|
616
|
+
# @param name [::String]
|
616
617
|
# Required. Redis instance resource name using the form:
|
617
618
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
618
619
|
# where `location_id` refers to a GCP region.
|
619
|
-
# @param input_config [Google::Cloud::Redis::V1beta1::InputConfig, Hash]
|
620
|
+
# @param input_config [::Google::Cloud::Redis::V1beta1::InputConfig, ::Hash]
|
620
621
|
# Required. Specify data to be imported.
|
621
622
|
#
|
622
623
|
# @yield [response, operation] Access the result along with the RPC operation
|
623
|
-
# @yieldparam response [Gapic::Operation]
|
624
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
624
|
+
# @yieldparam response [::Gapic::Operation]
|
625
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
625
626
|
#
|
626
|
-
# @return [Gapic::Operation]
|
627
|
+
# @return [::Gapic::Operation]
|
627
628
|
#
|
628
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
629
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
629
630
|
#
|
630
631
|
def import_instance request, options = nil
|
631
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
632
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
632
633
|
|
633
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1beta1::ImportInstanceRequest
|
634
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::ImportInstanceRequest
|
634
635
|
|
635
636
|
# Converts hash and nil to an options object
|
636
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
637
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
637
638
|
|
638
639
|
# Customize the options with defaults
|
639
640
|
metadata = @config.rpcs.import_instance.metadata.to_h
|
640
641
|
|
641
642
|
# Set x-goog-api-client and x-goog-user-project headers
|
642
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
643
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
643
644
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
644
645
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
645
646
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -657,12 +658,12 @@ module Google
|
|
657
658
|
retry_policy: @config.retry_policy
|
658
659
|
|
659
660
|
@cloud_redis_stub.call_rpc :import_instance, request, options: options do |response, operation|
|
660
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
661
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
661
662
|
yield response, operation if block_given?
|
662
663
|
return response
|
663
664
|
end
|
664
|
-
rescue GRPC::BadStatus => e
|
665
|
-
raise Google::Cloud::Error.from_error(e)
|
665
|
+
rescue ::GRPC::BadStatus => e
|
666
|
+
raise ::Google::Cloud::Error.from_error(e)
|
666
667
|
end
|
667
668
|
|
668
669
|
##
|
@@ -675,12 +676,12 @@ module Google
|
|
675
676
|
#
|
676
677
|
# @overload export_instance(request, options = nil)
|
677
678
|
# Pass arguments to `export_instance` via a request object, either of type
|
678
|
-
# {Google::Cloud::Redis::V1beta1::ExportInstanceRequest} or an equivalent Hash.
|
679
|
+
# {::Google::Cloud::Redis::V1beta1::ExportInstanceRequest} or an equivalent Hash.
|
679
680
|
#
|
680
|
-
# @param request [Google::Cloud::Redis::V1beta1::ExportInstanceRequest, Hash]
|
681
|
+
# @param request [::Google::Cloud::Redis::V1beta1::ExportInstanceRequest, ::Hash]
|
681
682
|
# A request object representing the call parameters. Required. To specify no
|
682
683
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
683
|
-
# @param options [Gapic::CallOptions, Hash]
|
684
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
684
685
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
685
686
|
#
|
686
687
|
# @overload export_instance(name: nil, output_config: nil)
|
@@ -688,34 +689,34 @@ module Google
|
|
688
689
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
689
690
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
690
691
|
#
|
691
|
-
# @param name [String]
|
692
|
+
# @param name [::String]
|
692
693
|
# Required. Redis instance resource name using the form:
|
693
694
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
694
695
|
# where `location_id` refers to a GCP region.
|
695
|
-
# @param output_config [Google::Cloud::Redis::V1beta1::OutputConfig, Hash]
|
696
|
+
# @param output_config [::Google::Cloud::Redis::V1beta1::OutputConfig, ::Hash]
|
696
697
|
# Required. Specify data to be exported.
|
697
698
|
#
|
698
699
|
# @yield [response, operation] Access the result along with the RPC operation
|
699
|
-
# @yieldparam response [Gapic::Operation]
|
700
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
700
|
+
# @yieldparam response [::Gapic::Operation]
|
701
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
701
702
|
#
|
702
|
-
# @return [Gapic::Operation]
|
703
|
+
# @return [::Gapic::Operation]
|
703
704
|
#
|
704
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
705
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
705
706
|
#
|
706
707
|
def export_instance request, options = nil
|
707
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
708
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
708
709
|
|
709
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1beta1::ExportInstanceRequest
|
710
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::ExportInstanceRequest
|
710
711
|
|
711
712
|
# Converts hash and nil to an options object
|
712
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
713
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
713
714
|
|
714
715
|
# Customize the options with defaults
|
715
716
|
metadata = @config.rpcs.export_instance.metadata.to_h
|
716
717
|
|
717
718
|
# Set x-goog-api-client and x-goog-user-project headers
|
718
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
719
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
719
720
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
720
721
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
721
722
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -733,12 +734,12 @@ module Google
|
|
733
734
|
retry_policy: @config.retry_policy
|
734
735
|
|
735
736
|
@cloud_redis_stub.call_rpc :export_instance, request, options: options do |response, operation|
|
736
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
737
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
737
738
|
yield response, operation if block_given?
|
738
739
|
return response
|
739
740
|
end
|
740
|
-
rescue GRPC::BadStatus => e
|
741
|
-
raise Google::Cloud::Error.from_error(e)
|
741
|
+
rescue ::GRPC::BadStatus => e
|
742
|
+
raise ::Google::Cloud::Error.from_error(e)
|
742
743
|
end
|
743
744
|
|
744
745
|
##
|
@@ -747,12 +748,12 @@ module Google
|
|
747
748
|
#
|
748
749
|
# @overload failover_instance(request, options = nil)
|
749
750
|
# Pass arguments to `failover_instance` via a request object, either of type
|
750
|
-
# {Google::Cloud::Redis::V1beta1::FailoverInstanceRequest} or an equivalent Hash.
|
751
|
+
# {::Google::Cloud::Redis::V1beta1::FailoverInstanceRequest} or an equivalent Hash.
|
751
752
|
#
|
752
|
-
# @param request [Google::Cloud::Redis::V1beta1::FailoverInstanceRequest, Hash]
|
753
|
+
# @param request [::Google::Cloud::Redis::V1beta1::FailoverInstanceRequest, ::Hash]
|
753
754
|
# A request object representing the call parameters. Required. To specify no
|
754
755
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
755
|
-
# @param options [Gapic::CallOptions, Hash]
|
756
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
756
757
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
757
758
|
#
|
758
759
|
# @overload failover_instance(name: nil, data_protection_mode: nil)
|
@@ -760,35 +761,35 @@ module Google
|
|
760
761
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
761
762
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
762
763
|
#
|
763
|
-
# @param name [String]
|
764
|
+
# @param name [::String]
|
764
765
|
# Required. Redis instance resource name using the form:
|
765
766
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
766
767
|
# where `location_id` refers to a GCP region.
|
767
|
-
# @param data_protection_mode [Google::Cloud::Redis::V1beta1::FailoverInstanceRequest::DataProtectionMode]
|
768
|
+
# @param data_protection_mode [::Google::Cloud::Redis::V1beta1::FailoverInstanceRequest::DataProtectionMode]
|
768
769
|
# Optional. Available data protection modes that the user can choose. If it's
|
769
770
|
# unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
|
770
771
|
#
|
771
772
|
# @yield [response, operation] Access the result along with the RPC operation
|
772
|
-
# @yieldparam response [Gapic::Operation]
|
773
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
773
|
+
# @yieldparam response [::Gapic::Operation]
|
774
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
774
775
|
#
|
775
|
-
# @return [Gapic::Operation]
|
776
|
+
# @return [::Gapic::Operation]
|
776
777
|
#
|
777
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
778
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
778
779
|
#
|
779
780
|
def failover_instance request, options = nil
|
780
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
781
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
781
782
|
|
782
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1beta1::FailoverInstanceRequest
|
783
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::FailoverInstanceRequest
|
783
784
|
|
784
785
|
# Converts hash and nil to an options object
|
785
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
786
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
786
787
|
|
787
788
|
# Customize the options with defaults
|
788
789
|
metadata = @config.rpcs.failover_instance.metadata.to_h
|
789
790
|
|
790
791
|
# Set x-goog-api-client and x-goog-user-project headers
|
791
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
792
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
792
793
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
793
794
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
794
795
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -806,12 +807,12 @@ module Google
|
|
806
807
|
retry_policy: @config.retry_policy
|
807
808
|
|
808
809
|
@cloud_redis_stub.call_rpc :failover_instance, request, options: options do |response, operation|
|
809
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
810
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
810
811
|
yield response, operation if block_given?
|
811
812
|
return response
|
812
813
|
end
|
813
|
-
rescue GRPC::BadStatus => e
|
814
|
-
raise Google::Cloud::Error.from_error(e)
|
814
|
+
rescue ::GRPC::BadStatus => e
|
815
|
+
raise ::Google::Cloud::Error.from_error(e)
|
815
816
|
end
|
816
817
|
|
817
818
|
##
|
@@ -820,12 +821,12 @@ module Google
|
|
820
821
|
#
|
821
822
|
# @overload delete_instance(request, options = nil)
|
822
823
|
# Pass arguments to `delete_instance` via a request object, either of type
|
823
|
-
# {Google::Cloud::Redis::V1beta1::DeleteInstanceRequest} or an equivalent Hash.
|
824
|
+
# {::Google::Cloud::Redis::V1beta1::DeleteInstanceRequest} or an equivalent Hash.
|
824
825
|
#
|
825
|
-
# @param request [Google::Cloud::Redis::V1beta1::DeleteInstanceRequest, Hash]
|
826
|
+
# @param request [::Google::Cloud::Redis::V1beta1::DeleteInstanceRequest, ::Hash]
|
826
827
|
# A request object representing the call parameters. Required. To specify no
|
827
828
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
828
|
-
# @param options [Gapic::CallOptions, Hash]
|
829
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
829
830
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
830
831
|
#
|
831
832
|
# @overload delete_instance(name: nil)
|
@@ -833,32 +834,32 @@ module Google
|
|
833
834
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
834
835
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
835
836
|
#
|
836
|
-
# @param name [String]
|
837
|
+
# @param name [::String]
|
837
838
|
# Required. Redis instance resource name using the form:
|
838
839
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
839
840
|
# where `location_id` refers to a GCP region.
|
840
841
|
#
|
841
842
|
# @yield [response, operation] Access the result along with the RPC operation
|
842
|
-
# @yieldparam response [Gapic::Operation]
|
843
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
843
|
+
# @yieldparam response [::Gapic::Operation]
|
844
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
844
845
|
#
|
845
|
-
# @return [Gapic::Operation]
|
846
|
+
# @return [::Gapic::Operation]
|
846
847
|
#
|
847
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
848
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
848
849
|
#
|
849
850
|
def delete_instance request, options = nil
|
850
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
851
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
851
852
|
|
852
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1beta1::DeleteInstanceRequest
|
853
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::DeleteInstanceRequest
|
853
854
|
|
854
855
|
# Converts hash and nil to an options object
|
855
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
856
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
856
857
|
|
857
858
|
# Customize the options with defaults
|
858
859
|
metadata = @config.rpcs.delete_instance.metadata.to_h
|
859
860
|
|
860
861
|
# Set x-goog-api-client and x-goog-user-project headers
|
861
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
862
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
862
863
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
863
864
|
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
864
865
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -876,12 +877,12 @@ module Google
|
|
876
877
|
retry_policy: @config.retry_policy
|
877
878
|
|
878
879
|
@cloud_redis_stub.call_rpc :delete_instance, request, options: options do |response, operation|
|
879
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
880
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
880
881
|
yield response, operation if block_given?
|
881
882
|
return response
|
882
883
|
end
|
883
|
-
rescue GRPC::BadStatus => e
|
884
|
-
raise Google::Cloud::Error.from_error(e)
|
884
|
+
rescue ::GRPC::BadStatus => e
|
885
|
+
raise ::Google::Cloud::Error.from_error(e)
|
885
886
|
end
|
886
887
|
|
887
888
|
##
|
@@ -891,7 +892,7 @@ module Google
|
|
891
892
|
# providing control over timeouts, retry behavior, logging, transport
|
892
893
|
# parameters, and other low-level controls. Certain parameters can also be
|
893
894
|
# applied individually to specific RPCs. See
|
894
|
-
# {Google::Cloud::Redis::V1beta1::CloudRedis::Client::Configuration::Rpcs}
|
895
|
+
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client::Configuration::Rpcs}
|
895
896
|
# for a list of RPCs that can be configured independently.
|
896
897
|
#
|
897
898
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -902,22 +903,22 @@ module Google
|
|
902
903
|
# To modify the global config, setting the timeout for list_instances
|
903
904
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
904
905
|
#
|
905
|
-
# Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config|
|
906
|
-
# config.timeout =
|
907
|
-
# config.rpcs.list_instances.timeout =
|
906
|
+
# ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config|
|
907
|
+
# config.timeout = 10.0
|
908
|
+
# config.rpcs.list_instances.timeout = 20.0
|
908
909
|
# end
|
909
910
|
#
|
910
911
|
# To apply the above configuration only to a new client:
|
911
912
|
#
|
912
|
-
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
|
913
|
-
# config.timeout =
|
914
|
-
# config.rpcs.list_instances.timeout =
|
913
|
+
# client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config|
|
914
|
+
# config.timeout = 10.0
|
915
|
+
# config.rpcs.list_instances.timeout = 20.0
|
915
916
|
# end
|
916
917
|
#
|
917
918
|
# @!attribute [rw] endpoint
|
918
919
|
# The hostname or hostname:port of the service endpoint.
|
919
920
|
# Defaults to `"redis.googleapis.com"`.
|
920
|
-
# @return [String]
|
921
|
+
# @return [::String]
|
921
922
|
# @!attribute [rw] credentials
|
922
923
|
# Credentials to send with calls. You may provide any of the following types:
|
923
924
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -929,29 +930,29 @@ module Google
|
|
929
930
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
930
931
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
931
932
|
# * (`nil`) indicating no credentials
|
932
|
-
# @return [Object]
|
933
|
+
# @return [::Object]
|
933
934
|
# @!attribute [rw] scope
|
934
935
|
# The OAuth scopes
|
935
|
-
# @return [Array
|
936
|
+
# @return [::Array<::String>]
|
936
937
|
# @!attribute [rw] lib_name
|
937
938
|
# The library name as recorded in instrumentation and logging
|
938
|
-
# @return [String]
|
939
|
+
# @return [::String]
|
939
940
|
# @!attribute [rw] lib_version
|
940
941
|
# The library version as recorded in instrumentation and logging
|
941
|
-
# @return [String]
|
942
|
+
# @return [::String]
|
942
943
|
# @!attribute [rw] channel_args
|
943
944
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
944
945
|
# `GRPC::Core::Channel` object is provided as the credential.
|
945
|
-
# @return [Hash]
|
946
|
+
# @return [::Hash]
|
946
947
|
# @!attribute [rw] interceptors
|
947
948
|
# An array of interceptors that are run before calls are executed.
|
948
|
-
# @return [Array
|
949
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
949
950
|
# @!attribute [rw] timeout
|
950
|
-
# The call timeout in
|
951
|
-
# @return [Numeric]
|
951
|
+
# The call timeout in seconds.
|
952
|
+
# @return [::Numeric]
|
952
953
|
# @!attribute [rw] metadata
|
953
954
|
# Additional gRPC headers to be sent with the call.
|
954
|
-
# @return [Hash{Symbol
|
955
|
+
# @return [::Hash{::Symbol=>::String}]
|
955
956
|
# @!attribute [rw] retry_policy
|
956
957
|
# The retry policy. The value is a hash with the following keys:
|
957
958
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -959,25 +960,29 @@ module Google
|
|
959
960
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
960
961
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
961
962
|
# trigger a retry.
|
962
|
-
# @return [Hash]
|
963
|
+
# @return [::Hash]
|
964
|
+
# @!attribute [rw] quota_project
|
965
|
+
# A separate project against which to charge quota.
|
966
|
+
# @return [::String]
|
963
967
|
#
|
964
968
|
class Configuration
|
965
|
-
extend Gapic::Config
|
969
|
+
extend ::Gapic::Config
|
966
970
|
|
967
|
-
config_attr :endpoint,
|
968
|
-
config_attr :credentials,
|
971
|
+
config_attr :endpoint, "redis.googleapis.com", ::String
|
972
|
+
config_attr :credentials, nil do |value|
|
969
973
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
970
974
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
971
975
|
allowed.any? { |klass| klass === value }
|
972
976
|
end
|
973
|
-
config_attr :scope,
|
974
|
-
config_attr :lib_name,
|
975
|
-
config_attr :lib_version,
|
976
|
-
config_attr(:channel_args,
|
977
|
-
config_attr :interceptors,
|
978
|
-
config_attr :timeout,
|
979
|
-
config_attr :metadata,
|
980
|
-
config_attr :retry_policy,
|
977
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
978
|
+
config_attr :lib_name, nil, ::String, nil
|
979
|
+
config_attr :lib_version, nil, ::String, nil
|
980
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
981
|
+
config_attr :interceptors, nil, ::Array, nil
|
982
|
+
config_attr :timeout, nil, ::Numeric, nil
|
983
|
+
config_attr :metadata, nil, ::Hash, nil
|
984
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
985
|
+
config_attr :quota_project, nil, ::String, nil
|
981
986
|
|
982
987
|
# @private
|
983
988
|
def initialize parent_config = nil
|
@@ -993,7 +998,7 @@ module Google
|
|
993
998
|
def rpcs
|
994
999
|
@rpcs ||= begin
|
995
1000
|
parent_rpcs = nil
|
996
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
1001
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
997
1002
|
Rpcs.new parent_rpcs
|
998
1003
|
end
|
999
1004
|
end
|
@@ -1018,70 +1023,70 @@ module Google
|
|
1018
1023
|
class Rpcs
|
1019
1024
|
##
|
1020
1025
|
# RPC-specific configuration for `list_instances`
|
1021
|
-
# @return [Gapic::Config::Method]
|
1026
|
+
# @return [::Gapic::Config::Method]
|
1022
1027
|
#
|
1023
1028
|
attr_reader :list_instances
|
1024
1029
|
##
|
1025
1030
|
# RPC-specific configuration for `get_instance`
|
1026
|
-
# @return [Gapic::Config::Method]
|
1031
|
+
# @return [::Gapic::Config::Method]
|
1027
1032
|
#
|
1028
1033
|
attr_reader :get_instance
|
1029
1034
|
##
|
1030
1035
|
# RPC-specific configuration for `create_instance`
|
1031
|
-
# @return [Gapic::Config::Method]
|
1036
|
+
# @return [::Gapic::Config::Method]
|
1032
1037
|
#
|
1033
1038
|
attr_reader :create_instance
|
1034
1039
|
##
|
1035
1040
|
# RPC-specific configuration for `update_instance`
|
1036
|
-
# @return [Gapic::Config::Method]
|
1041
|
+
# @return [::Gapic::Config::Method]
|
1037
1042
|
#
|
1038
1043
|
attr_reader :update_instance
|
1039
1044
|
##
|
1040
1045
|
# RPC-specific configuration for `upgrade_instance`
|
1041
|
-
# @return [Gapic::Config::Method]
|
1046
|
+
# @return [::Gapic::Config::Method]
|
1042
1047
|
#
|
1043
1048
|
attr_reader :upgrade_instance
|
1044
1049
|
##
|
1045
1050
|
# RPC-specific configuration for `import_instance`
|
1046
|
-
# @return [Gapic::Config::Method]
|
1051
|
+
# @return [::Gapic::Config::Method]
|
1047
1052
|
#
|
1048
1053
|
attr_reader :import_instance
|
1049
1054
|
##
|
1050
1055
|
# RPC-specific configuration for `export_instance`
|
1051
|
-
# @return [Gapic::Config::Method]
|
1056
|
+
# @return [::Gapic::Config::Method]
|
1052
1057
|
#
|
1053
1058
|
attr_reader :export_instance
|
1054
1059
|
##
|
1055
1060
|
# RPC-specific configuration for `failover_instance`
|
1056
|
-
# @return [Gapic::Config::Method]
|
1061
|
+
# @return [::Gapic::Config::Method]
|
1057
1062
|
#
|
1058
1063
|
attr_reader :failover_instance
|
1059
1064
|
##
|
1060
1065
|
# RPC-specific configuration for `delete_instance`
|
1061
|
-
# @return [Gapic::Config::Method]
|
1066
|
+
# @return [::Gapic::Config::Method]
|
1062
1067
|
#
|
1063
1068
|
attr_reader :delete_instance
|
1064
1069
|
|
1065
1070
|
# @private
|
1066
1071
|
def initialize parent_rpcs = nil
|
1067
1072
|
list_instances_config = parent_rpcs&.list_instances if parent_rpcs&.respond_to? :list_instances
|
1068
|
-
@list_instances = Gapic::Config::Method.new list_instances_config
|
1073
|
+
@list_instances = ::Gapic::Config::Method.new list_instances_config
|
1069
1074
|
get_instance_config = parent_rpcs&.get_instance if parent_rpcs&.respond_to? :get_instance
|
1070
|
-
@get_instance = Gapic::Config::Method.new get_instance_config
|
1075
|
+
@get_instance = ::Gapic::Config::Method.new get_instance_config
|
1071
1076
|
create_instance_config = parent_rpcs&.create_instance if parent_rpcs&.respond_to? :create_instance
|
1072
|
-
@create_instance = Gapic::Config::Method.new create_instance_config
|
1077
|
+
@create_instance = ::Gapic::Config::Method.new create_instance_config
|
1073
1078
|
update_instance_config = parent_rpcs&.update_instance if parent_rpcs&.respond_to? :update_instance
|
1074
|
-
@update_instance = Gapic::Config::Method.new update_instance_config
|
1079
|
+
@update_instance = ::Gapic::Config::Method.new update_instance_config
|
1075
1080
|
upgrade_instance_config = parent_rpcs&.upgrade_instance if parent_rpcs&.respond_to? :upgrade_instance
|
1076
|
-
@upgrade_instance = Gapic::Config::Method.new upgrade_instance_config
|
1081
|
+
@upgrade_instance = ::Gapic::Config::Method.new upgrade_instance_config
|
1077
1082
|
import_instance_config = parent_rpcs&.import_instance if parent_rpcs&.respond_to? :import_instance
|
1078
|
-
@import_instance = Gapic::Config::Method.new import_instance_config
|
1083
|
+
@import_instance = ::Gapic::Config::Method.new import_instance_config
|
1079
1084
|
export_instance_config = parent_rpcs&.export_instance if parent_rpcs&.respond_to? :export_instance
|
1080
|
-
@export_instance = Gapic::Config::Method.new export_instance_config
|
1085
|
+
@export_instance = ::Gapic::Config::Method.new export_instance_config
|
1081
1086
|
failover_instance_config = parent_rpcs&.failover_instance if parent_rpcs&.respond_to? :failover_instance
|
1082
|
-
@failover_instance = Gapic::Config::Method.new failover_instance_config
|
1087
|
+
@failover_instance = ::Gapic::Config::Method.new failover_instance_config
|
1083
1088
|
delete_instance_config = parent_rpcs&.delete_instance if parent_rpcs&.respond_to? :delete_instance
|
1084
|
-
@delete_instance = Gapic::Config::Method.new delete_instance_config
|
1089
|
+
@delete_instance = ::Gapic::Config::Method.new delete_instance_config
|
1085
1090
|
|
1086
1091
|
yield self if block_given?
|
1087
1092
|
end
|