google-cloud-memorystore-v1beta 0.a → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +118 -8
- data/lib/google/cloud/memorystore/v1beta/bindings_override.rb +102 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/credentials.rb +47 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/paths.rb +124 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/client.rb +982 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/operations.rb +894 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/service_stub.rb +425 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest.rb +54 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore.rb +48 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore_pb.rb +88 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore_services_pb.rb +55 -0
- data/lib/google/cloud/memorystore/v1beta/rest.rb +38 -0
- data/lib/google/cloud/memorystore/v1beta/version.rb +7 -2
- data/lib/google/cloud/memorystore/v1beta.rb +40 -0
- data/lib/google-cloud-memorystore-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +459 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/memorystore/v1beta/memorystore.rb +714 -0
- data/proto_docs/google/longrunning/operations.rb +169 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +92 -10
@@ -0,0 +1,425 @@
|
|
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/memorystore/v1beta/memorystore_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Memorystore
|
24
|
+
module V1beta
|
25
|
+
module Memorystore
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the Memorystore service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
42
|
+
numeric_enums: true,
|
43
|
+
raise_faraday_errors: false
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
64
|
+
##
|
65
|
+
# Baseline implementation for the list_instances REST call
|
66
|
+
#
|
67
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::ListInstancesRequest]
|
68
|
+
# A request object representing the call parameters. Required.
|
69
|
+
# @param options [::Gapic::CallOptions]
|
70
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
71
|
+
#
|
72
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
73
|
+
# @yieldparam result [::Google::Cloud::Memorystore::V1beta::ListInstancesResponse]
|
74
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
75
|
+
#
|
76
|
+
# @return [::Google::Cloud::Memorystore::V1beta::ListInstancesResponse]
|
77
|
+
# A result object deserialized from the server's reply
|
78
|
+
def list_instances request_pb, options = nil
|
79
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
80
|
+
|
81
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
|
82
|
+
query_string_params = if query_string_params.any?
|
83
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
84
|
+
else
|
85
|
+
{}
|
86
|
+
end
|
87
|
+
|
88
|
+
response = @client_stub.make_http_request(
|
89
|
+
verb,
|
90
|
+
uri: uri,
|
91
|
+
body: body || "",
|
92
|
+
params: query_string_params,
|
93
|
+
options: options
|
94
|
+
)
|
95
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
96
|
+
result = ::Google::Cloud::Memorystore::V1beta::ListInstancesResponse.decode_json response.body, ignore_unknown_fields: true
|
97
|
+
|
98
|
+
yield result, operation if block_given?
|
99
|
+
result
|
100
|
+
end
|
101
|
+
|
102
|
+
##
|
103
|
+
# Baseline implementation for the get_instance REST call
|
104
|
+
#
|
105
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::GetInstanceRequest]
|
106
|
+
# A request object representing the call parameters. Required.
|
107
|
+
# @param options [::Gapic::CallOptions]
|
108
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
109
|
+
#
|
110
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
111
|
+
# @yieldparam result [::Google::Cloud::Memorystore::V1beta::Instance]
|
112
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
113
|
+
#
|
114
|
+
# @return [::Google::Cloud::Memorystore::V1beta::Instance]
|
115
|
+
# A result object deserialized from the server's reply
|
116
|
+
def get_instance request_pb, options = nil
|
117
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
118
|
+
|
119
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
|
120
|
+
query_string_params = if query_string_params.any?
|
121
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
122
|
+
else
|
123
|
+
{}
|
124
|
+
end
|
125
|
+
|
126
|
+
response = @client_stub.make_http_request(
|
127
|
+
verb,
|
128
|
+
uri: uri,
|
129
|
+
body: body || "",
|
130
|
+
params: query_string_params,
|
131
|
+
options: options
|
132
|
+
)
|
133
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
134
|
+
result = ::Google::Cloud::Memorystore::V1beta::Instance.decode_json response.body, ignore_unknown_fields: true
|
135
|
+
|
136
|
+
yield result, operation if block_given?
|
137
|
+
result
|
138
|
+
end
|
139
|
+
|
140
|
+
##
|
141
|
+
# Baseline implementation for the create_instance REST call
|
142
|
+
#
|
143
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest]
|
144
|
+
# A request object representing the call parameters. Required.
|
145
|
+
# @param options [::Gapic::CallOptions]
|
146
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
147
|
+
#
|
148
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
149
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
150
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
151
|
+
#
|
152
|
+
# @return [::Google::Longrunning::Operation]
|
153
|
+
# A result object deserialized from the server's reply
|
154
|
+
def create_instance request_pb, options = nil
|
155
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
156
|
+
|
157
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_instance_request request_pb
|
158
|
+
query_string_params = if query_string_params.any?
|
159
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
160
|
+
else
|
161
|
+
{}
|
162
|
+
end
|
163
|
+
|
164
|
+
response = @client_stub.make_http_request(
|
165
|
+
verb,
|
166
|
+
uri: uri,
|
167
|
+
body: body || "",
|
168
|
+
params: query_string_params,
|
169
|
+
options: options
|
170
|
+
)
|
171
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
172
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
173
|
+
|
174
|
+
yield result, operation if block_given?
|
175
|
+
result
|
176
|
+
end
|
177
|
+
|
178
|
+
##
|
179
|
+
# Baseline implementation for the update_instance REST call
|
180
|
+
#
|
181
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest]
|
182
|
+
# A request object representing the call parameters. Required.
|
183
|
+
# @param options [::Gapic::CallOptions]
|
184
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
185
|
+
#
|
186
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
187
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
188
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
189
|
+
#
|
190
|
+
# @return [::Google::Longrunning::Operation]
|
191
|
+
# A result object deserialized from the server's reply
|
192
|
+
def update_instance request_pb, options = nil
|
193
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
194
|
+
|
195
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_instance_request request_pb
|
196
|
+
query_string_params = if query_string_params.any?
|
197
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
198
|
+
else
|
199
|
+
{}
|
200
|
+
end
|
201
|
+
|
202
|
+
response = @client_stub.make_http_request(
|
203
|
+
verb,
|
204
|
+
uri: uri,
|
205
|
+
body: body || "",
|
206
|
+
params: query_string_params,
|
207
|
+
options: options
|
208
|
+
)
|
209
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
210
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
211
|
+
|
212
|
+
yield result, operation if block_given?
|
213
|
+
result
|
214
|
+
end
|
215
|
+
|
216
|
+
##
|
217
|
+
# Baseline implementation for the delete_instance REST call
|
218
|
+
#
|
219
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteInstanceRequest]
|
220
|
+
# A request object representing the call parameters. Required.
|
221
|
+
# @param options [::Gapic::CallOptions]
|
222
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
223
|
+
#
|
224
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
225
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
226
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
227
|
+
#
|
228
|
+
# @return [::Google::Longrunning::Operation]
|
229
|
+
# A result object deserialized from the server's reply
|
230
|
+
def delete_instance request_pb, options = nil
|
231
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
232
|
+
|
233
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_instance_request request_pb
|
234
|
+
query_string_params = if query_string_params.any?
|
235
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
236
|
+
else
|
237
|
+
{}
|
238
|
+
end
|
239
|
+
|
240
|
+
response = @client_stub.make_http_request(
|
241
|
+
verb,
|
242
|
+
uri: uri,
|
243
|
+
body: body || "",
|
244
|
+
params: query_string_params,
|
245
|
+
options: options
|
246
|
+
)
|
247
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
248
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
249
|
+
|
250
|
+
yield result, operation if block_given?
|
251
|
+
result
|
252
|
+
end
|
253
|
+
|
254
|
+
##
|
255
|
+
# Baseline implementation for the get_certificate_authority REST call
|
256
|
+
#
|
257
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::GetCertificateAuthorityRequest]
|
258
|
+
# A request object representing the call parameters. Required.
|
259
|
+
# @param options [::Gapic::CallOptions]
|
260
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
261
|
+
#
|
262
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
263
|
+
# @yieldparam result [::Google::Cloud::Memorystore::V1beta::CertificateAuthority]
|
264
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
265
|
+
#
|
266
|
+
# @return [::Google::Cloud::Memorystore::V1beta::CertificateAuthority]
|
267
|
+
# A result object deserialized from the server's reply
|
268
|
+
def get_certificate_authority request_pb, options = nil
|
269
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
270
|
+
|
271
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_certificate_authority_request request_pb
|
272
|
+
query_string_params = if query_string_params.any?
|
273
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
274
|
+
else
|
275
|
+
{}
|
276
|
+
end
|
277
|
+
|
278
|
+
response = @client_stub.make_http_request(
|
279
|
+
verb,
|
280
|
+
uri: uri,
|
281
|
+
body: body || "",
|
282
|
+
params: query_string_params,
|
283
|
+
options: options
|
284
|
+
)
|
285
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
286
|
+
result = ::Google::Cloud::Memorystore::V1beta::CertificateAuthority.decode_json response.body, ignore_unknown_fields: true
|
287
|
+
|
288
|
+
yield result, operation if block_given?
|
289
|
+
result
|
290
|
+
end
|
291
|
+
|
292
|
+
##
|
293
|
+
# @private
|
294
|
+
#
|
295
|
+
# GRPC transcoding helper method for the list_instances REST call
|
296
|
+
#
|
297
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::ListInstancesRequest]
|
298
|
+
# A request object representing the call parameters. Required.
|
299
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
300
|
+
# Uri, Body, Query string parameters
|
301
|
+
def self.transcode_list_instances_request request_pb
|
302
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
303
|
+
.with_bindings(
|
304
|
+
uri_method: :get,
|
305
|
+
uri_template: "/v1beta/{parent}/instances",
|
306
|
+
matches: [
|
307
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
308
|
+
]
|
309
|
+
)
|
310
|
+
transcoder.transcode request_pb
|
311
|
+
end
|
312
|
+
|
313
|
+
##
|
314
|
+
# @private
|
315
|
+
#
|
316
|
+
# GRPC transcoding helper method for the get_instance REST call
|
317
|
+
#
|
318
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::GetInstanceRequest]
|
319
|
+
# A request object representing the call parameters. Required.
|
320
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
321
|
+
# Uri, Body, Query string parameters
|
322
|
+
def self.transcode_get_instance_request request_pb
|
323
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
324
|
+
.with_bindings(
|
325
|
+
uri_method: :get,
|
326
|
+
uri_template: "/v1beta/{name}",
|
327
|
+
matches: [
|
328
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
329
|
+
]
|
330
|
+
)
|
331
|
+
transcoder.transcode request_pb
|
332
|
+
end
|
333
|
+
|
334
|
+
##
|
335
|
+
# @private
|
336
|
+
#
|
337
|
+
# GRPC transcoding helper method for the create_instance REST call
|
338
|
+
#
|
339
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest]
|
340
|
+
# A request object representing the call parameters. Required.
|
341
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
342
|
+
# Uri, Body, Query string parameters
|
343
|
+
def self.transcode_create_instance_request request_pb
|
344
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
345
|
+
.with_bindings(
|
346
|
+
uri_method: :post,
|
347
|
+
uri_template: "/v1beta/{parent}/instances",
|
348
|
+
body: "instance",
|
349
|
+
matches: [
|
350
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
351
|
+
]
|
352
|
+
)
|
353
|
+
transcoder.transcode request_pb
|
354
|
+
end
|
355
|
+
|
356
|
+
##
|
357
|
+
# @private
|
358
|
+
#
|
359
|
+
# GRPC transcoding helper method for the update_instance REST call
|
360
|
+
#
|
361
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest]
|
362
|
+
# A request object representing the call parameters. Required.
|
363
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
364
|
+
# Uri, Body, Query string parameters
|
365
|
+
def self.transcode_update_instance_request request_pb
|
366
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
367
|
+
.with_bindings(
|
368
|
+
uri_method: :patch,
|
369
|
+
uri_template: "/v1beta/{instance.name}",
|
370
|
+
body: "instance",
|
371
|
+
matches: [
|
372
|
+
["instance.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
373
|
+
]
|
374
|
+
)
|
375
|
+
transcoder.transcode request_pb
|
376
|
+
end
|
377
|
+
|
378
|
+
##
|
379
|
+
# @private
|
380
|
+
#
|
381
|
+
# GRPC transcoding helper method for the delete_instance REST call
|
382
|
+
#
|
383
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteInstanceRequest]
|
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_delete_instance_request request_pb
|
388
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
389
|
+
.with_bindings(
|
390
|
+
uri_method: :delete,
|
391
|
+
uri_template: "/v1beta/{name}",
|
392
|
+
matches: [
|
393
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
394
|
+
]
|
395
|
+
)
|
396
|
+
transcoder.transcode request_pb
|
397
|
+
end
|
398
|
+
|
399
|
+
##
|
400
|
+
# @private
|
401
|
+
#
|
402
|
+
# GRPC transcoding helper method for the get_certificate_authority REST call
|
403
|
+
#
|
404
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::GetCertificateAuthorityRequest]
|
405
|
+
# A request object representing the call parameters. Required.
|
406
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
407
|
+
# Uri, Body, Query string parameters
|
408
|
+
def self.transcode_get_certificate_authority_request request_pb
|
409
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
410
|
+
.with_bindings(
|
411
|
+
uri_method: :get,
|
412
|
+
uri_template: "/v1beta/{name}/certificateAuthority",
|
413
|
+
matches: [
|
414
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
415
|
+
]
|
416
|
+
)
|
417
|
+
transcoder.transcode request_pb
|
418
|
+
end
|
419
|
+
end
|
420
|
+
end
|
421
|
+
end
|
422
|
+
end
|
423
|
+
end
|
424
|
+
end
|
425
|
+
end
|
@@ -0,0 +1,54 @@
|
|
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/memorystore/v1beta/version"
|
24
|
+
require "google/cloud/memorystore/v1beta/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/memorystore/v1beta/memorystore/credentials"
|
27
|
+
require "google/cloud/memorystore/v1beta/memorystore/paths"
|
28
|
+
require "google/cloud/memorystore/v1beta/memorystore/rest/operations"
|
29
|
+
require "google/cloud/memorystore/v1beta/memorystore/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Memorystore
|
34
|
+
module V1beta
|
35
|
+
##
|
36
|
+
# Service describing handlers for resources
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a REST client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/memorystore/v1beta/memorystore/rest"
|
41
|
+
# client = ::Google::Cloud::Memorystore::V1beta::Memorystore::Rest::Client.new
|
42
|
+
#
|
43
|
+
module Memorystore
|
44
|
+
# Client for the REST transport
|
45
|
+
module Rest
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
54
|
+
require "google/cloud/memorystore/v1beta/memorystore/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,48 @@
|
|
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/config"
|
20
|
+
require "gapic/config/method"
|
21
|
+
|
22
|
+
require "google/cloud/memorystore/v1beta/version"
|
23
|
+
|
24
|
+
require "google/cloud/memorystore/v1beta/memorystore/credentials"
|
25
|
+
require "google/cloud/memorystore/v1beta/memorystore/paths"
|
26
|
+
require "google/cloud/memorystore/v1beta/memorystore/rest"
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Cloud
|
30
|
+
module Memorystore
|
31
|
+
module V1beta
|
32
|
+
##
|
33
|
+
# Service describing handlers for resources
|
34
|
+
#
|
35
|
+
# @example Load this service and instantiate a REST client
|
36
|
+
#
|
37
|
+
# require "google/cloud/memorystore/v1beta/memorystore/rest"
|
38
|
+
# client = ::Google::Cloud::Memorystore::V1beta::Memorystore::Rest::Client.new
|
39
|
+
#
|
40
|
+
module Memorystore
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
helper_path = ::File.join __dir__, "memorystore", "helpers.rb"
|
48
|
+
require "google/cloud/memorystore/v1beta/memorystore/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/memorystore/v1beta/memorystore.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/field_info_pb'
|
11
|
+
require 'google/api/resource_pb'
|
12
|
+
require 'google/longrunning/operations_pb'
|
13
|
+
require 'google/protobuf/empty_pb'
|
14
|
+
require 'google/protobuf/field_mask_pb'
|
15
|
+
require 'google/protobuf/timestamp_pb'
|
16
|
+
|
17
|
+
|
18
|
+
descriptor_data = "\n1google/cloud/memorystore/v1beta/memorystore.proto\x12\x1fgoogle.cloud.memorystore.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe6\x15\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12J\n\x06labels\x18\x04 \x03(\x0b\x32\x35.google.cloud.memorystore.v1beta.Instance.LabelsEntryB\x03\xe0\x41\x01\x12\x43\n\x05state\x18\x05 \x01(\x0e\x32/.google.cloud.memorystore.v1beta.Instance.StateB\x03\xe0\x41\x03\x12L\n\nstate_info\x18\x06 \x01(\x0b\x32\x33.google.cloud.memorystore.v1beta.Instance.StateInfoB\x03\xe0\x41\x03\x12\x18\n\x03uid\x18\x07 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x1f\n\rreplica_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12_\n\x12\x61uthorization_mode\x18\t \x01(\x0e\x32;.google.cloud.memorystore.v1beta.Instance.AuthorizationModeB\x06\xe0\x41\x01\xe0\x41\x05\x12h\n\x17transit_encryption_mode\x18\n \x01(\x0e\x32?.google.cloud.memorystore.v1beta.Instance.TransitEncryptionModeB\x06\xe0\x41\x01\xe0\x41\x05\x12\x18\n\x0bshard_count\x18\x0b \x01(\x05\x42\x03\xe0\x41\x01\x12T\n\x13\x64iscovery_endpoints\x18\x0c \x03(\x0b\x32\x32.google.cloud.memorystore.v1beta.DiscoveryEndpointB\x03\xe0\x41\x03\x12M\n\tnode_type\x18\r \x01(\x0e\x32\x32.google.cloud.memorystore.v1beta.Instance.NodeTypeB\x06\xe0\x41\x01\xe0\x41\x05\x12S\n\x12persistence_config\x18\x0e \x01(\x0b\x32\x32.google.cloud.memorystore.v1beta.PersistenceConfigB\x03\xe0\x41\x01\x12\x1e\n\x0e\x65ngine_version\x18\x0f \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12Y\n\x0e\x65ngine_configs\x18\x10 \x03(\x0b\x32<.google.cloud.memorystore.v1beta.Instance.EngineConfigsEntryB\x03\xe0\x41\x01\x12\x45\n\x0bnode_config\x18\x11 \x01(\x0b\x32+.google.cloud.memorystore.v1beta.NodeConfigB\x03\xe0\x41\x03\x12\x61\n\x18zone_distribution_config\x18\x12 \x01(\x0b\x32\x37.google.cloud.memorystore.v1beta.ZoneDistributionConfigB\x06\xe0\x41\x01\xe0\x41\x05\x12-\n\x1b\x64\x65letion_protection_enabled\x18\x13 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12X\n\x14psc_auto_connections\x18\x14 \x03(\x0b\x32\x32.google.cloud.memorystore.v1beta.PscAutoConnectionB\x06\xe0\x41\x02\xe0\x41\x05\x12R\n\tendpoints\x18\x19 \x03(\x0b\x32:.google.cloud.memorystore.v1beta.Instance.InstanceEndpointB\x03\xe0\x41\x01\x12\x41\n\x04mode\x18\x1a \x01(\x0e\x32..google.cloud.memorystore.v1beta.Instance.ModeB\x03\xe0\x41\x01\x1a\xfc\x01\n\tStateInfo\x12Z\n\x0bupdate_info\x18\x01 \x01(\x0b\x32>.google.cloud.memorystore.v1beta.Instance.StateInfo.UpdateInfoB\x03\xe0\x41\x03H\x00\x1a\x8a\x01\n\nUpdateInfo\x12$\n\x12target_shard_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12&\n\x14target_replica_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x15\n\x13_target_shard_countB\x17\n\x15_target_replica_countB\x06\n\x04info\x1ah\n\x10InstanceEndpoint\x12T\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32:.google.cloud.memorystore.v1beta.Instance.ConnectionDetailB\x03\xe0\x41\x01\x1a\xbd\x01\n\x10\x43onnectionDetail\x12Q\n\x13psc_auto_connection\x18\x01 \x01(\x0b\x32\x32.google.cloud.memorystore.v1beta.PscAutoConnectionH\x00\x12H\n\x0epsc_connection\x18\x02 \x01(\x0b\x32..google.cloud.memorystore.v1beta.PscConnectionH\x00\x42\x0c\n\nconnection\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12\x45ngineConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\"X\n\x11\x41uthorizationMode\x12\"\n\x1e\x41UTHORIZATION_MODE_UNSPECIFIED\x10\x00\x12\x11\n\rAUTH_DISABLED\x10\x01\x12\x0c\n\x08IAM_AUTH\x10\x02\"|\n\x15TransitEncryptionMode\x12\'\n#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bTRANSIT_ENCRYPTION_DISABLED\x10\x01\x12\x19\n\x15SERVER_AUTHENTICATION\x10\x02\"w\n\x08NodeType\x12\x19\n\x15NODE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10SHARED_CORE_NANO\x10\x01\x12\x12\n\x0eHIGHMEM_MEDIUM\x10\x02\x12\x12\n\x0eHIGHMEM_XLARGE\x10\x03\x12\x12\n\x0eSTANDARD_SMALL\x10\x04\"9\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nSTANDALONE\x10\x01\x12\x0b\n\x07\x43LUSTER\x10\x02:{\xea\x41x\n#memorystore.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}*\tinstances2\x08instanceB\x10\n\x0e_replica_countB\x1e\n\x1c_deletion_protection_enabled\"\x86\x04\n\x11PscAutoConnection\x12\x16\n\x04port\x18\t \x01(\x05\x42\x06\xe0\x41\x03\xe0\x41\x01H\x00\x12\x1e\n\x11psc_connection_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\nip_address\x18\x02 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x02\x12\x46\n\x0f\x66orwarding_rule\x18\x03 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%compute.googleapis.com/ForwardingRule\x12\x17\n\nproject_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x07network\x18\x05 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12L\n\x12service_attachment\x18\x06 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(compute.googleapis.com/ServiceAttachment\x12X\n\x15psc_connection_status\x18\x07 \x01(\x0e\x32\x34.google.cloud.memorystore.v1beta.PscConnectionStatusB\x03\xe0\x41\x03\x12M\n\x0f\x63onnection_type\x18\x08 \x01(\x0e\x32/.google.cloud.memorystore.v1beta.ConnectionTypeB\x03\xe0\x41\x03\x42\x07\n\x05ports\"\xe1\x03\n\rPscConnection\x12\x1e\n\x11psc_connection_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\nip_address\x18\x02 \x01(\tB\x0b\xe0\x41\x02\xe2\x8c\xcf\xd7\x08\x02\x08\x02\x12\x46\n\x0f\x66orwarding_rule\x18\x03 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%compute.googleapis.com/ForwardingRule\x12\x17\n\nproject_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x37\n\x07network\x18\x05 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12L\n\x12service_attachment\x18\x06 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(compute.googleapis.com/ServiceAttachment\x12X\n\x15psc_connection_status\x18\x07 \x01(\x0e\x32\x34.google.cloud.memorystore.v1beta.PscConnectionStatusB\x03\xe0\x41\x03\x12M\n\x0f\x63onnection_type\x18\x08 \x01(\x0e\x32/.google.cloud.memorystore.v1beta.ConnectionTypeB\x03\xe0\x41\x03\"u\n\x11\x44iscoveryEndpoint\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04port\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x37\n\x07network\x18\x04 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\"\xeb\x06\n\x11PersistenceConfig\x12U\n\x04mode\x18\x01 \x01(\x0e\x32\x42.google.cloud.memorystore.v1beta.PersistenceConfig.PersistenceModeB\x03\xe0\x41\x01\x12U\n\nrdb_config\x18\x02 \x01(\x0b\x32<.google.cloud.memorystore.v1beta.PersistenceConfig.RDBConfigB\x03\xe0\x41\x01\x12U\n\naof_config\x18\x03 \x01(\x0b\x32<.google.cloud.memorystore.v1beta.PersistenceConfig.AOFConfigB\x03\xe0\x41\x01\x1a\xb5\x02\n\tRDBConfig\x12m\n\x13rdb_snapshot_period\x18\x01 \x01(\x0e\x32K.google.cloud.memorystore.v1beta.PersistenceConfig.RDBConfig.SnapshotPeriodB\x03\xe0\x41\x01\x12@\n\x17rdb_snapshot_start_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"w\n\x0eSnapshotPeriod\x12\x1f\n\x1bSNAPSHOT_PERIOD_UNSPECIFIED\x10\x00\x12\x0c\n\x08ONE_HOUR\x10\x01\x12\r\n\tSIX_HOURS\x10\x02\x12\x10\n\x0cTWELVE_HOURS\x10\x03\x12\x15\n\x11TWENTY_FOUR_HOURS\x10\x04\x1a\xc3\x01\n\tAOFConfig\x12\x63\n\x0c\x61ppend_fsync\x18\x01 \x01(\x0e\x32H.google.cloud.memorystore.v1beta.PersistenceConfig.AOFConfig.AppendFsyncB\x03\xe0\x41\x01\"Q\n\x0b\x41ppendFsync\x12\x1c\n\x18\x41PPEND_FSYNC_UNSPECIFIED\x10\x00\x12\t\n\x05NEVER\x10\x01\x12\r\n\tEVERY_SEC\x10\x02\x12\n\n\x06\x41LWAYS\x10\x03\"S\n\x0fPersistenceMode\x12 \n\x1cPERSISTENCE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x07\n\x03RDB\x10\x02\x12\x07\n\x03\x41OF\x10\x03\"\"\n\nNodeConfig\x12\x14\n\x07size_gb\x18\x01 \x01(\x01\x42\x03\xe0\x41\x03\"\xed\x01\n\x16ZoneDistributionConfig\x12\x11\n\x04zone\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12_\n\x04mode\x18\x01 \x01(\x0e\x32L.google.cloud.memorystore.v1beta.ZoneDistributionConfig.ZoneDistributionModeB\x03\xe0\x41\x01\"_\n\x14ZoneDistributionMode\x12&\n\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nMULTI_ZONE\x10\x01\x12\x0f\n\x0bSINGLE_ZONE\x10\x02\"\xb0\x01\n\x14ListInstancesRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#memorystore.googleapis.com/Instance\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x15ListInstancesResponse\x12<\n\tinstances\x18\x01 \x03(\x0b\x32).google.cloud.memorystore.v1beta.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"O\n\x12GetInstanceRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#memorystore.googleapis.com/Instance\"\xd1\x01\n\x15\x43reateInstanceRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#memorystore.googleapis.com/Instance\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\x08instance\x18\x03 \x01(\x0b\x32).google.cloud.memorystore.v1beta.InstanceB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xb0\x01\n\x15UpdateInstanceRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12@\n\x08instance\x18\x02 \x01(\x0b\x32).google.cloud.memorystore.v1beta.InstanceB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"s\n\x15\x44\x65leteInstanceRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#memorystore.googleapis.com/Instance\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"[\n\x1eGetCertificateAuthorityRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#memorystore.googleapis.com/Instance\"\x91\x04\n\x14\x43\x65rtificateAuthority\x12n\n\x11managed_server_ca\x18\x02 \x01(\x0b\x32Q.google.cloud.memorystore.v1beta.CertificateAuthority.ManagedCertificateAuthorityH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x1a\xaf\x01\n\x1bManagedCertificateAuthority\x12m\n\x08\x63\x61_certs\x18\x01 \x03(\x0b\x32[.google.cloud.memorystore.v1beta.CertificateAuthority.ManagedCertificateAuthority.CertChain\x1a!\n\tCertChain\x12\x14\n\x0c\x63\x65rtificates\x18\x01 \x03(\t:\xb6\x01\xea\x41\xb2\x01\n/memorystore.googleapis.com/CertificateAuthority\x12Qprojects/{project}/locations/{location}/instances/{instance}/certificateAuthority*\x16\x63\x65rtificateAuthorities2\x14\x63\x65rtificateAuthorityB\x0b\n\tserver_ca\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_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\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03*W\n\x13PscConnectionStatus\x12%\n!PSC_CONNECTION_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\r\n\tNOT_FOUND\x10\x02*\x89\x01\n\x0e\x43onnectionType\x12\x1f\n\x1b\x43ONNECTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x43ONNECTION_TYPE_DISCOVERY\x10\x01\x12\x1b\n\x17\x43ONNECTION_TYPE_PRIMARY\x10\x02\x12\x1a\n\x16\x43ONNECTION_TYPE_READER\x10\x03\x32\xf6\n\n\x0bMemorystore\x12\xc2\x01\n\rListInstances\x12\x35.google.cloud.memorystore.v1beta.ListInstancesRequest\x1a\x36.google.cloud.memorystore.v1beta.ListInstancesResponse\"B\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta/{parent=projects/*/locations/*}/instances\x12\xaf\x01\n\x0bGetInstance\x12\x33.google.cloud.memorystore.v1beta.GetInstanceRequest\x1a).google.cloud.memorystore.v1beta.Instance\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta/{name=projects/*/locations/*/instances/*}\x12\xeb\x01\n\x0e\x43reateInstance\x12\x36.google.cloud.memorystore.v1beta.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x81\x01\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\xda\x41\x1bparent,instance,instance_id\x82\xd3\xe4\x93\x02=\"1/v1beta/{parent=projects/*/locations/*}/instances:\x08instance\x12\xed\x01\n\x0eUpdateInstance\x12\x36.google.cloud.memorystore.v1beta.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\xca\x41\x1d\n\x08Instance\x12\x11OperationMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x46\x32:/v1beta/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\xd6\x01\n\x0e\x44\x65leteInstance\x12\x36.google.cloud.memorystore.v1beta.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"m\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33*1/v1beta/{name=projects/*/locations/*/instances/*}\x12\xe8\x01\n\x17GetCertificateAuthority\x12?.google.cloud.memorystore.v1beta.GetCertificateAuthorityRequest\x1a\x35.google.cloud.memorystore.v1beta.CertificateAuthority\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1beta/{name=projects/*/locations/*/instances/*}/certificateAuthority\x1aN\xca\x41\x1amemorystore.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa0\x04\n#com.google.cloud.memorystore.v1betaB\x0bV1mainProtoP\x01ZEcloud.google.com/go/memorystore/apiv1beta/memorystorepb;memorystorepb\xaa\x02\x1fGoogle.Cloud.Memorystore.V1Beta\xca\x02\x1fGoogle\\Cloud\\Memorystore\\V1beta\xea\x02\"Google::Cloud::Memorystore::V1beta\xea\x41n\n%compute.googleapis.com/ForwardingRule\x12\x45projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}\xea\x41w\n(compute.googleapis.com/ServiceAttachment\x12Kprojects/{project}/regions/{region}/serviceAttachments/{service_attachment}b\x06proto3"
|
19
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
34
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
44
|
+
end
|
45
|
+
|
46
|
+
module Google
|
47
|
+
module Cloud
|
48
|
+
module Memorystore
|
49
|
+
module V1beta
|
50
|
+
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance").msgclass
|
51
|
+
Instance::StateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance.StateInfo").msgclass
|
52
|
+
Instance::StateInfo::UpdateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance.StateInfo.UpdateInfo").msgclass
|
53
|
+
Instance::InstanceEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance.InstanceEndpoint").msgclass
|
54
|
+
Instance::ConnectionDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance.ConnectionDetail").msgclass
|
55
|
+
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance.State").enummodule
|
56
|
+
Instance::AuthorizationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance.AuthorizationMode").enummodule
|
57
|
+
Instance::TransitEncryptionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance.TransitEncryptionMode").enummodule
|
58
|
+
Instance::NodeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance.NodeType").enummodule
|
59
|
+
Instance::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.Instance.Mode").enummodule
|
60
|
+
PscAutoConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.PscAutoConnection").msgclass
|
61
|
+
PscConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.PscConnection").msgclass
|
62
|
+
DiscoveryEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.DiscoveryEndpoint").msgclass
|
63
|
+
PersistenceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.PersistenceConfig").msgclass
|
64
|
+
PersistenceConfig::RDBConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.PersistenceConfig.RDBConfig").msgclass
|
65
|
+
PersistenceConfig::RDBConfig::SnapshotPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.PersistenceConfig.RDBConfig.SnapshotPeriod").enummodule
|
66
|
+
PersistenceConfig::AOFConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.PersistenceConfig.AOFConfig").msgclass
|
67
|
+
PersistenceConfig::AOFConfig::AppendFsync = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.PersistenceConfig.AOFConfig.AppendFsync").enummodule
|
68
|
+
PersistenceConfig::PersistenceMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.PersistenceConfig.PersistenceMode").enummodule
|
69
|
+
NodeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.NodeConfig").msgclass
|
70
|
+
ZoneDistributionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.ZoneDistributionConfig").msgclass
|
71
|
+
ZoneDistributionConfig::ZoneDistributionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.ZoneDistributionConfig.ZoneDistributionMode").enummodule
|
72
|
+
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.ListInstancesRequest").msgclass
|
73
|
+
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.ListInstancesResponse").msgclass
|
74
|
+
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.GetInstanceRequest").msgclass
|
75
|
+
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.CreateInstanceRequest").msgclass
|
76
|
+
UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.UpdateInstanceRequest").msgclass
|
77
|
+
DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.DeleteInstanceRequest").msgclass
|
78
|
+
GetCertificateAuthorityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.GetCertificateAuthorityRequest").msgclass
|
79
|
+
CertificateAuthority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.CertificateAuthority").msgclass
|
80
|
+
CertificateAuthority::ManagedCertificateAuthority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.CertificateAuthority.ManagedCertificateAuthority").msgclass
|
81
|
+
CertificateAuthority::ManagedCertificateAuthority::CertChain = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.CertificateAuthority.ManagedCertificateAuthority.CertChain").msgclass
|
82
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.OperationMetadata").msgclass
|
83
|
+
PscConnectionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.PscConnectionStatus").enummodule
|
84
|
+
ConnectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memorystore.v1beta.ConnectionType").enummodule
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|