google-cloud-redis-v1 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0ef3a65c230ba6713afc034e9e4b4f2bdfcfcfbf8cfc536bc99ca78992cca41
4
- data.tar.gz: 9029b192ed47ccb8da6fa8ba41e853906c199dc69cfa4f19977e34d22aaa8985
3
+ metadata.gz: 9b6921bb85c1c295783cfe299632f1d45e29feca9e6099bad5ba3df49d2062a1
4
+ data.tar.gz: ceac7bd3252e263fe8465f9552f1f8247237ba7cc3ffe75400c75a25fd05899d
5
5
  SHA512:
6
- metadata.gz: 6a3e28499552c28fc9335de84ea2ad472d35c1aa39aa4d7eae802c55b42c52958ba9cf2ea6a271db7d304fd9ac01d48ae54431451924672fe4984e45edc5afe1
7
- data.tar.gz: 869e0538d6ca2977144e6cfcd5308ab6bd06b72d19835b077db7da4289798213b65151094986b8d9100c0ebb7fccf105a51c93753a426646b789a1a3d11f816c
6
+ metadata.gz: b439dd405fb841002437330facc0950b465683d6779485b9b8c0a18e93fee1b8798fbefcc13c0d756ed7c3fa2ee92cd5cba3866f6b1d86399d14293b5d19daf5
7
+ data.tar.gz: 26196b63a5c3ba1d95fb7a1801f306667b596ccd97d97b4c8d52428894f636a1fff32681363b8d98577a9c75d65016b8c6c112ea0547fa8fc52c04ef2dc3523b
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://googleapis.dev/ruby/google-cloud-logging/latest)
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 any.
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 well.
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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 any.
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 well.
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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"
@@ -9,6 +9,7 @@ require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
10
  require 'google/longrunning/operations_pb'
11
11
  require 'google/protobuf/duration_pb'
12
+ require 'google/protobuf/empty_pb'
12
13
  require 'google/protobuf/field_mask_pb'
13
14
  require 'google/protobuf/timestamp_pb'
14
15
  require 'google/type/dayofweek_pb'
@@ -51,6 +52,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
51
52
  optional :read_endpoint, :string, 33
52
53
  optional :read_endpoint_port, :int32, 34
53
54
  optional :read_replicas_mode, :enum, 35, "google.cloud.redis.v1.Instance.ReadReplicasMode"
55
+ optional :customer_managed_key, :string, 36
56
+ optional :persistence_config, :message, 37, "google.cloud.redis.v1.PersistenceConfig"
57
+ repeated :suspension_reasons, :enum, 38, "google.cloud.redis.v1.Instance.SuspensionReason"
58
+ optional :maintenance_version, :string, 39
59
+ repeated :available_maintenance_versions, :string, 40
54
60
  end
55
61
  add_enum "google.cloud.redis.v1.Instance.State" do
56
62
  value :STATE_UNSPECIFIED, 0
@@ -83,6 +89,28 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
83
89
  value :READ_REPLICAS_DISABLED, 1
84
90
  value :READ_REPLICAS_ENABLED, 2
85
91
  end
92
+ add_enum "google.cloud.redis.v1.Instance.SuspensionReason" do
93
+ value :SUSPENSION_REASON_UNSPECIFIED, 0
94
+ value :CUSTOMER_MANAGED_KEY_ISSUE, 1
95
+ end
96
+ add_message "google.cloud.redis.v1.PersistenceConfig" do
97
+ optional :persistence_mode, :enum, 1, "google.cloud.redis.v1.PersistenceConfig.PersistenceMode"
98
+ optional :rdb_snapshot_period, :enum, 2, "google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod"
99
+ optional :rdb_next_snapshot_time, :message, 4, "google.protobuf.Timestamp"
100
+ optional :rdb_snapshot_start_time, :message, 5, "google.protobuf.Timestamp"
101
+ end
102
+ add_enum "google.cloud.redis.v1.PersistenceConfig.PersistenceMode" do
103
+ value :PERSISTENCE_MODE_UNSPECIFIED, 0
104
+ value :DISABLED, 1
105
+ value :RDB, 2
106
+ end
107
+ add_enum "google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod" do
108
+ value :SNAPSHOT_PERIOD_UNSPECIFIED, 0
109
+ value :ONE_HOUR, 3
110
+ value :SIX_HOURS, 4
111
+ value :TWELVE_HOURS, 5
112
+ value :TWENTY_FOUR_HOURS, 6
113
+ end
86
114
  add_message "google.cloud.redis.v1.RescheduleMaintenanceRequest" do
87
115
  optional :name, :string, 1
88
116
  optional :reschedule_type, :enum, 2, "google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType"
@@ -214,6 +242,10 @@ module Google
214
242
  Instance::ConnectMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.ConnectMode").enummodule
215
243
  Instance::TransitEncryptionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.TransitEncryptionMode").enummodule
216
244
  Instance::ReadReplicasMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.ReadReplicasMode").enummodule
245
+ Instance::SuspensionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.Instance.SuspensionReason").enummodule
246
+ PersistenceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.PersistenceConfig").msgclass
247
+ PersistenceConfig::PersistenceMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.PersistenceConfig.PersistenceMode").enummodule
248
+ PersistenceConfig::SnapshotPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.PersistenceConfig.SnapshotPeriod").enummodule
217
249
  RescheduleMaintenanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.RescheduleMaintenanceRequest").msgclass
218
250
  RescheduleMaintenanceRequest::RescheduleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType").enummodule
219
251
  MaintenancePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.v1.MaintenancePolicy").msgclass
@@ -17,6 +17,7 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/cloud/redis/v1/cloud_redis/rest"
20
+ require "google/cloud/redis/v1/bindings_override"
20
21
  require "google/cloud/redis/v1/version"
21
22
 
22
23
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Redis
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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 place that API users can report issues. Example:
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
- # method_behavior:
244
- # - selector: CreateAdDomain
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 {::Google::Cloud::Redis::V1::Instance#location_id location_id} and
47
- # {::Google::Cloud::Redis::V1::Instance#alternative_location_id alternative_location_id} fields for more details.
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 read
91
- # replicas on an existing instance. For DIRECT_PEERING mode value must be a
92
- # CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value
93
- # must be the name of an allocated address range associated with the private
94
- # service access connection, or "auto".
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 set to
165
- # "true" AUTH is enabled on the instance. Default value is "false" meaning
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 Tier with
185
- # read replicas enabled is [1-5] and defaults to 2. If read replicas are not
186
- # enabled for a Standard Tier instance, the only valid value is 1 and the
187
- # default is 1. The valid value for basic tier is 0 and the default is also
188
- # 0.
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 READ_REPLICAS_DISABLED.
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 {::Google::Cloud::Redis::V1::CloudRedis::Client#reschedule_maintenance RescheduleMaintenance}.
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 well.
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 fixed at 1 hour.
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 instance.
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 instance.
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 go beyond,
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 any.
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 {::Google::Cloud::Redis::V1::CloudRedis::Client#get_instance_auth_string GetInstanceAuthString}.
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 {::Google::Cloud::Redis::V1::CloudRedis::Client#create_instance CreateInstance}.
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 {::Google::Cloud::Redis::V1::CloudRedis::Client#update_instance UpdateInstance}.
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 {::Google::Cloud::Redis::V1::CloudRedis::Client#upgrade_instance UpgradeInstance}.
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 {::Google::Cloud::Redis::V1::CloudRedis::Client#delete_instance DeleteInstance}.
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:
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.9.0
4
+ version: 0.10.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-03-08 00:00:00.000000000 Z
11
+ date: 2023-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -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