google-cloud-redis-v1 0.1.0 → 0.1.1

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: 7b63e323f187095977bdfa9a03fd5db8b0d0342e51393e121270f0df28c74629
4
- data.tar.gz: 4970fd7471dc313ca0709f302f97d02ac88897abb977600fa9e93a7327d301af
3
+ metadata.gz: 96e3dfdba6283c5e01b9cd277897b83ce9c7ced88c26a24e574cb2429f6caf1d
4
+ data.tar.gz: f7e60670c1f2faa913043dc2e9cabf34ebeb8381960e53f820399aa59709ef1e
5
5
  SHA512:
6
- metadata.gz: 9769939290b339c6c5479e6f59e52efa275744e79ceda3f0e4658102f830c4bc73237c6e6b9c2234328e4c4bb09f6630099c1317a55609b920e117f1d77d52dc
7
- data.tar.gz: 5259af8ffd676b03c7a81d7b356c8cedc42900a79080a01bb8ce315c57a5657ea182d7635f07c06a3ff264ba05e852a8f5afb18ae67bbed1c0d6eda937605dcb
6
+ metadata.gz: 06b41c996afa7d0e0a296b17108ce9aaf0e760153409035462d496cf842c8515332443736dbaf3a3d102e3cb1f9df0b2ccb694ff336a63de0f2bee20bb07bc42
7
+ data.tar.gz: eef8724ea179d54baed22be7bc4e7bf007be0b77bb9c75e55e26268b59bce4936ea6f6734efd2f4caef534ee485416f2f56f11ef356d90dca530768a3915fdda
data/AUTHENTICATION.md CHANGED
@@ -27,7 +27,7 @@ export REDIS_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/redis/v1"
29
29
 
