google-cloud-redis 0.2.3 → 0.3.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/.yardopts +2 -0
- data/AUTHENTICATION.md +199 -0
- data/README.md +1 -2
- data/lib/google/cloud/redis.rb +3 -4
- data/lib/google/cloud/redis/v1.rb +3 -4
- data/lib/google/cloud/redis/v1/cloud_redis_client.rb +117 -23
- data/lib/google/cloud/redis/v1/cloud_redis_client_config.json +5 -0
- data/lib/google/cloud/redis/v1/cloud_redis_pb.rb +14 -0
- data/lib/google/cloud/redis/v1/cloud_redis_services_pb.rb +6 -2
- data/lib/google/cloud/redis/v1/credentials.rb +1 -1
- data/lib/google/cloud/redis/v1/doc/google/cloud/redis/v1/cloud_redis.rb +33 -3
- data/lib/google/cloud/redis/v1/doc/google/longrunning/operations.rb +2 -44
- data/lib/google/cloud/redis/v1/doc/google/protobuf/any.rb +3 -2
- data/lib/google/cloud/redis/v1/doc/google/protobuf/field_mask.rb +19 -27
- data/lib/google/cloud/redis/v1/doc/google/protobuf/timestamp.rb +16 -14
- data/lib/google/cloud/redis/v1/doc/google/rpc/status.rb +18 -15
- data/lib/google/cloud/redis/v1beta1.rb +2 -3
- data/lib/google/cloud/redis/v1beta1/cloud_redis_client.rb +123 -28
- data/lib/google/cloud/redis/v1beta1/cloud_redis_client_config.json +5 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis_pb.rb +15 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis_services_pb.rb +6 -2
- data/lib/google/cloud/redis/v1beta1/credentials.rb +1 -1
- data/lib/google/cloud/redis/v1beta1/doc/google/cloud/redis/v1beta1/cloud_redis.rb +79 -25
- data/lib/google/cloud/redis/v1beta1/doc/google/longrunning/operations.rb +2 -44
- data/lib/google/cloud/redis/v1beta1/doc/google/protobuf/any.rb +3 -2
- data/lib/google/cloud/redis/v1beta1/doc/google/protobuf/field_mask.rb +19 -27
- data/lib/google/cloud/redis/v1beta1/doc/google/protobuf/timestamp.rb +16 -14
- data/lib/google/cloud/redis/v1beta1/doc/google/rpc/status.rb +18 -15
- metadata +26 -6
@@ -5,6 +5,7 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/resource_pb'
|
8
9
|
require 'google/longrunning/operations_pb'
|
9
10
|
require 'google/protobuf/field_mask_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
@@ -36,6 +37,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
37
|
value :DELETING, 4
|
37
38
|
value :REPAIRING, 5
|
38
39
|
value :MAINTENANCE, 6
|
40
|
+
value :FAILING_OVER, 9
|
39
41
|
end
|
40
42
|
add_enum "google.cloud.redis.v1.Instance.Tier" do
|
41
43
|
value :TIER_UNSPECIFIED, 0
|
@@ -50,6 +52,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
50
52
|
add_message "google.cloud.redis.v1.ListInstancesResponse" do
|
51
53
|
repeated :instances, :message, 1, "google.cloud.redis.v1.Instance"
|
52
54
|
optional :next_page_token, :string, 2
|
55
|
+
repeated :unreachable, :string, 3
|
53
56
|
end
|
54
57
|
add_message "google.cloud.redis.v1.GetInstanceRequest" do
|
55
58
|
optional :name, :string, 1
|
@@ -66,6 +69,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
66
69
|
add_message "google.cloud.redis.v1.DeleteInstanceRequest" do
|
67
70
|
optional :name, :string, 1
|
68
71
|
end
|
72
|
+
add_message "google.cloud.redis.v1.FailoverInstanceRequest" do
|
73
|
+
optional :name, :string, 1
|
74
|
+
optional :data_protection_mode, :enum, 2, "google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode"
|
75
|
+
end
|
76
|
+
add_enum "google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode" do
|
77
|
+
value :DATA_PROTECTION_MODE_UNSPECIFIED, 0
|
78
|
+
value :LIMITED_DATA_LOSS, 1
|
79
|
+
value :FORCE_DATA_LOSS, 2
|
80
|
+
end
|
69
81
|
add_message "google.cloud.redis.v1.OperationMetadata" do
|
70
82
|
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
71
83
|
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
@@ -95,6 +107,8 @@ module Google
|
|
95
107
|
CreateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.CreateInstanceRequest").msgclass
|
96
108
|
UpdateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.UpdateInstanceRequest").msgclass
|
97
109
|
DeleteInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.DeleteInstanceRequest").msgclass
|
110
|
+
FailoverInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.FailoverInstanceRequest").msgclass
|
111
|
+
FailoverInstanceRequest::DataProtectionMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode").enummodule
|
98
112
|
OperationMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.OperationMetadata").msgclass
|
99
113
|
LocationMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.LocationMetadata").msgclass
|
100
114
|
ZoneMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.ZoneMetadata").msgclass
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/redis/v1/cloud_redis.proto for package 'google.cloud.redis.v1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
#
|
18
19
|
|
19
20
|
|
20
21
|
require 'grpc'
|
@@ -38,7 +39,7 @@ module Google
|
|
38
39
|
# * As such, Redis instances are resources of the form:
|
39
40
|
# `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
40
41
|
#
|
41
|
-
# Note that location_id must be
|
42
|
+
# Note that location_id must be referring to a GCP `region`; for example:
|
42
43
|
# * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
|
43
44
|
class Service
|
44
45
|
|
@@ -78,6 +79,9 @@ module Google
|
|
78
79
|
# in the response field. The returned operation is automatically deleted
|
79
80
|
# after a few hours, so there is no need to call DeleteOperation.
|
80
81
|
rpc :UpdateInstance, UpdateInstanceRequest, Google::Longrunning::Operation
|
82
|
+
# Failover the master role to current replica node against a specific
|
83
|
+
# STANDARD tier redis instance.
|
84
|
+
rpc :FailoverInstance, FailoverInstanceRequest, Google::Longrunning::Operation
|
81
85
|
# Deletes a specific Redis instance. Instance stops serving and data is
|
82
86
|
# deleted.
|
83
87
|
rpc :DeleteInstance, DeleteInstanceRequest, Google::Longrunning::Operation
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -123,12 +123,14 @@ module Google
|
|
123
123
|
# Redis instance is being deleted.
|
124
124
|
DELETING = 4
|
125
125
|
|
126
|
-
# Redis instance is being repaired and may be unusable.
|
127
|
-
# found in the `status_message` field.
|
126
|
+
# Redis instance is being repaired and may be unusable.
|
128
127
|
REPAIRING = 5
|
129
128
|
|
130
129
|
# Maintenance is being performed on this Redis instance.
|
131
130
|
MAINTENANCE = 6
|
131
|
+
|
132
|
+
# Redis instance is failing over (availability may be affected).
|
133
|
+
FAILING_OVER = 9
|
132
134
|
end
|
133
135
|
|
134
136
|
# Available service tiers to choose from
|
@@ -182,6 +184,9 @@ module Google
|
|
182
184
|
# @return [String]
|
183
185
|
# Token to retrieve the next page of results, or empty if there are no more
|
184
186
|
# results in the list.
|
187
|
+
# @!attribute [rw] unreachable
|
188
|
+
# @return [Array<String>]
|
189
|
+
# Locations that could not be reached.
|
185
190
|
class ListInstancesResponse; end
|
186
191
|
|
187
192
|
# Request for {Google::Cloud::Redis::V1::CloudRedis::GetInstance GetInstance}.
|
@@ -238,6 +243,31 @@ module Google
|
|
238
243
|
# where `location_id` refers to a GCP region
|
239
244
|
class DeleteInstanceRequest; end
|
240
245
|
|
246
|
+
# Request for {Google::Cloud::Redis::V1::CloudRedis::FailoverInstance Failover}.
|
247
|
+
# @!attribute [rw] name
|
248
|
+
# @return [String]
|
249
|
+
# Required. Redis instance resource name using the form:
|
250
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
251
|
+
# where `location_id` refers to a GCP region
|
252
|
+
# @!attribute [rw] data_protection_mode
|
253
|
+
# @return [Google::Cloud::Redis::V1::FailoverInstanceRequest::DataProtectionMode]
|
254
|
+
# Optional. Available data protection modes that the user can choose. If it's
|
255
|
+
# unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
|
256
|
+
class FailoverInstanceRequest
|
257
|
+
module DataProtectionMode
|
258
|
+
DATA_PROTECTION_MODE_UNSPECIFIED = 0
|
259
|
+
|
260
|
+
# Instance failover will be protected with data loss control. More
|
261
|
+
# specifically, the failover will only be performed if the current
|
262
|
+
# replication offset diff between master and replica is under a certain
|
263
|
+
# threshold.
|
264
|
+
LIMITED_DATA_LOSS = 1
|
265
|
+
|
266
|
+
# Instance failover will be performed without data loss control.
|
267
|
+
FORCE_DATA_LOSS = 2
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
241
271
|
# Represents the v1 metadata of the long-running operation.
|
242
272
|
# @!attribute [rw] create_time
|
243
273
|
# @return [Google::Protobuf::Timestamp]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# @!attribute [rw] done
|
32
32
|
# @return [true, false]
|
33
33
|
# If the value is `false`, it means the operation is still in progress.
|
34
|
-
# If true
|
34
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
35
35
|
# available.
|
36
36
|
# @!attribute [rw] error
|
37
37
|
# @return [Google::Rpc::Status]
|
@@ -47,47 +47,5 @@ module Google
|
|
47
47
|
# is `TakeSnapshot()`, the inferred response type is
|
48
48
|
# `TakeSnapshotResponse`.
|
49
49
|
class Operation; end
|
50
|
-
|
51
|
-
# The request message for {Google::Longrunning::Operations::GetOperation Operations::GetOperation}.
|
52
|
-
# @!attribute [rw] name
|
53
|
-
# @return [String]
|
54
|
-
# The name of the operation resource.
|
55
|
-
class GetOperationRequest; end
|
56
|
-
|
57
|
-
# The request message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
|
58
|
-
# @!attribute [rw] name
|
59
|
-
# @return [String]
|
60
|
-
# The name of the operation collection.
|
61
|
-
# @!attribute [rw] filter
|
62
|
-
# @return [String]
|
63
|
-
# The standard list filter.
|
64
|
-
# @!attribute [rw] page_size
|
65
|
-
# @return [Integer]
|
66
|
-
# The standard list page size.
|
67
|
-
# @!attribute [rw] page_token
|
68
|
-
# @return [String]
|
69
|
-
# The standard list page token.
|
70
|
-
class ListOperationsRequest; end
|
71
|
-
|
72
|
-
# The response message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
|
73
|
-
# @!attribute [rw] operations
|
74
|
-
# @return [Array<Google::Longrunning::Operation>]
|
75
|
-
# A list of operations that matches the specified filter in the request.
|
76
|
-
# @!attribute [rw] next_page_token
|
77
|
-
# @return [String]
|
78
|
-
# The standard List next-page token.
|
79
|
-
class ListOperationsResponse; end
|
80
|
-
|
81
|
-
# The request message for {Google::Longrunning::Operations::CancelOperation Operations::CancelOperation}.
|
82
|
-
# @!attribute [rw] name
|
83
|
-
# @return [String]
|
84
|
-
# The name of the operation resource to be cancelled.
|
85
|
-
class CancelOperationRequest; end
|
86
|
-
|
87
|
-
# The request message for {Google::Longrunning::Operations::DeleteOperation Operations::DeleteOperation}.
|
88
|
-
# @!attribute [rw] name
|
89
|
-
# @return [String]
|
90
|
-
# The name of the operation resource to be deleted.
|
91
|
-
class DeleteOperationRequest; end
|
92
50
|
end
|
93
51
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -97,7 +97,8 @@ module Google
|
|
97
97
|
# @!attribute [rw] type_url
|
98
98
|
# @return [String]
|
99
99
|
# A URL/resource name that uniquely identifies the type of the serialized
|
100
|
-
# protocol buffer message.
|
100
|
+
# protocol buffer message. This string must contain at least
|
101
|
+
# one "/" character. The last segment of the URL's path must represent
|
101
102
|
# the fully qualified name of the type (as in
|
102
103
|
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
103
104
|
# (e.g., leading "." is not accepted).
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -83,57 +83,49 @@ module Google
|
|
83
83
|
# describe the updated values, the API ignores the values of all
|
84
84
|
# fields not covered by the mask.
|
85
85
|
#
|
86
|
-
# If a repeated field is specified for an update operation,
|
87
|
-
#
|
88
|
-
#
|
89
|
-
# string.
|
86
|
+
# If a repeated field is specified for an update operation, new values will
|
87
|
+
# be appended to the existing repeated field in the target resource. Note that
|
88
|
+
# a repeated field is only allowed in the last position of a `paths` string.
|
90
89
|
#
|
91
90
|
# If a sub-message is specified in the last position of the field mask for an
|
92
|
-
# update operation, then the existing sub-message
|
93
|
-
#
|
91
|
+
# update operation, then new value will be merged into the existing sub-message
|
92
|
+
# in the target resource.
|
93
|
+
#
|
94
|
+
# For example, given the target message:
|
94
95
|
#
|
95
96
|
# f {
|
96
97
|
# b {
|
97
|
-
# d
|
98
|
-
# x
|
98
|
+
# d: 1
|
99
|
+
# x: 2
|
99
100
|
# }
|
100
|
-
# c
|
101
|
+
# c: [1]
|
101
102
|
# }
|
102
103
|
#
|
103
104
|
# And an update message:
|
104
105
|
#
|
105
106
|
# f {
|
106
107
|
# b {
|
107
|
-
# d
|
108
|
+
# d: 10
|
108
109
|
# }
|
110
|
+
# c: [2]
|
109
111
|
# }
|
110
112
|
#
|
111
113
|
# then if the field mask is:
|
112
114
|
#
|
113
|
-
# paths: "f.b"
|
115
|
+
# paths: ["f.b", "f.c"]
|
114
116
|
#
|
115
117
|
# then the result will be:
|
116
118
|
#
|
117
119
|
# f {
|
118
120
|
# b {
|
119
|
-
# d
|
121
|
+
# d: 10
|
122
|
+
# x: 2
|
120
123
|
# }
|
121
|
-
# c
|
124
|
+
# c: [1, 2]
|
122
125
|
# }
|
123
126
|
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
# paths: "f.b.d"
|
127
|
-
#
|
128
|
-
# then the result would be:
|
129
|
-
#
|
130
|
-
# f {
|
131
|
-
# b {
|
132
|
-
# d : 10
|
133
|
-
# x : 2
|
134
|
-
# }
|
135
|
-
# c : 1
|
136
|
-
# }
|
127
|
+
# An implementation may provide options to override this default behavior for
|
128
|
+
# repeated and message fields.
|
137
129
|
#
|
138
130
|
# In order to reset a field's value to the default, the field must
|
139
131
|
# be in the mask and set to the default value in the provided resource.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -15,17 +15,19 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Protobuf
|
18
|
-
# A Timestamp represents a point in time independent of any time zone
|
19
|
-
#
|
20
|
-
# nanosecond resolution
|
21
|
-
#
|
22
|
-
# backwards to year one.
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
18
|
+
# A Timestamp represents a point in time independent of any time zone or local
|
19
|
+
# calendar, encoded as a count of seconds and fractions of seconds at
|
20
|
+
# nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
21
|
+
# January 1, 1970, in the proleptic Gregorian calendar which extends the
|
22
|
+
# Gregorian calendar backwards to year one.
|
23
|
+
#
|
24
|
+
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
25
|
+
# second table is needed for interpretation, using a [24-hour linear
|
26
|
+
# smear](https://developers.google.com/time/smear).
|
27
|
+
#
|
28
|
+
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
29
|
+
# restricting to that range, we ensure that we can convert to and from [RFC
|
30
|
+
# 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
29
31
|
#
|
30
32
|
# = Examples
|
31
33
|
#
|
@@ -86,12 +88,12 @@ module Google
|
|
86
88
|
# 01:30 UTC on January 15, 2017.
|
87
89
|
#
|
88
90
|
# In JavaScript, one can convert a Date object to this format using the
|
89
|
-
# standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
91
|
+
# standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
90
92
|
# method. In Python, a standard `datetime.datetime` object can be converted
|
91
93
|
# to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
|
92
94
|
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
93
95
|
# can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
94
|
-
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime
|
96
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
95
97
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
96
98
|
# @!attribute [rw] seconds
|
97
99
|
# @return [Integer]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -15,24 +15,25 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Rpc
|
18
|
-
# The `Status` type defines a logical error model that is suitable for
|
19
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
20
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
18
|
+
# The `Status` type defines a logical error model that is suitable for
|
19
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
20
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
21
21
|
#
|
22
22
|
# * Simple to use and understand for most users
|
23
23
|
# * Flexible enough to meet unexpected needs
|
24
24
|
#
|
25
25
|
# = Overview
|
26
26
|
#
|
27
|
-
# The `Status` message contains three pieces of data: error code, error
|
28
|
-
# and error details. The error code should be an enum value of
|
29
|
-
# {Google::Rpc::Code}, but it may accept additional error codes
|
30
|
-
# error message should be a developer-facing English message
|
31
|
-
# developers *understand* and *resolve* the error. If a localized
|
32
|
-
# error message is needed, put the localized message in the error
|
33
|
-
# localize it in the client. The optional error details may contain
|
34
|
-
# information about the error. There is a predefined set of error
|
35
|
-
# in the package `google.rpc` that can be used for common error
|
27
|
+
# The `Status` message contains three pieces of data: error code, error
|
28
|
+
# message, and error details. The error code should be an enum value of
|
29
|
+
# {Google::Rpc::Code}, but it may accept additional error codes
|
30
|
+
# if needed. The error message should be a developer-facing English message
|
31
|
+
# that helps developers *understand* and *resolve* the error. If a localized
|
32
|
+
# user-facing error message is needed, put the localized message in the error
|
33
|
+
# details or localize it in the client. The optional error details may contain
|
34
|
+
# arbitrary information about the error. There is a predefined set of error
|
35
|
+
# detail types in the package `google.rpc` that can be used for common error
|
36
|
+
# conditions.
|
36
37
|
#
|
37
38
|
# = Language mapping
|
38
39
|
#
|
@@ -69,12 +70,14 @@ module Google
|
|
69
70
|
# be used directly after any stripping needed for security/privacy reasons.
|
70
71
|
# @!attribute [rw] code
|
71
72
|
# @return [Integer]
|
72
|
-
# The status code, which should be an enum value of
|
73
|
+
# The status code, which should be an enum value of
|
74
|
+
# {Google::Rpc::Code}.
|
73
75
|
# @!attribute [rw] message
|
74
76
|
# @return [String]
|
75
77
|
# A developer-facing error message, which should be in English. Any
|
76
78
|
# user-facing error message should be localized and sent in the
|
77
|
-
# {Google::Rpc::Status#details} field, or localized
|
79
|
+
# {Google::Rpc::Status#details} field, or localized
|
80
|
+
# by the client.
|
78
81
|
# @!attribute [rw] details
|
79
82
|
# @return [Array<Google::Protobuf::Any>]
|
80
83
|
# A list of messages that carry the error details. There is a common set of
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -25,8 +25,7 @@ module Google
|
|
25
25
|
# # Ruby Client for Google Cloud Memorystore for Redis API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
|
26
26
|
#
|
27
27
|
# [Google Cloud Memorystore for Redis API][Product Documentation]:
|
28
|
-
#
|
29
|
-
# Redis instances on the Google Cloud Platform.
|
28
|
+
# Creates and manages Redis instances on the Google Cloud Platform.
|
30
29
|
# - [Product Documentation][]
|
31
30
|
#
|
32
31
|
# ## Quick Start
|