google-cloud-redis 0.2.0 → 0.2.1
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.rb +7 -1
- data/lib/google/cloud/redis/v1beta1.rb +7 -1
- data/lib/google/cloud/redis/v1beta1/cloud_redis_client.rb +8 -6
- data/lib/google/cloud/redis/v1beta1/cloud_redis_pb.rb +1 -0
- data/lib/google/cloud/redis/v1beta1/cloud_redis_services_pb.rb +3 -2
- data/lib/google/cloud/redis/v1beta1/credentials.rb +1 -0
- data/lib/google/cloud/redis/v1beta1/doc/google/cloud/redis/v1beta1/cloud_redis.rb +7 -6
- data/lib/google/cloud/redis/v1beta1/doc/google/longrunning/operations.rb +1 -0
- data/lib/google/cloud/redis/v1beta1/doc/google/protobuf/any.rb +14 -8
- data/lib/google/cloud/redis/v1beta1/doc/google/protobuf/field_mask.rb +7 -0
- data/lib/google/cloud/redis/v1beta1/doc/google/protobuf/timestamp.rb +9 -6
- data/lib/google/cloud/redis/v1beta1/doc/google/rpc/status.rb +1 -0
- data/lib/google/cloud/redis/v1beta1/doc/overview.rb +1 -0
- 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: 3fed899bf9329b19a9e191a298f6a6afe90e4940e2264c211b3bdb1235d60352
|
4
|
+
data.tar.gz: c35be3b5206389734cea6a548a9dea1cdf6f783d51b4c48bba96c0d336c16960
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb801e54e12faf777e24a34171f7a6bb3b4c7e7facd03d00018258c8fcbf0a7fa4aa2812fb248dd933857cd452b76ebecb6aff9684202300e6519202fdf60d2f
|
7
|
+
data.tar.gz: 8099882147658ca64c9605cf8e5f6c0d098eed62f34cfd00717607824ae24890558b557a280fcc286964d5002b0f6f8eedd072d10b6e7c86eb6db7f1992ddc1d
|
data/lib/google/cloud/redis.rb
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/gax"
|
16
17
|
require "pathname"
|
17
18
|
|
@@ -36,6 +37,11 @@ module Google
|
|
36
37
|
# 3. [Enable the Google Cloud Memorystore for Redis API.](https://console.cloud.google.com/apis/library/redis.googleapis.com)
|
37
38
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
38
39
|
#
|
40
|
+
# ### Installation
|
41
|
+
# ```
|
42
|
+
# $ gem install google-cloud-redis
|
43
|
+
# ```
|
44
|
+
#
|
39
45
|
# ### Next Steps
|
40
46
|
# - Read the [Google Cloud Memorystore for Redis API Product documentation][Product Documentation]
|
41
47
|
# to learn more about the product and see How-to Guides.
|
@@ -93,7 +99,7 @@ module Google
|
|
93
99
|
# * Each project has a collection of available locations, named: +/locations/*+
|
94
100
|
# * Each location has a collection of Redis instances, named: +/instances/*+
|
95
101
|
# * As such, Redis instances are resources of the form:
|
96
|
-
# +/projects
|
102
|
+
# +/projects/\\{project_id}/locations/\\{location_id}/instances/\\{instance_id}+
|
97
103
|
#
|
98
104
|
# Note that location_id must be refering to a GCP +region+; for example:
|
99
105
|
# * +projects/redpepper-1290/locations/us-central1/instances/my-redis+
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/cloud/redis/v1beta1/cloud_redis_client"
|
16
17
|
require "google/cloud/redis/v1beta1/cloud_redis_pb"
|
17
18
|
|
@@ -37,6 +38,11 @@ module Google
|
|
37
38
|
# 3. [Enable the Google Cloud Memorystore for Redis API.](https://console.cloud.google.com/apis/library/redis.googleapis.com)
|
38
39
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
39
40
|
#
|
41
|
+
# ### Installation
|
42
|
+
# ```
|
43
|
+
# $ gem install google-cloud-redis
|
44
|
+
# ```
|
45
|
+
#
|
40
46
|
# ### Next Steps
|
41
47
|
# - Read the [Google Cloud Memorystore for Redis API Product documentation][Product Documentation]
|
42
48
|
# to learn more about the product and see How-to Guides.
|
@@ -86,7 +92,7 @@ module Google
|
|
86
92
|
# * Each project has a collection of available locations, named: +/locations/*+
|
87
93
|
# * Each location has a collection of Redis instances, named: +/instances/*+
|
88
94
|
# * As such, Redis instances are resources of the form:
|
89
|
-
# +/projects
|
95
|
+
# +/projects/\\{project_id}/locations/\\{location_id}/instances/\\{instance_id}+
|
90
96
|
#
|
91
97
|
# Note that location_id must be refering to a GCP +region+; for example:
|
92
98
|
# * +projects/redpepper-1290/locations/us-central1/instances/my-redis+
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -44,7 +45,7 @@ module Google
|
|
44
45
|
# * Each project has a collection of available locations, named: +/locations/*+
|
45
46
|
# * Each location has a collection of Redis instances, named: +/instances/*+
|
46
47
|
# * As such, Redis instances are resources of the form:
|
47
|
-
# +/projects
|
48
|
+
# +/projects/\\{project_id}/locations/\\{location_id}/instances/\\{instance_id}+
|
48
49
|
#
|
49
50
|
# Note that location_id must be refering to a GCP +region+; for example:
|
50
51
|
# * +projects/redpepper-1290/locations/us-central1/instances/my-redis+
|
@@ -52,6 +53,7 @@ module Google
|
|
52
53
|
# @!attribute [r] cloud_redis_stub
|
53
54
|
# @return [Google::Cloud::Redis::V1beta1::CloudRedis::Stub]
|
54
55
|
class CloudRedisClient
|
56
|
+
# @private
|
55
57
|
attr_reader :cloud_redis_stub
|
56
58
|
|
57
59
|
# The default address of the service.
|
@@ -267,14 +269,14 @@ module Google
|
|
267
269
|
# location (region) or all locations.
|
268
270
|
#
|
269
271
|
# The location should have the following format:
|
270
|
-
# * +projects
|
272
|
+
# * +projects/\\{project_id}/locations/\\{location_id}+
|
271
273
|
#
|
272
274
|
# If +location_id+ is specified as +-+ (wildcard), then all regions
|
273
275
|
# available to the project are queried, and the results are aggregated.
|
274
276
|
#
|
275
277
|
# @param parent [String]
|
276
278
|
# Required. The resource name of the instance location using the form:
|
277
|
-
# +projects
|
279
|
+
# +projects/\\{project_id}/locations/\\{location_id}+
|
278
280
|
# where +location_id+ refers to a GCP region
|
279
281
|
# @param page_size [Integer]
|
280
282
|
# The maximum number of resources contained in the underlying API
|
@@ -330,7 +332,7 @@ module Google
|
|
330
332
|
#
|
331
333
|
# @param name [String]
|
332
334
|
# Required. Redis instance resource name using the form:
|
333
|
-
# +projects
|
335
|
+
# +projects/\\{project_id}/locations/\\{location_id}/instances/\\{instance_id}+
|
334
336
|
# where +location_id+ refers to a GCP region
|
335
337
|
# @param options [Google::Gax::CallOptions]
|
336
338
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -373,7 +375,7 @@ module Google
|
|
373
375
|
#
|
374
376
|
# @param parent [String]
|
375
377
|
# Required. The resource name of the instance location using the form:
|
376
|
-
# +projects
|
378
|
+
# +projects/\\{project_id}/locations/\\{location_id}+
|
377
379
|
# where +location_id+ refers to a GCP region
|
378
380
|
# @param instance_id [String]
|
379
381
|
# Required. The logical name of the Redis instance in the customer project
|
@@ -542,7 +544,7 @@ module Google
|
|
542
544
|
#
|
543
545
|
# @param name [String]
|
544
546
|
# Required. Redis instance resource name using the form:
|
545
|
-
# +projects
|
547
|
+
# +projects/\\{project_id}/locations/\\{location_id}/instances/\\{instance_id}+
|
546
548
|
# where +location_id+ refers to a GCP region
|
547
549
|
# @param options [Google::Gax::CallOptions]
|
548
550
|
# Overrides the default settings for this call, e.g, timeout,
|
@@ -16,6 +16,7 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
18
|
|
19
|
+
|
19
20
|
require 'grpc'
|
20
21
|
require 'google/cloud/redis/v1beta1/cloud_redis_pb'
|
21
22
|
|
@@ -35,7 +36,7 @@ module Google
|
|
35
36
|
# * Each project has a collection of available locations, named: `/locations/*`
|
36
37
|
# * Each location has a collection of Redis instances, named: `/instances/*`
|
37
38
|
# * As such, Redis instances are resources of the form:
|
38
|
-
# `/projects
|
39
|
+
# `/projects/\\{project_id}/locations/\\{location_id}/instances/\\{instance_id}`
|
39
40
|
#
|
40
41
|
# Note that location_id must be refering to a GCP `region`; for example:
|
41
42
|
# * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
|
@@ -51,7 +52,7 @@ module Google
|
|
51
52
|
# location (region) or all locations.
|
52
53
|
#
|
53
54
|
# The location should have the following format:
|
54
|
-
# * `projects
|
55
|
+
# * `projects/\\{project_id}/locations/\\{location_id}`
|
55
56
|
#
|
56
57
|
# If `location_id` is specified as `-` (wildcard), then all regions
|
57
58
|
# available to the project are queried, and the results are aggregated.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Cloud
|
17
18
|
module Redis
|
@@ -21,7 +22,7 @@ module Google
|
|
21
22
|
# @return [String]
|
22
23
|
# Required. Unique name of the resource in this scope including project and
|
23
24
|
# location using the form:
|
24
|
-
# +projects
|
25
|
+
# +projects/\\{project_id}/locations/\\{location_id}/instances/\\{instance_id}+
|
25
26
|
#
|
26
27
|
# Note: Redis instances are managed and addressed at regional level so
|
27
28
|
# location_id here refers to a GCP region; however, users get to choose which
|
@@ -144,7 +145,7 @@ module Google
|
|
144
145
|
# @!attribute [rw] parent
|
145
146
|
# @return [String]
|
146
147
|
# Required. The resource name of the instance location using the form:
|
147
|
-
# +projects
|
148
|
+
# +projects/\\{project_id}/locations/\\{location_id}+
|
148
149
|
# where +location_id+ refers to a GCP region
|
149
150
|
# @!attribute [rw] page_size
|
150
151
|
# @return [Integer]
|
@@ -171,7 +172,7 @@ module Google
|
|
171
172
|
# available to the project are queried, and the results aggregated.
|
172
173
|
# If in such an aggregated query a location is unavailable, a dummy Redis
|
173
174
|
# entry is included in the response with the "name" field set to a value of
|
174
|
-
# the form projects
|
175
|
+
# the form projects/\\{project_id}/locations/\\{location_id}/instances/- and the
|
175
176
|
# "status" field set to ERROR and "status_message" field set to "location not
|
176
177
|
# available for ListInstances".
|
177
178
|
# @!attribute [rw] next_page_token
|
@@ -184,7 +185,7 @@ module Google
|
|
184
185
|
# @!attribute [rw] name
|
185
186
|
# @return [String]
|
186
187
|
# Required. Redis instance resource name using the form:
|
187
|
-
# +projects
|
188
|
+
# +projects/\\{project_id}/locations/\\{location_id}/instances/\\{instance_id}+
|
188
189
|
# where +location_id+ refers to a GCP region
|
189
190
|
class GetInstanceRequest; end
|
190
191
|
|
@@ -192,7 +193,7 @@ module Google
|
|
192
193
|
# @!attribute [rw] parent
|
193
194
|
# @return [String]
|
194
195
|
# Required. The resource name of the instance location using the form:
|
195
|
-
# +projects
|
196
|
+
# +projects/\\{project_id}/locations/\\{location_id}+
|
196
197
|
# where +location_id+ refers to a GCP region
|
197
198
|
# @!attribute [rw] instance_id
|
198
199
|
# @return [String]
|
@@ -229,7 +230,7 @@ module Google
|
|
229
230
|
# @!attribute [rw] name
|
230
231
|
# @return [String]
|
231
232
|
# Required. Redis instance resource name using the form:
|
232
|
-
# +projects
|
233
|
+
# +projects/\\{project_id}/locations/\\{location_id}/instances/\\{instance_id}+
|
233
234
|
# where +location_id+ refers to a GCP region
|
234
235
|
class DeleteInstanceRequest; end
|
235
236
|
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# +Any+ contains an arbitrary serialized protocol buffer message along with a
|
@@ -95,17 +96,18 @@ module Google
|
|
95
96
|
# }
|
96
97
|
# @!attribute [rw] type_url
|
97
98
|
# @return [String]
|
98
|
-
# A URL/resource name
|
99
|
-
#
|
99
|
+
# A URL/resource name that uniquely identifies the type of the serialized
|
100
|
+
# protocol buffer message. The last segment of the URL's path must represent
|
101
|
+
# the fully qualified name of the type (as in
|
102
|
+
# +path/google.protobuf.Duration+). The name should be in a canonical form
|
103
|
+
# (e.g., leading "." is not accepted).
|
100
104
|
#
|
101
|
-
#
|
102
|
-
#
|
105
|
+
# In practice, teams usually precompile into the binary all types that they
|
106
|
+
# expect it to use in the context of Any. However, for URLs which use the
|
107
|
+
# scheme +http+, +https+, or no scheme, one can optionally set up a type
|
108
|
+
# server that maps type URLs to message definitions as follows:
|
103
109
|
#
|
104
110
|
# * If no scheme is provided, +https+ is assumed.
|
105
|
-
# * The last segment of the URL's path must represent the fully
|
106
|
-
# qualified name of the type (as in +path/google.protobuf.Duration+).
|
107
|
-
# The name should be in a canonical form (e.g., leading "." is
|
108
|
-
# not accepted).
|
109
111
|
# * An HTTP GET on the URL must yield a {Google::Protobuf::Type}
|
110
112
|
# value in binary format, or produce an error.
|
111
113
|
# * Applications are allowed to cache lookup results based on the
|
@@ -114,6 +116,10 @@ module Google
|
|
114
116
|
# on changes to types. (Use versioned type names to manage
|
115
117
|
# breaking changes.)
|
116
118
|
#
|
119
|
+
# Note: this functionality is not currently available in the official
|
120
|
+
# protobuf release, and it is not used for type URLs beginning with
|
121
|
+
# type.googleapis.com.
|
122
|
+
#
|
117
123
|
# Schemes other than +http+, +https+ (or the empty scheme) might be
|
118
124
|
# used with implementation specific semantics.
|
119
125
|
# @!attribute [rw] value
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# +FieldMask+ represents a set of symbolic field paths, for example:
|
@@ -215,6 +216,12 @@ module Google
|
|
215
216
|
#
|
216
217
|
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
217
218
|
# paths.
|
219
|
+
#
|
220
|
+
# == Field Mask Verification
|
221
|
+
#
|
222
|
+
# The implementation of any API method which has a FieldMask type field in the
|
223
|
+
# request should verify the included field paths, and return an
|
224
|
+
# +INVALID_ARGUMENT+ error if any path is duplicated or unmappable.
|
218
225
|
# @!attribute [rw] paths
|
219
226
|
# @return [Array<String>]
|
220
227
|
# The set of field mask paths.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# A Timestamp represents a point in time independent of any time zone
|
@@ -72,12 +73,14 @@ module Google
|
|
72
73
|
#
|
73
74
|
# In JSON format, the Timestamp type is encoded as a string in the
|
74
75
|
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
75
|
-
# format is "{year}
|
76
|
-
# where {year} is always expressed using four digits while {month}, {day},
|
77
|
-
# {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
76
|
+
# format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
|
77
|
+
# where \\{year} is always expressed using four digits while \\{month}, \\{day},
|
78
|
+
# \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
|
78
79
|
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
79
80
|
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
80
|
-
# is required
|
81
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
82
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
83
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
81
84
|
#
|
82
85
|
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
83
86
|
# 01:30 UTC on January 15, 2017.
|
@@ -88,8 +91,8 @@ module Google
|
|
88
91
|
# to this format using [+strftime+](https://docs.python.org/2/library/time.html#time.strftime)
|
89
92
|
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
90
93
|
# can use the Joda Time's [+ISODateTimeFormat.dateTime()+](
|
91
|
-
# http://joda-time
|
92
|
-
# to obtain a formatter capable of generating timestamps in this format.
|
94
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
|
95
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
93
96
|
# @!attribute [rw] seconds
|
94
97
|
# @return [Integer]
|
95
98
|
# Represents seconds of UTC time since Unix epoch
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|