30
- client = Google::Cloud::Redis::V1::CloudRedis::Client.new
30
+ client = ::Google::Cloud::Redis::V1::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-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {Google::Cloud::Redis::V1::CloudRedis::Credentials}):
67
+ {::Google::Cloud::Redis::V1::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/v1"
77
77
 
78
78
  ENV["REDIS_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
- client = Google::Cloud::Redis::V1::CloudRedis::Client.new
80
+ client = ::Google::Cloud::Redis::V1::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/v1"
90
90
 
91
- client = Google::Cloud::Redis::V1::CloudRedis::Client.new do |config|
91
+ client = ::Google::Cloud::Redis::V1::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/v1"
100
100
 
101
- Google::Cloud::Redis::V1::CloudRedis::Client.configure do |config|
101
+ ::Google::Cloud::Redis::V1::CloudRedis::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
103
103
  end
104
104
 
105
- client = Google::Cloud::Redis::V1::CloudRedis::Client.new
105
+ client = ::Google::Cloud::Redis::V1::CloudRedis::Client.new
106
106
  ```
107
107
 
108
108
  ### Cloud SDK
data/README.md CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
25
25
  ```ruby
26
26
  require "google/cloud/redis/v1"
27
27
 
28
- client = Google::Cloud::Redis::V1::CloudRedis::Client.new
28
+ client = ::Google::Cloud::Redis::V1::CloudRedis::Client.new
29
29
  request = my_create_request
30
30
  response = client.list_instances request
31
31
  ```
@@ -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/v1"
29
- # client = Google::Cloud::Redis::V1::CloudRedis::Client.new
29
+ # client = ::Google::Cloud::Redis::V1::CloudRedis::Client.new
30
30
  #
31
31
  module V1
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/v1/cloud_redis"
54
- # client = Google::Cloud::Redis::V1::CloudRedis::Client.new
54
+ # client = ::Google::Cloud::Redis::V1::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::V1::CloudRedis::Client::Configuration}
55
+ # See {::Google::Cloud::Redis::V1::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::V1::CloudRedis::Client.configure do |config|
63
- # config.timeout = 10_000
62
+ # ::Google::Cloud::Redis::V1::CloudRedis::Client.configure do |config|
63
+ # config.timeout = 10.0
64
64
  # end
65
65
  #
66
66
  # @yield [config] Configure the Client client.
@@ -108,7 +108,7 @@ module Google
108
108
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
109
109
  # should be made on {Client.configure}.
110
110
  #
111
- # See {Google::Cloud::Redis::V1::CloudRedis::Client::Configuration}
111
+ # See {::Google::Cloud::Redis::V1::CloudRedis::Client::Configuration}
112
112
  # for a description of the configuration fields.
113
113
  #
114
114
  # @yield [config] Configure the Client client.
@@ -129,13 +129,13 @@ module Google
129
129
  # To create a new CloudRedis client with the default
130
130
  # configuration:
131
131
  #
132
- # client = Google::Cloud::Redis::V1::CloudRedis::Client.new
132
+ # client = ::Google::Cloud::Redis::V1::CloudRedis::Client.new
133
133
  #
134
134
  # To create a new CloudRedis client with a custom
135
135
  # configuration:
136
136
  #
137
- # client = Google::Cloud::Redis::V1::CloudRedis::Client.new do |config|
138
- # config.timeout = 10_000
137
+ # client = ::Google::Cloud::Redis::V1::CloudRedis::Client.new do |config|
138
+ # config.timeout = 10.0
139
139
  # end
140
140
  #
141
141
  # @yield [config] Configure the CloudRedis client.
@@ -167,8 +167,8 @@ module Google
167
167
  config.endpoint = @config.endpoint
168
168
  end
169
169
 
170
- @cloud_redis_stub = Gapic::ServiceStub.new(
171
- Google::Cloud::Redis::V1::CloudRedis::Stub,
170
+ @cloud_redis_stub = ::Gapic::ServiceStub.new(
171
+ ::Google::Cloud::Redis::V1::CloudRedis::Stub,
172
172
  credentials: credentials,
173
173
  endpoint: @config.endpoint,
174
174
  channel_args: @config.channel_args,
@@ -179,7 +179,7 @@ module Google
179
179
  ##
180
180
  # Get the associated client for long-running operations.
181
181
  #
182
- # @return [Google::Cloud::Redis::V1::CloudRedis::Operations]
182
+ # @return [::Google::Cloud::Redis::V1::CloudRedis::Operations]
183
183
  #
184
184
  attr_reader :operations_client
185
185
 
@@ -198,12 +198,12 @@ module Google
198
198
  #
199
199
  # @overload list_instances(request, options = nil)
200
200
  # Pass arguments to `list_instances` via a request object, either of type
201
- # {Google::Cloud::Redis::V1::ListInstancesRequest} or an equivalent Hash.
201
+ # {::Google::Cloud::Redis::V1::ListInstancesRequest} or an equivalent Hash.
202
202
  #
203
- # @param request [Google::Cloud::Redis::V1::ListInstancesRequest, Hash]
203
+ # @param request [::Google::Cloud::Redis::V1::ListInstancesRequest, ::Hash]
204
204
  # A request object representing the call parameters. Required. To specify no
205
205
  # parameters, or to keep all the default parameter values, pass an empty Hash.
206
- # @param options [Gapic::CallOptions, Hash]
206
+ # @param options [::Gapic::CallOptions, ::Hash]
207
207
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
208
208
  #
209
209
  # @overload list_instances(parent: nil, page_size: nil, page_token: nil)
@@ -211,43 +211,43 @@ module Google
211
211
  # least one keyword argument is required. To specify no parameters, or to keep all
212
212
  # the default parameter values, pass an empty Hash as a request object (see above).
213
213
  #
214
- # @param parent [String]
214
+ # @param parent [::String]
215
215
  # Required. The resource name of the instance location using the form:
216
216
  # `projects/{project_id}/locations/{location_id}`
217
217
  # where `location_id` refers to a GCP region.
218
- # @param page_size [Integer]
218
+ # @param page_size [::Integer]
219
219
  # The maximum number of items to return.
220
220
  #
221
221
  # If not specified, a default value of 1000 will be used by the service.
222
222
  # Regardless of the page_size value, the response may include a partial list
223
223
  # and a caller should only rely on response's
224
- # {Google::Cloud::Redis::V1::ListInstancesResponse#next_page_token `next_page_token`}
224
+ # {::Google::Cloud::Redis::V1::ListInstancesResponse#next_page_token `next_page_token`}
225
225
  # to determine if there are more instances left to be queried.
226
- # @param page_token [String]
226
+ # @param page_token [::String]
227
227
  # The `next_page_token` value returned from a previous
228
- # {Google::Cloud::Redis::V1::CloudRedis::Client#list_instances ListInstances} request, if any.
228
+ # {::Google::Cloud::Redis::V1::CloudRedis::Client#list_instances ListInstances} request, if any.
229
229
  #
230
230
  # @yield [response, operation] Access the result along with the RPC operation
231
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Redis::V1::Instance>]
232
- # @yieldparam operation [GRPC::ActiveCall::Operation]
231
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Redis::V1::Instance>]
232
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
233
233
  #
234
- # @return [Gapic::PagedEnumerable<Google::Cloud::Redis::V1::Instance>]
234
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Redis::V1::Instance>]
235
235
  #
236
- # @raise [Google::Cloud::Error] if the RPC is aborted.
236
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
237
237
  #
238
238
  def list_instances request, options = nil
239
- raise ArgumentError, "request must be provided" if request.nil?
239
+ raise ::ArgumentError, "request must be provided" if request.nil?
240
240
 
241
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1::ListInstancesRequest
241
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1::ListInstancesRequest
242
242
 
243
243
  # Converts hash and nil to an options object
244
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
244
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
245
245
 
246
246
  # Customize the options with defaults
247
247
  metadata = @config.rpcs.list_instances.metadata.to_h
248
248
 
249
249
  # Set x-goog-api-client and x-goog-user-project headers
250
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
250
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
251
251
  lib_name: @config.lib_name, lib_version: @config.lib_version,
252
252
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
253
253
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -265,12 +265,12 @@ module Google
265
265
  retry_policy: @config.retry_policy
266
266
 
267
267
  @cloud_redis_stub.call_rpc :list_instances, request, options: options do |response, operation|
268
- response = Gapic::PagedEnumerable.new @cloud_redis_stub, :list_instances, request, response, operation, options
268
+ response = ::Gapic::PagedEnumerable.new @cloud_redis_stub, :list_instances, request, response, operation, options
269
269
  yield response, operation if block_given?
270
270
  return response
271
271
  end
272
- rescue GRPC::BadStatus => e
273
- raise Google::Cloud::Error.from_error(e)
272
+ rescue ::GRPC::BadStatus => e
273
+ raise ::Google::Cloud::Error.from_error(e)
274
274
  end
275
275
 
276
276
  ##
@@ -278,12 +278,12 @@ module Google
278
278
  #
279
279
  # @overload get_instance(request, options = nil)
280
280
  # Pass arguments to `get_instance` via a request object, either of type
281
- # {Google::Cloud::Redis::V1::GetInstanceRequest} or an equivalent Hash.
281
+ # {::Google::Cloud::Redis::V1::GetInstanceRequest} or an equivalent Hash.
282
282
  #
283
- # @param request [Google::Cloud::Redis::V1::GetInstanceRequest, Hash]
283
+ # @param request [::Google::Cloud::Redis::V1::GetInstanceRequest, ::Hash]
284
284
  # A request object representing the call parameters. Required. To specify no
285
285
  # parameters, or to keep all the default parameter values, pass an empty Hash.
286
- # @param options [Gapic::CallOptions, Hash]
286
+ # @param options [::Gapic::CallOptions, ::Hash]
287
287
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
288
288
  #
289
289
  # @overload get_instance(name: nil)
@@ -291,32 +291,32 @@ module Google
291
291
  # least one keyword argument is required. To specify no parameters, or to keep all
292
292
  # the default parameter values, pass an empty Hash as a request object (see above).
293
293
  #
294
- # @param name [String]
294
+ # @param name [::String]
295
295
  # Required. Redis instance resource name using the form:
296
296
  # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
297
297
  # where `location_id` refers to a GCP region.
298
298
  #
299
299
  # @yield [response, operation] Access the result along with the RPC operation
300
- # @yieldparam response [Google::Cloud::Redis::V1::Instance]
301
- # @yieldparam operation [GRPC::ActiveCall::Operation]
300
+ # @yieldparam response [::Google::Cloud::Redis::V1::Instance]
301
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
302
302
  #
303
- # @return [Google::Cloud::Redis::V1::Instance]
303
+ # @return [::Google::Cloud::Redis::V1::Instance]
304
304
  #
305
- # @raise [Google::Cloud::Error] if the RPC is aborted.
305
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
306
306
  #
307
307
  def get_instance request, options = nil
308
- raise ArgumentError, "request must be provided" if request.nil?
308
+ raise ::ArgumentError, "request must be provided" if request.nil?
309
309
 
310
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1::GetInstanceRequest
310
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1::GetInstanceRequest
311
311
 
312
312
  # Converts hash and nil to an options object
313
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
313
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
314
314
 
315
315
  # Customize the options with defaults
316
316
  metadata = @config.rpcs.get_instance.metadata.to_h
317
317
 
318
318
  # Set x-goog-api-client and x-goog-user-project headers
319
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
319
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
320
320
  lib_name: @config.lib_name, lib_version: @config.lib_version,
321
321
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
322
322
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -337,8 +337,8 @@ module Google
337
337
  yield response, operation if block_given?
338
338
  return response
339
339
  end
340
- rescue GRPC::BadStatus => e
341
- raise Google::Cloud::Error.from_error(e)
340
+ rescue ::GRPC::BadStatus => e
341
+ raise ::Google::Cloud::Error.from_error(e)
342
342
  end
343
343
 
344
344
  ##
@@ -357,12 +357,12 @@ module Google
357
357
  #
358
358
  # @overload create_instance(request, options = nil)
359
359
  # Pass arguments to `create_instance` via a request object, either of type
360
- # {Google::Cloud::Redis::V1::CreateInstanceRequest} or an equivalent Hash.
360
+ # {::Google::Cloud::Redis::V1::CreateInstanceRequest} or an equivalent Hash.
361
361
  #
362
- # @param request [Google::Cloud::Redis::V1::CreateInstanceRequest, Hash]
362
+ # @param request [::Google::Cloud::Redis::V1::CreateInstanceRequest, ::Hash]
363
363
  # A request object representing the call parameters. Required. To specify no
364
364
  # parameters, or to keep all the default parameter values, pass an empty Hash.
365
- # @param options [Gapic::CallOptions, Hash]
365
+ # @param options [::Gapic::CallOptions, ::Hash]
366
366
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
367
367
  #
368
368
  # @overload create_instance(parent: nil, instance_id: nil, instance: nil)
@@ -370,11 +370,11 @@ module Google
370
370
  # least one keyword argument is required. To specify no parameters, or to keep all
371
371
  # the default parameter values, pass an empty Hash as a request object (see above).
372
372
  #
373
- # @param parent [String]
373
+ # @param parent [::String]
374
374
  # Required. The resource name of the instance location using the form:
375
375
  # `projects/{project_id}/locations/{location_id}`
376
376
  # where `location_id` refers to a GCP region.
377
- # @param instance_id [String]
377
+ # @param instance_id [::String]
378
378
  # Required. The logical name of the Redis instance in the customer project
379
379
  # with the following restrictions:
380
380
  #
@@ -383,30 +383,30 @@ module Google
383
383
  # * Must be between 1-40 characters.
384
384
  # * Must end with a number or a letter.
385
385
  # * Must be unique within the customer project / location
386
- # @param instance [Google::Cloud::Redis::V1::Instance, Hash]
386
+ # @param instance [::Google::Cloud::Redis::V1::Instance, ::Hash]
387
387
  # Required. A Redis [Instance] resource
388
388
  #
389
389
  # @yield [response, operation] Access the result along with the RPC operation
390
- # @yieldparam response [Gapic::Operation]
391
- # @yieldparam operation [GRPC::ActiveCall::Operation]
390
+ # @yieldparam response [::Gapic::Operation]
391
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
392
392
  #
393
- # @return [Gapic::Operation]
393
+ # @return [::Gapic::Operation]
394
394
  #
395
- # @raise [Google::Cloud::Error] if the RPC is aborted.
395
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
396
396
  #
397
397
  def create_instance request, options = nil
398
- raise ArgumentError, "request must be provided" if request.nil?
398
+ raise ::ArgumentError, "request must be provided" if request.nil?
399
399
 
400
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1::CreateInstanceRequest
400
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1::CreateInstanceRequest
401
401
 
402
402
  # Converts hash and nil to an options object
403
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
403
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
404
404
 
405
405
  # Customize the options with defaults
406
406
  metadata = @config.rpcs.create_instance.metadata.to_h
407
407
 
408
408
  # Set x-goog-api-client and x-goog-user-project headers
409
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
409
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
410
410
  lib_name: @config.lib_name, lib_version: @config.lib_version,
411
411
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
412
412
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -424,12 +424,12 @@ module Google
424
424
  retry_policy: @config.retry_policy
425
425
 
426
426
  @cloud_redis_stub.call_rpc :create_instance, request, options: options do |response, operation|
427
- response = Gapic::Operation.new response, @operations_client, options: options
427
+ response = ::Gapic::Operation.new response, @operations_client, options: options
428
428
  yield response, operation if block_given?
429
429
  return response
430
430
  end
431
- rescue GRPC::BadStatus => e
432
- raise Google::Cloud::Error.from_error(e)
431
+ rescue ::GRPC::BadStatus => e
432
+ raise ::Google::Cloud::Error.from_error(e)
433
433
  end
434
434
 
435
435
  ##
@@ -441,12 +441,12 @@ module Google
441
441
  #
442
442
  # @overload update_instance(request, options = nil)
443
443
  # Pass arguments to `update_instance` via a request object, either of type
444
- # {Google::Cloud::Redis::V1::UpdateInstanceRequest} or an equivalent Hash.
444
+ # {::Google::Cloud::Redis::V1::UpdateInstanceRequest} or an equivalent Hash.
445
445
  #
446
- # @param request [Google::Cloud::Redis::V1::UpdateInstanceRequest, Hash]
446
+ # @param request [::Google::Cloud::Redis::V1::UpdateInstanceRequest, ::Hash]
447
447
  # A request object representing the call parameters. Required. To specify no
448
448
  # parameters, or to keep all the default parameter values, pass an empty Hash.
449
- # @param options [Gapic::CallOptions, Hash]
449
+ # @param options [::Gapic::CallOptions, ::Hash]
450
450
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
451
451
  #
452
452
  # @overload update_instance(update_mask: nil, instance: nil)
@@ -454,40 +454,40 @@ module Google
454
454
  # least one keyword argument is required. To specify no parameters, or to keep all
455
455
  # the default parameter values, pass an empty Hash as a request object (see above).
456
456
  #
457
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
457
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
458
458
  # Required. Mask of fields to update. At least one path must be supplied in
459
459
  # this field. The elements of the repeated paths field may only include these
460
- # fields from {Google::Cloud::Redis::V1::Instance Instance}:
460
+ # fields from {::Google::Cloud::Redis::V1::Instance Instance}:
461
461
  #
462
462
  # * `displayName`
463
463
  # * `labels`
464
464
  # * `memorySizeGb`
465
465
  # * `redisConfig`
466
- # @param instance [Google::Cloud::Redis::V1::Instance, Hash]
466
+ # @param instance [::Google::Cloud::Redis::V1::Instance, ::Hash]
467
467
  # Required. Update description.
468
468
  # Only fields specified in update_mask are updated.
469
469
  #
470
470
  # @yield [response, operation] Access the result along with the RPC operation
471
- # @yieldparam response [Gapic::Operation]
472
- # @yieldparam operation [GRPC::ActiveCall::Operation]
471
+ # @yieldparam response [::Gapic::Operation]
472
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
473
473
  #
474
- # @return [Gapic::Operation]
474
+ # @return [::Gapic::Operation]
475
475
  #
476
- # @raise [Google::Cloud::Error] if the RPC is aborted.
476
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
477
477
  #
478
478
  def update_instance request, options = nil
479
- raise ArgumentError, "request must be provided" if request.nil?
479
+ raise ::ArgumentError, "request must be provided" if request.nil?
480
480
 
481
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1::UpdateInstanceRequest
481
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1::UpdateInstanceRequest
482
482
 
483
483
  # Converts hash and nil to an options object
484
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
484
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
485
485
 
486
486
  # Customize the options with defaults
487
487
  metadata = @config.rpcs.update_instance.metadata.to_h
488
488
 
489
489
  # Set x-goog-api-client and x-goog-user-project headers
490
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
490
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
491
491
  lib_name: @config.lib_name, lib_version: @config.lib_version,
492
492
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
493
493
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -505,12 +505,12 @@ module Google
505
505
  retry_policy: @config.retry_policy
506
506
 
507
507
  @cloud_redis_stub.call_rpc :update_instance, request, options: options do |response, operation|
508
- response = Gapic::Operation.new response, @operations_client, options: options
508
+ response = ::Gapic::Operation.new response, @operations_client, options: options
509
509
  yield response, operation if block_given?
510
510
  return response
511
511
  end
512
- rescue GRPC::BadStatus => e
513
- raise Google::Cloud::Error.from_error(e)
512
+ rescue ::GRPC::BadStatus => e
513
+ raise ::Google::Cloud::Error.from_error(e)
514
514
  end
515
515
 
516
516
  ##
@@ -525,12 +525,12 @@ module Google
525
525
  #
526
526
  # @overload import_instance(request, options = nil)
527
527
  # Pass arguments to `import_instance` via a request object, either of type
528
- # {Google::Cloud::Redis::V1::ImportInstanceRequest} or an equivalent Hash.
528
+ # {::Google::Cloud::Redis::V1::ImportInstanceRequest} or an equivalent Hash.
529
529
  #
530
- # @param request [Google::Cloud::Redis::V1::ImportInstanceRequest, Hash]
530
+ # @param request [::Google::Cloud::Redis::V1::ImportInstanceRequest, ::Hash]
531
531
  # A request object representing the call parameters. Required. To specify no
532
532
  # parameters, or to keep all the default parameter values, pass an empty Hash.
533
- # @param options [Gapic::CallOptions, Hash]
533
+ # @param options [::Gapic::CallOptions, ::Hash]
534
534
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
535
535
  #
536
536
  # @overload import_instance(name: nil, input_config: nil)
@@ -538,34 +538,34 @@ module Google
538
538
  # least one keyword argument is required. To specify no parameters, or to keep all
539
539
  # the default parameter values, pass an empty Hash as a request object (see above).
540
540
  #
541
- # @param name [String]
541
+ # @param name [::String]
542
542
  # Required. Redis instance resource name using the form:
543
543
  # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
544
544
  # where `location_id` refers to a GCP region.
545
- # @param input_config [Google::Cloud::Redis::V1::InputConfig, Hash]
545
+ # @param input_config [::Google::Cloud::Redis::V1::InputConfig, ::Hash]
546
546
  # Required. Specify data to be imported.
547
547
  #
548
548
  # @yield [response, operation] Access the result along with the RPC operation
549
- # @yieldparam response [Gapic::Operation]
550
- # @yieldparam operation [GRPC::ActiveCall::Operation]
549
+ # @yieldparam response [::Gapic::Operation]
550
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
551
551
  #
552
- # @return [Gapic::Operation]
552
+ # @return [::Gapic::Operation]
553
553
  #
554
- # @raise [Google::Cloud::Error] if the RPC is aborted.
554
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
555
555
  #
556
556
  def import_instance request, options = nil
557
- raise ArgumentError, "request must be provided" if request.nil?
557
+ raise ::ArgumentError, "request must be provided" if request.nil?
558
558
 
559
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1::ImportInstanceRequest
559
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1::ImportInstanceRequest
560
560
 
561
561
  # Converts hash and nil to an options object
562
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
562
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
563
563
 
564
564
  # Customize the options with defaults
565
565
  metadata = @config.rpcs.import_instance.metadata.to_h
566
566
 
567
567
  # Set x-goog-api-client and x-goog-user-project headers
568
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
568
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
569
569
  lib_name: @config.lib_name, lib_version: @config.lib_version,
570
570
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
571
571
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -583,12 +583,12 @@ module Google
583
583
  retry_policy: @config.retry_policy
584
584
 
585
585
  @cloud_redis_stub.call_rpc :import_instance, request, options: options do |response, operation|
586
- response = Gapic::Operation.new response, @operations_client, options: options
586
+ response = ::Gapic::Operation.new response, @operations_client, options: options
587
587
  yield response, operation if block_given?
588
588
  return response
589
589
  end
590
- rescue GRPC::BadStatus => e
591
- raise Google::Cloud::Error.from_error(e)
590
+ rescue ::GRPC::BadStatus => e
591
+ raise ::Google::Cloud::Error.from_error(e)
592
592
  end
593
593
 
594
594
  ##
@@ -601,12 +601,12 @@ module Google
601
601
  #
602
602
  # @overload export_instance(request, options = nil)
603
603
  # Pass arguments to `export_instance` via a request object, either of type
604
- # {Google::Cloud::Redis::V1::ExportInstanceRequest} or an equivalent Hash.
604
+ # {::Google::Cloud::Redis::V1::ExportInstanceRequest} or an equivalent Hash.
605
605
  #
606
- # @param request [Google::Cloud::Redis::V1::ExportInstanceRequest, Hash]
606
+ # @param request [::Google::Cloud::Redis::V1::ExportInstanceRequest, ::Hash]
607
607
  # A request object representing the call parameters. Required. To specify no
608
608
  # parameters, or to keep all the default parameter values, pass an empty Hash.
609
- # @param options [Gapic::CallOptions, Hash]
609
+ # @param options [::Gapic::CallOptions, ::Hash]
610
610
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
611
611
  #
612
612
  # @overload export_instance(name: nil, output_config: nil)
@@ -614,34 +614,34 @@ module Google
614
614
  # least one keyword argument is required. To specify no parameters, or to keep all
615
615
  # the default parameter values, pass an empty Hash as a request object (see above).
616
616
  #
617
- # @param name [String]
617
+ # @param name [::String]
618
618
  # Required. Redis instance resource name using the form:
619
619
  # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
620
620
  # where `location_id` refers to a GCP region.
621
- # @param output_config [Google::Cloud::Redis::V1::OutputConfig, Hash]
621
+ # @param output_config [::Google::Cloud::Redis::V1::OutputConfig, ::Hash]
622
622
  # Required. Specify data to be exported.
623
623
  #
624
624
  # @yield [response, operation] Access the result along with the RPC operation
625
- # @yieldparam response [Gapic::Operation]
626
- # @yieldparam operation [GRPC::ActiveCall::Operation]
625
+ # @yieldparam response [::Gapic::Operation]
626
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
627
627
  #
628
- # @return [Gapic::Operation]
628
+ # @return [::Gapic::Operation]
629
629
  #
630
- # @raise [Google::Cloud::Error] if the RPC is aborted.
630
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
631
631
  #
632
632
  def export_instance request, options = nil
633
- raise ArgumentError, "request must be provided" if request.nil?
633
+ raise ::ArgumentError, "request must be provided" if request.nil?
634
634
 
635
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1::ExportInstanceRequest
635
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1::ExportInstanceRequest
636
636
 
637
637
  # Converts hash and nil to an options object
638
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
638
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
639
639
 
640
640
  # Customize the options with defaults
641
641
  metadata = @config.rpcs.export_instance.metadata.to_h
642
642
 
643
643
  # Set x-goog-api-client and x-goog-user-project headers
644
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
644
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
645
645
  lib_name: @config.lib_name, lib_version: @config.lib_version,
646
646
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
647
647
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -659,12 +659,12 @@ module Google
659
659
  retry_policy: @config.retry_policy
660
660
 
661
661
  @cloud_redis_stub.call_rpc :export_instance, request, options: options do |response, operation|
662
- response = Gapic::Operation.new response, @operations_client, options: options
662
+ response = ::Gapic::Operation.new response, @operations_client, options: options
663
663
  yield response, operation if block_given?
664
664
  return response
665
665
  end
666
- rescue GRPC::BadStatus => e
667
- raise Google::Cloud::Error.from_error(e)
666
+ rescue ::GRPC::BadStatus => e
667
+ raise ::Google::Cloud::Error.from_error(e)
668
668
  end
669
669
 
670
670
  ##
@@ -673,12 +673,12 @@ module Google
673
673
  #
674
674
  # @overload failover_instance(request, options = nil)
675
675
  # Pass arguments to `failover_instance` via a request object, either of type
676
- # {Google::Cloud::Redis::V1::FailoverInstanceRequest} or an equivalent Hash.
676
+ # {::Google::Cloud::Redis::V1::FailoverInstanceRequest} or an equivalent Hash.
677
677
  #
678
- # @param request [Google::Cloud::Redis::V1::FailoverInstanceRequest, Hash]
678
+ # @param request [::Google::Cloud::Redis::V1::FailoverInstanceRequest, ::Hash]
679
679
  # A request object representing the call parameters. Required. To specify no
680
680
  # parameters, or to keep all the default parameter values, pass an empty Hash.
681
- # @param options [Gapic::CallOptions, Hash]
681
+ # @param options [::Gapic::CallOptions, ::Hash]
682
682
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
683
683
  #
684
684
  # @overload failover_instance(name: nil, data_protection_mode: nil)
@@ -686,35 +686,35 @@ module Google
686
686
  # least one keyword argument is required. To specify no parameters, or to keep all
687
687
  # the default parameter values, pass an empty Hash as a request object (see above).
688
688
  #
689
- # @param name [String]
689
+ # @param name [::String]
690
690
  # Required. Redis instance resource name using the form:
691
691
  # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
692
692
  # where `location_id` refers to a GCP region.
693
- # @param data_protection_mode [Google::Cloud::Redis::V1::FailoverInstanceRequest::DataProtectionMode]
693
+ # @param data_protection_mode [::Google::Cloud::Redis::V1::FailoverInstanceRequest::DataProtectionMode]
694
694
  # Optional. Available data protection modes that the user can choose. If it's
695
695
  # unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
696
696
  #
697
697
  # @yield [response, operation] Access the result along with the RPC operation
698
- # @yieldparam response [Gapic::Operation]
699
- # @yieldparam operation [GRPC::ActiveCall::Operation]
698
+ # @yieldparam response [::Gapic::Operation]
699
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
700
700
  #
701
- # @return [Gapic::Operation]
701
+ # @return [::Gapic::Operation]
702
702
  #
703
- # @raise [Google::Cloud::Error] if the RPC is aborted.
703
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
704
704
  #
705
705
  def failover_instance request, options = nil
706
- raise ArgumentError, "request must be provided" if request.nil?
706
+ raise ::ArgumentError, "request must be provided" if request.nil?
707
707
 
708
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1::FailoverInstanceRequest
708
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1::FailoverInstanceRequest
709
709
 
710
710
  # Converts hash and nil to an options object
711
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
711
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
712
712
 
713
713
  # Customize the options with defaults
714
714
  metadata = @config.rpcs.failover_instance.metadata.to_h
715
715
 
716
716
  # Set x-goog-api-client and x-goog-user-project headers
717
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
717
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
718
718
  lib_name: @config.lib_name, lib_version: @config.lib_version,
719
719
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
720
720
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -732,12 +732,12 @@ module Google
732
732
  retry_policy: @config.retry_policy
733
733
 
734
734
  @cloud_redis_stub.call_rpc :failover_instance, request, options: options do |response, operation|
735
- response = Gapic::Operation.new response, @operations_client, options: options
735
+ response = ::Gapic::Operation.new response, @operations_client, options: options
736
736
  yield response, operation if block_given?
737
737
  return response
738
738
  end
739
- rescue GRPC::BadStatus => e
740
- raise Google::Cloud::Error.from_error(e)
739
+ rescue ::GRPC::BadStatus => e
740
+ raise ::Google::Cloud::Error.from_error(e)
741
741
  end
742
742
 
743
743
  ##
@@ -746,12 +746,12 @@ module Google
746
746
  #
747
747
  # @overload delete_instance(request, options = nil)
748
748
  # Pass arguments to `delete_instance` via a request object, either of type
749
- # {Google::Cloud::Redis::V1::DeleteInstanceRequest} or an equivalent Hash.
749
+ # {::Google::Cloud::Redis::V1::DeleteInstanceRequest} or an equivalent Hash.
750
750
  #
751
- # @param request [Google::Cloud::Redis::V1::DeleteInstanceRequest, Hash]
751
+ # @param request [::Google::Cloud::Redis::V1::DeleteInstanceRequest, ::Hash]
752
752
  # A request object representing the call parameters. Required. To specify no
753
753
  # parameters, or to keep all the default parameter values, pass an empty Hash.
754
- # @param options [Gapic::CallOptions, Hash]
754
+ # @param options [::Gapic::CallOptions, ::Hash]
755
755
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
756
756
  #
757
757
  # @overload delete_instance(name: nil)
@@ -759,32 +759,32 @@ module Google
759
759
  # least one keyword argument is required. To specify no parameters, or to keep all
760
760
  # the default parameter values, pass an empty Hash as a request object (see above).
761
761
  #
762
- # @param name [String]
762
+ # @param name [::String]
763
763
  # Required. Redis instance resource name using the form:
764
764
  # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
765
765
  # where `location_id` refers to a GCP region.
766
766
  #
767
767
  # @yield [response, operation] Access the result along with the RPC operation
768
- # @yieldparam response [Gapic::Operation]
769
- # @yieldparam operation [GRPC::ActiveCall::Operation]
768
+ # @yieldparam response [::Gapic::Operation]
769
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
770
770
  #
771
- # @return [Gapic::Operation]
771
+ # @return [::Gapic::Operation]
772
772
  #
773
- # @raise [Google::Cloud::Error] if the RPC is aborted.
773
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
774
774
  #
775
775
  def delete_instance request, options = nil
776
- raise ArgumentError, "request must be provided" if request.nil?
776
+ raise ::ArgumentError, "request must be provided" if request.nil?
777
777
 
778
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Redis::V1::DeleteInstanceRequest
778
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1::DeleteInstanceRequest
779
779
 
780
780
  # Converts hash and nil to an options object
781
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
781
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
782
782
 
783
783
  # Customize the options with defaults
784
784
  metadata = @config.rpcs.delete_instance.metadata.to_h
785
785
 
786
786
  # Set x-goog-api-client and x-goog-user-project headers
787
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
787
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
788
788
  lib_name: @config.lib_name, lib_version: @config.lib_version,
789
789
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
790
790
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -802,12 +802,12 @@ module Google
802
802
  retry_policy: @config.retry_policy
803
803
 
804
804
  @cloud_redis_stub.call_rpc :delete_instance, request, options: options do |response, operation|
805
- response = Gapic::Operation.new response, @operations_client, options: options
805
+ response = ::Gapic::Operation.new response, @operations_client, options: options
806
806
  yield response, operation if block_given?
807
807
  return response
808
808
  end
809
- rescue GRPC::BadStatus => e
810
- raise Google::Cloud::Error.from_error(e)
809
+ rescue ::GRPC::BadStatus => e
810
+ raise ::Google::Cloud::Error.from_error(e)
811
811
  end
812
812
 
813
813
  ##
@@ -817,7 +817,7 @@ module Google
817
817
  # providing control over timeouts, retry behavior, logging, transport
818
818
  # parameters, and other low-level controls. Certain parameters can also be
819
819
  # applied individually to specific RPCs. See
820
- # {Google::Cloud::Redis::V1::CloudRedis::Client::Configuration::Rpcs}
820
+ # {::Google::Cloud::Redis::V1::CloudRedis::Client::Configuration::Rpcs}
821
821
  # for a list of RPCs that can be configured independently.
822
822
  #
823
823
  # Configuration can be applied globally to all clients, or to a single client
@@ -828,22 +828,22 @@ module Google
828
828
  # To modify the global config, setting the timeout for list_instances
829
829
  # to 20 seconds, and all remaining timeouts to 10 seconds:
830
830
  #
831
- # Google::Cloud::Redis::V1::CloudRedis::Client.configure do |config|
832
- # config.timeout = 10_000
833
- # config.rpcs.list_instances.timeout = 20_000
831
+ # ::Google::Cloud::Redis::V1::CloudRedis::Client.configure do |config|
832
+ # config.timeout = 10.0
833
+ # config.rpcs.list_instances.timeout = 20.0
834
834
  # end
835
835
  #
836
836
  # To apply the above configuration only to a new client:
837
837
  #
838
- # client = Google::Cloud::Redis::V1::CloudRedis::Client.new do |config|
839
- # config.timeout = 10_000
840
- # config.rpcs.list_instances.timeout = 20_000
838
+ # client = ::Google::Cloud::Redis::V1::CloudRedis::Client.new do |config|
839
+ # config.timeout = 10.0
840
+ # config.rpcs.list_instances.timeout = 20.0
841
841
  # end
842
842
  #
843
843
  # @!attribute [rw] endpoint
844
844
  # The hostname or hostname:port of the service endpoint.
845
845
  # Defaults to `"redis.googleapis.com"`.
846
- # @return [String]
846
+ # @return [::String]
847
847
  # @!attribute [rw] credentials
848
848
  # Credentials to send with calls. You may provide any of the following types:
849
849
  # * (`String`) The path to a service account key file in JSON format
@@ -855,29 +855,29 @@ module Google
855
855
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
856
856
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
857
857
  # * (`nil`) indicating no credentials
858
- # @return [Object]
858
+ # @return [::Object]
859
859
  # @!attribute [rw] scope
860
860
  # The OAuth scopes
861
- # @return [Array<String>]
861
+ # @return [::Array<::String>]
862
862
  # @!attribute [rw] lib_name
863
863
  # The library name as recorded in instrumentation and logging
864
- # @return [String]
864
+ # @return [::String]
865
865
  # @!attribute [rw] lib_version
866
866
  # The library version as recorded in instrumentation and logging
867
- # @return [String]
867
+ # @return [::String]
868
868
  # @!attribute [rw] channel_args
869
869
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
870
870
  # `GRPC::Core::Channel` object is provided as the credential.
871
- # @return [Hash]
871
+ # @return [::Hash]
872
872
  # @!attribute [rw] interceptors
873
873
  # An array of interceptors that are run before calls are executed.
874
- # @return [Array<GRPC::ClientInterceptor>]
874
+ # @return [::Array<::GRPC::ClientInterceptor>]
875
875
  # @!attribute [rw] timeout
876
- # The call timeout in milliseconds.
877
- # @return [Numeric]
876
+ # The call timeout in seconds.
877
+ # @return [::Numeric]
878
878
  # @!attribute [rw] metadata
879
879
  # Additional gRPC headers to be sent with the call.
880
- # @return [Hash{Symbol=>String}]
880
+ # @return [::Hash{::Symbol=>::String}]
881
881
  # @!attribute [rw] retry_policy
882
882
  # The retry policy. The value is a hash with the following keys:
883
883
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -885,10 +885,10 @@ module Google
885
885
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
886
886
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
887
887
  # trigger a retry.
888
- # @return [Hash]
888
+ # @return [::Hash]
889
889
  #
890
890
  class Configuration
891
- extend Gapic::Config
891
+ extend ::Gapic::Config
892
892
 
893
893
  config_attr :endpoint, "redis.googleapis.com", String
894
894
  config_attr :credentials, nil do |value|
@@ -896,14 +896,14 @@ module Google
896
896
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
897
897
  allowed.any? { |klass| klass === value }
898
898
  end
899
- config_attr :scope, nil, String, Array, nil
900
- config_attr :lib_name, nil, String, nil
901
- config_attr :lib_version, nil, String, nil
902
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
903
- config_attr :interceptors, nil, Array, nil
904
- config_attr :timeout, nil, Numeric, nil
905
- config_attr :metadata, nil, Hash, nil
906
- config_attr :retry_policy, nil, Hash, Proc, nil
899
+ config_attr :scope, nil, ::String, ::Array, nil
900
+ config_attr :lib_name, nil, ::String, nil
901
+ config_attr :lib_version, nil, ::String, nil
902
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
903
+ config_attr :interceptors, nil, ::Array, nil
904
+ config_attr :timeout, nil, ::Numeric, nil
905
+ config_attr :metadata, nil, ::Hash, nil
906
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
907
907
 
908
908
  # @private
909
909
  def initialize parent_config = nil
@@ -944,63 +944,63 @@ module Google
944
944
  class Rpcs
945
945
  ##
946
946
  # RPC-specific configuration for `list_instances`
947
- # @return [Gapic::Config::Method]
947
+ # @return [::Gapic::Config::Method]
948
948
  #
949
949
  attr_reader :list_instances
950
950
  ##
951
951
  # RPC-specific configuration for `get_instance`
952
- # @return [Gapic::Config::Method]
952
+ # @return [::Gapic::Config::Method]
953
953
  #
954
954
  attr_reader :get_instance
955
955
  ##
956
956
  # RPC-specific configuration for `create_instance`
957
- # @return [Gapic::Config::Method]
957
+ # @return [::Gapic::Config::Method]
958
958
  #
959
959
  attr_reader :create_instance
960
960
  ##
961
961
  # RPC-specific configuration for `update_instance`
962
- # @return [Gapic::Config::Method]
962
+ # @return [::Gapic::Config::Method]
963
963
  #
964
964
  attr_reader :update_instance
965
965
  ##
966
966
  # RPC-specific configuration for `import_instance`
967
- # @return [Gapic::Config::Method]
967
+ # @return [::Gapic::Config::Method]
968
968
  #
969
969
  attr_reader :import_instance
970
970
  ##
971
971
  # RPC-specific configuration for `export_instance`
972
- # @return [Gapic::Config::Method]
972
+ # @return [::Gapic::Config::Method]
973
973
  #
974
974
  attr_reader :export_instance
975
975
  ##
976
976
  # RPC-specific configuration for `failover_instance`
977
- # @return [Gapic::Config::Method]
977
+ # @return [::Gapic::Config::Method]
978
978
  #
979
979
  attr_reader :failover_instance
980
980
  ##
981
981
  # RPC-specific configuration for `delete_instance`
982
- # @return [Gapic::Config::Method]
982
+ # @return [::Gapic::Config::Method]
983
983
  #
984
984
  attr_reader :delete_instance
985
985
 
986
986
  # @private
987
987
  def initialize parent_rpcs = nil
988
988
  list_instances_config = parent_rpcs&.list_instances if parent_rpcs&.respond_to? :list_instances
989
- @list_instances = Gapic::Config::Method.new list_instances_config
989
+ @list_instances = ::Gapic::Config::Method.new list_instances_config
990
990
  get_instance_config = parent_rpcs&.get_instance if parent_rpcs&.respond_to? :get_instance
991
- @get_instance = Gapic::Config::Method.new get_instance_config
991
+ @get_instance = ::Gapic::Config::Method.new get_instance_config
992
992
  create_instance_config = parent_rpcs&.create_instance if parent_rpcs&.respond_to? :create_instance
993
- @create_instance = Gapic::Config::Method.new create_instance_config
993
+ @create_instance = ::Gapic::Config::Method.new create_instance_config
994
994
  update_instance_config = parent_rpcs&.update_instance if parent_rpcs&.respond_to? :update_instance
995
- @update_instance = Gapic::Config::Method.new update_instance_config
995
+ @update_instance = ::Gapic::Config::Method.new update_instance_config
996
996
  import_instance_config = parent_rpcs&.import_instance if parent_rpcs&.respond_to? :import_instance
997
- @import_instance = Gapic::Config::Method.new import_instance_config
997
+ @import_instance = ::Gapic::Config::Method.new import_instance_config
998
998
  export_instance_config = parent_rpcs&.export_instance if parent_rpcs&.respond_to? :export_instance
999
- @export_instance = Gapic::Config::Method.new export_instance_config
999
+ @export_instance = ::Gapic::Config::Method.new export_instance_config
1000
1000
  failover_instance_config = parent_rpcs&.failover_instance if parent_rpcs&.respond_to? :failover_instance
1001
- @failover_instance = Gapic::Config::Method.new failover_instance_config
1001
+ @failover_instance = ::Gapic::Config::Method.new failover_instance_config
1002
1002
  delete_instance_config = parent_rpcs&.delete_instance if parent_rpcs&.respond_to? :delete_instance
1003
- @delete_instance = Gapic::Config::Method.new delete_instance_config
1003
+ @delete_instance = ::Gapic::Config::Method.new delete_instance_config
1004
1004
 
1005
1005
  yield self if block_given?
1006
1006
  end