google-cloud-memorystore-v1 1.12.0 → 1.13.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 +2 -2
- data/lib/google/cloud/memorystore/v1/memorystore/client.rb +943 -166
- data/lib/google/cloud/memorystore/v1/memorystore/paths.rb +40 -0
- data/lib/google/cloud/memorystore/v1/memorystore/rest/client.rb +731 -3
- data/lib/google/cloud/memorystore/v1/memorystore/rest/service_stub.rb +429 -0
- data/lib/google/cloud/memorystore/v1/memorystore_pb.rb +18 -1
- data/lib/google/cloud/memorystore/v1/memorystore_services_pb.rb +35 -0
- data/lib/google/cloud/memorystore/v1/version.rb +1 -1
- data/proto_docs/google/cloud/memorystore/v1/memorystore.rb +341 -0
- metadata +1 -1
|
@@ -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
|
#
|