google-cloud-parallelstore-v1beta 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/parallelstore/v1beta/bindings_override.rb +102 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore/client.rb +1194 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore/credentials.rb +47 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore/operations.rb +809 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore/paths.rb +122 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore/rest/client.rb +1126 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore/rest/operations.rb +902 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore/rest/service_stub.rb +486 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore/rest.rb +68 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore.rb +70 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore_pb.rb +75 -0
- data/lib/google/cloud/parallelstore/v1beta/parallelstore_services_pb.rb +71 -0
- data/lib/google/cloud/parallelstore/v1beta/rest.rb +38 -0
- data/lib/google/cloud/parallelstore/v1beta/version.rb +7 -2
- data/lib/google/cloud/parallelstore/v1beta.rb +45 -0
- data/lib/google-cloud-parallelstore-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +65 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/parallelstore/v1beta/parallelstore.rb +566 -0
- data/proto_docs/google/longrunning/operations.rb +164 -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 +95 -11
@@ -0,0 +1,486 @@
|
|
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/parallelstore/v1beta/parallelstore_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Parallelstore
|
24
|
+
module V1beta
|
25
|
+
module Parallelstore
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the Parallelstore 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::Parallelstore::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::Parallelstore::V1beta::ListInstancesResponse]
|
74
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
75
|
+
#
|
76
|
+
# @return [::Google::Cloud::Parallelstore::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::Parallelstore::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::Parallelstore::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::Parallelstore::V1beta::Instance]
|
112
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
113
|
+
#
|
114
|
+
# @return [::Google::Cloud::Parallelstore::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::Parallelstore::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::Parallelstore::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::Parallelstore::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::Parallelstore::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 import_data REST call
|
256
|
+
#
|
257
|
+
# @param request_pb [::Google::Cloud::Parallelstore::V1beta::ImportDataRequest]
|
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::Longrunning::Operation]
|
264
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
265
|
+
#
|
266
|
+
# @return [::Google::Longrunning::Operation]
|
267
|
+
# A result object deserialized from the server's reply
|
268
|
+
def import_data 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_import_data_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::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
287
|
+
|
288
|
+
yield result, operation if block_given?
|
289
|
+
result
|
290
|
+
end
|
291
|
+
|
292
|
+
##
|
293
|
+
# Baseline implementation for the export_data REST call
|
294
|
+
#
|
295
|
+
# @param request_pb [::Google::Cloud::Parallelstore::V1beta::ExportDataRequest]
|
296
|
+
# A request object representing the call parameters. Required.
|
297
|
+
# @param options [::Gapic::CallOptions]
|
298
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
299
|
+
#
|
300
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
301
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
302
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
303
|
+
#
|
304
|
+
# @return [::Google::Longrunning::Operation]
|
305
|
+
# A result object deserialized from the server's reply
|
306
|
+
def export_data request_pb, options = nil
|
307
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
308
|
+
|
309
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_data_request request_pb
|
310
|
+
query_string_params = if query_string_params.any?
|
311
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
312
|
+
else
|
313
|
+
{}
|
314
|
+
end
|
315
|
+
|
316
|
+
response = @client_stub.make_http_request(
|
317
|
+
verb,
|
318
|
+
uri: uri,
|
319
|
+
body: body || "",
|
320
|
+
params: query_string_params,
|
321
|
+
options: options
|
322
|
+
)
|
323
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
324
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
325
|
+
|
326
|
+
yield result, operation if block_given?
|
327
|
+
result
|
328
|
+
end
|
329
|
+
|
330
|
+
##
|
331
|
+
# @private
|
332
|
+
#
|
333
|
+
# GRPC transcoding helper method for the list_instances REST call
|
334
|
+
#
|
335
|
+
# @param request_pb [::Google::Cloud::Parallelstore::V1beta::ListInstancesRequest]
|
336
|
+
# A request object representing the call parameters. Required.
|
337
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
338
|
+
# Uri, Body, Query string parameters
|
339
|
+
def self.transcode_list_instances_request request_pb
|
340
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
341
|
+
.with_bindings(
|
342
|
+
uri_method: :get,
|
343
|
+
uri_template: "/v1beta/{parent}/instances",
|
344
|
+
matches: [
|
345
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
346
|
+
]
|
347
|
+
)
|
348
|
+
transcoder.transcode request_pb
|
349
|
+
end
|
350
|
+
|
351
|
+
##
|
352
|
+
# @private
|
353
|
+
#
|
354
|
+
# GRPC transcoding helper method for the get_instance REST call
|
355
|
+
#
|
356
|
+
# @param request_pb [::Google::Cloud::Parallelstore::V1beta::GetInstanceRequest]
|
357
|
+
# A request object representing the call parameters. Required.
|
358
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
359
|
+
# Uri, Body, Query string parameters
|
360
|
+
def self.transcode_get_instance_request request_pb
|
361
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
362
|
+
.with_bindings(
|
363
|
+
uri_method: :get,
|
364
|
+
uri_template: "/v1beta/{name}",
|
365
|
+
matches: [
|
366
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
367
|
+
]
|
368
|
+
)
|
369
|
+
transcoder.transcode request_pb
|
370
|
+
end
|
371
|
+
|
372
|
+
##
|
373
|
+
# @private
|
374
|
+
#
|
375
|
+
# GRPC transcoding helper method for the create_instance REST call
|
376
|
+
#
|
377
|
+
# @param request_pb [::Google::Cloud::Parallelstore::V1beta::CreateInstanceRequest]
|
378
|
+
# A request object representing the call parameters. Required.
|
379
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
380
|
+
# Uri, Body, Query string parameters
|
381
|
+
def self.transcode_create_instance_request request_pb
|
382
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
383
|
+
.with_bindings(
|
384
|
+
uri_method: :post,
|
385
|
+
uri_template: "/v1beta/{parent}/instances",
|
386
|
+
body: "instance",
|
387
|
+
matches: [
|
388
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
389
|
+
]
|
390
|
+
)
|
391
|
+
transcoder.transcode request_pb
|
392
|
+
end
|
393
|
+
|
394
|
+
##
|
395
|
+
# @private
|
396
|
+
#
|
397
|
+
# GRPC transcoding helper method for the update_instance REST call
|
398
|
+
#
|
399
|
+
# @param request_pb [::Google::Cloud::Parallelstore::V1beta::UpdateInstanceRequest]
|
400
|
+
# A request object representing the call parameters. Required.
|
401
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
402
|
+
# Uri, Body, Query string parameters
|
403
|
+
def self.transcode_update_instance_request request_pb
|
404
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
405
|
+
.with_bindings(
|
406
|
+
uri_method: :patch,
|
407
|
+
uri_template: "/v1beta/{instance.name}",
|
408
|
+
body: "instance",
|
409
|
+
matches: [
|
410
|
+
["instance.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
411
|
+
]
|
412
|
+
)
|
413
|
+
transcoder.transcode request_pb
|
414
|
+
end
|
415
|
+
|
416
|
+
##
|
417
|
+
# @private
|
418
|
+
#
|
419
|
+
# GRPC transcoding helper method for the delete_instance REST call
|
420
|
+
#
|
421
|
+
# @param request_pb [::Google::Cloud::Parallelstore::V1beta::DeleteInstanceRequest]
|
422
|
+
# A request object representing the call parameters. Required.
|
423
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
424
|
+
# Uri, Body, Query string parameters
|
425
|
+
def self.transcode_delete_instance_request request_pb
|
426
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
427
|
+
.with_bindings(
|
428
|
+
uri_method: :delete,
|
429
|
+
uri_template: "/v1beta/{name}",
|
430
|
+
matches: [
|
431
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
432
|
+
]
|
433
|
+
)
|
434
|
+
transcoder.transcode request_pb
|
435
|
+
end
|
436
|
+
|
437
|
+
##
|
438
|
+
# @private
|
439
|
+
#
|
440
|
+
# GRPC transcoding helper method for the import_data REST call
|
441
|
+
#
|
442
|
+
# @param request_pb [::Google::Cloud::Parallelstore::V1beta::ImportDataRequest]
|
443
|
+
# A request object representing the call parameters. Required.
|
444
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
445
|
+
# Uri, Body, Query string parameters
|
446
|
+
def self.transcode_import_data_request request_pb
|
447
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
448
|
+
.with_bindings(
|
449
|
+
uri_method: :post,
|
450
|
+
uri_template: "/v1beta/{name}:importData",
|
451
|
+
body: "*",
|
452
|
+
matches: [
|
453
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
454
|
+
]
|
455
|
+
)
|
456
|
+
transcoder.transcode request_pb
|
457
|
+
end
|
458
|
+
|
459
|
+
##
|
460
|
+
# @private
|
461
|
+
#
|
462
|
+
# GRPC transcoding helper method for the export_data REST call
|
463
|
+
#
|
464
|
+
# @param request_pb [::Google::Cloud::Parallelstore::V1beta::ExportDataRequest]
|
465
|
+
# A request object representing the call parameters. Required.
|
466
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
467
|
+
# Uri, Body, Query string parameters
|
468
|
+
def self.transcode_export_data_request request_pb
|
469
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
470
|
+
.with_bindings(
|
471
|
+
uri_method: :post,
|
472
|
+
uri_template: "/v1beta/{name}:exportData",
|
473
|
+
body: "*",
|
474
|
+
matches: [
|
475
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
476
|
+
]
|
477
|
+
)
|
478
|
+
transcoder.transcode request_pb
|
479
|
+
end
|
480
|
+
end
|
481
|
+
end
|
482
|
+
end
|
483
|
+
end
|
484
|
+
end
|
485
|
+
end
|
486
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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/parallelstore/v1beta/version"
|
24
|
+
require "google/cloud/parallelstore/v1beta/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/credentials"
|
27
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/paths"
|
28
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/rest/operations"
|
29
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Parallelstore
|
34
|
+
module V1beta
|
35
|
+
##
|
36
|
+
# Service describing handlers for resources
|
37
|
+
# Configures and manages parallelstore resources.
|
38
|
+
#
|
39
|
+
# Parallelstore service.
|
40
|
+
#
|
41
|
+
# The `parallelstore.googleapis.com` service implements the parallelstore API
|
42
|
+
# and defines the following resource model for managing instances:
|
43
|
+
# * The service works with a collection of cloud projects, named: `/projects/*`
|
44
|
+
# * Each project has a collection of available locations, named: `/locations/*`
|
45
|
+
# * Each location has a collection of instances named `/instances/*`.
|
46
|
+
# * Parallelstore instances are resources of the form:
|
47
|
+
# `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
48
|
+
#
|
49
|
+
# Note that location_id must be a Google Cloud `zone`; for example:
|
50
|
+
# * `projects/12345/locations/us-central1-c/instances/my-parallelstore-share`
|
51
|
+
#
|
52
|
+
# To load this service and instantiate a REST client:
|
53
|
+
#
|
54
|
+
# require "google/cloud/parallelstore/v1beta/parallelstore/rest"
|
55
|
+
# client = ::Google::Cloud::Parallelstore::V1beta::Parallelstore::Rest::Client.new
|
56
|
+
#
|
57
|
+
module Parallelstore
|
58
|
+
# Client for the REST transport
|
59
|
+
module Rest
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
68
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,70 @@
|
|
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/parallelstore/v1beta/version"
|
24
|
+
|
25
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/credentials"
|
26
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/paths"
|
27
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/operations"
|
28
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/client"
|
29
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/rest"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Parallelstore
|
34
|
+
module V1beta
|
35
|
+
##
|
36
|
+
# Service describing handlers for resources
|
37
|
+
# Configures and manages parallelstore resources.
|
38
|
+
#
|
39
|
+
# Parallelstore service.
|
40
|
+
#
|
41
|
+
# The `parallelstore.googleapis.com` service implements the parallelstore API
|
42
|
+
# and defines the following resource model for managing instances:
|
43
|
+
# * The service works with a collection of cloud projects, named: `/projects/*`
|
44
|
+
# * Each project has a collection of available locations, named: `/locations/*`
|
45
|
+
# * Each location has a collection of instances named `/instances/*`.
|
46
|
+
# * Parallelstore instances are resources of the form:
|
47
|
+
# `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
48
|
+
#
|
49
|
+
# Note that location_id must be a Google Cloud `zone`; for example:
|
50
|
+
# * `projects/12345/locations/us-central1-c/instances/my-parallelstore-share`
|
51
|
+
#
|
52
|
+
# @example Load this service and instantiate a gRPC client
|
53
|
+
#
|
54
|
+
# require "google/cloud/parallelstore/v1beta/parallelstore"
|
55
|
+
# client = ::Google::Cloud::Parallelstore::V1beta::Parallelstore::Client.new
|
56
|
+
#
|
57
|
+
# @example Load this service and instantiate a REST client
|
58
|
+
#
|
59
|
+
# require "google/cloud/parallelstore/v1beta/parallelstore/rest"
|
60
|
+
# client = ::Google::Cloud::Parallelstore::V1beta::Parallelstore::Rest::Client.new
|
61
|
+
#
|
62
|
+
module Parallelstore
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
helper_path = ::File.join __dir__, "parallelstore", "helpers.rb"
|
70
|
+
require "google/cloud/parallelstore/v1beta/parallelstore/helpers" if ::File.file? helper_path
|