google-cloud-redis-cluster-v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +144 -0
  6. data/lib/google/cloud/redis/cluster/v1beta1/bindings_override.rb +104 -0
  7. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/client.rb +1048 -0
  8. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/credentials.rb +49 -0
  9. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/operations.rb +811 -0
  10. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/paths.rb +90 -0
  11. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/client.rb +987 -0
  12. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/operations.rb +903 -0
  13. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/service_stub.rb +427 -0
  14. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest.rb +76 -0
  15. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb +78 -0
  16. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster_pb.rb +84 -0
  17. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster_services_pb.rb +97 -0
  18. data/lib/google/cloud/redis/cluster/v1beta1/rest.rb +40 -0
  19. data/lib/google/cloud/redis/cluster/v1beta1/version.rb +30 -0
  20. data/lib/google/cloud/redis/cluster/v1beta1.rb +47 -0
  21. data/lib/google-cloud-redis-cluster-v1beta1.rb +21 -0
  22. data/proto_docs/README.md +4 -0
  23. data/proto_docs/google/api/client.rb +399 -0
  24. data/proto_docs/google/api/field_behavior.rb +85 -0
  25. data/proto_docs/google/api/launch_stage.rb +71 -0
  26. data/proto_docs/google/api/resource.rb +222 -0
  27. data/proto_docs/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb +564 -0
  28. data/proto_docs/google/longrunning/operations.rb +164 -0
  29. data/proto_docs/google/protobuf/any.rb +145 -0
  30. data/proto_docs/google/protobuf/duration.rb +98 -0
  31. data/proto_docs/google/protobuf/empty.rb +34 -0
  32. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  33. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  34. data/proto_docs/google/rpc/status.rb +48 -0
  35. metadata +132 -0
