google-cloud-memorystore-v1beta 0.12.0 → 0.14.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 +1 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore/client.rb +1923 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/credentials.rb +3 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore/operations.rb +2 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/paths.rb +147 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/client.rb +1797 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/operations.rb +2 -0
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/service_stub.rb +1139 -34
- data/lib/google/cloud/memorystore/v1beta/memorystore_pb.rb +55 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore_services_pb.rb +63 -0
- data/lib/google/cloud/memorystore/v1beta/version.rb +1 -1
- data/proto_docs/google/cloud/memorystore/v1beta/memorystore.rb +1063 -23
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +49 -0
- metadata +5 -3
|
@@ -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",
|
|
@@ -703,6 +703,7 @@ module Google
|
|
|
703
703
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
704
704
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
705
705
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
706
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
706
707
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
707
708
|
# trigger a retry.
|
|
708
709
|
# @return [::Hash]
|
|
@@ -786,6 +787,7 @@ module Google
|
|
|
786
787
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
787
788
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
788
789
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
790
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
789
791
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
790
792
|
# trigger a retry.
|
|
791
793
|
#
|
|
@@ -24,6 +24,69 @@ 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
|
+
|
|
50
|
+
##
|
|
51
|
+
# Create a fully-qualified Backup resource string.
|
|
52
|
+
#
|
|
53
|
+
# The resource will be in the following format:
|
|
54
|
+
#
|
|
55
|
+
# `projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}`
|
|
56
|
+
#
|
|
57
|
+
# @param project [String]
|
|
58
|
+
# @param location [String]
|
|
59
|
+
# @param backup_collection [String]
|
|
60
|
+
# @param backup [String]
|
|
61
|
+
#
|
|
62
|
+
# @return [::String]
|
|
63
|
+
def backup_path project:, location:, backup_collection:, backup:
|
|
64
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
65
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
66
|
+
raise ::ArgumentError, "backup_collection cannot contain /" if backup_collection.to_s.include? "/"
|
|
67
|
+
|
|
68
|
+
"projects/#{project}/locations/#{location}/backupCollections/#{backup_collection}/backups/#{backup}"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
##
|
|
72
|
+
# Create a fully-qualified BackupCollection resource string.
|
|
73
|
+
#
|
|
74
|
+
# The resource will be in the following format:
|
|
75
|
+
#
|
|
76
|
+
# `projects/{project}/locations/{location}/backupCollections/{backup_collection}`
|
|
77
|
+
#
|
|
78
|
+
# @param project [String]
|
|
79
|
+
# @param location [String]
|
|
80
|
+
# @param backup_collection [String]
|
|
81
|
+
#
|
|
82
|
+
# @return [::String]
|
|
83
|
+
def backup_collection_path project:, location:, backup_collection:
|
|
84
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
85
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
86
|
+
|
|
87
|
+
"projects/#{project}/locations/#{location}/backupCollections/#{backup_collection}"
|
|
88
|
+
end
|
|
89
|
+
|
|
27
90
|
##
|
|
28
91
|
# Create a fully-qualified CaPool resource string.
|
|
29
92
|
#
|
|
@@ -43,6 +106,50 @@ module Google
|
|
|
43
106
|
"projects/#{project}/locations/#{location}/caPools/#{ca_pool}"
|
|
44
107
|
end
|
|
45
108
|
|
|
109
|
+
##
|
|
110
|
+
# Create a fully-qualified CryptoKey resource string.
|
|
111
|
+
#
|
|
112
|
+
# The resource will be in the following format:
|
|
113
|
+
#
|
|
114
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
115
|
+
#
|
|
116
|
+
# @param project [String]
|
|
117
|
+
# @param location [String]
|
|
118
|
+
# @param key_ring [String]
|
|
119
|
+
# @param crypto_key [String]
|
|
120
|
+
#
|
|
121
|
+
# @return [::String]
|
|
122
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
|
123
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
124
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
125
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
126
|
+
|
|
127
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
##
|
|
131
|
+
# Create a fully-qualified CryptoKeyVersion resource string.
|
|
132
|
+
#
|
|
133
|
+
# The resource will be in the following format:
|
|
134
|
+
#
|
|
135
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
|
136
|
+
#
|
|
137
|
+
# @param project [String]
|
|
138
|
+
# @param location [String]
|
|
139
|
+
# @param key_ring [String]
|
|
140
|
+
# @param crypto_key [String]
|
|
141
|
+
# @param crypto_key_version [String]
|
|
142
|
+
#
|
|
143
|
+
# @return [::String]
|
|
144
|
+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
|
145
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
146
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
147
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
148
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
|
149
|
+
|
|
150
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
|
151
|
+
end
|
|
152
|
+
|
|
46
153
|
##
|
|
47
154
|
# Create a fully-qualified ForwardingRule resource string.
|
|
48
155
|
#
|
|
@@ -115,6 +222,25 @@ module Google
|
|
|
115
222
|
"projects/#{project}/global/networks/#{network}"
|
|
116
223
|
end
|
|
117
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
|
+
|
|
118
244
|
##
|
|
119
245
|
# Create a fully-qualified ServiceAttachment resource string.
|
|
120
246
|
#
|
|
@@ -151,6 +277,27 @@ module Google
|
|
|
151
277
|
"projects/#{project}/locations/#{location}/sharedRegionalCertificateAuthority"
|
|
152
278
|
end
|
|
153
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
|
+
|
|
154
301
|
extend self
|
|
155
302
|
end
|
|
156
303
|
end
|