google-cloud-redis-v1 0.9.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/redis/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/redis/v1/cloud_redis/client.rb +20 -4
- data/lib/google/cloud/redis/v1/cloud_redis/operations.rb +2 -2
- data/lib/google/cloud/redis/v1/cloud_redis/rest/client.rb +28 -4
- data/lib/google/cloud/redis/v1/cloud_redis/rest/operations.rb +2 -2
- data/lib/google/cloud/redis/v1/cloud_redis/rest.rb +1 -0
- data/lib/google/cloud/redis/v1/cloud_redis_pb.rb +33 -185
- data/lib/google/cloud/redis/v1/rest.rb +1 -0
- data/lib/google/cloud/redis/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/redis/v1/cloud_redis.rb +127 -29
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +25 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44bb84a35e72306a6c4e085f17d60178f5647a2f6f6c5c08c6c469ceb64c775b
|
4
|
+
data.tar.gz: c1ba49dc8febda0609ce7be53b0582d4481b2885ba2f272eda8722d1eadec6ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e7fbf20a821739c3dcc4a7d93a6f96cf05858c4c491564156c087b06b3914bd0407b5560adeb856de5ea39ff1a3020f6b49817b765b6ec4bdad1add7ea74146
|
7
|
+
data.tar.gz: 87e2ee37a35093b718df9bdd65a0cce0382b686b14821ef3e6b573357877fc5c9553196518151ba58d29417a3049b8c466288918732dd65df46af951ad7901e6
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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
|
+
require "gapic/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Redis
|
24
|
+
##
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
26
|
+
#
|
27
|
+
# require "google/cloud/redis/v1/rest"
|
28
|
+
# client = ::Google::Cloud::Redis::V1::CloudRedis::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "Redis"]
|
38
|
+
parent_config = while namespace.any?
|
39
|
+
parent_name = namespace.join "::"
|
40
|
+
parent_const = const_get parent_name
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
42
|
+
namespace.pop
|
43
|
+
end
|
44
|
+
|
45
|
+
default_config = Configuration.new parent_config
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
|
+
uri_method: :get,
|
49
|
+
uri_template: "/v1/{name}",
|
50
|
+
matches: [
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
52
|
+
],
|
53
|
+
body: nil
|
54
|
+
)
|
55
|
+
]
|
56
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
57
|
+
|
58
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
59
|
+
uri_method: :get,
|
60
|
+
uri_template: "/v1/{name}/locations",
|
61
|
+
matches: [
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
63
|
+
],
|
64
|
+
body: nil
|
65
|
+
)
|
66
|
+
]
|
67
|
+
default_config
|
68
|
+
end
|
69
|
+
yield @configure if block_given?
|
70
|
+
@configure
|
71
|
+
end
|
72
|
+
|
73
|
+
##
|
74
|
+
# @private
|
75
|
+
# Configuration class for the google.cloud.redis.v1 package.
|
76
|
+
#
|
77
|
+
# This class contains common configuration for all services
|
78
|
+
# of the google.cloud.redis.v1 package.
|
79
|
+
#
|
80
|
+
# This configuration is for internal use of the client library classes,
|
81
|
+
# and it is not intended that the end-users will read or change it.
|
82
|
+
#
|
83
|
+
class Configuration
|
84
|
+
extend ::Gapic::Config
|
85
|
+
|
86
|
+
# @private
|
87
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
88
|
+
# Services in this package should use these when creating clients for the mixin services.
|
89
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
90
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
91
|
+
|
92
|
+
# @private
|
93
|
+
def initialize parent_config = nil
|
94
|
+
@parent_config = parent_config unless parent_config.nil?
|
95
|
+
|
96
|
+
yield self if block_given?
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/redis/v1/cloud_redis_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -175,6 +176,12 @@ module Google
|
|
175
176
|
config.endpoint = @config.endpoint
|
176
177
|
end
|
177
178
|
|
179
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
180
|
+
config.credentials = credentials
|
181
|
+
config.quota_project = @quota_project_id
|
182
|
+
config.endpoint = @config.endpoint
|
183
|
+
end
|
184
|
+
|
178
185
|
@cloud_redis_stub = ::Gapic::ServiceStub.new(
|
179
186
|
::Google::Cloud::Redis::V1::CloudRedis::Stub,
|
180
187
|
credentials: credentials,
|
@@ -191,6 +198,13 @@ module Google
|
|
191
198
|
#
|
192
199
|
attr_reader :operations_client
|
193
200
|
|
201
|
+
##
|
202
|
+
# Get the associated client for mix-in of the Locations.
|
203
|
+
#
|
204
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
205
|
+
#
|
206
|
+
attr_reader :location_client
|
207
|
+
|
194
208
|
# Service calls
|
195
209
|
|
196
210
|
##
|
@@ -233,7 +247,8 @@ module Google
|
|
233
247
|
# to determine if there are more instances left to be queried.
|
234
248
|
# @param page_token [::String]
|
235
249
|
# The `next_page_token` value returned from a previous
|
236
|
-
# {::Google::Cloud::Redis::V1::CloudRedis::Client#list_instances ListInstances} request, if
|
250
|
+
# {::Google::Cloud::Redis::V1::CloudRedis::Client#list_instances ListInstances} request, if
|
251
|
+
# any.
|
237
252
|
#
|
238
253
|
# @yield [response, operation] Access the result along with the RPC operation
|
239
254
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Redis::V1::Instance>]
|
@@ -1228,7 +1243,8 @@ module Google
|
|
1228
1243
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
1229
1244
|
# where `location_id` refers to a GCP region.
|
1230
1245
|
# @param reschedule_type [::Google::Cloud::Redis::V1::RescheduleMaintenanceRequest::RescheduleType]
|
1231
|
-
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
|
1246
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
|
1247
|
+
# well.
|
1232
1248
|
# @param schedule_time [::Google::Protobuf::Timestamp, ::Hash]
|
1233
1249
|
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
1234
1250
|
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
@@ -1344,9 +1360,9 @@ module Google
|
|
1344
1360
|
# * (`String`) The path to a service account key file in JSON format
|
1345
1361
|
# * (`Hash`) A service account key as a Hash
|
1346
1362
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1347
|
-
# (see the [googleauth docs](https://
|
1363
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1348
1364
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1349
|
-
# (see the [signet docs](https://
|
1365
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1350
1366
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1351
1367
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1352
1368
|
# * (`nil`) indicating no credentials
|
@@ -620,9 +620,9 @@ module Google
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
623
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
625
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
628
628
|
# * (`nil`) indicating no credentials
|
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/redis/v1/cloud_redis_pb"
|
21
21
|
require "google/cloud/redis/v1/cloud_redis/rest/service_stub"
|
22
|
+
require "google/cloud/location/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -172,6 +173,13 @@ module Google
|
|
172
173
|
config.endpoint = @config.endpoint
|
173
174
|
end
|
174
175
|
|
176
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
177
|
+
config.credentials = credentials
|
178
|
+
config.quota_project = @quota_project_id
|
179
|
+
config.endpoint = @config.endpoint
|
180
|
+
config.bindings_override = @config.bindings_override
|
181
|
+
end
|
182
|
+
|
175
183
|
@cloud_redis_stub = ::Google::Cloud::Redis::V1::CloudRedis::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
176
184
|
end
|
177
185
|
|
@@ -182,6 +190,13 @@ module Google
|
|
182
190
|
#
|
183
191
|
attr_reader :operations_client
|
184
192
|
|
193
|
+
##
|
194
|
+
# Get the associated client for mix-in of the Locations.
|
195
|
+
#
|
196
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
197
|
+
#
|
198
|
+
attr_reader :location_client
|
199
|
+
|
185
200
|
# Service calls
|
186
201
|
|
187
202
|
##
|
@@ -224,7 +239,8 @@ module Google
|
|
224
239
|
# to determine if there are more instances left to be queried.
|
225
240
|
# @param page_token [::String]
|
226
241
|
# The `next_page_token` value returned from a previous
|
227
|
-
# {::Google::Cloud::Redis::V1::CloudRedis::Rest::Client#list_instances ListInstances} request, if
|
242
|
+
# {::Google::Cloud::Redis::V1::CloudRedis::Rest::Client#list_instances ListInstances} request, if
|
243
|
+
# any.
|
228
244
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
229
245
|
# @yieldparam result [::Google::Cloud::Redis::V1::ListInstancesResponse]
|
230
246
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -935,7 +951,8 @@ module Google
|
|
935
951
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
936
952
|
# where `location_id` refers to a GCP region.
|
937
953
|
# @param reschedule_type [::Google::Cloud::Redis::V1::RescheduleMaintenanceRequest::RescheduleType]
|
938
|
-
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
|
954
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
|
955
|
+
# well.
|
939
956
|
# @param schedule_time [::Google::Protobuf::Timestamp, ::Hash]
|
940
957
|
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
941
958
|
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
@@ -1021,9 +1038,9 @@ module Google
|
|
1021
1038
|
# * (`String`) The path to a service account key file in JSON format
|
1022
1039
|
# * (`Hash`) A service account key as a Hash
|
1023
1040
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1024
|
-
# (see the [googleauth docs](https://
|
1041
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1025
1042
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1026
|
-
# (see the [signet docs](https://
|
1043
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1027
1044
|
# * (`nil`) indicating no credentials
|
1028
1045
|
# @return [::Object]
|
1029
1046
|
# @!attribute [rw] scope
|
@@ -1069,6 +1086,13 @@ module Google
|
|
1069
1086
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1070
1087
|
config_attr :quota_project, nil, ::String, nil
|
1071
1088
|
|
1089
|
+
# @private
|
1090
|
+
# Overrides for http bindings for the RPCs of this service
|
1091
|
+
# are only used when this service is used as mixin, and only
|
1092
|
+
# by the host service.
|
1093
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
1094
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
1095
|
+
|
1072
1096
|
# @private
|
1073
1097
|
def initialize parent_config = nil
|
1074
1098
|
@parent_config = parent_config unless parent_config.nil?
|
@@ -411,9 +411,9 @@ module Google
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
417
|
# * (`nil`) indicating no credentials
|
418
418
|
# @return [::Object]
|
419
419
|
# @!attribute [rw] scope
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
21
21
|
require "gapic/config/method"
|
22
22
|
|
23
23
|
require "google/cloud/redis/v1/version"
|
24
|
+
require "google/cloud/redis/v1/bindings_override"
|
24
25
|
|
25
26
|
require "google/cloud/redis/v1/cloud_redis/credentials"
|
26
27
|
require "google/cloud/redis/v1/cloud_redis/paths"
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/redis/v1/cloud_redis.proto
|
3
4
|
|
@@ -9,198 +10,41 @@ require 'google/api/field_behavior_pb'
|
|
9
10
|
require 'google/api/resource_pb'
|
10
11
|
require 'google/longrunning/operations_pb'
|
11
12
|
require 'google/protobuf/duration_pb'
|
13
|
+
require 'google/protobuf/empty_pb'
|
12
14
|
require 'google/protobuf/field_mask_pb'
|
13
15
|
require 'google/protobuf/timestamp_pb'
|
14
16
|
require 'google/type/dayofweek_pb'
|
15
17
|
require 'google/type/timeofday_pb'
|
16
18
|
|
17
|
-
|
18
|
-
add_file("google/cloud/redis/v1/cloud_redis.proto", :syntax => :proto3) do
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
optional :persistence_iam_identity, :string, 21
|
43
|
-
optional :connect_mode, :enum, 22, "google.cloud.redis.v1.Instance.ConnectMode"
|
44
|
-
optional :auth_enabled, :bool, 23
|
45
|
-
repeated :server_ca_certs, :message, 25, "google.cloud.redis.v1.TlsCertificate"
|
46
|
-
optional :transit_encryption_mode, :enum, 26, "google.cloud.redis.v1.Instance.TransitEncryptionMode"
|
47
|
-
optional :maintenance_policy, :message, 27, "google.cloud.redis.v1.MaintenancePolicy"
|
48
|
-
optional :maintenance_schedule, :message, 28, "google.cloud.redis.v1.MaintenanceSchedule"
|
49
|
-
optional :replica_count, :int32, 31
|
50
|
-
repeated :nodes, :message, 32, "google.cloud.redis.v1.NodeInfo"
|
51
|
-
optional :read_endpoint, :string, 33
|
52
|
-
optional :read_endpoint_port, :int32, 34
|
53
|
-
optional :read_replicas_mode, :enum, 35, "google.cloud.redis.v1.Instance.ReadReplicasMode"
|
54
|
-
end
|
55
|
-
add_enum "google.cloud.redis.v1.Instance.State" do
|
56
|
-
value :STATE_UNSPECIFIED, 0
|
57
|
-
value :CREATING, 1
|
58
|
-
value :READY, 2
|
59
|
-
value :UPDATING, 3
|
60
|
-
value :DELETING, 4
|
61
|
-
value :REPAIRING, 5
|
62
|
-
value :MAINTENANCE, 6
|
63
|
-
value :IMPORTING, 8
|
64
|
-
value :FAILING_OVER, 9
|
65
|
-
end
|
66
|
-
add_enum "google.cloud.redis.v1.Instance.Tier" do
|
67
|
-
value :TIER_UNSPECIFIED, 0
|
68
|
-
value :BASIC, 1
|
69
|
-
value :STANDARD_HA, 3
|
70
|
-
end
|
71
|
-
add_enum "google.cloud.redis.v1.Instance.ConnectMode" do
|
72
|
-
value :CONNECT_MODE_UNSPECIFIED, 0
|
73
|
-
value :DIRECT_PEERING, 1
|
74
|
-
value :PRIVATE_SERVICE_ACCESS, 2
|
75
|
-
end
|
76
|
-
add_enum "google.cloud.redis.v1.Instance.TransitEncryptionMode" do
|
77
|
-
value :TRANSIT_ENCRYPTION_MODE_UNSPECIFIED, 0
|
78
|
-
value :SERVER_AUTHENTICATION, 1
|
79
|
-
value :DISABLED, 2
|
80
|
-
end
|
81
|
-
add_enum "google.cloud.redis.v1.Instance.ReadReplicasMode" do
|
82
|
-
value :READ_REPLICAS_MODE_UNSPECIFIED, 0
|
83
|
-
value :READ_REPLICAS_DISABLED, 1
|
84
|
-
value :READ_REPLICAS_ENABLED, 2
|
85
|
-
end
|
86
|
-
add_message "google.cloud.redis.v1.RescheduleMaintenanceRequest" do
|
87
|
-
optional :name, :string, 1
|
88
|
-
optional :reschedule_type, :enum, 2, "google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType"
|
89
|
-
optional :schedule_time, :message, 3, "google.protobuf.Timestamp"
|
90
|
-
end
|
91
|
-
add_enum "google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType" do
|
92
|
-
value :RESCHEDULE_TYPE_UNSPECIFIED, 0
|
93
|
-
value :IMMEDIATE, 1
|
94
|
-
value :NEXT_AVAILABLE_WINDOW, 2
|
95
|
-
value :SPECIFIC_TIME, 3
|
96
|
-
end
|
97
|
-
add_message "google.cloud.redis.v1.MaintenancePolicy" do
|
98
|
-
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
99
|
-
optional :update_time, :message, 2, "google.protobuf.Timestamp"
|
100
|
-
optional :description, :string, 3
|
101
|
-
repeated :weekly_maintenance_window, :message, 4, "google.cloud.redis.v1.WeeklyMaintenanceWindow"
|
102
|
-
end
|
103
|
-
add_message "google.cloud.redis.v1.WeeklyMaintenanceWindow" do
|
104
|
-
optional :day, :enum, 1, "google.type.DayOfWeek"
|
105
|
-
optional :start_time, :message, 2, "google.type.TimeOfDay"
|
106
|
-
optional :duration, :message, 3, "google.protobuf.Duration"
|
107
|
-
end
|
108
|
-
add_message "google.cloud.redis.v1.MaintenanceSchedule" do
|
109
|
-
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
110
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
111
|
-
optional :can_reschedule, :bool, 3
|
112
|
-
optional :schedule_deadline_time, :message, 5, "google.protobuf.Timestamp"
|
113
|
-
end
|
114
|
-
add_message "google.cloud.redis.v1.ListInstancesRequest" do
|
115
|
-
optional :parent, :string, 1
|
116
|
-
optional :page_size, :int32, 2
|
117
|
-
optional :page_token, :string, 3
|
118
|
-
end
|
119
|
-
add_message "google.cloud.redis.v1.ListInstancesResponse" do
|
120
|
-
repeated :instances, :message, 1, "google.cloud.redis.v1.Instance"
|
121
|
-
optional :next_page_token, :string, 2
|
122
|
-
repeated :unreachable, :string, 3
|
123
|
-
end
|
124
|
-
add_message "google.cloud.redis.v1.GetInstanceRequest" do
|
125
|
-
optional :name, :string, 1
|
126
|
-
end
|
127
|
-
add_message "google.cloud.redis.v1.GetInstanceAuthStringRequest" do
|
128
|
-
optional :name, :string, 1
|
129
|
-
end
|
130
|
-
add_message "google.cloud.redis.v1.InstanceAuthString" do
|
131
|
-
optional :auth_string, :string, 1
|
132
|
-
end
|
133
|
-
add_message "google.cloud.redis.v1.CreateInstanceRequest" do
|
134
|
-
optional :parent, :string, 1
|
135
|
-
optional :instance_id, :string, 2
|
136
|
-
optional :instance, :message, 3, "google.cloud.redis.v1.Instance"
|
137
|
-
end
|
138
|
-
add_message "google.cloud.redis.v1.UpdateInstanceRequest" do
|
139
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
140
|
-
optional :instance, :message, 2, "google.cloud.redis.v1.Instance"
|
141
|
-
end
|
142
|
-
add_message "google.cloud.redis.v1.UpgradeInstanceRequest" do
|
143
|
-
optional :name, :string, 1
|
144
|
-
optional :redis_version, :string, 2
|
145
|
-
end
|
146
|
-
add_message "google.cloud.redis.v1.DeleteInstanceRequest" do
|
147
|
-
optional :name, :string, 1
|
148
|
-
end
|
149
|
-
add_message "google.cloud.redis.v1.GcsSource" do
|
150
|
-
optional :uri, :string, 1
|
151
|
-
end
|
152
|
-
add_message "google.cloud.redis.v1.InputConfig" do
|
153
|
-
oneof :source do
|
154
|
-
optional :gcs_source, :message, 1, "google.cloud.redis.v1.GcsSource"
|
155
|
-
end
|
156
|
-
end
|
157
|
-
add_message "google.cloud.redis.v1.ImportInstanceRequest" do
|
158
|
-
optional :name, :string, 1
|
159
|
-
optional :input_config, :message, 3, "google.cloud.redis.v1.InputConfig"
|
160
|
-
end
|
161
|
-
add_message "google.cloud.redis.v1.GcsDestination" do
|
162
|
-
optional :uri, :string, 1
|
163
|
-
end
|
164
|
-
add_message "google.cloud.redis.v1.OutputConfig" do
|
165
|
-
oneof :destination do
|
166
|
-
optional :gcs_destination, :message, 1, "google.cloud.redis.v1.GcsDestination"
|
167
|
-
end
|
168
|
-
end
|
169
|
-
add_message "google.cloud.redis.v1.ExportInstanceRequest" do
|
170
|
-
optional :name, :string, 1
|
171
|
-
optional :output_config, :message, 3, "google.cloud.redis.v1.OutputConfig"
|
172
|
-
end
|
173
|
-
add_message "google.cloud.redis.v1.FailoverInstanceRequest" do
|
174
|
-
optional :name, :string, 1
|
175
|
-
optional :data_protection_mode, :enum, 2, "google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode"
|
176
|
-
end
|
177
|
-
add_enum "google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode" do
|
178
|
-
value :DATA_PROTECTION_MODE_UNSPECIFIED, 0
|
179
|
-
value :LIMITED_DATA_LOSS, 1
|
180
|
-
value :FORCE_DATA_LOSS, 2
|
181
|
-
end
|
182
|
-
add_message "google.cloud.redis.v1.OperationMetadata" do
|
183
|
-
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
184
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
185
|
-
optional :target, :string, 3
|
186
|
-
optional :verb, :string, 4
|
187
|
-
optional :status_detail, :string, 5
|
188
|
-
optional :cancel_requested, :bool, 6
|
189
|
-
optional :api_version, :string, 7
|
190
|
-
end
|
191
|
-
add_message "google.cloud.redis.v1.LocationMetadata" do
|
192
|
-
map :available_zones, :string, :message, 1, "google.cloud.redis.v1.ZoneMetadata"
|
193
|
-
end
|
194
|
-
add_message "google.cloud.redis.v1.ZoneMetadata" do
|
195
|
-
end
|
196
|
-
add_message "google.cloud.redis.v1.TlsCertificate" do
|
197
|
-
optional :serial_number, :string, 1
|
198
|
-
optional :cert, :string, 2
|
199
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
200
|
-
optional :expire_time, :message, 4, "google.protobuf.Timestamp"
|
201
|
-
optional :sha1_fingerprint, :string, 5
|
19
|
+
|
20
|
+
descriptor_data = "\n\'google/cloud/redis/v1/cloud_redis.proto\x12\x15google.cloud.redis.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\".\n\x08NodeInfo\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04zone\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\x85\x13\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12;\n\x06labels\x18\x03 \x03(\x0b\x32+.google.cloud.redis.v1.Instance.LabelsEntry\x12\x18\n\x0blocation_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12$\n\x17\x61lternative_location_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rredis_version\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11reserved_ip_range\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12secondary_ip_range\x18\x1e \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04host\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04port\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\x12 \n\x13\x63urrent_location_id\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\x0e \x01(\x0e\x32%.google.cloud.redis.v1.Instance.StateB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12M\n\rredis_configs\x18\x10 \x03(\x0b\x32\x31.google.cloud.redis.v1.Instance.RedisConfigsEntryB\x03\xe0\x41\x01\x12\x37\n\x04tier\x18\x11 \x01(\x0e\x32$.google.cloud.redis.v1.Instance.TierB\x03\xe0\x41\x02\x12\x1b\n\x0ememory_size_gb\x18\x12 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1f\n\x12\x61uthorized_network\x18\x14 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18persistence_iam_identity\x18\x15 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x0c\x63onnect_mode\x18\x16 \x01(\x0e\x32+.google.cloud.redis.v1.Instance.ConnectModeB\x03\xe0\x41\x01\x12\x19\n\x0c\x61uth_enabled\x18\x17 \x01(\x08\x42\x03\xe0\x41\x01\x12\x43\n\x0fserver_ca_certs\x18\x19 \x03(\x0b\x32%.google.cloud.redis.v1.TlsCertificateB\x03\xe0\x41\x03\x12[\n\x17transit_encryption_mode\x18\x1a \x01(\x0e\x32\x35.google.cloud.redis.v1.Instance.TransitEncryptionModeB\x03\xe0\x41\x01\x12I\n\x12maintenance_policy\x18\x1b \x01(\x0b\x32(.google.cloud.redis.v1.MaintenancePolicyB\x03\xe0\x41\x01\x12M\n\x14maintenance_schedule\x18\x1c \x01(\x0b\x32*.google.cloud.redis.v1.MaintenanceScheduleB\x03\xe0\x41\x03\x12\x1a\n\rreplica_count\x18\x1f \x01(\x05\x42\x03\xe0\x41\x01\x12\x33\n\x05nodes\x18 \x03(\x0b\x32\x1f.google.cloud.redis.v1.NodeInfoB\x03\xe0\x41\x03\x12\x1a\n\rread_endpoint\x18! \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12read_endpoint_port\x18\" \x01(\x05\x42\x03\xe0\x41\x03\x12Q\n\x12read_replicas_mode\x18# \x01(\x0e\x32\x30.google.cloud.redis.v1.Instance.ReadReplicasModeB\x03\xe0\x41\x01\x12!\n\x14\x63ustomer_managed_key\x18$ \x01(\tB\x03\xe0\x41\x01\x12I\n\x12persistence_config\x18% \x01(\x0b\x32(.google.cloud.redis.v1.PersistenceConfigB\x03\xe0\x41\x01\x12Q\n\x12suspension_reasons\x18& \x03(\x0e\x32\x30.google.cloud.redis.v1.Instance.SuspensionReasonB\x03\xe0\x41\x01\x12 \n\x13maintenance_version\x18\' \x01(\tB\x03\xe0\x41\x01\x12+\n\x1e\x61vailable_maintenance_versions\x18( \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11RedisConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\r\n\tREPAIRING\x10\x05\x12\x0f\n\x0bMAINTENANCE\x10\x06\x12\r\n\tIMPORTING\x10\x08\x12\x10\n\x0c\x46\x41ILING_OVER\x10\t\"8\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0f\n\x0bSTANDARD_HA\x10\x03\"[\n\x0b\x43onnectMode\x12\x1c\n\x18\x43ONNECT_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x44IRECT_PEERING\x10\x01\x12\x1a\n\x16PRIVATE_SERVICE_ACCESS\x10\x02\"i\n\x15TransitEncryptionMode\x12\'\n#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\x10\x00\x12\x19\n\x15SERVER_AUTHENTICATION\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"m\n\x10ReadReplicasMode\x12\"\n\x1eREAD_REPLICAS_MODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16READ_REPLICAS_DISABLED\x10\x01\x12\x19\n\x15READ_REPLICAS_ENABLED\x10\x02\"U\n\x10SuspensionReason\x12!\n\x1dSUSPENSION_REASON_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43USTOMER_MANAGED_KEY_ISSUE\x10\x01:`\xea\x41]\n\x1dredis.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}\"\x8f\x04\n\x11PersistenceConfig\x12W\n\x10persistence_mode\x18\x01 \x01(\x0e\x32\x38.google.cloud.redis.v1.PersistenceConfig.PersistenceModeB\x03\xe0\x41\x01\x12Y\n\x13rdb_snapshot_period\x18\x02 \x01(\x0e\x32\x37.google.cloud.redis.v1.PersistenceConfig.SnapshotPeriodB\x03\xe0\x41\x01\x12?\n\x16rdb_next_snapshot_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x17rdb_snapshot_start_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"J\n\x0fPersistenceMode\x12 \n\x1cPERSISTENCE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x07\n\x03RDB\x10\x02\"w\n\x0eSnapshotPeriod\x12\x1f\n\x1bSNAPSHOT_PERIOD_UNSPECIFIED\x10\x00\x12\x0c\n\x08ONE_HOUR\x10\x03\x12\r\n\tSIX_HOURS\x10\x04\x12\x10\n\x0cTWELVE_HOURS\x10\x05\x12\x15\n\x11TWENTY_FOUR_HOURS\x10\x06\"\xdd\x02\n\x1cRescheduleMaintenanceRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dredis.googleapis.com/Instance\x12`\n\x0freschedule_type\x18\x02 \x01(\x0e\x32\x42.google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleTypeB\x03\xe0\x41\x02\x12\x36\n\rschedule_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"n\n\x0eRescheduleType\x12\x1f\n\x1bRESCHEDULE_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tIMMEDIATE\x10\x01\x12\x19\n\x15NEXT_AVAILABLE_WINDOW\x10\x02\x12\x11\n\rSPECIFIC_TIME\x10\x03\"\xf1\x01\n\x11MaintenancePolicy\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12V\n\x19weekly_maintenance_window\x18\x04 \x03(\x0b\x32..google.cloud.redis.v1.WeeklyMaintenanceWindowB\x03\xe0\x41\x01\"\xa6\x01\n\x17WeeklyMaintenanceWindow\x12(\n\x03\x64\x61y\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x02\x12/\n\nstart_time\x18\x02 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x02\x12\x30\n\x08\x64uration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\"\xda\x01\n\x13MaintenanceSchedule\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1a\n\x0e\x63\x61n_reschedule\x18\x03 \x01(\x08\x42\x02\x18\x01\x12?\n\x16schedule_deadline_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"x\n\x14ListInstancesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x15ListInstancesResponse\x12\x32\n\tinstances\x18\x01 \x03(\x0b\x32\x1f.google.cloud.redis.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"I\n\x12GetInstanceRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dredis.googleapis.com/Instance\"S\n\x1cGetInstanceAuthStringRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dredis.googleapis.com/Instance\")\n\x12InstanceAuthString\x12\x13\n\x0b\x61uth_string\x18\x01 \x01(\t\"\xa4\x01\n\x15\x43reateInstanceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x08instance\x18\x03 \x01(\x0b\x32\x1f.google.cloud.redis.v1.InstanceB\x03\xe0\x41\x02\"\x85\x01\n\x15UpdateInstanceRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x36\n\x08instance\x18\x02 \x01(\x0b\x32\x1f.google.cloud.redis.v1.InstanceB\x03\xe0\x41\x02\"i\n\x16UpgradeInstanceRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dredis.googleapis.com/Instance\x12\x1a\n\rredis_version\x18\x02 \x01(\tB\x03\xe0\x41\x02\"L\n\x15\x44\x65leteInstanceRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dredis.googleapis.com/Instance\"\x1d\n\tGcsSource\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\"O\n\x0bInputConfig\x12\x36\n\ngcs_source\x18\x01 \x01(\x0b\x32 .google.cloud.redis.v1.GcsSourceH\x00\x42\x08\n\x06source\"i\n\x15ImportInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12=\n\x0cinput_config\x18\x03 \x01(\x0b\x32\".google.cloud.redis.v1.InputConfigB\x03\xe0\x41\x02\"\"\n\x0eGcsDestination\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\"_\n\x0cOutputConfig\x12@\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32%.google.cloud.redis.v1.GcsDestinationH\x00\x42\r\n\x0b\x64\x65stination\"k\n\x15\x45xportInstanceRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12?\n\routput_config\x18\x03 \x01(\x0b\x32#.google.cloud.redis.v1.OutputConfigB\x03\xe0\x41\x02\"\x9c\x02\n\x17\x46\x61iloverInstanceRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dredis.googleapis.com/Instance\x12\x64\n\x14\x64\x61ta_protection_mode\x18\x02 \x01(\x0e\x32\x41.google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionModeB\x03\xe0\x41\x01\"f\n\x12\x44\x61taProtectionMode\x12$\n DATA_PROTECTION_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11LIMITED_DATA_LOSS\x10\x01\x12\x13\n\x0f\x46ORCE_DATA_LOSS\x10\x02\"\xd6\x01\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x15\n\rstatus_detail\x18\x05 \x01(\t\x12\x18\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t\"\xc9\x01\n\x10LocationMetadata\x12Y\n\x0f\x61vailable_zones\x18\x01 \x03(\x0b\x32;.google.cloud.redis.v1.LocationMetadata.AvailableZonesEntryB\x03\xe0\x41\x03\x1aZ\n\x13\x41vailableZonesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32#.google.cloud.redis.v1.ZoneMetadata:\x02\x38\x01\"\x0e\n\x0cZoneMetadata\"\xbb\x01\n\x0eTlsCertificate\x12\x15\n\rserial_number\x18\x01 \x01(\t\x12\x0c\n\x04\x63\x65rt\x18\x02 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x10sha1_fingerprint\x18\x05 \x01(\t2\xa8\x15\n\nCloudRedis\x12\xaa\x01\n\rListInstances\x12+.google.cloud.redis.v1.ListInstancesRequest\x1a,.google.cloud.redis.v1.ListInstancesResponse\">\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/instances\xda\x41\x06parent\x12\x97\x01\n\x0bGetInstance\x12).google.cloud.redis.v1.GetInstanceRequest\x1a\x1f.google.cloud.redis.v1.Instance\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/instances/*}\xda\x41\x04name\x12\xc0\x01\n\x15GetInstanceAuthString\x12\x33.google.cloud.redis.v1.GetInstanceAuthStringRequest\x1a).google.cloud.redis.v1.InstanceAuthString\"G\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/instances/*}/authString\xda\x41\x04name\x12\x89\x02\n\x0e\x43reateInstance\x12,.google.cloud.redis.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/instances:\x08instance\xda\x41\x1bparent,instance_id,instance\xca\x41I\n\x1egoogle.cloud.redis.v1.Instance\x12\'google.cloud.redis.v1.OperationMetadata\x12\x8b\x02\n\x0eUpdateInstance\x12,.google.cloud.redis.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xab\x01\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\xda\x41\x14update_mask,instance\xca\x41I\n\x1egoogle.cloud.redis.v1.Instance\x12\'google.cloud.redis.v1.OperationMetadata\x12\x83\x02\n\x0fUpgradeInstance\x12-.google.cloud.redis.v1.UpgradeInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/instances/*}:upgrade:\x01*\xda\x41\x12name,redis_version\xca\x41I\n\x1egoogle.cloud.redis.v1.Instance\x12\'google.cloud.redis.v1.OperationMetadata\x12\xff\x01\n\x0eImportInstance\x12,.google.cloud.redis.v1.ImportInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/locations/*/instances/*}:import:\x01*\xda\x41\x11name,input_config\xca\x41I\n\x1egoogle.cloud.redis.v1.Instance\x12\'google.cloud.redis.v1.OperationMetadata\x12\x80\x02\n\x0e\x45xportInstance\x12,.google.cloud.redis.v1.ExportInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xa0\x01\x82\xd3\xe4\x93\x02\x39\"4/v1/{name=projects/*/locations/*/instances/*}:export:\x01*\xda\x41\x12name,output_config\xca\x41I\n\x1egoogle.cloud.redis.v1.Instance\x12\'google.cloud.redis.v1.OperationMetadata\x12\x8d\x02\n\x10\x46\x61iloverInstance\x12..google.cloud.redis.v1.FailoverInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xa9\x01\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/instances/*}:failover:\x01*\xda\x41\x19name,data_protection_mode\xca\x41I\n\x1egoogle.cloud.redis.v1.Instance\x12\'google.cloud.redis.v1.OperationMetadata\x12\xde\x01\n\x0e\x44\x65leteInstance\x12,.google.cloud.redis.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/instances/*}\xda\x41\x04name\xca\x41@\n\x15google.protobuf.Empty\x12\'google.cloud.redis.v1.OperationMetadata\x12\xaf\x02\n\x15RescheduleMaintenance\x12\x33.google.cloud.redis.v1.RescheduleMaintenanceRequest\x1a\x1d.google.longrunning.Operation\"\xc1\x01\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/instances/*}:rescheduleMaintenance:\x01*\xda\x41$name, reschedule_type, schedule_time\xca\x41I\n\x1egoogle.cloud.redis.v1.Instance\x12\'google.cloud.redis.v1.OperationMetadata\x1aH\xca\x41\x14redis.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBh\n\x19\x63om.google.cloud.redis.v1B\x18\x43loudRedisServiceV1ProtoP\x01Z/cloud.google.com/go/redis/apiv1/redispb;redispbb\x06proto3"
|
21
|
+
|
22
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
|
+
|
24
|
+
begin
|
25
|
+
pool.add_serialized_file(descriptor_data)
|
26
|
+
rescue TypeError => e
|
27
|
+
# Compatibility code: will be removed in the next major version.
|
28
|
+
require 'google/protobuf/descriptor_pb'
|
29
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
30
|
+
parsed.clear_dependency
|
31
|
+
serialized = parsed.class.encode(parsed)
|
32
|
+
file = pool.add_serialized_file(serialized)
|
33
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
34
|
+
imports = [
|
35
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
36
|
+
["google.type.TimeOfDay", "google/type/timeofday.proto"],
|
37
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
38
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
39
|
+
]
|
40
|
+
imports.each do |type_name, expected_filename|
|
41
|
+
import_file = pool.lookup(type_name).file_descriptor
|
42
|
+
if import_file.name != expected_filename
|
43
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
202
44
|
end
|
203
45
|
end
|
46
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
47
|
+
warn "This will become an error in the next major version."
|
204
48
|
end
|
205
49
|
|
206
50
|
module Google
|
@@ -214,6 +58,10 @@ module Google
|
|
214
58
|
Instance::ConnectMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.ConnectMode").enummodule
|
215
59
|
Instance::TransitEncryptionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.TransitEncryptionMode").enummodule
|
216
60
|
Instance::ReadReplicasMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.ReadReplicasMode").enummodule
|
61
|
+
Instance::SuspensionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.SuspensionReason").enummodule
|
62
|
+
PersistenceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.PersistenceConfig").msgclass
|
63
|
+
PersistenceConfig::PersistenceMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.PersistenceConfig.PersistenceMode").enummodule
|
64
|
+
PersistenceConfig::SnapshotPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod").enummodule
|
217
65
|
RescheduleMaintenanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.RescheduleMaintenanceRequest").msgclass
|
218
66
|
RescheduleMaintenanceRequest::RescheduleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType").enummodule
|
219
67
|
MaintenancePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.MaintenancePolicy").msgclass
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -43,8 +43,10 @@ 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::V1::Instance#
|
46
|
+
# should be provisioned in. Refer to
|
47
|
+
# {::Google::Cloud::Redis::V1::Instance#location_id location_id} and
|
48
|
+
# {::Google::Cloud::Redis::V1::Instance#alternative_location_id alternative_location_id}
|
49
|
+
# fields for more details.
|
48
50
|
# @!attribute [rw] display_name
|
49
51
|
# @return [::String]
|
50
52
|
# An arbitrary and optional user-provided name for the instance.
|
@@ -87,11 +89,11 @@ module Google
|
|
87
89
|
# the default block size is /28.
|
88
90
|
# @!attribute [rw] secondary_ip_range
|
89
91
|
# @return [::String]
|
90
|
-
# Optional. Additional IP range for node placement. Required when enabling
|
91
|
-
# replicas on an existing instance. For DIRECT_PEERING mode value must
|
92
|
-
# CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
|
93
|
-
# must be the name of an allocated address range associated with the
|
94
|
-
# service access connection, or "auto".
|
92
|
+
# Optional. Additional IP range for node placement. Required when enabling
|
93
|
+
# read replicas on an existing instance. For DIRECT_PEERING mode value must
|
94
|
+
# be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
|
95
|
+
# value must be the name of an allocated address range associated with the
|
96
|
+
# private service access connection, or "auto".
|
95
97
|
# @!attribute [r] host
|
96
98
|
# @return [::String]
|
97
99
|
# Output only. Hostname or IP address of the exposed Redis endpoint used by
|
@@ -161,9 +163,9 @@ module Google
|
|
161
163
|
# If not provided, the connect mode defaults to DIRECT_PEERING.
|
162
164
|
# @!attribute [rw] auth_enabled
|
163
165
|
# @return [::Boolean]
|
164
|
-
# Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If
|
165
|
-
# "true" AUTH is enabled on the instance. Default value is "false"
|
166
|
-
# AUTH is disabled.
|
166
|
+
# Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If
|
167
|
+
# set to "true" AUTH is enabled on the instance. Default value is "false"
|
168
|
+
# meaning AUTH is disabled.
|
167
169
|
# @!attribute [r] server_ca_certs
|
168
170
|
# @return [::Array<::Google::Cloud::Redis::V1::TlsCertificate>]
|
169
171
|
# Output only. List of server CA certificates for the instance.
|
@@ -181,11 +183,11 @@ module Google
|
|
181
183
|
# scheduled.
|
182
184
|
# @!attribute [rw] replica_count
|
183
185
|
# @return [::Integer]
|
184
|
-
# Optional. The number of replica nodes. The valid range for the Standard
|
185
|
-
# read replicas enabled is [1-5] and defaults to 2. If read
|
186
|
-
# enabled for a Standard Tier instance, the only valid value
|
187
|
-
# default is 1. The valid value for basic tier is 0 and the
|
188
|
-
# 0.
|
186
|
+
# Optional. The number of replica nodes. The valid range for the Standard
|
187
|
+
# Tier with read replicas enabled is [1-5] and defaults to 2. If read
|
188
|
+
# replicas are not enabled for a Standard Tier instance, the only valid value
|
189
|
+
# is 1 and the default is 1. The valid value for basic tier is 0 and the
|
190
|
+
# default is also 0.
|
189
191
|
# @!attribute [r] nodes
|
190
192
|
# @return [::Array<::Google::Cloud::Redis::V1::NodeInfo>]
|
191
193
|
# Output only. Info per node.
|
@@ -201,7 +203,26 @@ module Google
|
|
201
203
|
# endpoint. Standard tier only. Write requests should target 'port'.
|
202
204
|
# @!attribute [rw] read_replicas_mode
|
203
205
|
# @return [::Google::Cloud::Redis::V1::Instance::ReadReplicasMode]
|
204
|
-
# Optional. Read replicas mode for the instance. Defaults to
|
206
|
+
# Optional. Read replicas mode for the instance. Defaults to
|
207
|
+
# READ_REPLICAS_DISABLED.
|
208
|
+
# @!attribute [rw] customer_managed_key
|
209
|
+
# @return [::String]
|
210
|
+
# Optional. The KMS key reference that the customer provides when trying to
|
211
|
+
# create the instance.
|
212
|
+
# @!attribute [rw] persistence_config
|
213
|
+
# @return [::Google::Cloud::Redis::V1::PersistenceConfig]
|
214
|
+
# Optional. Persistence configuration parameters
|
215
|
+
# @!attribute [rw] suspension_reasons
|
216
|
+
# @return [::Array<::Google::Cloud::Redis::V1::Instance::SuspensionReason>]
|
217
|
+
# Optional. reasons that causes instance in "SUSPENDED" state.
|
218
|
+
# @!attribute [rw] maintenance_version
|
219
|
+
# @return [::String]
|
220
|
+
# Optional. The self service update maintenance version.
|
221
|
+
# The version is date based such as "20210712_00_00".
|
222
|
+
# @!attribute [rw] available_maintenance_versions
|
223
|
+
# @return [::Array<::String>]
|
224
|
+
# Optional. The available maintenance versions that an instance could update
|
225
|
+
# to.
|
205
226
|
class Instance
|
206
227
|
include ::Google::Protobuf::MessageExts
|
207
228
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -308,9 +329,76 @@ module Google
|
|
308
329
|
# up and down the number of replicas. Not valid for basic tier.
|
309
330
|
READ_REPLICAS_ENABLED = 2
|
310
331
|
end
|
332
|
+
|
333
|
+
# Possible reasons for the instance to be in a "SUSPENDED" state.
|
334
|
+
module SuspensionReason
|
335
|
+
# Not set.
|
336
|
+
SUSPENSION_REASON_UNSPECIFIED = 0
|
337
|
+
|
338
|
+
# Something wrong with the CMEK key provided by customer.
|
339
|
+
CUSTOMER_MANAGED_KEY_ISSUE = 1
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
# Configuration of the persistence functionality.
|
344
|
+
# @!attribute [rw] persistence_mode
|
345
|
+
# @return [::Google::Cloud::Redis::V1::PersistenceConfig::PersistenceMode]
|
346
|
+
# Optional. Controls whether Persistence features are enabled.
|
347
|
+
# If not provided, the existing value will be used.
|
348
|
+
# @!attribute [rw] rdb_snapshot_period
|
349
|
+
# @return [::Google::Cloud::Redis::V1::PersistenceConfig::SnapshotPeriod]
|
350
|
+
# Optional. Period between RDB snapshots. Snapshots will be attempted every
|
351
|
+
# period starting from the provided snapshot start time. For example, a start
|
352
|
+
# time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing
|
353
|
+
# until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45,
|
354
|
+
# 18:45, and 00:45 the next day, and so on. If not provided,
|
355
|
+
# TWENTY_FOUR_HOURS will be used as default.
|
356
|
+
# @!attribute [r] rdb_next_snapshot_time
|
357
|
+
# @return [::Google::Protobuf::Timestamp]
|
358
|
+
# Output only. The next time that a snapshot attempt is scheduled to occur.
|
359
|
+
# @!attribute [rw] rdb_snapshot_start_time
|
360
|
+
# @return [::Google::Protobuf::Timestamp]
|
361
|
+
# Optional. Date and time that the first snapshot was/will be attempted, and
|
362
|
+
# to which future snapshots will be aligned. If not provided, the current
|
363
|
+
# time will be used.
|
364
|
+
class PersistenceConfig
|
365
|
+
include ::Google::Protobuf::MessageExts
|
366
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
367
|
+
|
368
|
+
# Available Persistence modes.
|
369
|
+
module PersistenceMode
|
370
|
+
# Not set.
|
371
|
+
PERSISTENCE_MODE_UNSPECIFIED = 0
|
372
|
+
|
373
|
+
# Persistence is disabled for the instance,
|
374
|
+
# and any existing snapshots are deleted.
|
375
|
+
DISABLED = 1
|
376
|
+
|
377
|
+
# RDB based Persistence is enabled.
|
378
|
+
RDB = 2
|
379
|
+
end
|
380
|
+
|
381
|
+
# Available snapshot periods for scheduling.
|
382
|
+
module SnapshotPeriod
|
383
|
+
# Not set.
|
384
|
+
SNAPSHOT_PERIOD_UNSPECIFIED = 0
|
385
|
+
|
386
|
+
# Snapshot every 1 hour.
|
387
|
+
ONE_HOUR = 3
|
388
|
+
|
389
|
+
# Snapshot every 6 hours.
|
390
|
+
SIX_HOURS = 4
|
391
|
+
|
392
|
+
# Snapshot every 12 hours.
|
393
|
+
TWELVE_HOURS = 5
|
394
|
+
|
395
|
+
# Snapshot every 24 hours.
|
396
|
+
TWENTY_FOUR_HOURS = 6
|
397
|
+
end
|
311
398
|
end
|
312
399
|
|
313
|
-
# Request for
|
400
|
+
# Request for
|
401
|
+
# {::Google::Cloud::Redis::V1::CloudRedis::Client#reschedule_maintenance RescheduleMaintenance}.
|
314
402
|
# @!attribute [rw] name
|
315
403
|
# @return [::String]
|
316
404
|
# Required. Redis instance resource name using the form:
|
@@ -318,7 +406,8 @@ module Google
|
|
318
406
|
# where `location_id` refers to a GCP region.
|
319
407
|
# @!attribute [rw] reschedule_type
|
320
408
|
# @return [::Google::Cloud::Redis::V1::RescheduleMaintenanceRequest::RescheduleType]
|
321
|
-
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
|
409
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
|
410
|
+
# well.
|
322
411
|
# @!attribute [rw] schedule_time
|
323
412
|
# @return [::Google::Protobuf::Timestamp]
|
324
413
|
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
@@ -376,7 +465,8 @@ module Google
|
|
376
465
|
# Required. Start time of the window in UTC time.
|
377
466
|
# @!attribute [r] duration
|
378
467
|
# @return [::Google::Protobuf::Duration]
|
379
|
-
# Output only. Duration of the maintenance window. The current window is
|
468
|
+
# Output only. Duration of the maintenance window. The current window is
|
469
|
+
# fixed at 1 hour.
|
380
470
|
class WeeklyMaintenanceWindow
|
381
471
|
include ::Google::Protobuf::MessageExts
|
382
472
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -386,17 +476,19 @@ module Google
|
|
386
476
|
# populated.
|
387
477
|
# @!attribute [r] start_time
|
388
478
|
# @return [::Google::Protobuf::Timestamp]
|
389
|
-
# Output only. The start time of any upcoming scheduled maintenance for this
|
479
|
+
# Output only. The start time of any upcoming scheduled maintenance for this
|
480
|
+
# instance.
|
390
481
|
# @!attribute [r] end_time
|
391
482
|
# @return [::Google::Protobuf::Timestamp]
|
392
|
-
# Output only. The end time of any upcoming scheduled maintenance for this
|
483
|
+
# Output only. The end time of any upcoming scheduled maintenance for this
|
484
|
+
# instance.
|
393
485
|
# @!attribute [rw] can_reschedule
|
394
486
|
# @return [::Boolean]
|
395
487
|
# If the scheduled maintenance can be rescheduled, default is true.
|
396
488
|
# @!attribute [r] schedule_deadline_time
|
397
489
|
# @return [::Google::Protobuf::Timestamp]
|
398
|
-
# Output only. The deadline that the maintenance schedule start time can not
|
399
|
-
# including reschedule.
|
490
|
+
# Output only. The deadline that the maintenance schedule start time can not
|
491
|
+
# go beyond, including reschedule.
|
400
492
|
class MaintenanceSchedule
|
401
493
|
include ::Google::Protobuf::MessageExts
|
402
494
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -420,7 +512,8 @@ module Google
|
|
420
512
|
# @!attribute [rw] page_token
|
421
513
|
# @return [::String]
|
422
514
|
# The `next_page_token` value returned from a previous
|
423
|
-
# {::Google::Cloud::Redis::V1::CloudRedis::Client#list_instances ListInstances} request, if
|
515
|
+
# {::Google::Cloud::Redis::V1::CloudRedis::Client#list_instances ListInstances} request, if
|
516
|
+
# any.
|
424
517
|
class ListInstancesRequest
|
425
518
|
include ::Google::Protobuf::MessageExts
|
426
519
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -463,7 +556,8 @@ module Google
|
|
463
556
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
464
557
|
end
|
465
558
|
|
466
|
-
# Request for
|
559
|
+
# Request for
|
560
|
+
# {::Google::Cloud::Redis::V1::CloudRedis::Client#get_instance_auth_string GetInstanceAuthString}.
|
467
561
|
# @!attribute [rw] name
|
468
562
|
# @return [::String]
|
469
563
|
# Required. Redis instance resource name using the form:
|
@@ -483,7 +577,8 @@ module Google
|
|
483
577
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
484
578
|
end
|
485
579
|
|
486
|
-
# Request for
|
580
|
+
# Request for
|
581
|
+
# {::Google::Cloud::Redis::V1::CloudRedis::Client#create_instance CreateInstance}.
|
487
582
|
# @!attribute [rw] parent
|
488
583
|
# @return [::String]
|
489
584
|
# Required. The resource name of the instance location using the form:
|
@@ -507,7 +602,8 @@ module Google
|
|
507
602
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
508
603
|
end
|
509
604
|
|
510
|
-
# Request for
|
605
|
+
# Request for
|
606
|
+
# {::Google::Cloud::Redis::V1::CloudRedis::Client#update_instance UpdateInstance}.
|
511
607
|
# @!attribute [rw] update_mask
|
512
608
|
# @return [::Google::Protobuf::FieldMask]
|
513
609
|
# Required. Mask of fields to update. At least one path must be supplied in
|
@@ -528,7 +624,8 @@ module Google
|
|
528
624
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
529
625
|
end
|
530
626
|
|
531
|
-
# Request for
|
627
|
+
# Request for
|
628
|
+
# {::Google::Cloud::Redis::V1::CloudRedis::Client#upgrade_instance UpgradeInstance}.
|
532
629
|
# @!attribute [rw] name
|
533
630
|
# @return [::String]
|
534
631
|
# Required. Redis instance resource name using the form:
|
@@ -542,7 +639,8 @@ module Google
|
|
542
639
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
543
640
|
end
|
544
641
|
|
545
|
-
# Request for
|
642
|
+
# Request for
|
643
|
+
# {::Google::Cloud::Redis::V1::CloudRedis::Client#delete_instance DeleteInstance}.
|
546
644
|
# @!attribute [rw] name
|
547
645
|
# @return [::String]
|
548
646
|
# Required. Redis instance resource name using the form:
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-redis-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.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: 2023-
|
11
|
+
date: 2023-06-01 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.19.0
|
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.19.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -44,6 +44,26 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-cloud-location
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.4'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.4'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
47
67
|
- !ruby/object:Gem::Dependency
|
48
68
|
name: google-style
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,6 +191,7 @@ files:
|
|
171
191
|
- README.md
|
172
192
|
- lib/google-cloud-redis-v1.rb
|
173
193
|
- lib/google/cloud/redis/v1.rb
|
194
|
+
- lib/google/cloud/redis/v1/bindings_override.rb
|
174
195
|
- lib/google/cloud/redis/v1/cloud_redis.rb
|
175
196
|
- lib/google/cloud/redis/v1/cloud_redis/client.rb
|
176
197
|
- lib/google/cloud/redis/v1/cloud_redis/credentials.rb
|