google-cloud-memorystore-v1beta 0.14.1 → 0.16.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/README.md +3 -4
- data/lib/google/cloud/memorystore/v1beta/bindings_override.rb +1 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore/client.rb +943 -166
- data/lib/google/cloud/memorystore/v1beta/memorystore/credentials.rb +1 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore/paths.rb +41 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/client.rb +732 -4
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/operations.rb +1 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/service_stub.rb +430 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest.rb +1 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore.rb +1 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore_pb.rb +18 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore_services_pb.rb +36 -1
- data/lib/google/cloud/memorystore/v1beta/rest.rb +1 -1
- data/lib/google/cloud/memorystore/v1beta/version.rb +1 -1
- data/lib/google/cloud/memorystore/v1beta.rb +1 -1
- data/lib/google-cloud-memorystore-v1beta.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/cloud/memorystore/v1beta/memorystore.rb +333 -1
- data/proto_docs/google/longrunning/operations.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- data/proto_docs/google/rpc/status.rb +1 -1
- metadata +10 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -73,6 +73,46 @@ module Google
|
|
|
73
73
|
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the list_acl_policies REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::ListAclPoliciesRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Cloud::Memorystore::V1beta::ListAclPoliciesResponse]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::Memorystore::V1beta::ListAclPoliciesResponse]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def list_acl_policies request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_acl_policies_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "list_acl_policies",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::Memorystore::V1beta::ListAclPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
76
116
|
##
|
|
77
117
|
# Baseline implementation for the list_instances REST call
|
|
78
118
|
#
|
|
@@ -113,6 +153,46 @@ module Google
|
|
|
113
153
|
end
|
|
114
154
|
end
|
|
115
155
|
|
|
156
|
+
##
|
|
157
|
+
# Baseline implementation for the get_acl_policy REST call
|
|
158
|
+
#
|
|
159
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::GetAclPolicyRequest]
|
|
160
|
+
# A request object representing the call parameters. Required.
|
|
161
|
+
# @param options [::Gapic::CallOptions]
|
|
162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
163
|
+
#
|
|
164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
165
|
+
# @yieldparam result [::Google::Cloud::Memorystore::V1beta::AclPolicy]
|
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
167
|
+
#
|
|
168
|
+
# @return [::Google::Cloud::Memorystore::V1beta::AclPolicy]
|
|
169
|
+
# A result object deserialized from the server's reply
|
|
170
|
+
def get_acl_policy request_pb, options = nil
|
|
171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
172
|
+
|
|
173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_acl_policy_request request_pb
|
|
174
|
+
query_string_params = if query_string_params.any?
|
|
175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
176
|
+
else
|
|
177
|
+
{}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
response = @client_stub.make_http_request(
|
|
181
|
+
verb,
|
|
182
|
+
uri: uri,
|
|
183
|
+
body: body || "",
|
|
184
|
+
params: query_string_params,
|
|
185
|
+
method_name: "get_acl_policy",
|
|
186
|
+
options: options
|
|
187
|
+
)
|
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
189
|
+
result = ::Google::Cloud::Memorystore::V1beta::AclPolicy.decode_json response.body, ignore_unknown_fields: true
|
|
190
|
+
catch :response do
|
|
191
|
+
yield result, operation if block_given?
|
|
192
|
+
result
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
116
196
|
##
|
|
117
197
|
# Baseline implementation for the get_instance REST call
|
|
118
198
|
#
|
|
@@ -153,6 +233,46 @@ module Google
|
|
|
153
233
|
end
|
|
154
234
|
end
|
|
155
235
|
|
|
236
|
+
##
|
|
237
|
+
# Baseline implementation for the create_acl_policy REST call
|
|
238
|
+
#
|
|
239
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::CreateAclPolicyRequest]
|
|
240
|
+
# A request object representing the call parameters. Required.
|
|
241
|
+
# @param options [::Gapic::CallOptions]
|
|
242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
243
|
+
#
|
|
244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
245
|
+
# @yieldparam result [::Google::Cloud::Memorystore::V1beta::AclPolicy]
|
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
247
|
+
#
|
|
248
|
+
# @return [::Google::Cloud::Memorystore::V1beta::AclPolicy]
|
|
249
|
+
# A result object deserialized from the server's reply
|
|
250
|
+
def create_acl_policy request_pb, options = nil
|
|
251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
252
|
+
|
|
253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_acl_policy_request request_pb
|
|
254
|
+
query_string_params = if query_string_params.any?
|
|
255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
256
|
+
else
|
|
257
|
+
{}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
response = @client_stub.make_http_request(
|
|
261
|
+
verb,
|
|
262
|
+
uri: uri,
|
|
263
|
+
body: body || "",
|
|
264
|
+
params: query_string_params,
|
|
265
|
+
method_name: "create_acl_policy",
|
|
266
|
+
options: options
|
|
267
|
+
)
|
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
269
|
+
result = ::Google::Cloud::Memorystore::V1beta::AclPolicy.decode_json response.body, ignore_unknown_fields: true
|
|
270
|
+
catch :response do
|
|
271
|
+
yield result, operation if block_given?
|
|
272
|
+
result
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
156
276
|
##
|
|
157
277
|
# Baseline implementation for the create_instance REST call
|
|
158
278
|
#
|
|
@@ -193,6 +313,46 @@ module Google
|
|
|
193
313
|
end
|
|
194
314
|
end
|
|
195
315
|
|
|
316
|
+
##
|
|
317
|
+
# Baseline implementation for the update_acl_policy REST call
|
|
318
|
+
#
|
|
319
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::UpdateAclPolicyRequest]
|
|
320
|
+
# A request object representing the call parameters. Required.
|
|
321
|
+
# @param options [::Gapic::CallOptions]
|
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
323
|
+
#
|
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
325
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
327
|
+
#
|
|
328
|
+
# @return [::Google::Longrunning::Operation]
|
|
329
|
+
# A result object deserialized from the server's reply
|
|
330
|
+
def update_acl_policy request_pb, options = nil
|
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
332
|
+
|
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_acl_policy_request request_pb
|
|
334
|
+
query_string_params = if query_string_params.any?
|
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
336
|
+
else
|
|
337
|
+
{}
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
response = @client_stub.make_http_request(
|
|
341
|
+
verb,
|
|
342
|
+
uri: uri,
|
|
343
|
+
body: body || "",
|
|
344
|
+
params: query_string_params,
|
|
345
|
+
method_name: "update_acl_policy",
|
|
346
|
+
options: options
|
|
347
|
+
)
|
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
349
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
350
|
+
catch :response do
|
|
351
|
+
yield result, operation if block_given?
|
|
352
|
+
result
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
196
356
|
##
|
|
197
357
|
# Baseline implementation for the update_instance REST call
|
|
198
358
|
#
|
|
@@ -233,6 +393,126 @@ module Google
|
|
|
233
393
|
end
|
|
234
394
|
end
|
|
235
395
|
|
|
396
|
+
##
|
|
397
|
+
# Baseline implementation for the delete_acl_policy REST call
|
|
398
|
+
#
|
|
399
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteAclPolicyRequest]
|
|
400
|
+
# A request object representing the call parameters. Required.
|
|
401
|
+
# @param options [::Gapic::CallOptions]
|
|
402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
403
|
+
#
|
|
404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
405
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
407
|
+
#
|
|
408
|
+
# @return [::Google::Longrunning::Operation]
|
|
409
|
+
# A result object deserialized from the server's reply
|
|
410
|
+
def delete_acl_policy request_pb, options = nil
|
|
411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
412
|
+
|
|
413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_acl_policy_request request_pb
|
|
414
|
+
query_string_params = if query_string_params.any?
|
|
415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
416
|
+
else
|
|
417
|
+
{}
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
response = @client_stub.make_http_request(
|
|
421
|
+
verb,
|
|
422
|
+
uri: uri,
|
|
423
|
+
body: body || "",
|
|
424
|
+
params: query_string_params,
|
|
425
|
+
method_name: "delete_acl_policy",
|
|
426
|
+
options: options
|
|
427
|
+
)
|
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
429
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
430
|
+
catch :response do
|
|
431
|
+
yield result, operation if block_given?
|
|
432
|
+
result
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
##
|
|
437
|
+
# Baseline implementation for the get_acl_policy_revision REST call
|
|
438
|
+
#
|
|
439
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::GetAclPolicyRevisionRequest]
|
|
440
|
+
# A request object representing the call parameters. Required.
|
|
441
|
+
# @param options [::Gapic::CallOptions]
|
|
442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
443
|
+
#
|
|
444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
445
|
+
# @yieldparam result [::Google::Cloud::Memorystore::V1beta::AclPolicyRevision]
|
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
447
|
+
#
|
|
448
|
+
# @return [::Google::Cloud::Memorystore::V1beta::AclPolicyRevision]
|
|
449
|
+
# A result object deserialized from the server's reply
|
|
450
|
+
def get_acl_policy_revision request_pb, options = nil
|
|
451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
452
|
+
|
|
453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_acl_policy_revision_request request_pb
|
|
454
|
+
query_string_params = if query_string_params.any?
|
|
455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
456
|
+
else
|
|
457
|
+
{}
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
response = @client_stub.make_http_request(
|
|
461
|
+
verb,
|
|
462
|
+
uri: uri,
|
|
463
|
+
body: body || "",
|
|
464
|
+
params: query_string_params,
|
|
465
|
+
method_name: "get_acl_policy_revision",
|
|
466
|
+
options: options
|
|
467
|
+
)
|
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
469
|
+
result = ::Google::Cloud::Memorystore::V1beta::AclPolicyRevision.decode_json response.body, ignore_unknown_fields: true
|
|
470
|
+
catch :response do
|
|
471
|
+
yield result, operation if block_given?
|
|
472
|
+
result
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
##
|
|
477
|
+
# Baseline implementation for the list_acl_policy_revisions REST call
|
|
478
|
+
#
|
|
479
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::ListAclPolicyRevisionsRequest]
|
|
480
|
+
# A request object representing the call parameters. Required.
|
|
481
|
+
# @param options [::Gapic::CallOptions]
|
|
482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
483
|
+
#
|
|
484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
485
|
+
# @yieldparam result [::Google::Cloud::Memorystore::V1beta::ListAclPolicyRevisionsResponse]
|
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
487
|
+
#
|
|
488
|
+
# @return [::Google::Cloud::Memorystore::V1beta::ListAclPolicyRevisionsResponse]
|
|
489
|
+
# A result object deserialized from the server's reply
|
|
490
|
+
def list_acl_policy_revisions request_pb, options = nil
|
|
491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
492
|
+
|
|
493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_acl_policy_revisions_request request_pb
|
|
494
|
+
query_string_params = if query_string_params.any?
|
|
495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
496
|
+
else
|
|
497
|
+
{}
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
response = @client_stub.make_http_request(
|
|
501
|
+
verb,
|
|
502
|
+
uri: uri,
|
|
503
|
+
body: body || "",
|
|
504
|
+
params: query_string_params,
|
|
505
|
+
method_name: "list_acl_policy_revisions",
|
|
506
|
+
options: options
|
|
507
|
+
)
|
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
509
|
+
result = ::Google::Cloud::Memorystore::V1beta::ListAclPolicyRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
510
|
+
catch :response do
|
|
511
|
+
yield result, operation if block_given?
|
|
512
|
+
result
|
|
513
|
+
end
|
|
514
|
+
end
|
|
515
|
+
|
|
236
516
|
##
|
|
237
517
|
# Baseline implementation for the delete_instance REST call
|
|
238
518
|
#
|
|
@@ -1073,6 +1353,27 @@ module Google
|
|
|
1073
1353
|
end
|
|
1074
1354
|
end
|
|
1075
1355
|
|
|
1356
|
+
##
|
|
1357
|
+
# @private
|
|
1358
|
+
#
|
|
1359
|
+
# GRPC transcoding helper method for the list_acl_policies REST call
|
|
1360
|
+
#
|
|
1361
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::ListAclPoliciesRequest]
|
|
1362
|
+
# A request object representing the call parameters. Required.
|
|
1363
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1364
|
+
# Uri, Body, Query string parameters
|
|
1365
|
+
def self.transcode_list_acl_policies_request request_pb
|
|
1366
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1367
|
+
.with_bindings(
|
|
1368
|
+
uri_method: :get,
|
|
1369
|
+
uri_template: "/v1beta/{parent}/aclPolicies",
|
|
1370
|
+
matches: [
|
|
1371
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1372
|
+
]
|
|
1373
|
+
)
|
|
1374
|
+
transcoder.transcode request_pb
|
|
1375
|
+
end
|
|
1376
|
+
|
|
1076
1377
|
##
|
|
1077
1378
|
# @private
|
|
1078
1379
|
#
|
|
@@ -1094,6 +1395,27 @@ module Google
|
|
|
1094
1395
|
transcoder.transcode request_pb
|
|
1095
1396
|
end
|
|
1096
1397
|
|
|
1398
|
+
##
|
|
1399
|
+
# @private
|
|
1400
|
+
#
|
|
1401
|
+
# GRPC transcoding helper method for the get_acl_policy REST call
|
|
1402
|
+
#
|
|
1403
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::GetAclPolicyRequest]
|
|
1404
|
+
# A request object representing the call parameters. Required.
|
|
1405
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1406
|
+
# Uri, Body, Query string parameters
|
|
1407
|
+
def self.transcode_get_acl_policy_request request_pb
|
|
1408
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1409
|
+
.with_bindings(
|
|
1410
|
+
uri_method: :get,
|
|
1411
|
+
uri_template: "/v1beta/{name}",
|
|
1412
|
+
matches: [
|
|
1413
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+/?$}, false]
|
|
1414
|
+
]
|
|
1415
|
+
)
|
|
1416
|
+
transcoder.transcode request_pb
|
|
1417
|
+
end
|
|
1418
|
+
|
|
1097
1419
|
##
|
|
1098
1420
|
# @private
|
|
1099
1421
|
#
|
|
@@ -1115,6 +1437,28 @@ module Google
|
|
|
1115
1437
|
transcoder.transcode request_pb
|
|
1116
1438
|
end
|
|
1117
1439
|
|
|
1440
|
+
##
|
|
1441
|
+
# @private
|
|
1442
|
+
#
|
|
1443
|
+
# GRPC transcoding helper method for the create_acl_policy REST call
|
|
1444
|
+
#
|
|
1445
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::CreateAclPolicyRequest]
|
|
1446
|
+
# A request object representing the call parameters. Required.
|
|
1447
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1448
|
+
# Uri, Body, Query string parameters
|
|
1449
|
+
def self.transcode_create_acl_policy_request request_pb
|
|
1450
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1451
|
+
.with_bindings(
|
|
1452
|
+
uri_method: :post,
|
|
1453
|
+
uri_template: "/v1beta/{parent}/aclPolicies",
|
|
1454
|
+
body: "acl_policy",
|
|
1455
|
+
matches: [
|
|
1456
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
1457
|
+
]
|
|
1458
|
+
)
|
|
1459
|
+
transcoder.transcode request_pb
|
|
1460
|
+
end
|
|
1461
|
+
|
|
1118
1462
|
##
|
|
1119
1463
|
# @private
|
|
1120
1464
|
#
|
|
@@ -1137,6 +1481,28 @@ module Google
|
|
|
1137
1481
|
transcoder.transcode request_pb
|
|
1138
1482
|
end
|
|
1139
1483
|
|
|
1484
|
+
##
|
|
1485
|
+
# @private
|
|
1486
|
+
#
|
|
1487
|
+
# GRPC transcoding helper method for the update_acl_policy REST call
|
|
1488
|
+
#
|
|
1489
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::UpdateAclPolicyRequest]
|
|
1490
|
+
# A request object representing the call parameters. Required.
|
|
1491
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1492
|
+
# Uri, Body, Query string parameters
|
|
1493
|
+
def self.transcode_update_acl_policy_request request_pb
|
|
1494
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1495
|
+
.with_bindings(
|
|
1496
|
+
uri_method: :patch,
|
|
1497
|
+
uri_template: "/v1beta/{acl_policy.name}",
|
|
1498
|
+
body: "acl_policy",
|
|
1499
|
+
matches: [
|
|
1500
|
+
["acl_policy.name", %r{^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+/?$}, false]
|
|
1501
|
+
]
|
|
1502
|
+
)
|
|
1503
|
+
transcoder.transcode request_pb
|
|
1504
|
+
end
|
|
1505
|
+
|
|
1140
1506
|
##
|
|
1141
1507
|
# @private
|
|
1142
1508
|
#
|
|
@@ -1159,6 +1525,69 @@ module Google
|
|
|
1159
1525
|
transcoder.transcode request_pb
|
|
1160
1526
|
end
|
|
1161
1527
|
|
|
1528
|
+
##
|
|
1529
|
+
# @private
|
|
1530
|
+
#
|
|
1531
|
+
# GRPC transcoding helper method for the delete_acl_policy REST call
|
|
1532
|
+
#
|
|
1533
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteAclPolicyRequest]
|
|
1534
|
+
# A request object representing the call parameters. Required.
|
|
1535
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1536
|
+
# Uri, Body, Query string parameters
|
|
1537
|
+
def self.transcode_delete_acl_policy_request request_pb
|
|
1538
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1539
|
+
.with_bindings(
|
|
1540
|
+
uri_method: :delete,
|
|
1541
|
+
uri_template: "/v1beta/{name}",
|
|
1542
|
+
matches: [
|
|
1543
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+/?$}, false]
|
|
1544
|
+
]
|
|
1545
|
+
)
|
|
1546
|
+
transcoder.transcode request_pb
|
|
1547
|
+
end
|
|
1548
|
+
|
|
1549
|
+
##
|
|
1550
|
+
# @private
|
|
1551
|
+
#
|
|
1552
|
+
# GRPC transcoding helper method for the get_acl_policy_revision REST call
|
|
1553
|
+
#
|
|
1554
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::GetAclPolicyRevisionRequest]
|
|
1555
|
+
# A request object representing the call parameters. Required.
|
|
1556
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1557
|
+
# Uri, Body, Query string parameters
|
|
1558
|
+
def self.transcode_get_acl_policy_revision_request request_pb
|
|
1559
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1560
|
+
.with_bindings(
|
|
1561
|
+
uri_method: :get,
|
|
1562
|
+
uri_template: "/v1beta/{name}",
|
|
1563
|
+
matches: [
|
|
1564
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+/revisions/[^/]+/?$}, false]
|
|
1565
|
+
]
|
|
1566
|
+
)
|
|
1567
|
+
transcoder.transcode request_pb
|
|
1568
|
+
end
|
|
1569
|
+
|
|
1570
|
+
##
|
|
1571
|
+
# @private
|
|
1572
|
+
#
|
|
1573
|
+
# GRPC transcoding helper method for the list_acl_policy_revisions REST call
|
|
1574
|
+
#
|
|
1575
|
+
# @param request_pb [::Google::Cloud::Memorystore::V1beta::ListAclPolicyRevisionsRequest]
|
|
1576
|
+
# A request object representing the call parameters. Required.
|
|
1577
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1578
|
+
# Uri, Body, Query string parameters
|
|
1579
|
+
def self.transcode_list_acl_policy_revisions_request request_pb
|
|
1580
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1581
|
+
.with_bindings(
|
|
1582
|
+
uri_method: :get,
|
|
1583
|
+
uri_template: "/v1beta/{parent}/revisions",
|
|
1584
|
+
matches: [
|
|
1585
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/aclPolicies/[^/]+/?$}, false]
|
|
1586
|
+
]
|
|
1587
|
+
)
|
|
1588
|
+
transcoder.transcode request_pb
|
|
1589
|
+
end
|
|
1590
|
+
|
|
1162
1591
|
##
|
|
1163
1592
|
# @private
|
|
1164
1593
|
#
|