google-cloud-memorystore-v1 1.9.0 → 1.11.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/lib/google/cloud/memorystore/v1/memorystore/client.rb +1076 -4
- data/lib/google/cloud/memorystore/v1/memorystore/credentials.rb +3 -1
- data/lib/google/cloud/memorystore/v1/memorystore/paths.rb +63 -0
- data/lib/google/cloud/memorystore/v1/memorystore/rest/client.rb +1006 -4
- data/lib/google/cloud/memorystore/v1/memorystore/rest/service_stub.rb +614 -0
- data/lib/google/cloud/memorystore/v1/memorystore_pb.rb +20 -1
- data/lib/google/cloud/memorystore/v1/memorystore_services_pb.rb +32 -0
- data/lib/google/cloud/memorystore/v1/version.rb +1 -1
- data/proto_docs/google/cloud/memorystore/v1/memorystore.rb +377 -22
- metadata +1 -1
|
@@ -26,7 +26,9 @@ module Google
|
|
|
26
26
|
# Credentials for the Memorystore API.
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
|
28
28
|
self.scope = [
|
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
30
|
+
"https://www.googleapis.com/auth/memorystore.read-only",
|
|
31
|
+
"https://www.googleapis.com/auth/memorystore.read-write"
|
|
30
32
|
]
|
|
31
33
|
self.env_vars = [
|
|
32
34
|
"GOOGLE_CLOUD_CREDENTIALS",
|
|
@@ -24,6 +24,29 @@ 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 AuthToken resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/instances/{instance}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param instance [String]
|
|
37
|
+
# @param token_auth_user [String]
|
|
38
|
+
# @param auth_token [String]
|
|
39
|
+
#
|
|
40
|
+
# @return [::String]
|
|
41
|
+
def auth_token_path project:, location:, instance:, token_auth_user:, auth_token:
|
|
42
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
43
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
44
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
45
|
+
raise ::ArgumentError, "token_auth_user cannot contain /" if token_auth_user.to_s.include? "/"
|
|
46
|
+
|
|
47
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/tokenAuthUsers/#{token_auth_user}/authTokens/#{auth_token}"
|
|
48
|
+
end
|
|
49
|
+
|
|
27
50
|
##
|
|
28
51
|
# Create a fully-qualified Backup resource string.
|
|
29
52
|
#
|
|
@@ -199,6 +222,25 @@ module Google
|
|
|
199
222
|
"projects/#{project}/global/networks/#{network}"
|
|
200
223
|
end
|
|
201
224
|
|
|
225
|
+
##
|
|
226
|
+
# Create a fully-qualified NetworkAttachment resource string.
|
|
227
|
+
#
|
|
228
|
+
# The resource will be in the following format:
|
|
229
|
+
#
|
|
230
|
+
# `projects/{project}/regions/{region}/networkAttachments/{network_attachment}`
|
|
231
|
+
#
|
|
232
|
+
# @param project [String]
|
|
233
|
+
# @param region [String]
|
|
234
|
+
# @param network_attachment [String]
|
|
235
|
+
#
|
|
236
|
+
# @return [::String]
|
|
237
|
+
def network_attachment_path project:, region:, network_attachment:
|
|
238
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
239
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
|
240
|
+
|
|
241
|
+
"projects/#{project}/regions/#{region}/networkAttachments/#{network_attachment}"
|
|
242
|
+
end
|
|
243
|
+
|
|
202
244
|
##
|
|
203
245
|
# Create a fully-qualified ServiceAttachment resource string.
|
|
204
246
|
#
|
|
@@ -235,6 +277,27 @@ module Google
|
|
|
235
277
|
"projects/#{project}/locations/#{location}/sharedRegionalCertificateAuthority"
|
|
236
278
|
end
|
|
237
279
|
|
|
280
|
+
##
|
|
281
|
+
# Create a fully-qualified TokenAuthUser resource string.
|
|
282
|
+
#
|
|
283
|
+
# The resource will be in the following format:
|
|
284
|
+
#
|
|
285
|
+
# `projects/{project}/locations/{location}/instances/{instance}/tokenAuthUsers/{token_auth_user}`
|
|
286
|
+
#
|
|
287
|
+
# @param project [String]
|
|
288
|
+
# @param location [String]
|
|
289
|
+
# @param instance [String]
|
|
290
|
+
# @param token_auth_user [String]
|
|
291
|
+
#
|
|
292
|
+
# @return [::String]
|
|
293
|
+
def token_auth_user_path project:, location:, instance:, token_auth_user:
|
|
294
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
295
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
296
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
297
|
+
|
|
298
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/tokenAuthUsers/#{token_auth_user}"
|
|
299
|
+
end
|
|
300
|
+
|
|
238
301
|
extend self
|
|
239
302
|
end
|
|
240
303
|
end
|