google-cloud-memorystore-v1beta 0.14.1 → 0.15.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 +8 -6
|
@@ -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.
|
|
@@ -24,6 +24,46 @@ module Google
|
|
|
24
24
|
module Memorystore
|
|
25
25
|
# Path helper methods for the Memorystore API.
|
|
26
26
|
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified AclPolicy resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param acl_policy [String]
|
|
37
|
+
#
|
|
38
|
+
# @return [::String]
|
|
39
|
+
def acl_policy_path project:, location:, acl_policy:
|
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
42
|
+
|
|
43
|
+
"projects/#{project}/locations/#{location}/aclPolicies/#{acl_policy}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Create a fully-qualified AclPolicyRevision resource string.
|
|
48
|
+
#
|
|
49
|
+
# The resource will be in the following format:
|
|
50
|
+
#
|
|
51
|
+
# `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
|
|
52
|
+
#
|
|
53
|
+
# @param project [String]
|
|
54
|
+
# @param location [String]
|
|
55
|
+
# @param acl_policy [String]
|
|
56
|
+
# @param revision [String]
|
|
57
|
+
#
|
|
58
|
+
# @return [::String]
|
|
59
|
+
def acl_policy_revision_path project:, location:, acl_policy:, revision:
|
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
62
|
+
raise ::ArgumentError, "acl_policy cannot contain /" if acl_policy.to_s.include? "/"
|
|
63
|
+
|
|
64
|
+
"projects/#{project}/locations/#{location}/aclPolicies/#{acl_policy}/revisions/#{revision}"
|
|
65
|
+
end
|
|
66
|
+
|
|
27
67
|
##
|
|
28
68
|
# Create a fully-qualified AuthToken resource string.
|
|
29
69
|
#
|