google-cloud-redis-v1beta1 0.5.1 → 0.8.0
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/README.md +11 -6
- data/lib/google/cloud/redis/v1beta1/cloud_redis/client.rb +208 -2
- data/lib/google/cloud/redis/v1beta1/cloud_redis/operations.rb +3 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis_pb.rb +88 -1
- data/lib/google/cloud/redis/v1beta1/cloud_redis_services_pb.rb +7 -0
- data/lib/google/cloud/redis/v1beta1/version.rb +1 -1
- data/lib/google/cloud/redis/v1beta1.rb +2 -0
- data/proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb +256 -28
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f16ba81b4ac47f8849fcd55522ac2c554fbc2e1b9e586dde56fb58a5c4b9138e
|
4
|
+
data.tar.gz: 39c48daae6cc342c3b6b61e21a116543bbbd96d753516ebaaee151209acc5d17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 933695681a3f7124bf4499cd95a94ab2f25363b1ea332001eb55bd149431666c8a9d8c3f003349c21cd284c3eab20a657c12e9a6c24b34d281241bb8e04b6cb7
|
7
|
+
data.tar.gz: a34f3e55b5c94d2fde2e277bdd3919571b41cc51e6c5931c9301e27853122496fb1ffdaf0502ad8d86ebe552f76f42e9885190871cf53bb2199250ea3a5d209a
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Redis::V1beta1::ListInstancesRequest.new # (request f
|
|
37
37
|
response = client.list_instances request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-redis-v1beta1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/memorystore/docs/redis)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -82,6 +82,8 @@ module Google
|
|
82
82
|
|
83
83
|
default_config.rpcs.get_instance.timeout = 600.0
|
84
84
|
|
85
|
+
default_config.rpcs.get_instance_auth_string.timeout = 600.0
|
86
|
+
|
85
87
|
default_config.rpcs.create_instance.timeout = 600.0
|
86
88
|
|
87
89
|
default_config.rpcs.update_instance.timeout = 600.0
|
@@ -229,8 +231,7 @@ module Google
|
|
229
231
|
# to determine if there are more instances left to be queried.
|
230
232
|
# @param page_token [::String]
|
231
233
|
# The `next_page_token` value returned from a previous
|
232
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}
|
233
|
-
# request, if any.
|
234
|
+
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances} request, if any.
|
234
235
|
#
|
235
236
|
# @yield [response, operation] Access the result along with the RPC operation
|
236
237
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Redis::V1beta1::Instance>]
|
@@ -390,6 +391,95 @@ module Google
|
|
390
391
|
raise ::Google::Cloud::Error.from_error(e)
|
391
392
|
end
|
392
393
|
|
394
|
+
##
|
395
|
+
# Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
|
396
|
+
# instance the response will be empty. This information is not included in
|
397
|
+
# the details returned to GetInstance.
|
398
|
+
#
|
399
|
+
# @overload get_instance_auth_string(request, options = nil)
|
400
|
+
# Pass arguments to `get_instance_auth_string` via a request object, either of type
|
401
|
+
# {::Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest} or an equivalent Hash.
|
402
|
+
#
|
403
|
+
# @param request [::Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest, ::Hash]
|
404
|
+
# A request object representing the call parameters. Required. To specify no
|
405
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
406
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
407
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
408
|
+
#
|
409
|
+
# @overload get_instance_auth_string(name: nil)
|
410
|
+
# Pass arguments to `get_instance_auth_string` via keyword arguments. Note that at
|
411
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
412
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
413
|
+
#
|
414
|
+
# @param name [::String]
|
415
|
+
# Required. Redis instance resource name using the form:
|
416
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
417
|
+
# where `location_id` refers to a GCP region.
|
418
|
+
#
|
419
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
420
|
+
# @yieldparam response [::Google::Cloud::Redis::V1beta1::InstanceAuthString]
|
421
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
422
|
+
#
|
423
|
+
# @return [::Google::Cloud::Redis::V1beta1::InstanceAuthString]
|
424
|
+
#
|
425
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
426
|
+
#
|
427
|
+
# @example Basic example
|
428
|
+
# require "google/cloud/redis/v1beta1"
|
429
|
+
#
|
430
|
+
# # Create a client object. The client can be reused for multiple calls.
|
431
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
432
|
+
#
|
433
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
434
|
+
# request = Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest.new
|
435
|
+
#
|
436
|
+
# # Call the get_instance_auth_string method.
|
437
|
+
# result = client.get_instance_auth_string request
|
438
|
+
#
|
439
|
+
# # The returned object is of type Google::Cloud::Redis::V1beta1::InstanceAuthString.
|
440
|
+
# p result
|
441
|
+
#
|
442
|
+
def get_instance_auth_string request, options = nil
|
443
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
444
|
+
|
445
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest
|
446
|
+
|
447
|
+
# Converts hash and nil to an options object
|
448
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
449
|
+
|
450
|
+
# Customize the options with defaults
|
451
|
+
metadata = @config.rpcs.get_instance_auth_string.metadata.to_h
|
452
|
+
|
453
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
454
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
455
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
456
|
+
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
457
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
458
|
+
|
459
|
+
header_params = {}
|
460
|
+
if request.name
|
461
|
+
header_params["name"] = request.name
|
462
|
+
end
|
463
|
+
|
464
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
465
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
466
|
+
|
467
|
+
options.apply_defaults timeout: @config.rpcs.get_instance_auth_string.timeout,
|
468
|
+
metadata: metadata,
|
469
|
+
retry_policy: @config.rpcs.get_instance_auth_string.retry_policy
|
470
|
+
|
471
|
+
options.apply_defaults timeout: @config.timeout,
|
472
|
+
metadata: @config.metadata,
|
473
|
+
retry_policy: @config.retry_policy
|
474
|
+
|
475
|
+
@cloud_redis_stub.call_rpc :get_instance_auth_string, request, options: options do |response, operation|
|
476
|
+
yield response, operation if block_given?
|
477
|
+
return response
|
478
|
+
end
|
479
|
+
rescue ::GRPC::BadStatus => e
|
480
|
+
raise ::Google::Cloud::Error.from_error(e)
|
481
|
+
end
|
482
|
+
|
393
483
|
##
|
394
484
|
# Creates a Redis instance based on the specified tier and memory size.
|
395
485
|
#
|
@@ -1114,6 +1204,108 @@ module Google
|
|
1114
1204
|
raise ::Google::Cloud::Error.from_error(e)
|
1115
1205
|
end
|
1116
1206
|
|
1207
|
+
##
|
1208
|
+
# Reschedule maintenance for a given instance in a given project and
|
1209
|
+
# location.
|
1210
|
+
#
|
1211
|
+
# @overload reschedule_maintenance(request, options = nil)
|
1212
|
+
# Pass arguments to `reschedule_maintenance` via a request object, either of type
|
1213
|
+
# {::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest} or an equivalent Hash.
|
1214
|
+
#
|
1215
|
+
# @param request [::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest, ::Hash]
|
1216
|
+
# A request object representing the call parameters. Required. To specify no
|
1217
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1218
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1219
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1220
|
+
#
|
1221
|
+
# @overload reschedule_maintenance(name: nil, reschedule_type: nil, schedule_time: nil)
|
1222
|
+
# Pass arguments to `reschedule_maintenance` via keyword arguments. Note that at
|
1223
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1224
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1225
|
+
#
|
1226
|
+
# @param name [::String]
|
1227
|
+
# Required. Redis instance resource name using the form:
|
1228
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
1229
|
+
# where `location_id` refers to a GCP region.
|
1230
|
+
# @param reschedule_type [::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest::RescheduleType]
|
1231
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
|
1232
|
+
# @param schedule_time [::Google::Protobuf::Timestamp, ::Hash]
|
1233
|
+
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
1234
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
1235
|
+
# example `2012-11-15T16:19:00.094Z`.
|
1236
|
+
#
|
1237
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1238
|
+
# @yieldparam response [::Gapic::Operation]
|
1239
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1240
|
+
#
|
1241
|
+
# @return [::Gapic::Operation]
|
1242
|
+
#
|
1243
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1244
|
+
#
|
1245
|
+
# @example Basic example
|
1246
|
+
# require "google/cloud/redis/v1beta1"
|
1247
|
+
#
|
1248
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1249
|
+
# client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new
|
1250
|
+
#
|
1251
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1252
|
+
# request = Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest.new
|
1253
|
+
#
|
1254
|
+
# # Call the reschedule_maintenance method.
|
1255
|
+
# result = client.reschedule_maintenance request
|
1256
|
+
#
|
1257
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1258
|
+
# # object to check the status of an operation, cancel it, or wait
|
1259
|
+
# # for results. Here is how to block until completion:
|
1260
|
+
# result.wait_until_done! timeout: 60
|
1261
|
+
# if result.response?
|
1262
|
+
# p result.response
|
1263
|
+
# else
|
1264
|
+
# puts "Error!"
|
1265
|
+
# end
|
1266
|
+
#
|
1267
|
+
def reschedule_maintenance request, options = nil
|
1268
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1269
|
+
|
1270
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest
|
1271
|
+
|
1272
|
+
# Converts hash and nil to an options object
|
1273
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1274
|
+
|
1275
|
+
# Customize the options with defaults
|
1276
|
+
metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
|
1277
|
+
|
1278
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1279
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1280
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1281
|
+
gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
|
1282
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1283
|
+
|
1284
|
+
header_params = {}
|
1285
|
+
if request.name
|
1286
|
+
header_params["name"] = request.name
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1290
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1291
|
+
|
1292
|
+
options.apply_defaults timeout: @config.rpcs.reschedule_maintenance.timeout,
|
1293
|
+
metadata: metadata,
|
1294
|
+
retry_policy: @config.rpcs.reschedule_maintenance.retry_policy
|
1295
|
+
|
1296
|
+
options.apply_defaults timeout: @config.timeout,
|
1297
|
+
metadata: @config.metadata,
|
1298
|
+
retry_policy: @config.retry_policy
|
1299
|
+
|
1300
|
+
@cloud_redis_stub.call_rpc :reschedule_maintenance, request, options: options do |response, operation|
|
1301
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1302
|
+
yield response, operation if block_given?
|
1303
|
+
return response
|
1304
|
+
end
|
1305
|
+
rescue ::GRPC::BadStatus => e
|
1306
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1307
|
+
end
|
1308
|
+
|
1117
1309
|
##
|
1118
1310
|
# Configuration class for the CloudRedis API.
|
1119
1311
|
#
|
@@ -1260,6 +1452,11 @@ module Google
|
|
1260
1452
|
#
|
1261
1453
|
attr_reader :get_instance
|
1262
1454
|
##
|
1455
|
+
# RPC-specific configuration for `get_instance_auth_string`
|
1456
|
+
# @return [::Gapic::Config::Method]
|
1457
|
+
#
|
1458
|
+
attr_reader :get_instance_auth_string
|
1459
|
+
##
|
1263
1460
|
# RPC-specific configuration for `create_instance`
|
1264
1461
|
# @return [::Gapic::Config::Method]
|
1265
1462
|
#
|
@@ -1294,6 +1491,11 @@ module Google
|
|
1294
1491
|
# @return [::Gapic::Config::Method]
|
1295
1492
|
#
|
1296
1493
|
attr_reader :delete_instance
|
1494
|
+
##
|
1495
|
+
# RPC-specific configuration for `reschedule_maintenance`
|
1496
|
+
# @return [::Gapic::Config::Method]
|
1497
|
+
#
|
1498
|
+
attr_reader :reschedule_maintenance
|
1297
1499
|
|
1298
1500
|
# @private
|
1299
1501
|
def initialize parent_rpcs = nil
|
@@ -1301,6 +1503,8 @@ module Google
|
|
1301
1503
|
@list_instances = ::Gapic::Config::Method.new list_instances_config
|
1302
1504
|
get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
|
1303
1505
|
@get_instance = ::Gapic::Config::Method.new get_instance_config
|
1506
|
+
get_instance_auth_string_config = parent_rpcs.get_instance_auth_string if parent_rpcs.respond_to? :get_instance_auth_string
|
1507
|
+
@get_instance_auth_string = ::Gapic::Config::Method.new get_instance_auth_string_config
|
1304
1508
|
create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
|
1305
1509
|
@create_instance = ::Gapic::Config::Method.new create_instance_config
|
1306
1510
|
update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
|
@@ -1315,6 +1519,8 @@ module Google
|
|
1315
1519
|
@failover_instance = ::Gapic::Config::Method.new failover_instance_config
|
1316
1520
|
delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
|
1317
1521
|
@delete_instance = ::Gapic::Config::Method.new delete_instance_config
|
1522
|
+
reschedule_maintenance_config = parent_rpcs.reschedule_maintenance if parent_rpcs.respond_to? :reschedule_maintenance
|
1523
|
+
@reschedule_maintenance = ::Gapic::Config::Method.new reschedule_maintenance_config
|
1318
1524
|
|
1319
1525
|
yield self if block_given?
|
1320
1526
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/redis/v1beta1/cloud_redis.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/duration_pb'
|
9
12
|
require 'google/protobuf/field_mask_pb'
|
10
13
|
require 'google/protobuf/timestamp_pb'
|
11
|
-
require 'google/
|
14
|
+
require 'google/type/dayofweek_pb'
|
15
|
+
require 'google/type/timeofday_pb'
|
12
16
|
|
13
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
18
|
add_file("google/cloud/redis/v1beta1/cloud_redis.proto", :syntax => :proto3) do
|
@@ -24,6 +28,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
28
|
optional :alternative_location_id, :string, 5
|
25
29
|
optional :redis_version, :string, 7
|
26
30
|
optional :reserved_ip_range, :string, 9
|
31
|
+
optional :secondary_ip_range, :string, 30
|
27
32
|
optional :host, :string, 10
|
28
33
|
optional :port, :int32, 11
|
29
34
|
optional :current_location_id, :string, 12
|
@@ -36,11 +41,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
41
|
optional :authorized_network, :string, 20
|
37
42
|
optional :persistence_iam_identity, :string, 21
|
38
43
|
optional :connect_mode, :enum, 22, "google.cloud.redis.v1beta1.Instance.ConnectMode"
|
44
|
+
optional :auth_enabled, :bool, 23
|
45
|
+
repeated :server_ca_certs, :message, 25, "google.cloud.redis.v1beta1.TlsCertificate"
|
46
|
+
optional :transit_encryption_mode, :enum, 26, "google.cloud.redis.v1beta1.Instance.TransitEncryptionMode"
|
47
|
+
optional :maintenance_policy, :message, 27, "google.cloud.redis.v1beta1.MaintenancePolicy"
|
48
|
+
optional :maintenance_schedule, :message, 28, "google.cloud.redis.v1beta1.MaintenanceSchedule"
|
39
49
|
optional :replica_count, :int32, 31
|
40
50
|
repeated :nodes, :message, 32, "google.cloud.redis.v1beta1.NodeInfo"
|
41
51
|
optional :read_endpoint, :string, 33
|
42
52
|
optional :read_endpoint_port, :int32, 34
|
43
53
|
optional :read_replicas_mode, :enum, 35, "google.cloud.redis.v1beta1.Instance.ReadReplicasMode"
|
54
|
+
optional :persistence_config, :message, 37, "google.cloud.redis.v1beta1.PersistenceConfig"
|
44
55
|
end
|
45
56
|
add_enum "google.cloud.redis.v1beta1.Instance.State" do
|
46
57
|
value :STATE_UNSPECIFIED, 0
|
@@ -63,11 +74,62 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
63
74
|
value :DIRECT_PEERING, 1
|
64
75
|
value :PRIVATE_SERVICE_ACCESS, 2
|
65
76
|
end
|
77
|
+
add_enum "google.cloud.redis.v1beta1.Instance.TransitEncryptionMode" do
|
78
|
+
value :TRANSIT_ENCRYPTION_MODE_UNSPECIFIED, 0
|
79
|
+
value :SERVER_AUTHENTICATION, 1
|
80
|
+
value :DISABLED, 2
|
81
|
+
end
|
66
82
|
add_enum "google.cloud.redis.v1beta1.Instance.ReadReplicasMode" do
|
67
83
|
value :READ_REPLICAS_MODE_UNSPECIFIED, 0
|
68
84
|
value :READ_REPLICAS_DISABLED, 1
|
69
85
|
value :READ_REPLICAS_ENABLED, 2
|
70
86
|
end
|
87
|
+
add_message "google.cloud.redis.v1beta1.PersistenceConfig" do
|
88
|
+
optional :persistence_mode, :enum, 1, "google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode"
|
89
|
+
optional :rdb_snapshot_period, :enum, 2, "google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod"
|
90
|
+
optional :rdb_next_snapshot_time, :message, 4, "google.protobuf.Timestamp"
|
91
|
+
optional :rdb_snapshot_start_time, :message, 5, "google.protobuf.Timestamp"
|
92
|
+
end
|
93
|
+
add_enum "google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode" do
|
94
|
+
value :PERSISTENCE_MODE_UNSPECIFIED, 0
|
95
|
+
value :DISABLED, 1
|
96
|
+
value :RDB, 2
|
97
|
+
end
|
98
|
+
add_enum "google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod" do
|
99
|
+
value :SNAPSHOT_PERIOD_UNSPECIFIED, 0
|
100
|
+
value :ONE_HOUR, 3
|
101
|
+
value :SIX_HOURS, 4
|
102
|
+
value :TWELVE_HOURS, 5
|
103
|
+
value :TWENTY_FOUR_HOURS, 6
|
104
|
+
end
|
105
|
+
add_message "google.cloud.redis.v1beta1.RescheduleMaintenanceRequest" do
|
106
|
+
optional :name, :string, 1
|
107
|
+
optional :reschedule_type, :enum, 2, "google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType"
|
108
|
+
optional :schedule_time, :message, 3, "google.protobuf.Timestamp"
|
109
|
+
end
|
110
|
+
add_enum "google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType" do
|
111
|
+
value :RESCHEDULE_TYPE_UNSPECIFIED, 0
|
112
|
+
value :IMMEDIATE, 1
|
113
|
+
value :NEXT_AVAILABLE_WINDOW, 2
|
114
|
+
value :SPECIFIC_TIME, 3
|
115
|
+
end
|
116
|
+
add_message "google.cloud.redis.v1beta1.MaintenancePolicy" do
|
117
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
118
|
+
optional :update_time, :message, 2, "google.protobuf.Timestamp"
|
119
|
+
optional :description, :string, 3
|
120
|
+
repeated :weekly_maintenance_window, :message, 4, "google.cloud.redis.v1beta1.WeeklyMaintenanceWindow"
|
121
|
+
end
|
122
|
+
add_message "google.cloud.redis.v1beta1.WeeklyMaintenanceWindow" do
|
123
|
+
optional :day, :enum, 1, "google.type.DayOfWeek"
|
124
|
+
optional :start_time, :message, 2, "google.type.TimeOfDay"
|
125
|
+
optional :duration, :message, 3, "google.protobuf.Duration"
|
126
|
+
end
|
127
|
+
add_message "google.cloud.redis.v1beta1.MaintenanceSchedule" do
|
128
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
129
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
130
|
+
optional :can_reschedule, :bool, 3
|
131
|
+
optional :schedule_deadline_time, :message, 5, "google.protobuf.Timestamp"
|
132
|
+
end
|
71
133
|
add_message "google.cloud.redis.v1beta1.ListInstancesRequest" do
|
72
134
|
optional :parent, :string, 1
|
73
135
|
optional :page_size, :int32, 2
|
@@ -81,6 +143,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
81
143
|
add_message "google.cloud.redis.v1beta1.GetInstanceRequest" do
|
82
144
|
optional :name, :string, 1
|
83
145
|
end
|
146
|
+
add_message "google.cloud.redis.v1beta1.GetInstanceAuthStringRequest" do
|
147
|
+
optional :name, :string, 1
|
148
|
+
end
|
149
|
+
add_message "google.cloud.redis.v1beta1.InstanceAuthString" do
|
150
|
+
optional :auth_string, :string, 1
|
151
|
+
end
|
84
152
|
add_message "google.cloud.redis.v1beta1.CreateInstanceRequest" do
|
85
153
|
optional :parent, :string, 1
|
86
154
|
optional :instance_id, :string, 2
|
@@ -135,6 +203,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
135
203
|
end
|
136
204
|
add_message "google.cloud.redis.v1beta1.ZoneMetadata" do
|
137
205
|
end
|
206
|
+
add_message "google.cloud.redis.v1beta1.TlsCertificate" do
|
207
|
+
optional :serial_number, :string, 1
|
208
|
+
optional :cert, :string, 2
|
209
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
210
|
+
optional :expire_time, :message, 4, "google.protobuf.Timestamp"
|
211
|
+
optional :sha1_fingerprint, :string, 5
|
212
|
+
end
|
138
213
|
end
|
139
214
|
end
|
140
215
|
|
@@ -147,10 +222,21 @@ module Google
|
|
147
222
|
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.State").enummodule
|
148
223
|
Instance::Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.Tier").enummodule
|
149
224
|
Instance::ConnectMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.ConnectMode").enummodule
|
225
|
+
Instance::TransitEncryptionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.TransitEncryptionMode").enummodule
|
150
226
|
Instance::ReadReplicasMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.ReadReplicasMode").enummodule
|
227
|
+
PersistenceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.PersistenceConfig").msgclass
|
228
|
+
PersistenceConfig::PersistenceMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.PersistenceConfig.PersistenceMode").enummodule
|
229
|
+
PersistenceConfig::SnapshotPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.PersistenceConfig.SnapshotPeriod").enummodule
|
230
|
+
RescheduleMaintenanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.RescheduleMaintenanceRequest").msgclass
|
231
|
+
RescheduleMaintenanceRequest::RescheduleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType").enummodule
|
232
|
+
MaintenancePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.MaintenancePolicy").msgclass
|
233
|
+
WeeklyMaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.WeeklyMaintenanceWindow").msgclass
|
234
|
+
MaintenanceSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.MaintenanceSchedule").msgclass
|
151
235
|
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ListInstancesRequest").msgclass
|
152
236
|
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ListInstancesResponse").msgclass
|
153
237
|
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.GetInstanceRequest").msgclass
|
238
|
+
GetInstanceAuthStringRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.GetInstanceAuthStringRequest").msgclass
|
239
|
+
InstanceAuthString = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.InstanceAuthString").msgclass
|
154
240
|
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.CreateInstanceRequest").msgclass
|
155
241
|
UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.UpdateInstanceRequest").msgclass
|
156
242
|
UpgradeInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.UpgradeInstanceRequest").msgclass
|
@@ -165,6 +251,7 @@ module Google
|
|
165
251
|
FailoverInstanceRequest::DataProtectionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode").enummodule
|
166
252
|
LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.LocationMetadata").msgclass
|
167
253
|
ZoneMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ZoneMetadata").msgclass
|
254
|
+
TlsCertificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.TlsCertificate").msgclass
|
168
255
|
end
|
169
256
|
end
|
170
257
|
end
|
@@ -59,6 +59,10 @@ module Google
|
|
59
59
|
rpc :ListInstances, ::Google::Cloud::Redis::V1beta1::ListInstancesRequest, ::Google::Cloud::Redis::V1beta1::ListInstancesResponse
|
60
60
|
# Gets the details of a specific Redis instance.
|
61
61
|
rpc :GetInstance, ::Google::Cloud::Redis::V1beta1::GetInstanceRequest, ::Google::Cloud::Redis::V1beta1::Instance
|
62
|
+
# Gets the AUTH string for a Redis instance. If AUTH is not enabled for the
|
63
|
+
# instance the response will be empty. This information is not included in
|
64
|
+
# the details returned to GetInstance.
|
65
|
+
rpc :GetInstanceAuthString, ::Google::Cloud::Redis::V1beta1::GetInstanceAuthStringRequest, ::Google::Cloud::Redis::V1beta1::InstanceAuthString
|
62
66
|
# Creates a Redis instance based on the specified tier and memory size.
|
63
67
|
#
|
64
68
|
# By default, the instance is accessible from the project's
|
@@ -103,6 +107,9 @@ module Google
|
|
103
107
|
# Deletes a specific Redis instance. Instance stops serving and data is
|
104
108
|
# deleted.
|
105
109
|
rpc :DeleteInstance, ::Google::Cloud::Redis::V1beta1::DeleteInstanceRequest, ::Google::Longrunning::Operation
|
110
|
+
# Reschedule maintenance for a given instance in a given project and
|
111
|
+
# location.
|
112
|
+
rpc :RescheduleMaintenance, ::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest, ::Google::Longrunning::Operation
|
106
113
|
end
|
107
114
|
|
108
115
|
Stub = Service.rpc_stub_class
|
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
34
34
|
end
|
35
35
|
|
36
|
-
# A
|
36
|
+
# A Memorystore for Redis instance.
|
37
37
|
# @!attribute [rw] name
|
38
38
|
# @return [::String]
|
39
39
|
# Required. Unique name of the resource in this scope including project and
|
@@ -43,10 +43,8 @@ module Google
|
|
43
43
|
# Note: Redis instances are managed and addressed at regional level so
|
44
44
|
# location_id here refers to a GCP region; however, users may choose which
|
45
45
|
# specific zone (or collection of zones for cross-zone instances) an instance
|
46
|
-
# should be provisioned in. Refer to
|
47
|
-
# {::Google::Cloud::Redis::V1beta1::Instance#
|
48
|
-
# {::Google::Cloud::Redis::V1beta1::Instance#alternative_location_id alternative_location_id}
|
49
|
-
# fields for more details.
|
46
|
+
# should be provisioned in. Refer to {::Google::Cloud::Redis::V1beta1::Instance#location_id location_id} and
|
47
|
+
# {::Google::Cloud::Redis::V1beta1::Instance#alternative_location_id alternative_location_id} fields for more details.
|
50
48
|
# @!attribute [rw] display_name
|
51
49
|
# @return [::String]
|
52
50
|
# An arbitrary and optional user-provided name for the instance.
|
@@ -87,6 +85,13 @@ module Google
|
|
87
85
|
# If not provided, the service will choose an unused /29 block, for
|
88
86
|
# example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED
|
89
87
|
# the default block size is /28.
|
88
|
+
# @!attribute [rw] secondary_ip_range
|
89
|
+
# @return [::String]
|
90
|
+
# Optional. Additional IP range for node placement. Required when enabling read
|
91
|
+
# replicas on an existing instance. For DIRECT_PEERING mode value must be a
|
92
|
+
# CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value
|
93
|
+
# must be the name of an allocated address range associated with the private
|
94
|
+
# service access connection, or "auto".
|
90
95
|
# @!attribute [r] host
|
91
96
|
# @return [::String]
|
92
97
|
# Output only. Hostname or IP address of the exposed Redis endpoint used by
|
@@ -154,11 +159,33 @@ module Google
|
|
154
159
|
# @return [::Google::Cloud::Redis::V1beta1::Instance::ConnectMode]
|
155
160
|
# Optional. The network connect mode of the Redis instance.
|
156
161
|
# If not provided, the connect mode defaults to DIRECT_PEERING.
|
162
|
+
# @!attribute [rw] auth_enabled
|
163
|
+
# @return [::Boolean]
|
164
|
+
# Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
|
165
|
+
# "true" AUTH is enabled on the instance. Default value is "false" meaning
|
166
|
+
# AUTH is disabled.
|
167
|
+
# @!attribute [r] server_ca_certs
|
168
|
+
# @return [::Array<::Google::Cloud::Redis::V1beta1::TlsCertificate>]
|
169
|
+
# Output only. List of server CA certificates for the instance.
|
170
|
+
# @!attribute [rw] transit_encryption_mode
|
171
|
+
# @return [::Google::Cloud::Redis::V1beta1::Instance::TransitEncryptionMode]
|
172
|
+
# Optional. The TLS mode of the Redis instance.
|
173
|
+
# If not provided, TLS is disabled for the instance.
|
174
|
+
# @!attribute [rw] maintenance_policy
|
175
|
+
# @return [::Google::Cloud::Redis::V1beta1::MaintenancePolicy]
|
176
|
+
# Optional. The maintenance policy for the instance. If not provided,
|
177
|
+
# maintenance events can be performed at any time.
|
178
|
+
# @!attribute [r] maintenance_schedule
|
179
|
+
# @return [::Google::Cloud::Redis::V1beta1::MaintenanceSchedule]
|
180
|
+
# Output only. Date and time of upcoming maintenance events which have been
|
181
|
+
# scheduled.
|
157
182
|
# @!attribute [rw] replica_count
|
158
183
|
# @return [::Integer]
|
159
|
-
# Optional. The number of replica nodes.
|
160
|
-
# is [1-5] and defaults to
|
161
|
-
#
|
184
|
+
# Optional. The number of replica nodes. The valid range for the Standard Tier with
|
185
|
+
# read replicas enabled is [1-5] and defaults to 2. If read replicas are not
|
186
|
+
# enabled for a Standard Tier instance, the only valid value is 1 and the
|
187
|
+
# default is 1. The valid value for basic tier is 0 and the default is also
|
188
|
+
# 0.
|
162
189
|
# @!attribute [r] nodes
|
163
190
|
# @return [::Array<::Google::Cloud::Redis::V1beta1::NodeInfo>]
|
164
191
|
# Output only. Info per node.
|
@@ -174,7 +201,10 @@ module Google
|
|
174
201
|
# endpoint. Standard tier only. Write requests should target 'port'.
|
175
202
|
# @!attribute [rw] read_replicas_mode
|
176
203
|
# @return [::Google::Cloud::Redis::V1beta1::Instance::ReadReplicasMode]
|
177
|
-
# Optional. Read
|
204
|
+
# Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
|
205
|
+
# @!attribute [rw] persistence_config
|
206
|
+
# @return [::Google::Cloud::Redis::V1beta1::PersistenceConfig]
|
207
|
+
# Optional. Persistence configuration parameters
|
178
208
|
class Instance
|
179
209
|
include ::Google::Protobuf::MessageExts
|
180
210
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -255,10 +285,22 @@ module Google
|
|
255
285
|
PRIVATE_SERVICE_ACCESS = 2
|
256
286
|
end
|
257
287
|
|
288
|
+
# Available TLS modes.
|
289
|
+
module TransitEncryptionMode
|
290
|
+
# Not set.
|
291
|
+
TRANSIT_ENCRYPTION_MODE_UNSPECIFIED = 0
|
292
|
+
|
293
|
+
# Client to Server traffic encryption enabled with server authentication.
|
294
|
+
SERVER_AUTHENTICATION = 1
|
295
|
+
|
296
|
+
# TLS is disabled for the instance.
|
297
|
+
DISABLED = 2
|
298
|
+
end
|
299
|
+
|
258
300
|
# Read replicas mode.
|
259
301
|
module ReadReplicasMode
|
260
|
-
# If not set, Memorystore
|
261
|
-
#
|
302
|
+
# If not set, Memorystore Redis backend will default to
|
303
|
+
# READ_REPLICAS_DISABLED.
|
262
304
|
READ_REPLICAS_MODE_UNSPECIFIED = 0
|
263
305
|
|
264
306
|
# If disabled, read endpoint will not be provided and the instance cannot
|
@@ -266,13 +308,161 @@ module Google
|
|
266
308
|
READ_REPLICAS_DISABLED = 1
|
267
309
|
|
268
310
|
# If enabled, read endpoint will be provided and the instance can scale
|
269
|
-
# up and down the number of replicas.
|
311
|
+
# up and down the number of replicas. Not valid for basic tier.
|
270
312
|
READ_REPLICAS_ENABLED = 2
|
271
313
|
end
|
272
314
|
end
|
273
315
|
|
274
|
-
#
|
275
|
-
#
|
316
|
+
# Configuration of the persistence functionality.
|
317
|
+
# @!attribute [rw] persistence_mode
|
318
|
+
# @return [::Google::Cloud::Redis::V1beta1::PersistenceConfig::PersistenceMode]
|
319
|
+
# Optional. Controls whether Persistence features are enabled.
|
320
|
+
# If not provided, the existing value will be used.
|
321
|
+
# @!attribute [rw] rdb_snapshot_period
|
322
|
+
# @return [::Google::Cloud::Redis::V1beta1::PersistenceConfig::SnapshotPeriod]
|
323
|
+
# Optional. Period between RDB snapshots. Snapshots will be attempted every period
|
324
|
+
# starting from the provided snapshot start time. For example, a start time
|
325
|
+
# of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until
|
326
|
+
# 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45,
|
327
|
+
# and 00:45 the next day, and so on.
|
328
|
+
# If not provided, TWENTY_FOUR_HOURS will be used as default.
|
329
|
+
# @!attribute [r] rdb_next_snapshot_time
|
330
|
+
# @return [::Google::Protobuf::Timestamp]
|
331
|
+
# Output only. The next time that a snapshot attempt is scheduled to occur.
|
332
|
+
# @!attribute [rw] rdb_snapshot_start_time
|
333
|
+
# @return [::Google::Protobuf::Timestamp]
|
334
|
+
# Optional. Date and time that the first snapshot was/will be attempted, and to which
|
335
|
+
# future snapshots will be aligned.
|
336
|
+
# If not provided, the current time will be used.
|
337
|
+
class PersistenceConfig
|
338
|
+
include ::Google::Protobuf::MessageExts
|
339
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
340
|
+
|
341
|
+
# Available Persistence modes.
|
342
|
+
module PersistenceMode
|
343
|
+
# Not set.
|
344
|
+
PERSISTENCE_MODE_UNSPECIFIED = 0
|
345
|
+
|
346
|
+
# Persistence is disabled for the instance,
|
347
|
+
# and any existing snapshots are deleted.
|
348
|
+
DISABLED = 1
|
349
|
+
|
350
|
+
# RDB based Persistence is enabled.
|
351
|
+
RDB = 2
|
352
|
+
end
|
353
|
+
|
354
|
+
# Available snapshot periods for scheduling.
|
355
|
+
module SnapshotPeriod
|
356
|
+
# Not set.
|
357
|
+
SNAPSHOT_PERIOD_UNSPECIFIED = 0
|
358
|
+
|
359
|
+
# Snapshot every 1 hour.
|
360
|
+
ONE_HOUR = 3
|
361
|
+
|
362
|
+
# Snapshot every 6 hours.
|
363
|
+
SIX_HOURS = 4
|
364
|
+
|
365
|
+
# Snapshot every 12 hours.
|
366
|
+
TWELVE_HOURS = 5
|
367
|
+
|
368
|
+
# Snapshot every 24 hours.
|
369
|
+
TWENTY_FOUR_HOURS = 6
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
373
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#reschedule_maintenance RescheduleMaintenance}.
|
374
|
+
# @!attribute [rw] name
|
375
|
+
# @return [::String]
|
376
|
+
# Required. Redis instance resource name using the form:
|
377
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
378
|
+
# where `location_id` refers to a GCP region.
|
379
|
+
# @!attribute [rw] reschedule_type
|
380
|
+
# @return [::Google::Cloud::Redis::V1beta1::RescheduleMaintenanceRequest::RescheduleType]
|
381
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
|
382
|
+
# @!attribute [rw] schedule_time
|
383
|
+
# @return [::Google::Protobuf::Timestamp]
|
384
|
+
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
385
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
386
|
+
# example `2012-11-15T16:19:00.094Z`.
|
387
|
+
class RescheduleMaintenanceRequest
|
388
|
+
include ::Google::Protobuf::MessageExts
|
389
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
390
|
+
|
391
|
+
# Reschedule options.
|
392
|
+
module RescheduleType
|
393
|
+
# Not set.
|
394
|
+
RESCHEDULE_TYPE_UNSPECIFIED = 0
|
395
|
+
|
396
|
+
# If the user wants to schedule the maintenance to happen now.
|
397
|
+
IMMEDIATE = 1
|
398
|
+
|
399
|
+
# If the user wants to use the existing maintenance policy to find the
|
400
|
+
# next available window.
|
401
|
+
NEXT_AVAILABLE_WINDOW = 2
|
402
|
+
|
403
|
+
# If the user wants to reschedule the maintenance to a specific time.
|
404
|
+
SPECIFIC_TIME = 3
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
# Maintenance policy for an instance.
|
409
|
+
# @!attribute [r] create_time
|
410
|
+
# @return [::Google::Protobuf::Timestamp]
|
411
|
+
# Output only. The time when the policy was created.
|
412
|
+
# @!attribute [r] update_time
|
413
|
+
# @return [::Google::Protobuf::Timestamp]
|
414
|
+
# Output only. The time when the policy was last updated.
|
415
|
+
# @!attribute [rw] description
|
416
|
+
# @return [::String]
|
417
|
+
# Optional. Description of what this policy is for. Create/Update methods
|
418
|
+
# return INVALID_ARGUMENT if the length is greater than 512.
|
419
|
+
# @!attribute [rw] weekly_maintenance_window
|
420
|
+
# @return [::Array<::Google::Cloud::Redis::V1beta1::WeeklyMaintenanceWindow>]
|
421
|
+
# Optional. Maintenance window that is applied to resources covered by this
|
422
|
+
# policy. Minimum 1. For the current version, the maximum number of
|
423
|
+
# weekly_window is expected to be one.
|
424
|
+
class MaintenancePolicy
|
425
|
+
include ::Google::Protobuf::MessageExts
|
426
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
427
|
+
end
|
428
|
+
|
429
|
+
# Time window in which disruptive maintenance updates occur. Non-disruptive
|
430
|
+
# updates can occur inside or outside this window.
|
431
|
+
# @!attribute [rw] day
|
432
|
+
# @return [::Google::Type::DayOfWeek]
|
433
|
+
# Required. The day of week that maintenance updates occur.
|
434
|
+
# @!attribute [rw] start_time
|
435
|
+
# @return [::Google::Type::TimeOfDay]
|
436
|
+
# Required. Start time of the window in UTC time.
|
437
|
+
# @!attribute [r] duration
|
438
|
+
# @return [::Google::Protobuf::Duration]
|
439
|
+
# Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
|
440
|
+
class WeeklyMaintenanceWindow
|
441
|
+
include ::Google::Protobuf::MessageExts
|
442
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
443
|
+
end
|
444
|
+
|
445
|
+
# Upcoming maintenance schedule. If no maintenance is scheduled, fields are not
|
446
|
+
# populated.
|
447
|
+
# @!attribute [r] start_time
|
448
|
+
# @return [::Google::Protobuf::Timestamp]
|
449
|
+
# Output only. The start time of any upcoming scheduled maintenance for this instance.
|
450
|
+
# @!attribute [r] end_time
|
451
|
+
# @return [::Google::Protobuf::Timestamp]
|
452
|
+
# Output only. The end time of any upcoming scheduled maintenance for this instance.
|
453
|
+
# @!attribute [rw] can_reschedule
|
454
|
+
# @return [::Boolean]
|
455
|
+
# If the scheduled maintenance can be rescheduled, default is true.
|
456
|
+
# @!attribute [r] schedule_deadline_time
|
457
|
+
# @return [::Google::Protobuf::Timestamp]
|
458
|
+
# Output only. The deadline that the maintenance schedule start time can not go beyond,
|
459
|
+
# including reschedule.
|
460
|
+
class MaintenanceSchedule
|
461
|
+
include ::Google::Protobuf::MessageExts
|
462
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
463
|
+
end
|
464
|
+
|
465
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}.
|
276
466
|
# @!attribute [rw] parent
|
277
467
|
# @return [::String]
|
278
468
|
# Required. The resource name of the instance location using the form:
|
@@ -290,15 +480,13 @@ module Google
|
|
290
480
|
# @!attribute [rw] page_token
|
291
481
|
# @return [::String]
|
292
482
|
# The `next_page_token` value returned from a previous
|
293
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}
|
294
|
-
# request, if any.
|
483
|
+
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances} request, if any.
|
295
484
|
class ListInstancesRequest
|
296
485
|
include ::Google::Protobuf::MessageExts
|
297
486
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
298
487
|
end
|
299
488
|
|
300
|
-
# Response for
|
301
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}.
|
489
|
+
# Response for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances ListInstances}.
|
302
490
|
# @!attribute [rw] instances
|
303
491
|
# @return [::Array<::Google::Cloud::Redis::V1beta1::Instance>]
|
304
492
|
# A list of Redis instances in the project in the specified location,
|
@@ -335,8 +523,27 @@ module Google
|
|
335
523
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
336
524
|
end
|
337
525
|
|
338
|
-
# Request for
|
339
|
-
#
|
526
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#get_instance_auth_string GetInstanceAuthString}.
|
527
|
+
# @!attribute [rw] name
|
528
|
+
# @return [::String]
|
529
|
+
# Required. Redis instance resource name using the form:
|
530
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
531
|
+
# where `location_id` refers to a GCP region.
|
532
|
+
class GetInstanceAuthStringRequest
|
533
|
+
include ::Google::Protobuf::MessageExts
|
534
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
535
|
+
end
|
536
|
+
|
537
|
+
# Instance AUTH string details.
|
538
|
+
# @!attribute [rw] auth_string
|
539
|
+
# @return [::String]
|
540
|
+
# AUTH string set on the instance.
|
541
|
+
class InstanceAuthString
|
542
|
+
include ::Google::Protobuf::MessageExts
|
543
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
544
|
+
end
|
545
|
+
|
546
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#create_instance CreateInstance}.
|
340
547
|
# @!attribute [rw] parent
|
341
548
|
# @return [::String]
|
342
549
|
# Required. The resource name of the instance location using the form:
|
@@ -360,8 +567,7 @@ module Google
|
|
360
567
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
361
568
|
end
|
362
569
|
|
363
|
-
# Request for
|
364
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#update_instance UpdateInstance}.
|
570
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#update_instance UpdateInstance}.
|
365
571
|
# @!attribute [rw] update_mask
|
366
572
|
# @return [::Google::Protobuf::FieldMask]
|
367
573
|
# Required. Mask of fields to update. At least one path must be supplied in
|
@@ -382,8 +588,7 @@ module Google
|
|
382
588
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
383
589
|
end
|
384
590
|
|
385
|
-
# Request for
|
386
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#upgrade_instance UpgradeInstance}.
|
591
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#upgrade_instance UpgradeInstance}.
|
387
592
|
# @!attribute [rw] name
|
388
593
|
# @return [::String]
|
389
594
|
# Required. Redis instance resource name using the form:
|
@@ -397,8 +602,7 @@ module Google
|
|
397
602
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
398
603
|
end
|
399
604
|
|
400
|
-
# Request for
|
401
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#delete_instance DeleteInstance}.
|
605
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#delete_instance DeleteInstance}.
|
402
606
|
# @!attribute [rw] name
|
403
607
|
# @return [::String]
|
404
608
|
# Required. Redis instance resource name using the form:
|
@@ -474,8 +678,7 @@ module Google
|
|
474
678
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
475
679
|
end
|
476
680
|
|
477
|
-
# Request for
|
478
|
-
# {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#failover_instance Failover}.
|
681
|
+
# Request for {::Google::Cloud::Redis::V1beta1::CloudRedis::Client#failover_instance Failover}.
|
479
682
|
# @!attribute [rw] name
|
480
683
|
# @return [::String]
|
481
684
|
# Required. Redis instance resource name using the form:
|
@@ -536,6 +739,31 @@ module Google
|
|
536
739
|
include ::Google::Protobuf::MessageExts
|
537
740
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
538
741
|
end
|
742
|
+
|
743
|
+
# TlsCertificate Resource
|
744
|
+
# @!attribute [rw] serial_number
|
745
|
+
# @return [::String]
|
746
|
+
# Serial number, as extracted from the certificate.
|
747
|
+
# @!attribute [rw] cert
|
748
|
+
# @return [::String]
|
749
|
+
# PEM representation.
|
750
|
+
# @!attribute [r] create_time
|
751
|
+
# @return [::Google::Protobuf::Timestamp]
|
752
|
+
# Output only. The time when the certificate was created in [RFC
|
753
|
+
# 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
754
|
+
# `2020-05-18T00:00:00.094Z`.
|
755
|
+
# @!attribute [r] expire_time
|
756
|
+
# @return [::Google::Protobuf::Timestamp]
|
757
|
+
# Output only. The time when the certificate expires in [RFC
|
758
|
+
# 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
759
|
+
# `2020-05-18T00:00:00.094Z`.
|
760
|
+
# @!attribute [rw] sha1_fingerprint
|
761
|
+
# @return [::String]
|
762
|
+
# Sha1 Fingerprint of the certificate.
|
763
|
+
class TlsCertificate
|
764
|
+
include ::Google::Protobuf::MessageExts
|
765
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
766
|
+
end
|
539
767
|
end
|
540
768
|
end
|
541
769
|
end
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Type
|
22
|
+
# Represents a day of the week.
|
23
|
+
module DayOfWeek
|
24
|
+
# The day of the week is unspecified.
|
25
|
+
DAY_OF_WEEK_UNSPECIFIED = 0
|
26
|
+
|
27
|
+
# Monday
|
28
|
+
MONDAY = 1
|
29
|
+
|
30
|
+
# Tuesday
|
31
|
+
TUESDAY = 2
|
32
|
+
|
33
|
+
# Wednesday
|
34
|
+
WEDNESDAY = 3
|
35
|
+
|
36
|
+
# Thursday
|
37
|
+
THURSDAY = 4
|
38
|
+
|
39
|
+
# Friday
|
40
|
+
FRIDAY = 5
|
41
|
+
|
42
|
+
# Saturday
|
43
|
+
SATURDAY = 6
|
44
|
+
|
45
|
+
# Sunday
|
46
|
+
SUNDAY = 7
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Type
|
22
|
+
# Represents a time of day. The date and time zone are either not significant
|
23
|
+
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
24
|
+
# types are [google.type.Date][google.type.Date] and
|
25
|
+
# `google.protobuf.Timestamp`.
|
26
|
+
# @!attribute [rw] hours
|
27
|
+
# @return [::Integer]
|
28
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
29
|
+
# to allow the value "24:00:00" for scenarios like business closing time.
|
30
|
+
# @!attribute [rw] minutes
|
31
|
+
# @return [::Integer]
|
32
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
33
|
+
# @!attribute [rw] seconds
|
34
|
+
# @return [::Integer]
|
35
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
36
|
+
# allow the value 60 if it allows leap-seconds.
|
37
|
+
# @!attribute [rw] nanos
|
38
|
+
# @return [::Integer]
|
39
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
40
|
+
class TimeOfDay
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-redis-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,6 +190,8 @@ files:
|
|
190
190
|
- proto_docs/google/protobuf/field_mask.rb
|
191
191
|
- proto_docs/google/protobuf/timestamp.rb
|
192
192
|
- proto_docs/google/rpc/status.rb
|
193
|
+
- proto_docs/google/type/dayofweek.rb
|
194
|
+
- proto_docs/google/type/timeofday.rb
|
193
195
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
194
196
|
licenses:
|
195
197
|
- Apache-2.0
|
@@ -202,14 +204,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
204
|
requirements:
|
203
205
|
- - ">="
|
204
206
|
- !ruby/object:Gem::Version
|
205
|
-
version: '2.
|
207
|
+
version: '2.6'
|
206
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
209
|
requirements:
|
208
210
|
- - ">="
|
209
211
|
- !ruby/object:Gem::Version
|
210
212
|
version: '0'
|
211
213
|
requirements: []
|
212
|
-
rubygems_version: 3.3.
|
214
|
+
rubygems_version: 3.3.14
|
213
215
|
signing_key:
|
214
216
|
specification_version: 4
|
215
217
|
summary: API Client library for the Google Cloud Memorystore for Redis V1beta1 API
|