google-cloud-redis-cluster-v1 1.7.0 → 1.9.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/redis/cluster/v1/bindings_override.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/client.rb +1953 -339
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/credentials.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/operations.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/paths.rb +85 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest/client.rb +1842 -333
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest/operations.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest/service_stub.rb +942 -23
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster_pb.rb +32 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster_services_pb.rb +52 -1
- data/lib/google/cloud/redis/cluster/v1/rest.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/version.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1.rb +1 -1
- data/lib/google-cloud-redis-cluster-v1.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/redis/cluster/v1/cloud_redis_cluster.rb +596 -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
- data/proto_docs/google/type/dayofweek.rb +1 -1
- data/proto_docs/google/type/timeofday.rb +1 -1
- metadata +1 -1
|
@@ -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.
|
|
@@ -25,6 +25,69 @@ 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 AclPolicy resource string.
|
|
30
|
+
#
|
|
31
|
+
# The resource will be in the following format:
|
|
32
|
+
#
|
|
33
|
+
# `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
|
|
34
|
+
#
|
|
35
|
+
# @param project [String]
|
|
36
|
+
# @param location [String]
|
|
37
|
+
# @param acl_policy [String]
|
|
38
|
+
#
|
|
39
|
+
# @return [::String]
|
|
40
|
+
def acl_policy_path project:, location:, acl_policy:
|
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
43
|
+
|
|
44
|
+
"projects/#{project}/locations/#{location}/aclPolicies/#{acl_policy}"
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
##
|
|
48
|
+
# Create a fully-qualified AclPolicyRevision resource string.
|
|
49
|
+
#
|
|
50
|
+
# The resource will be in the following format:
|
|
51
|
+
#
|
|
52
|
+
# `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
|
|
53
|
+
#
|
|
54
|
+
# @param project [String]
|
|
55
|
+
# @param location [String]
|
|
56
|
+
# @param acl_policy [String]
|
|
57
|
+
# @param revision [String]
|
|
58
|
+
#
|
|
59
|
+
# @return [::String]
|
|
60
|
+
def acl_policy_revision_path project:, location:, acl_policy:, revision:
|
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
63
|
+
raise ::ArgumentError, "acl_policy cannot contain /" if acl_policy.to_s.include? "/"
|
|
64
|
+
|
|
65
|
+
"projects/#{project}/locations/#{location}/aclPolicies/#{acl_policy}/revisions/#{revision}"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
##
|
|
69
|
+
# Create a fully-qualified AuthToken resource string.
|
|
70
|
+
#
|
|
71
|
+
# The resource will be in the following format:
|
|
72
|
+
#
|
|
73
|
+
# `projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}`
|
|
74
|
+
#
|
|
75
|
+
# @param project [String]
|
|
76
|
+
# @param location [String]
|
|
77
|
+
# @param cluster [String]
|
|
78
|
+
# @param token_auth_user [String]
|
|
79
|
+
# @param auth_token [String]
|
|
80
|
+
#
|
|
81
|
+
# @return [::String]
|
|
82
|
+
def auth_token_path project:, location:, cluster:, token_auth_user:, auth_token:
|
|
83
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
84
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
85
|
+
raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/"
|
|
86
|
+
raise ::ArgumentError, "token_auth_user cannot contain /" if token_auth_user.to_s.include? "/"
|
|
87
|
+
|
|
88
|
+
"projects/#{project}/locations/#{location}/clusters/#{cluster}/tokenAuthUsers/#{token_auth_user}/authTokens/#{auth_token}"
|
|
89
|
+
end
|
|
90
|
+
|
|
28
91
|
##
|
|
29
92
|
# Create a fully-qualified Backup resource string.
|
|
30
93
|
#
|
|
@@ -255,6 +318,27 @@ module Google
|
|
|
255
318
|
"projects/#{project}/locations/#{location}/sharedRegionalCertificateAuthority"
|
|
256
319
|
end
|
|
257
320
|
|
|
321
|
+
##
|
|
322
|
+
# Create a fully-qualified TokenAuthUser resource string.
|
|
323
|
+
#
|
|
324
|
+
# The resource will be in the following format:
|
|
325
|
+
#
|
|
326
|
+
# `projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}`
|
|
327
|
+
#
|
|
328
|
+
# @param project [String]
|
|
329
|
+
# @param location [String]
|
|
330
|
+
# @param cluster [String]
|
|
331
|
+
# @param token_auth_user [String]
|
|
332
|
+
#
|
|
333
|
+
# @return [::String]
|
|
334
|
+
def token_auth_user_path project:, location:, cluster:, token_auth_user:
|
|
335
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
336
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
337
|
+
raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/"
|
|
338
|
+
|
|
339
|
+
"projects/#{project}/locations/#{location}/clusters/#{cluster}/tokenAuthUsers/#{token_auth_user}"
|
|
340
|
+
end
|
|
341
|
+
|
|
258
342
|
extend self
|
|
259
343
|
end
|
|
260
344
|
end
|