@@ -0,0 +1,427 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Redis
24
+ module Cluster
25
+ module V1beta1
26
+ module CloudRedisCluster
27
+ module Rest
28
+ ##
29
+ # REST service stub for the CloudRedisCluster service.
30
+ # Service stub contains baseline method implementations
31
+ # including transcoding, making the REST call, and deserialing the response.
32
+ #
33
+ class ServiceStub
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
40
+ endpoint_template: endpoint_template,
41
+ universe_domain: universe_domain,
42
+ credentials: credentials,
43
+ numeric_enums: true,
44
+ raise_faraday_errors: false
45
+ end
46
+
47
+ ##
48
+ # The effective universe domain
49
+ #
50
+ # @return [String]
51
+ #
52
+ def universe_domain
53
+ @client_stub.universe_domain
54
+ end
55
+
56
+ ##
57
+ # The effective endpoint
58
+ #
59
+ # @return [String]
60
+ #
61
+ def endpoint
62
+ @client_stub.endpoint
63
+ end
64
+
65
+ ##
66
+ # Baseline implementation for the list_clusters REST call
67
+ #
68
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::ListClustersRequest]
69
+ # A request object representing the call parameters. Required.
70
+ # @param options [::Gapic::CallOptions]
71
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
72
+ #
73
+ # @yield [result, operation] Access the result along with the TransportOperation object
74
+ # @yieldparam result [::Google::Cloud::Redis::Cluster::V1beta1::ListClustersResponse]
75
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
76
+ #
77
+ # @return [::Google::Cloud::Redis::Cluster::V1beta1::ListClustersResponse]
78
+ # A result object deserialized from the server's reply
79
+ def list_clusters request_pb, options = nil
80
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
81
+
82
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_clusters_request request_pb
83
+ query_string_params = if query_string_params.any?
84
+ query_string_params.to_h { |p| p.split "=", 2 }
85
+ else
86
+ {}
87
+ end
88
+
89
+ response = @client_stub.make_http_request(
90
+ verb,
91
+ uri: uri,
92
+ body: body || "",
93
+ params: query_string_params,
94
+ options: options
95
+ )
96
+ operation = ::Gapic::Rest::TransportOperation.new response
97
+ result = ::Google::Cloud::Redis::Cluster::V1beta1::ListClustersResponse.decode_json response.body, ignore_unknown_fields: true
98
+
99
+ yield result, operation if block_given?
100
+ result
101
+ end
102
+
103
+ ##
104
+ # Baseline implementation for the get_cluster REST call
105
+ #
106
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::GetClusterRequest]
107
+ # A request object representing the call parameters. Required.
108
+ # @param options [::Gapic::CallOptions]
109
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
110
+ #
111
+ # @yield [result, operation] Access the result along with the TransportOperation object
112
+ # @yieldparam result [::Google::Cloud::Redis::Cluster::V1beta1::Cluster]
113
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
114
+ #
115
+ # @return [::Google::Cloud::Redis::Cluster::V1beta1::Cluster]
116
+ # A result object deserialized from the server's reply
117
+ def get_cluster request_pb, options = nil
118
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
119
+
120
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_cluster_request request_pb
121
+ query_string_params = if query_string_params.any?
122
+ query_string_params.to_h { |p| p.split "=", 2 }
123
+ else
124
+ {}
125
+ end
126
+
127
+ response = @client_stub.make_http_request(
128
+ verb,
129
+ uri: uri,
130
+ body: body || "",
131
+ params: query_string_params,
132
+ options: options
133
+ )
134
+ operation = ::Gapic::Rest::TransportOperation.new response
135
+ result = ::Google::Cloud::Redis::Cluster::V1beta1::Cluster.decode_json response.body, ignore_unknown_fields: true
136
+
137
+ yield result, operation if block_given?
138
+ result
139
+ end
140
+
141
+ ##
142
+ # Baseline implementation for the update_cluster REST call
143
+ #
144
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::UpdateClusterRequest]
145
+ # A request object representing the call parameters. Required.
146
+ # @param options [::Gapic::CallOptions]
147
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
148
+ #
149
+ # @yield [result, operation] Access the result along with the TransportOperation object
150
+ # @yieldparam result [::Google::Longrunning::Operation]
151
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
152
+ #
153
+ # @return [::Google::Longrunning::Operation]
154
+ # A result object deserialized from the server's reply
155
+ def update_cluster request_pb, options = nil
156
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
157
+
158
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_cluster_request request_pb
159
+ query_string_params = if query_string_params.any?
160
+ query_string_params.to_h { |p| p.split "=", 2 }
161
+ else
162
+ {}
163
+ end
164
+
165
+ response = @client_stub.make_http_request(
166
+ verb,
167
+ uri: uri,
168
+ body: body || "",
169
+ params: query_string_params,
170
+ options: options
171
+ )
172
+ operation = ::Gapic::Rest::TransportOperation.new response
173
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
174
+
175
+ yield result, operation if block_given?
176
+ result
177
+ end
178
+
179
+ ##
180
+ # Baseline implementation for the delete_cluster REST call
181
+ #
182
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::DeleteClusterRequest]
183
+ # A request object representing the call parameters. Required.
184
+ # @param options [::Gapic::CallOptions]
185
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
186
+ #
187
+ # @yield [result, operation] Access the result along with the TransportOperation object
188
+ # @yieldparam result [::Google::Longrunning::Operation]
189
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
190
+ #
191
+ # @return [::Google::Longrunning::Operation]
192
+ # A result object deserialized from the server's reply
193
+ def delete_cluster request_pb, options = nil
194
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
195
+
196
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_cluster_request request_pb
197
+ query_string_params = if query_string_params.any?
198
+ query_string_params.to_h { |p| p.split "=", 2 }
199
+ else
200
+ {}
201
+ end
202
+
203
+ response = @client_stub.make_http_request(
204
+ verb,
205
+ uri: uri,
206
+ body: body || "",
207
+ params: query_string_params,
208
+ options: options
209
+ )
210
+ operation = ::Gapic::Rest::TransportOperation.new response
211
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
212
+
213
+ yield result, operation if block_given?
214
+ result
215
+ end
216
+
217
+ ##
218
+ # Baseline implementation for the create_cluster REST call
219
+ #
220
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::CreateClusterRequest]
221
+ # A request object representing the call parameters. Required.
222
+ # @param options [::Gapic::CallOptions]
223
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
224
+ #
225
+ # @yield [result, operation] Access the result along with the TransportOperation object
226
+ # @yieldparam result [::Google::Longrunning::Operation]
227
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
228
+ #
229
+ # @return [::Google::Longrunning::Operation]
230
+ # A result object deserialized from the server's reply
231
+ def create_cluster request_pb, options = nil
232
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
233
+
234
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_cluster_request request_pb
235
+ query_string_params = if query_string_params.any?
236
+ query_string_params.to_h { |p| p.split "=", 2 }
237
+ else
238
+ {}
239
+ end
240
+
241
+ response = @client_stub.make_http_request(
242
+ verb,
243
+ uri: uri,
244
+ body: body || "",
245
+ params: query_string_params,
246
+ options: options
247
+ )
248
+ operation = ::Gapic::Rest::TransportOperation.new response
249
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
250
+
251
+ yield result, operation if block_given?
252
+ result
253
+ end
254
+
255
+ ##
256
+ # Baseline implementation for the get_cluster_certificate_authority REST call
257
+ #
258
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::GetClusterCertificateAuthorityRequest]
259
+ # A request object representing the call parameters. Required.
260
+ # @param options [::Gapic::CallOptions]
261
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
262
+ #
263
+ # @yield [result, operation] Access the result along with the TransportOperation object
264
+ # @yieldparam result [::Google::Cloud::Redis::Cluster::V1beta1::CertificateAuthority]
265
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
266
+ #
267
+ # @return [::Google::Cloud::Redis::Cluster::V1beta1::CertificateAuthority]
268
+ # A result object deserialized from the server's reply
269
+ def get_cluster_certificate_authority request_pb, options = nil
270
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
271
+
272
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_cluster_certificate_authority_request request_pb
273
+ query_string_params = if query_string_params.any?
274
+ query_string_params.to_h { |p| p.split "=", 2 }
275
+ else
276
+ {}
277
+ end
278
+
279
+ response = @client_stub.make_http_request(
280
+ verb,
281
+ uri: uri,
282
+ body: body || "",
283
+ params: query_string_params,
284
+ options: options
285
+ )
286
+ operation = ::Gapic::Rest::TransportOperation.new response
287
+ result = ::Google::Cloud::Redis::Cluster::V1beta1::CertificateAuthority.decode_json response.body, ignore_unknown_fields: true
288
+
289
+ yield result, operation if block_given?
290
+ result
291
+ end
292
+
293
+ ##
294
+ # @private
295
+ #
296
+ # GRPC transcoding helper method for the list_clusters REST call
297
+ #
298
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::ListClustersRequest]
299
+ # A request object representing the call parameters. Required.
300
+ # @return [Array(String, [String, nil], Hash{String => String})]
301
+ # Uri, Body, Query string parameters
302
+ def self.transcode_list_clusters_request request_pb
303
+ transcoder = Gapic::Rest::GrpcTranscoder.new
304
+ .with_bindings(
305
+ uri_method: :get,
306
+ uri_template: "/v1beta1/{parent}/clusters",
307
+ matches: [
308
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
309
+ ]
310
+ )
311
+ transcoder.transcode request_pb
312
+ end
313
+
314
+ ##
315
+ # @private
316
+ #
317
+ # GRPC transcoding helper method for the get_cluster REST call
318
+ #
319
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::GetClusterRequest]
320
+ # A request object representing the call parameters. Required.
321
+ # @return [Array(String, [String, nil], Hash{String => String})]
322
+ # Uri, Body, Query string parameters
323
+ def self.transcode_get_cluster_request request_pb
324
+ transcoder = Gapic::Rest::GrpcTranscoder.new
325
+ .with_bindings(
326
+ uri_method: :get,
327
+ uri_template: "/v1beta1/{name}",
328
+ matches: [
329
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/?$}, false]
330
+ ]
331
+ )
332
+ transcoder.transcode request_pb
333
+ end
334
+
335
+ ##
336
+ # @private
337
+ #
338
+ # GRPC transcoding helper method for the update_cluster REST call
339
+ #
340
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::UpdateClusterRequest]
341
+ # A request object representing the call parameters. Required.
342
+ # @return [Array(String, [String, nil], Hash{String => String})]
343
+ # Uri, Body, Query string parameters
344
+ def self.transcode_update_cluster_request request_pb
345
+ transcoder = Gapic::Rest::GrpcTranscoder.new
346
+ .with_bindings(
347
+ uri_method: :patch,
348
+ uri_template: "/v1beta1/{cluster.name}",
349
+ body: "cluster",
350
+ matches: [
351
+ ["cluster.name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/?$}, false]
352
+ ]
353
+ )
354
+ transcoder.transcode request_pb
355
+ end
356
+
357
+ ##
358
+ # @private
359
+ #
360
+ # GRPC transcoding helper method for the delete_cluster REST call
361
+ #
362
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::DeleteClusterRequest]
363
+ # A request object representing the call parameters. Required.
364
+ # @return [Array(String, [String, nil], Hash{String => String})]
365
+ # Uri, Body, Query string parameters
366
+ def self.transcode_delete_cluster_request request_pb
367
+ transcoder = Gapic::Rest::GrpcTranscoder.new
368
+ .with_bindings(
369
+ uri_method: :delete,
370
+ uri_template: "/v1beta1/{name}",
371
+ matches: [
372
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/?$}, false]
373
+ ]
374
+ )
375
+ transcoder.transcode request_pb
376
+ end
377
+
378
+ ##
379
+ # @private
380
+ #
381
+ # GRPC transcoding helper method for the create_cluster REST call
382
+ #
383
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::CreateClusterRequest]
384
+ # A request object representing the call parameters. Required.
385
+ # @return [Array(String, [String, nil], Hash{String => String})]
386
+ # Uri, Body, Query string parameters
387
+ def self.transcode_create_cluster_request request_pb
388
+ transcoder = Gapic::Rest::GrpcTranscoder.new
389
+ .with_bindings(
390
+ uri_method: :post,
391
+ uri_template: "/v1beta1/{parent}/clusters",
392
+ body: "cluster",
393
+ matches: [
394
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
395
+ ]
396
+ )
397
+ transcoder.transcode request_pb
398
+ end
399
+
400
+ ##
401
+ # @private
402
+ #
403
+ # GRPC transcoding helper method for the get_cluster_certificate_authority REST call
404
+ #
405
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1beta1::GetClusterCertificateAuthorityRequest]
406
+ # A request object representing the call parameters. Required.
407
+ # @return [Array(String, [String, nil], Hash{String => String})]
408
+ # Uri, Body, Query string parameters
409
+ def self.transcode_get_cluster_certificate_authority_request request_pb
410
+ transcoder = Gapic::Rest::GrpcTranscoder.new
411
+ .with_bindings(
412
+ uri_method: :get,
413
+ uri_template: "/v1beta1/{name}",
414
+ matches: [
415
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/certificateAuthority/?$}, false]
416
+ ]
417
+ )
418
+ transcoder.transcode request_pb
419
+ end
420
+ end
421
+ end
422
+ end
423
+ end
424
+ end
425
+ end
426
+ end
427
+ end
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/redis/cluster/v1beta1/version"
24
+ require "google/cloud/redis/cluster/v1beta1/bindings_override"
25
+
26
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/credentials"
27
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/paths"
28
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/operations"
29
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/client"
30
+
31
+ module Google
32
+ module Cloud
33
+ module Redis
34
+ module Cluster
35
+ module V1beta1
36
+ ##
37
+ # Configures and manages Cloud Memorystore for Redis clusters
38
+ #
39
+ # Google Cloud Memorystore for Redis Cluster
40
+ #
41
+ # The `redis.googleapis.com` service implements the Google Cloud Memorystore
42
+ # for Redis API and defines the following resource model for managing Redis
43
+ # clusters:
44
+ # * The service works with a collection of cloud projects, named: `/projects/*`
45
+ # * Each project has a collection of available locations, named: `/locations/*`
46
+ # * Each location has a collection of Redis clusters, named: `/clusters/*`
47
+ # * As such, Redis clusters are resources of the form:
48
+ # `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}`
49
+ #
50
+ # Note that location_id must be a GCP `region`; for example:
51
+ # * `projects/redpepper-1290/locations/us-central1/clusters/my-redis`
52
+ #
53
+ # We use API version selector for Flex APIs
54
+ # * The versioning strategy is release-based versioning
55
+ # * Our backend CLH only deals with the superset version (called v1main)
56
+ # * Existing backend for Redis Gen1 and MRR is not touched.
57
+ # * More details in go/redis-flex-api-versioning
58
+ #
59
+ # To load this service and instantiate a REST client:
60
+ #
61
+ # require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest"
62
+ # client = ::Google::Cloud::Redis::Cluster::V1beta1::CloudRedisCluster::Rest::Client.new
63
+ #
64
+ module CloudRedisCluster
65
+ # Client for the REST transport
66
+ module Rest
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
74
+
75
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
76
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/redis/cluster/v1beta1/version"
24
+
25
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/credentials"
26
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/paths"
27
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/operations"
28
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/client"
29
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest"
30
+
31
+ module Google
32
+ module Cloud
33
+ module Redis
34
+ module Cluster
35
+ module V1beta1
36
+ ##
37
+ # Configures and manages Cloud Memorystore for Redis clusters
38
+ #
39
+ # Google Cloud Memorystore for Redis Cluster
40
+ #
41
+ # The `redis.googleapis.com` service implements the Google Cloud Memorystore
42
+ # for Redis API and defines the following resource model for managing Redis
43
+ # clusters:
44
+ # * The service works with a collection of cloud projects, named: `/projects/*`
45
+ # * Each project has a collection of available locations, named: `/locations/*`
46
+ # * Each location has a collection of Redis clusters, named: `/clusters/*`
47
+ # * As such, Redis clusters are resources of the form:
48
+ # `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}`
49
+ #
50
+ # Note that location_id must be a GCP `region`; for example:
51
+ # * `projects/redpepper-1290/locations/us-central1/clusters/my-redis`
52
+ #
53
+ # We use API version selector for Flex APIs
54
+ # * The versioning strategy is release-based versioning
55
+ # * Our backend CLH only deals with the superset version (called v1main)
56
+ # * Existing backend for Redis Gen1 and MRR is not touched.
57
+ # * More details in go/redis-flex-api-versioning
58
+ #
59
+ # @example Load this service and instantiate a gRPC client
60
+ #
61
+ # require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster"
62
+ # client = ::Google::Cloud::Redis::Cluster::V1beta1::CloudRedisCluster::Client.new
63
+ #
64
+ # @example Load this service and instantiate a REST client
65
+ #
66
+ # require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest"
67
+ # client = ::Google::Cloud::Redis::Cluster::V1beta1::CloudRedisCluster::Rest::Client.new
68
+ #
69
+ module CloudRedisCluster
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
75
+ end
76
+
77
+ helper_path = ::File.join __dir__, "cloud_redis_cluster", "helpers.rb"
78
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/helpers" if ::File.file? helper_path