google-cloud-redis-cluster-v1 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/client.rb +1046 -178
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/operations.rb +7 -0
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/paths.rb +139 -0
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest/client.rb +932 -124
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest/operations.rb +7 -0
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest/service_stub.rb +491 -0
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest.rb +0 -6
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster.rb +0 -6
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster_pb.rb +44 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster_services_pb.rb +31 -6
- data/lib/google/cloud/redis/cluster/v1/version.rb +1 -1
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/redis/cluster/v1/cloud_redis_cluster.rb +752 -15
- data/proto_docs/google/longrunning/operations.rb +4 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +9 -9
@@ -641,6 +641,13 @@ module Google
|
|
641
641
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
642
642
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
643
643
|
# * (`nil`) indicating no credentials
|
644
|
+
#
|
645
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
646
|
+
# external source for authentication to Google Cloud, you must validate it before
|
647
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
648
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
649
|
+
# For more information, refer to [Validate credential configurations from external
|
650
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
644
651
|
# @return [::Object]
|
645
652
|
# @!attribute [rw] scope
|
646
653
|
# The OAuth scopes
|
@@ -25,6 +25,46 @@ module Google
|
|
25
25
|
module CloudRedisCluster
|
26
26
|
# Path helper methods for the CloudRedisCluster API.
|
27
27
|
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified Backup resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param backup_collection [String]
|
38
|
+
# @param backup [String]
|
39
|
+
#
|
40
|
+
# @return [::String]
|
41
|
+
def backup_path project:, location:, backup_collection:, backup:
|
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, "backup_collection cannot contain /" if backup_collection.to_s.include? "/"
|
45
|
+
|
46
|
+
"projects/#{project}/locations/#{location}/backupCollections/#{backup_collection}/backups/#{backup}"
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
# Create a fully-qualified BackupCollection resource string.
|
51
|
+
#
|
52
|
+
# The resource will be in the following format:
|
53
|
+
#
|
54
|
+
# `projects/{project}/locations/{location}/backupCollections/{backup_collection}`
|
55
|
+
#
|
56
|
+
# @param project [String]
|
57
|
+
# @param location [String]
|
58
|
+
# @param backup_collection [String]
|
59
|
+
#
|
60
|
+
# @return [::String]
|
61
|
+
def backup_collection_path project:, location:, backup_collection:
|
62
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
64
|
+
|
65
|
+
"projects/#{project}/locations/#{location}/backupCollections/#{backup_collection}"
|
66
|
+
end
|
67
|
+
|
28
68
|
##
|
29
69
|
# Create a fully-qualified CertificateAuthority resource string.
|
30
70
|
#
|
@@ -63,6 +103,69 @@ module Google
|
|
63
103
|
"projects/#{project}/locations/#{location}/clusters/#{cluster}"
|
64
104
|
end
|
65
105
|
|
106
|
+
##
|
107
|
+
# Create a fully-qualified CryptoKey resource string.
|
108
|
+
#
|
109
|
+
# The resource will be in the following format:
|
110
|
+
#
|
111
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
112
|
+
#
|
113
|
+
# @param project [String]
|
114
|
+
# @param location [String]
|
115
|
+
# @param key_ring [String]
|
116
|
+
# @param crypto_key [String]
|
117
|
+
#
|
118
|
+
# @return [::String]
|
119
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
120
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
121
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
122
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
123
|
+
|
124
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
125
|
+
end
|
126
|
+
|
127
|
+
##
|
128
|
+
# Create a fully-qualified CryptoKeyVersion resource string.
|
129
|
+
#
|
130
|
+
# The resource will be in the following format:
|
131
|
+
#
|
132
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
133
|
+
#
|
134
|
+
# @param project [String]
|
135
|
+
# @param location [String]
|
136
|
+
# @param key_ring [String]
|
137
|
+
# @param crypto_key [String]
|
138
|
+
# @param crypto_key_version [String]
|
139
|
+
#
|
140
|
+
# @return [::String]
|
141
|
+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
142
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
143
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
144
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
145
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
146
|
+
|
147
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
148
|
+
end
|
149
|
+
|
150
|
+
##
|
151
|
+
# Create a fully-qualified ForwardingRule resource string.
|
152
|
+
#
|
153
|
+
# The resource will be in the following format:
|
154
|
+
#
|
155
|
+
# `projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}`
|
156
|
+
#
|
157
|
+
# @param project [String]
|
158
|
+
# @param region [String]
|
159
|
+
# @param forwarding_rule [String]
|
160
|
+
#
|
161
|
+
# @return [::String]
|
162
|
+
def forwarding_rule_path project:, region:, forwarding_rule:
|
163
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
164
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
165
|
+
|
166
|
+
"projects/#{project}/regions/#{region}/forwardingRules/#{forwarding_rule}"
|
167
|
+
end
|
168
|
+
|
66
169
|
##
|
67
170
|
# Create a fully-qualified Location resource string.
|
68
171
|
#
|
@@ -80,6 +183,42 @@ module Google
|
|
80
183
|
"projects/#{project}/locations/#{location}"
|
81
184
|
end
|
82
185
|
|
186
|
+
##
|
187
|
+
# Create a fully-qualified Network resource string.
|
188
|
+
#
|
189
|
+
# The resource will be in the following format:
|
190
|
+
#
|
191
|
+
# `projects/{project}/global/networks/{network}`
|
192
|
+
#
|
193
|
+
# @param project [String]
|
194
|
+
# @param network [String]
|
195
|
+
#
|
196
|
+
# @return [::String]
|
197
|
+
def network_path project:, network:
|
198
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
199
|
+
|
200
|
+
"projects/#{project}/global/networks/#{network}"
|
201
|
+
end
|
202
|
+
|
203
|
+
##
|
204
|
+
# Create a fully-qualified ServiceAttachment resource string.
|
205
|
+
#
|
206
|
+
# The resource will be in the following format:
|
207
|
+
#
|
208
|
+
# `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`
|
209
|
+
#
|
210
|
+
# @param project [String]
|
211
|
+
# @param region [String]
|
212
|
+
# @param service_attachment [String]
|
213
|
+
#
|
214
|
+
# @return [::String]
|
215
|
+
def service_attachment_path project:, region:, service_attachment:
|
216
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
217
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
218
|
+
|
219
|
+
"projects/#{project}/regions/#{region}/serviceAttachments/#{service_attachment}"
|
220
|
+
end
|
221
|
+
|
83
222
|
extend self
|
84
223
|
end
|
85
224
|
end
|