google-cloud-redis 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/redis/v1/cloud_redis_client.rb +2 -1
- data/lib/google/cloud/redis/v1/cloud_redis_pb.rb +7 -0
- data/lib/google/cloud/redis/v1/cloud_redis_services_pb.rb +1 -0
- data/lib/google/cloud/redis/v1/doc/google/cloud/redis/v1/cloud_redis.rb +36 -18
- data/lib/google/cloud/redis/v1beta1/cloud_redis_client.rb +79 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis_client_config.json +5 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis_pb.rb +12 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis_services_pb.rb +4 -0
- data/lib/google/cloud/redis/v1beta1/doc/google/cloud/redis/v1beta1/cloud_redis.rb +46 -17
- data/lib/google/cloud/redis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2fb19151a40d8808cb807b989fdd31990e87b382fb0ca3aa1395be1a5f39fe5
|
4
|
+
data.tar.gz: d9f0da557e9c62c23efe66d92d6b4c639aa9a85676a5da35a99ab805257791d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62c1646de3e33cda2c4d717811980d5f5a61630438f9da8f7cec2725776c81fa49956306d5746356d13a9bea05f8b4aa23e8ddb2f076b1575f4c21dfdacf5b8f
|
7
|
+
data.tar.gz: 357c69217ec6a5c27dd3874c8dbd7cf83c8b7d6f1fef8d4b534bedd7dcce0a6bee4a1e77578fce1564107800fb09b138b9edcb986ad82eceedecddaa5fb1879d
|
@@ -318,6 +318,7 @@ module Google
|
|
318
318
|
# location (region) or all locations.
|
319
319
|
#
|
320
320
|
# The location should have the following format:
|
321
|
+
#
|
321
322
|
# * `projects/{project_id}/locations/{location_id}`
|
322
323
|
#
|
323
324
|
# If `location_id` is specified as `-` (wildcard), then all regions
|
@@ -512,7 +513,7 @@ module Google
|
|
512
513
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
513
514
|
# Required. Mask of fields to update. At least one path must be supplied in
|
514
515
|
# this field. The elements of the repeated paths field may only include these
|
515
|
-
# fields from {
|
516
|
+
# fields from {Google::Cloud::Redis::V1::Instance Instance}:
|
516
517
|
#
|
517
518
|
# * `displayName`
|
518
519
|
# * `labels`
|
@@ -31,6 +31,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
31
|
optional :memory_size_gb, :int32, 18
|
32
32
|
optional :authorized_network, :string, 20
|
33
33
|
optional :persistence_iam_identity, :string, 21
|
34
|
+
optional :connect_mode, :enum, 22, "google.cloud.redis.v1.Instance.ConnectMode"
|
34
35
|
end
|
35
36
|
add_enum "google.cloud.redis.v1.Instance.State" do
|
36
37
|
value :STATE_UNSPECIFIED, 0
|
@@ -48,6 +49,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
48
49
|
value :BASIC, 1
|
49
50
|
value :STANDARD_HA, 3
|
50
51
|
end
|
52
|
+
add_enum "google.cloud.redis.v1.Instance.ConnectMode" do
|
53
|
+
value :CONNECT_MODE_UNSPECIFIED, 0
|
54
|
+
value :DIRECT_PEERING, 1
|
55
|
+
value :PRIVATE_SERVICE_ACCESS, 2
|
56
|
+
end
|
51
57
|
add_message "google.cloud.redis.v1.ListInstancesRequest" do
|
52
58
|
optional :parent, :string, 1
|
53
59
|
optional :page_size, :int32, 2
|
@@ -129,6 +135,7 @@ module Google
|
|
129
135
|
Instance = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance").msgclass
|
130
136
|
Instance::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.State").enummodule
|
131
137
|
Instance::Tier = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.Tier").enummodule
|
138
|
+
Instance::ConnectMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.ConnectMode").enummodule
|
132
139
|
ListInstancesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.ListInstancesRequest").msgclass
|
133
140
|
ListInstancesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.ListInstancesResponse").msgclass
|
134
141
|
GetInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.GetInstanceRequest").msgclass
|
@@ -27,8 +27,8 @@ module Google
|
|
27
27
|
# Note: Redis instances are managed and addressed at regional level so
|
28
28
|
# location_id here refers to a GCP region; however, users may choose which
|
29
29
|
# specific zone (or collection of zones for cross-zone instances) an instance
|
30
|
-
# should be provisioned in. Refer to
|
31
|
-
#
|
30
|
+
# should be provisioned in. Refer to {Google::Cloud::Redis::V1::Instance#location_id location_id} and
|
31
|
+
# {Google::Cloud::Redis::V1::Instance#alternative_location_id alternative_location_id} fields for more details.
|
32
32
|
# @!attribute [rw] display_name
|
33
33
|
# @return [String]
|
34
34
|
# An arbitrary and optional user-provided name for the instance.
|
@@ -40,19 +40,18 @@ module Google
|
|
40
40
|
# Optional. The zone where the instance will be provisioned. If not provided,
|
41
41
|
# the service will choose a zone for the instance. For STANDARD_HA tier,
|
42
42
|
# instances will be created across two zones for protection against zonal
|
43
|
-
# failures. If
|
44
|
-
# different from
|
43
|
+
# failures. If {Google::Cloud::Redis::V1::Instance#alternative_location_id alternative_location_id} is also provided, it must be
|
44
|
+
# different from {Google::Cloud::Redis::V1::Instance#location_id location_id}.
|
45
45
|
# @!attribute [rw] alternative_location_id
|
46
46
|
# @return [String]
|
47
47
|
# Optional. Only applicable to STANDARD_HA tier which protects the instance
|
48
48
|
# against zonal failures by provisioning it across two zones. If provided, it
|
49
|
-
# must be a different zone from the one provided in
|
49
|
+
# must be a different zone from the one provided in {Google::Cloud::Redis::V1::Instance#location_id location_id}.
|
50
50
|
# @!attribute [rw] redis_version
|
51
51
|
# @return [String]
|
52
52
|
# Optional. The version of Redis software.
|
53
|
-
# If not provided, latest supported version will be used.
|
54
|
-
#
|
55
|
-
# the supported values are:
|
53
|
+
# If not provided, latest supported version will be used. Currently, the
|
54
|
+
# supported values are:
|
56
55
|
#
|
57
56
|
# * `REDIS_4_0` for Redis 4.0 compatibility (default)
|
58
57
|
# * `REDIS_3_2` for Redis 3.2 compatibility
|
@@ -72,9 +71,9 @@ module Google
|
|
72
71
|
# @!attribute [rw] current_location_id
|
73
72
|
# @return [String]
|
74
73
|
# Output only. The current zone where the Redis endpoint is placed. For Basic
|
75
|
-
# Tier instances, this will always be the same as the
|
74
|
+
# Tier instances, this will always be the same as the {Google::Cloud::Redis::V1::Instance#location_id location_id}
|
76
75
|
# provided by the user at creation time. For Standard Tier instances,
|
77
|
-
# this can be either
|
76
|
+
# this can be either {Google::Cloud::Redis::V1::Instance#location_id location_id} or {Google::Cloud::Redis::V1::Instance#alternative_location_id alternative_location_id} and can
|
78
77
|
# change after a failover event.
|
79
78
|
# @!attribute [rw] create_time
|
80
79
|
# @return [Google::Protobuf::Timestamp]
|
@@ -121,7 +120,25 @@ module Google
|
|
121
120
|
# "serviceAccount:<service_account_email>". The value may change over time
|
122
121
|
# for a given instance so should be checked before each import/export
|
123
122
|
# operation.
|
123
|
+
# @!attribute [rw] connect_mode
|
124
|
+
# @return [Google::Cloud::Redis::V1::Instance::ConnectMode]
|
125
|
+
# Optional. The connect mode of Redis instance.
|
126
|
+
# If not provided, default one will be used.
|
127
|
+
# Current default: DIRECT_PEERING.
|
124
128
|
class Instance
|
129
|
+
# Available connection modes.
|
130
|
+
module ConnectMode
|
131
|
+
# Not set.
|
132
|
+
CONNECT_MODE_UNSPECIFIED = 0
|
133
|
+
|
134
|
+
# Connect via directly peering with memorystore redis hosted service.
|
135
|
+
DIRECT_PEERING = 1
|
136
|
+
|
137
|
+
# Connect with google via private service access and share connection
|
138
|
+
# across google managed services.
|
139
|
+
PRIVATE_SERVICE_ACCESS = 2
|
140
|
+
end
|
141
|
+
|
125
142
|
# Represents the different states of a Redis instance.
|
126
143
|
module State
|
127
144
|
# Not set.
|
@@ -180,12 +197,12 @@ module Google
|
|
180
197
|
# If not specified, a default value of 1000 will be used by the service.
|
181
198
|
# Regardless of the page_size value, the response may include a partial list
|
182
199
|
# and a caller should only rely on response's
|
183
|
-
# {
|
200
|
+
# {Google::Cloud::Redis::V1::ListInstancesResponse#next_page_token `next_page_token`}
|
184
201
|
# to determine if there are more instances left to be queried.
|
185
202
|
# @!attribute [rw] page_token
|
186
203
|
# @return [String]
|
187
|
-
# The next_page_token value returned from a previous
|
188
|
-
# if any.
|
204
|
+
# The `next_page_token` value returned from a previous
|
205
|
+
# {Google::Cloud::Redis::V1::CloudRedis::ListInstances ListInstances} request, if any.
|
189
206
|
class ListInstancesRequest; end
|
190
207
|
|
191
208
|
# Response for {Google::Cloud::Redis::V1::CloudRedis::ListInstances ListInstances}.
|
@@ -197,10 +214,10 @@ module Google
|
|
197
214
|
# If the `location_id` in the parent field of the request is "-", all regions
|
198
215
|
# available to the project are queried, and the results aggregated.
|
199
216
|
# If in such an aggregated query a location is unavailable, a dummy Redis
|
200
|
-
# entry is included in the response with the
|
201
|
-
# the form projects
|
202
|
-
#
|
203
|
-
# available for ListInstances".
|
217
|
+
# entry is included in the response with the `name` field set to a value of
|
218
|
+
# the form `projects/{project_id}/locations/{location_id}/instances/`- and
|
219
|
+
# the `status` field set to ERROR and `status_message` field set to "location
|
220
|
+
# not available for ListInstances".
|
204
221
|
# @!attribute [rw] next_page_token
|
205
222
|
# @return [String]
|
206
223
|
# Token to retrieve the next page of results, or empty if there are no more
|
@@ -244,7 +261,7 @@ module Google
|
|
244
261
|
# @return [Google::Protobuf::FieldMask]
|
245
262
|
# Required. Mask of fields to update. At least one path must be supplied in
|
246
263
|
# this field. The elements of the repeated paths field may only include these
|
247
|
-
# fields from {
|
264
|
+
# fields from {Google::Cloud::Redis::V1::Instance Instance}:
|
248
265
|
#
|
249
266
|
# * `displayName`
|
250
267
|
# * `labels`
|
@@ -322,6 +339,7 @@ module Google
|
|
322
339
|
# Optional. Available data protection modes that the user can choose. If it's
|
323
340
|
# unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
|
324
341
|
class FailoverInstanceRequest
|
342
|
+
# Specifies different modes of operation in relation to the data retention.
|
325
343
|
module DataProtectionMode
|
326
344
|
# Defaults to LIMITED_DATA_LOSS if a data protection mode is not
|
327
345
|
# specified.
|
@@ -310,6 +310,14 @@ module Google
|
|
310
310
|
{'name' => request.name}
|
311
311
|
end
|
312
312
|
)
|
313
|
+
@upgrade_instance = Google::Gax.create_api_call(
|
314
|
+
@cloud_redis_stub.method(:upgrade_instance),
|
315
|
+
defaults["upgrade_instance"],
|
316
|
+
exception_transformer: exception_transformer,
|
317
|
+
params_extractor: proc do |request|
|
318
|
+
{'name' => request.name}
|
319
|
+
end
|
320
|
+
)
|
313
321
|
end
|
314
322
|
|
315
323
|
# Service calls
|
@@ -318,6 +326,7 @@ module Google
|
|
318
326
|
# location (region) or all locations.
|
319
327
|
#
|
320
328
|
# The location should have the following format:
|
329
|
+
#
|
321
330
|
# * `projects/{project_id}/locations/{location_id}`
|
322
331
|
#
|
323
332
|
# If `location_id` is specified as `-` (wildcard), then all regions
|
@@ -877,6 +886,76 @@ module Google
|
|
877
886
|
operation.on_done { |operation| yield(operation) } if block_given?
|
878
887
|
operation
|
879
888
|
end
|
889
|
+
|
890
|
+
# Upgrades Redis instance to the newer Redis version specified in the
|
891
|
+
# request.
|
892
|
+
#
|
893
|
+
# @param name [String]
|
894
|
+
# Required. Redis instance resource name using the form:
|
895
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
896
|
+
# where `location_id` refers to a GCP region.
|
897
|
+
# @param redis_version [String]
|
898
|
+
# Required. Specifies the target version of Redis software to upgrade to.
|
899
|
+
# @param options [Google::Gax::CallOptions]
|
900
|
+
# Overrides the default settings for this call, e.g, timeout,
|
901
|
+
# retries, etc.
|
902
|
+
# @return [Google::Gax::Operation]
|
903
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
904
|
+
# @example
|
905
|
+
# require "google/cloud/redis"
|
906
|
+
#
|
907
|
+
# cloud_redis_client = Google::Cloud::Redis.new(version: :v1beta1)
|
908
|
+
# formatted_name = Google::Cloud::Redis::V1beta1::CloudRedisClient.instance_path("[PROJECT]", "[LOCATION]", "[INSTANCE]")
|
909
|
+
#
|
910
|
+
# # TODO: Initialize `redis_version`:
|
911
|
+
# redis_version = ''
|
912
|
+
#
|
913
|
+
# # Register a callback during the method call.
|
914
|
+
# operation = cloud_redis_client.upgrade_instance(formatted_name, redis_version) do |op|
|
915
|
+
# raise op.results.message if op.error?
|
916
|
+
# op_results = op.results
|
917
|
+
# # Process the results.
|
918
|
+
#
|
919
|
+
# metadata = op.metadata
|
920
|
+
# # Process the metadata.
|
921
|
+
# end
|
922
|
+
#
|
923
|
+
# # Or use the return value to register a callback.
|
924
|
+
# operation.on_done do |op|
|
925
|
+
# raise op.results.message if op.error?
|
926
|
+
# op_results = op.results
|
927
|
+
# # Process the results.
|
928
|
+
#
|
929
|
+
# metadata = op.metadata
|
930
|
+
# # Process the metadata.
|
931
|
+
# end
|
932
|
+
#
|
933
|
+
# # Manually reload the operation.
|
934
|
+
# operation.reload!
|
935
|
+
#
|
936
|
+
# # Or block until the operation completes, triggering callbacks on
|
937
|
+
# # completion.
|
938
|
+
# operation.wait_until_done!
|
939
|
+
|
940
|
+
def upgrade_instance \
|
941
|
+
name,
|
942
|
+
redis_version,
|
943
|
+
options: nil
|
944
|
+
req = {
|
945
|
+
name: name,
|
946
|
+
redis_version: redis_version
|
947
|
+
}.delete_if { |_, v| v.nil? }
|
948
|
+
req = Google::Gax::to_proto(req, Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest)
|
949
|
+
operation = Google::Gax::Operation.new(
|
950
|
+
@upgrade_instance.call(req, options),
|
951
|
+
@operations_client,
|
952
|
+
Google::Cloud::Redis::V1beta1::Instance,
|
953
|
+
Google::Protobuf::Any,
|
954
|
+
call_options: options
|
955
|
+
)
|
956
|
+
operation.on_done { |operation| yield(operation) } if block_given?
|
957
|
+
operation
|
958
|
+
end
|
880
959
|
end
|
881
960
|
end
|
882
961
|
end
|
@@ -31,6 +31,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
31
|
optional :memory_size_gb, :int32, 18
|
32
32
|
optional :authorized_network, :string, 20
|
33
33
|
optional :persistence_iam_identity, :string, 21
|
34
|
+
optional :connect_mode, :enum, 22, "google.cloud.redis.v1beta1.Instance.ConnectMode"
|
34
35
|
end
|
35
36
|
add_enum "google.cloud.redis.v1beta1.Instance.State" do
|
36
37
|
value :STATE_UNSPECIFIED, 0
|
@@ -48,6 +49,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
48
49
|
value :BASIC, 1
|
49
50
|
value :STANDARD_HA, 3
|
50
51
|
end
|
52
|
+
add_enum "google.cloud.redis.v1beta1.Instance.ConnectMode" do
|
53
|
+
value :CONNECT_MODE_UNSPECIFIED, 0
|
54
|
+
value :DIRECT_PEERING, 1
|
55
|
+
value :PRIVATE_SERVICE_ACCESS, 2
|
56
|
+
end
|
51
57
|
add_message "google.cloud.redis.v1beta1.ListInstancesRequest" do
|
52
58
|
optional :parent, :string, 1
|
53
59
|
optional :page_size, :int32, 2
|
@@ -70,6 +76,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
70
76
|
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
71
77
|
optional :instance, :message, 2, "google.cloud.redis.v1beta1.Instance"
|
72
78
|
end
|
79
|
+
add_message "google.cloud.redis.v1beta1.UpgradeInstanceRequest" do
|
80
|
+
optional :name, :string, 1
|
81
|
+
optional :redis_version, :string, 2
|
82
|
+
end
|
73
83
|
add_message "google.cloud.redis.v1beta1.DeleteInstanceRequest" do
|
74
84
|
optional :name, :string, 1
|
75
85
|
end
|
@@ -120,11 +130,13 @@ module Google
|
|
120
130
|
Instance = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance").msgclass
|
121
131
|
Instance::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.State").enummodule
|
122
132
|
Instance::Tier = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.Tier").enummodule
|
133
|
+
Instance::ConnectMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.Instance.ConnectMode").enummodule
|
123
134
|
ListInstancesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ListInstancesRequest").msgclass
|
124
135
|
ListInstancesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.ListInstancesResponse").msgclass
|
125
136
|
GetInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.GetInstanceRequest").msgclass
|
126
137
|
CreateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.CreateInstanceRequest").msgclass
|
127
138
|
UpdateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.UpdateInstanceRequest").msgclass
|
139
|
+
UpgradeInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.UpgradeInstanceRequest").msgclass
|
128
140
|
DeleteInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.DeleteInstanceRequest").msgclass
|
129
141
|
GcsSource = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.GcsSource").msgclass
|
130
142
|
InputConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1beta1.InputConfig").msgclass
|
@@ -53,6 +53,7 @@ module Google
|
|
53
53
|
# location (region) or all locations.
|
54
54
|
#
|
55
55
|
# The location should have the following format:
|
56
|
+
#
|
56
57
|
# * `projects/{project_id}/locations/{location_id}`
|
57
58
|
#
|
58
59
|
# If `location_id` is specified as `-` (wildcard), then all regions
|
@@ -79,6 +80,9 @@ module Google
|
|
79
80
|
# in the response field. The returned operation is automatically deleted
|
80
81
|
# after a few hours, so there is no need to call DeleteOperation.
|
81
82
|
rpc :UpdateInstance, UpdateInstanceRequest, Google::Longrunning::Operation
|
83
|
+
# Upgrades Redis instance to the newer Redis version specified in the
|
84
|
+
# request.
|
85
|
+
rpc :UpgradeInstance, UpgradeInstanceRequest, Google::Longrunning::Operation
|
82
86
|
# Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
|
83
87
|
#
|
84
88
|
# Redis may stop serving during this operation. Instance state will be
|
@@ -27,8 +27,8 @@ module Google
|
|
27
27
|
# Note: Redis instances are managed and addressed at regional level so
|
28
28
|
# location_id here refers to a GCP region; however, users may choose which
|
29
29
|
# specific zone (or collection of zones for cross-zone instances) an instance
|
30
|
-
# should be provisioned in. Refer to
|
31
|
-
#
|
30
|
+
# should be provisioned in. Refer to {Google::Cloud::Redis::V1beta1::Instance#location_id location_id} and
|
31
|
+
# {Google::Cloud::Redis::V1beta1::Instance#alternative_location_id alternative_location_id} fields for more details.
|
32
32
|
# @!attribute [rw] display_name
|
33
33
|
# @return [String]
|
34
34
|
# An arbitrary and optional user-provided name for the instance.
|
@@ -40,19 +40,18 @@ module Google
|
|
40
40
|
# Optional. The zone where the instance will be provisioned. If not provided,
|
41
41
|
# the service will choose a zone for the instance. For STANDARD_HA tier,
|
42
42
|
# instances will be created across two zones for protection against zonal
|
43
|
-
# failures. If
|
44
|
-
# different from
|
43
|
+
# failures. If {Google::Cloud::Redis::V1beta1::Instance#alternative_location_id alternative_location_id} is also provided, it must be
|
44
|
+
# different from {Google::Cloud::Redis::V1beta1::Instance#location_id location_id}.
|
45
45
|
# @!attribute [rw] alternative_location_id
|
46
46
|
# @return [String]
|
47
47
|
# Optional. Only applicable to STANDARD_HA tier which protects the instance
|
48
48
|
# against zonal failures by provisioning it across two zones. If provided, it
|
49
|
-
# must be a different zone from the one provided in
|
49
|
+
# must be a different zone from the one provided in {Google::Cloud::Redis::V1beta1::Instance#location_id location_id}.
|
50
50
|
# @!attribute [rw] redis_version
|
51
51
|
# @return [String]
|
52
52
|
# Optional. The version of Redis software.
|
53
|
-
# If not provided, latest supported version will be used.
|
54
|
-
#
|
55
|
-
# the supported values are:
|
53
|
+
# If not provided, latest supported version will be used. Currently, the
|
54
|
+
# supported values are:
|
56
55
|
#
|
57
56
|
# * `REDIS_4_0` for Redis 4.0 compatibility (default)
|
58
57
|
# * `REDIS_3_2` for Redis 3.2 compatibility
|
@@ -72,9 +71,9 @@ module Google
|
|
72
71
|
# @!attribute [rw] current_location_id
|
73
72
|
# @return [String]
|
74
73
|
# Output only. The current zone where the Redis endpoint is placed. For Basic
|
75
|
-
# Tier instances, this will always be the same as the
|
74
|
+
# Tier instances, this will always be the same as the {Google::Cloud::Redis::V1beta1::Instance#location_id location_id}
|
76
75
|
# provided by the user at creation time. For Standard Tier instances,
|
77
|
-
# this can be either
|
76
|
+
# this can be either {Google::Cloud::Redis::V1beta1::Instance#location_id location_id} or {Google::Cloud::Redis::V1beta1::Instance#alternative_location_id alternative_location_id} and can
|
78
77
|
# change after a failover event.
|
79
78
|
# @!attribute [rw] create_time
|
80
79
|
# @return [Google::Protobuf::Timestamp]
|
@@ -121,7 +120,25 @@ module Google
|
|
121
120
|
# "serviceAccount:<service_account_email>". The value may change over time
|
122
121
|
# for a given instance so should be checked before each import/export
|
123
122
|
# operation.
|
123
|
+
# @!attribute [rw] connect_mode
|
124
|
+
# @return [Google::Cloud::Redis::V1beta1::Instance::ConnectMode]
|
125
|
+
# Optional. The connect mode of Redis instance.
|
126
|
+
# If not provided, default one will be used.
|
127
|
+
# Current default: DIRECT_PEERING.
|
124
128
|
class Instance
|
129
|
+
# Available connection modes.
|
130
|
+
module ConnectMode
|
131
|
+
# Not set.
|
132
|
+
CONNECT_MODE_UNSPECIFIED = 0
|
133
|
+
|
134
|
+
# Connect via directly peering with memorystore redis hosted service.
|
135
|
+
DIRECT_PEERING = 1
|
136
|
+
|
137
|
+
# Connect with google via private service access and share connection
|
138
|
+
# across google managed services.
|
139
|
+
PRIVATE_SERVICE_ACCESS = 2
|
140
|
+
end
|
141
|
+
|
125
142
|
# Represents the different states of a Redis instance.
|
126
143
|
module State
|
127
144
|
# Not set.
|
@@ -180,12 +197,12 @@ module Google
|
|
180
197
|
# If not specified, a default value of 1000 will be used by the service.
|
181
198
|
# Regardless of the page_size value, the response may include a partial list
|
182
199
|
# and a caller should only rely on response's
|
183
|
-
# {
|
200
|
+
# {Google::Cloud::Redis::V1beta1::ListInstancesResponse#next_page_token `next_page_token`}
|
184
201
|
# to determine if there are more instances left to be queried.
|
185
202
|
# @!attribute [rw] page_token
|
186
203
|
# @return [String]
|
187
|
-
# The next_page_token value returned from a previous
|
188
|
-
# if any.
|
204
|
+
# The `next_page_token` value returned from a previous
|
205
|
+
# {Google::Cloud::Redis::V1beta1::CloudRedis::ListInstances ListInstances} request, if any.
|
189
206
|
class ListInstancesRequest; end
|
190
207
|
|
191
208
|
# Response for {Google::Cloud::Redis::V1beta1::CloudRedis::ListInstances ListInstances}.
|
@@ -197,10 +214,10 @@ module Google
|
|
197
214
|
# If the `location_id` in the parent field of the request is "-", all regions
|
198
215
|
# available to the project are queried, and the results aggregated.
|
199
216
|
# If in such an aggregated query a location is unavailable, a dummy Redis
|
200
|
-
# entry is included in the response with the
|
201
|
-
# the form projects
|
202
|
-
#
|
203
|
-
# available for ListInstances".
|
217
|
+
# entry is included in the response with the `name` field set to a value of
|
218
|
+
# the form `projects/{project_id}/locations/{location_id}/instances/`- and
|
219
|
+
# the `status` field set to ERROR and `status_message` field set to "location
|
220
|
+
# not available for ListInstances".
|
204
221
|
# @!attribute [rw] next_page_token
|
205
222
|
# @return [String]
|
206
223
|
# Token to retrieve the next page of results, or empty if there are no more
|
@@ -256,6 +273,17 @@ module Google
|
|
256
273
|
# Only fields specified in update_mask are updated.
|
257
274
|
class UpdateInstanceRequest; end
|
258
275
|
|
276
|
+
# Request for {Google::Cloud::Redis::V1beta1::CloudRedis::UpgradeInstance UpgradeInstance}.
|
277
|
+
# @!attribute [rw] name
|
278
|
+
# @return [String]
|
279
|
+
# Required. Redis instance resource name using the form:
|
280
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
281
|
+
# where `location_id` refers to a GCP region.
|
282
|
+
# @!attribute [rw] redis_version
|
283
|
+
# @return [String]
|
284
|
+
# Required. Specifies the target version of Redis software to upgrade to.
|
285
|
+
class UpgradeInstanceRequest; end
|
286
|
+
|
259
287
|
# Request for {Google::Cloud::Redis::V1beta1::CloudRedis::DeleteInstance DeleteInstance}.
|
260
288
|
# @!attribute [rw] name
|
261
289
|
# @return [String]
|
@@ -322,6 +350,7 @@ module Google
|
|
322
350
|
# Optional. Available data protection modes that the user can choose. If it's
|
323
351
|
# unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
|
324
352
|
class FailoverInstanceRequest
|
353
|
+
# Specifies different modes of operation in relation to the data retention.
|
325
354
|
module DataProtectionMode
|
326
355
|
# Defaults to LIMITED_DATA_LOSS if a data protection mode is not
|
327
356
|
# specified.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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: 2020-
|
11
|
+
date: 2020-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|