google-apis-redis_v1 0.88.0 → 0.89.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/CHANGELOG.md +4 -0
- data/lib/google/apis/redis_v1/classes.rb +296 -7
- data/lib/google/apis/redis_v1/gem_version.rb +2 -2
- data/lib/google/apis/redis_v1/representations.rb +139 -0
- data/lib/google/apis/redis_v1/service.rb +535 -6
- data/lib/google/apis/redis_v1.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 02562bebfd9239b2a52318469e2bf8b834b6b0e96ab60fe2f6d11af9b37e47fd
|
|
4
|
+
data.tar.gz: 9f9521064b15a22ab2a9f88a04168b9b4251424d066e1921f5df2f4fc46be7d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 522ecfe52592800a4049f31218a4f0c102fee5d3632d60461f6c9c480ffce205ae70106ac024895d0b60e5b3858591f9e08990b12c5eeaa0836e384e5b3c3d48
|
|
7
|
+
data.tar.gz: 7f7cb43cfeadd3b41f27dd5c32c79aaa5a1e5a6a2b0aacf74053ec24f0c631a4db0c9099e6528d77799bf04d4cae9be33a5b0aeb08670e4f79999adc4c0bb145
|
data/CHANGELOG.md
CHANGED
|
@@ -41,6 +41,155 @@ module Google
|
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
# The ACL policy resource.
|
|
45
|
+
class AclPolicy
|
|
46
|
+
include Google::Apis::Core::Hashable
|
|
47
|
+
|
|
48
|
+
# Output only. Etag for the ACL policy.
|
|
49
|
+
# Corresponds to the JSON property `etag`
|
|
50
|
+
# @return [String]
|
|
51
|
+
attr_accessor :etag
|
|
52
|
+
|
|
53
|
+
# Identifier. Full resource path of the ACL policy.
|
|
54
|
+
# Corresponds to the JSON property `name`
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :name
|
|
57
|
+
|
|
58
|
+
# Required. The ACL rules within the ACL policy.
|
|
59
|
+
# Corresponds to the JSON property `rules`
|
|
60
|
+
# @return [Array<Google::Apis::RedisV1::AclRule>]
|
|
61
|
+
attr_accessor :rules
|
|
62
|
+
|
|
63
|
+
# Output only. The state of the ACL policy.
|
|
64
|
+
# Corresponds to the JSON property `state`
|
|
65
|
+
# @return [String]
|
|
66
|
+
attr_accessor :state
|
|
67
|
+
|
|
68
|
+
# Output only. The version of the ACL policy. Used in drift resolution.
|
|
69
|
+
# Corresponds to the JSON property `version`
|
|
70
|
+
# @return [Fixnum]
|
|
71
|
+
attr_accessor :version
|
|
72
|
+
|
|
73
|
+
def initialize(**args)
|
|
74
|
+
update!(**args)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Update properties of this object
|
|
78
|
+
def update!(**args)
|
|
79
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
80
|
+
@name = args[:name] if args.key?(:name)
|
|
81
|
+
@rules = args[:rules] if args.key?(:rules)
|
|
82
|
+
@state = args[:state] if args.key?(:state)
|
|
83
|
+
@version = args[:version] if args.key?(:version)
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# A single ACL rule which defines the policy for a user.
|
|
88
|
+
class AclRule
|
|
89
|
+
include Google::Apis::Core::Hashable
|
|
90
|
+
|
|
91
|
+
# Required. The rule to be applied to the username. Ex: "on >password123 ~* +@
|
|
92
|
+
# all" The format of the rule is defined by Redis OSS: https://redis.io/docs/
|
|
93
|
+
# latest/operate/oss_and_stack/management/security/acl/
|
|
94
|
+
# Corresponds to the JSON property `rule`
|
|
95
|
+
# @return [String]
|
|
96
|
+
attr_accessor :rule
|
|
97
|
+
|
|
98
|
+
# Required. Specifies the IAM user or service account to be added to the ACL
|
|
99
|
+
# policy. This username will be directly set on the Redis OSS.
|
|
100
|
+
# Corresponds to the JSON property `username`
|
|
101
|
+
# @return [String]
|
|
102
|
+
attr_accessor :username
|
|
103
|
+
|
|
104
|
+
def initialize(**args)
|
|
105
|
+
update!(**args)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Update properties of this object
|
|
109
|
+
def update!(**args)
|
|
110
|
+
@rule = args[:rule] if args.key?(:rule)
|
|
111
|
+
@username = args[:username] if args.key?(:username)
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Request message for AddAuthToken.
|
|
116
|
+
class AddAuthTokenRequest
|
|
117
|
+
include Google::Apis::Core::Hashable
|
|
118
|
+
|
|
119
|
+
# Auth token for the cluster.
|
|
120
|
+
# Corresponds to the JSON property `authToken`
|
|
121
|
+
# @return [Google::Apis::RedisV1::AuthToken]
|
|
122
|
+
attr_accessor :auth_token
|
|
123
|
+
|
|
124
|
+
def initialize(**args)
|
|
125
|
+
update!(**args)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Update properties of this object
|
|
129
|
+
def update!(**args)
|
|
130
|
+
@auth_token = args[:auth_token] if args.key?(:auth_token)
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Request message for AddTokenAuthUser.
|
|
135
|
+
class AddTokenAuthUserRequest
|
|
136
|
+
include Google::Apis::Core::Hashable
|
|
137
|
+
|
|
138
|
+
# Required. The id of the token auth user to add.
|
|
139
|
+
# Corresponds to the JSON property `tokenAuthUser`
|
|
140
|
+
# @return [String]
|
|
141
|
+
attr_accessor :token_auth_user
|
|
142
|
+
|
|
143
|
+
def initialize(**args)
|
|
144
|
+
update!(**args)
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Update properties of this object
|
|
148
|
+
def update!(**args)
|
|
149
|
+
@token_auth_user = args[:token_auth_user] if args.key?(:token_auth_user)
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Auth token for the cluster.
|
|
154
|
+
class AuthToken
|
|
155
|
+
include Google::Apis::Core::Hashable
|
|
156
|
+
|
|
157
|
+
# Output only. Create time of the auth token.
|
|
158
|
+
# Corresponds to the JSON property `createTime`
|
|
159
|
+
# @return [String]
|
|
160
|
+
attr_accessor :create_time
|
|
161
|
+
|
|
162
|
+
# Identifier. Name of the auth token. Format: projects/`project`/locations/`
|
|
163
|
+
# location`/clusters/`cluster`/tokenAuthUsers/`token_auth_user`/authTokens/`
|
|
164
|
+
# auth_token`
|
|
165
|
+
# Corresponds to the JSON property `name`
|
|
166
|
+
# @return [String]
|
|
167
|
+
attr_accessor :name
|
|
168
|
+
|
|
169
|
+
# Output only. State of the auth token.
|
|
170
|
+
# Corresponds to the JSON property `state`
|
|
171
|
+
# @return [String]
|
|
172
|
+
attr_accessor :state
|
|
173
|
+
|
|
174
|
+
# Output only. The service generated authentication token used to connect to the
|
|
175
|
+
# Redis cluster.
|
|
176
|
+
# Corresponds to the JSON property `token`
|
|
177
|
+
# @return [String]
|
|
178
|
+
attr_accessor :token
|
|
179
|
+
|
|
180
|
+
def initialize(**args)
|
|
181
|
+
update!(**args)
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Update properties of this object
|
|
185
|
+
def update!(**args)
|
|
186
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
187
|
+
@name = args[:name] if args.key?(:name)
|
|
188
|
+
@state = args[:state] if args.key?(:state)
|
|
189
|
+
@token = args[:token] if args.key?(:token)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
44
193
|
# The automated backup config for a cluster.
|
|
45
194
|
class AutomatedBackupConfig
|
|
46
195
|
include Google::Apis::Core::Hashable
|
|
@@ -234,7 +383,7 @@ module Google
|
|
|
234
383
|
end
|
|
235
384
|
end
|
|
236
385
|
|
|
237
|
-
# Request for
|
|
386
|
+
# Request for `BackupCluster`.
|
|
238
387
|
class BackupClusterRequest
|
|
239
388
|
include Google::Apis::Core::Hashable
|
|
240
389
|
|
|
@@ -560,6 +709,14 @@ module Google
|
|
|
560
709
|
# @return [String]
|
|
561
710
|
attr_accessor :acl_policy
|
|
562
711
|
|
|
712
|
+
# Optional. Output only. Indicates whether the ACL rules applied to the cluster
|
|
713
|
+
# are in sync with the latest ACL policy rules. This field is only applicable if
|
|
714
|
+
# the ACL policy is set for the cluster.
|
|
715
|
+
# Corresponds to the JSON property `aclPolicyInSync`
|
|
716
|
+
# @return [Boolean]
|
|
717
|
+
attr_accessor :acl_policy_in_sync
|
|
718
|
+
alias_method :acl_policy_in_sync?, :acl_policy_in_sync
|
|
719
|
+
|
|
563
720
|
# Optional. Immutable. Deprecated, do not use.
|
|
564
721
|
# Corresponds to the JSON property `allowFewerZonesDeployment`
|
|
565
722
|
# @return [Boolean]
|
|
@@ -813,6 +970,7 @@ module Google
|
|
|
813
970
|
# Update properties of this object
|
|
814
971
|
def update!(**args)
|
|
815
972
|
@acl_policy = args[:acl_policy] if args.key?(:acl_policy)
|
|
973
|
+
@acl_policy_in_sync = args[:acl_policy_in_sync] if args.key?(:acl_policy_in_sync)
|
|
816
974
|
@allow_fewer_zones_deployment = args[:allow_fewer_zones_deployment] if args.key?(:allow_fewer_zones_deployment)
|
|
817
975
|
@async_cluster_endpoints_deletion_enabled = args[:async_cluster_endpoints_deletion_enabled] if args.key?(:async_cluster_endpoints_deletion_enabled)
|
|
818
976
|
@authorization_mode = args[:authorization_mode] if args.key?(:authorization_mode)
|
|
@@ -1222,7 +1380,7 @@ module Google
|
|
|
1222
1380
|
# @return [Google::Apis::RedisV1::DatabaseResourceId]
|
|
1223
1381
|
attr_accessor :resource_id
|
|
1224
1382
|
|
|
1225
|
-
# Common model for database resource instance metadata. Next ID:
|
|
1383
|
+
# Common model for database resource instance metadata. Next ID: 32
|
|
1226
1384
|
# Corresponds to the JSON property `resourceMetadata`
|
|
1227
1385
|
# @return [Google::Apis::RedisV1::DatabaseResourceMetadata]
|
|
1228
1386
|
attr_accessor :resource_metadata
|
|
@@ -1420,7 +1578,7 @@ module Google
|
|
|
1420
1578
|
end
|
|
1421
1579
|
end
|
|
1422
1580
|
|
|
1423
|
-
# Common model for database resource instance metadata. Next ID:
|
|
1581
|
+
# Common model for database resource instance metadata. Next ID: 32
|
|
1424
1582
|
class DatabaseResourceMetadata
|
|
1425
1583
|
include Google::Apis::Core::Hashable
|
|
1426
1584
|
|
|
@@ -1519,6 +1677,11 @@ module Google
|
|
|
1519
1677
|
# @return [Google::Apis::RedisV1::ResourceMaintenanceInfo]
|
|
1520
1678
|
attr_accessor :maintenance_info
|
|
1521
1679
|
|
|
1680
|
+
# Optional. The modes of the database resource.
|
|
1681
|
+
# Corresponds to the JSON property `modes`
|
|
1682
|
+
# @return [Array<String>]
|
|
1683
|
+
attr_accessor :modes
|
|
1684
|
+
|
|
1522
1685
|
# DatabaseResourceId will serve as primary key for any resource ingestion event.
|
|
1523
1686
|
# Corresponds to the JSON property `primaryResourceId`
|
|
1524
1687
|
# @return [Google::Apis::RedisV1::DatabaseResourceId]
|
|
@@ -1609,6 +1772,7 @@ module Google
|
|
|
1609
1772
|
@location = args[:location] if args.key?(:location)
|
|
1610
1773
|
@machine_configuration = args[:machine_configuration] if args.key?(:machine_configuration)
|
|
1611
1774
|
@maintenance_info = args[:maintenance_info] if args.key?(:maintenance_info)
|
|
1775
|
+
@modes = args[:modes] if args.key?(:modes)
|
|
1612
1776
|
@primary_resource_id = args[:primary_resource_id] if args.key?(:primary_resource_id)
|
|
1613
1777
|
@primary_resource_location = args[:primary_resource_location] if args.key?(:primary_resource_location)
|
|
1614
1778
|
@product = args[:product] if args.key?(:product)
|
|
@@ -1921,7 +2085,7 @@ module Google
|
|
|
1921
2085
|
end
|
|
1922
2086
|
end
|
|
1923
2087
|
|
|
1924
|
-
# Request for
|
|
2088
|
+
# Request for `ExportBackup`.
|
|
1925
2089
|
class ExportBackupRequest
|
|
1926
2090
|
include Google::Apis::Core::Hashable
|
|
1927
2091
|
|
|
@@ -2589,7 +2753,73 @@ module Google
|
|
|
2589
2753
|
end
|
|
2590
2754
|
end
|
|
2591
2755
|
|
|
2592
|
-
# Response for
|
|
2756
|
+
# Response for `ListAclPolicies`.
|
|
2757
|
+
class ListAclPoliciesResponse
|
|
2758
|
+
include Google::Apis::Core::Hashable
|
|
2759
|
+
|
|
2760
|
+
# A list of ACL policies in the project in the specified location, or across all
|
|
2761
|
+
# locations. If the `location_id` in the parent field of the request is "-", all
|
|
2762
|
+
# regions available to the project are queried, and the results aggregated.
|
|
2763
|
+
# Corresponds to the JSON property `aclPolicies`
|
|
2764
|
+
# @return [Array<Google::Apis::RedisV1::AclPolicy>]
|
|
2765
|
+
attr_accessor :acl_policies
|
|
2766
|
+
|
|
2767
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
|
2768
|
+
# results in the list.
|
|
2769
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
2770
|
+
# @return [String]
|
|
2771
|
+
attr_accessor :next_page_token
|
|
2772
|
+
|
|
2773
|
+
# Locations that could not be reached.
|
|
2774
|
+
# Corresponds to the JSON property `unreachable`
|
|
2775
|
+
# @return [Array<String>]
|
|
2776
|
+
attr_accessor :unreachable
|
|
2777
|
+
|
|
2778
|
+
def initialize(**args)
|
|
2779
|
+
update!(**args)
|
|
2780
|
+
end
|
|
2781
|
+
|
|
2782
|
+
# Update properties of this object
|
|
2783
|
+
def update!(**args)
|
|
2784
|
+
@acl_policies = args[:acl_policies] if args.key?(:acl_policies)
|
|
2785
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
2786
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
2787
|
+
end
|
|
2788
|
+
end
|
|
2789
|
+
|
|
2790
|
+
# Response message for ListAuthTokens.
|
|
2791
|
+
class ListAuthTokensResponse
|
|
2792
|
+
include Google::Apis::Core::Hashable
|
|
2793
|
+
|
|
2794
|
+
# A list of auth tokens in the project.
|
|
2795
|
+
# Corresponds to the JSON property `authTokens`
|
|
2796
|
+
# @return [Array<Google::Apis::RedisV1::AuthToken>]
|
|
2797
|
+
attr_accessor :auth_tokens
|
|
2798
|
+
|
|
2799
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
|
2800
|
+
# results in the list.
|
|
2801
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
2802
|
+
# @return [String]
|
|
2803
|
+
attr_accessor :next_page_token
|
|
2804
|
+
|
|
2805
|
+
# Unordered list. Auth tokens that could not be reached.
|
|
2806
|
+
# Corresponds to the JSON property `unreachable`
|
|
2807
|
+
# @return [Array<String>]
|
|
2808
|
+
attr_accessor :unreachable
|
|
2809
|
+
|
|
2810
|
+
def initialize(**args)
|
|
2811
|
+
update!(**args)
|
|
2812
|
+
end
|
|
2813
|
+
|
|
2814
|
+
# Update properties of this object
|
|
2815
|
+
def update!(**args)
|
|
2816
|
+
@auth_tokens = args[:auth_tokens] if args.key?(:auth_tokens)
|
|
2817
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
2818
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
2819
|
+
end
|
|
2820
|
+
end
|
|
2821
|
+
|
|
2822
|
+
# Response for `ListBackupCollections`.
|
|
2593
2823
|
class ListBackupCollectionsResponse
|
|
2594
2824
|
include Google::Apis::Core::Hashable
|
|
2595
2825
|
|
|
@@ -2628,7 +2858,7 @@ module Google
|
|
|
2628
2858
|
end
|
|
2629
2859
|
end
|
|
2630
2860
|
|
|
2631
|
-
# Response for
|
|
2861
|
+
# Response for `ListBackups`.
|
|
2632
2862
|
class ListBackupsResponse
|
|
2633
2863
|
include Google::Apis::Core::Hashable
|
|
2634
2864
|
|
|
@@ -2660,7 +2890,7 @@ module Google
|
|
|
2660
2890
|
end
|
|
2661
2891
|
end
|
|
2662
2892
|
|
|
2663
|
-
# Response for ListClusters
|
|
2893
|
+
# Response for `ListClusters`.
|
|
2664
2894
|
class ListClustersResponse
|
|
2665
2895
|
include Google::Apis::Core::Hashable
|
|
2666
2896
|
|
|
@@ -2797,6 +3027,38 @@ module Google
|
|
|
2797
3027
|
end
|
|
2798
3028
|
end
|
|
2799
3029
|
|
|
3030
|
+
# Response message for ListTokenAuthUsers.
|
|
3031
|
+
class ListTokenAuthUsersResponse
|
|
3032
|
+
include Google::Apis::Core::Hashable
|
|
3033
|
+
|
|
3034
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
|
3035
|
+
# results in the list.
|
|
3036
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
3037
|
+
# @return [String]
|
|
3038
|
+
attr_accessor :next_page_token
|
|
3039
|
+
|
|
3040
|
+
# A list of token auth users in the project.
|
|
3041
|
+
# Corresponds to the JSON property `tokenAuthUsers`
|
|
3042
|
+
# @return [Array<Google::Apis::RedisV1::TokenAuthUser>]
|
|
3043
|
+
attr_accessor :token_auth_users
|
|
3044
|
+
|
|
3045
|
+
# Unordered list. Token auth users that could not be reached.
|
|
3046
|
+
# Corresponds to the JSON property `unreachable`
|
|
3047
|
+
# @return [Array<String>]
|
|
3048
|
+
attr_accessor :unreachable
|
|
3049
|
+
|
|
3050
|
+
def initialize(**args)
|
|
3051
|
+
update!(**args)
|
|
3052
|
+
end
|
|
3053
|
+
|
|
3054
|
+
# Update properties of this object
|
|
3055
|
+
def update!(**args)
|
|
3056
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
3057
|
+
@token_auth_users = args[:token_auth_users] if args.key?(:token_auth_users)
|
|
3058
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
3059
|
+
end
|
|
3060
|
+
end
|
|
3061
|
+
|
|
2800
3062
|
# A resource that represents a Google Cloud location.
|
|
2801
3063
|
class Location
|
|
2802
3064
|
include Google::Apis::Core::Hashable
|
|
@@ -4199,6 +4461,33 @@ module Google
|
|
|
4199
4461
|
end
|
|
4200
4462
|
end
|
|
4201
4463
|
|
|
4464
|
+
# Represents a token based auth user for the cluster.
|
|
4465
|
+
class TokenAuthUser
|
|
4466
|
+
include Google::Apis::Core::Hashable
|
|
4467
|
+
|
|
4468
|
+
# Identifier. The resource name of the token based auth user. Format: projects/`
|
|
4469
|
+
# project`/locations/`location`/clusters/`cluster`/tokenAuthUsers/`
|
|
4470
|
+
# token_auth_user`
|
|
4471
|
+
# Corresponds to the JSON property `name`
|
|
4472
|
+
# @return [String]
|
|
4473
|
+
attr_accessor :name
|
|
4474
|
+
|
|
4475
|
+
# Output only. The state of the token based auth user.
|
|
4476
|
+
# Corresponds to the JSON property `state`
|
|
4477
|
+
# @return [String]
|
|
4478
|
+
attr_accessor :state
|
|
4479
|
+
|
|
4480
|
+
def initialize(**args)
|
|
4481
|
+
update!(**args)
|
|
4482
|
+
end
|
|
4483
|
+
|
|
4484
|
+
# Update properties of this object
|
|
4485
|
+
def update!(**args)
|
|
4486
|
+
@name = args[:name] if args.key?(:name)
|
|
4487
|
+
@state = args[:state] if args.key?(:state)
|
|
4488
|
+
end
|
|
4489
|
+
end
|
|
4490
|
+
|
|
4202
4491
|
# TypedValue represents the value of a metric type. It can either be a double,
|
|
4203
4492
|
# an int64, a string or a bool.
|
|
4204
4493
|
class TypedValue
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module RedisV1
|
|
18
18
|
# Version of the google-apis-redis_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.89.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260406"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -28,6 +28,36 @@ module Google
|
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
class AclPolicy
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class AclRule
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class AddAuthTokenRequest
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class AddTokenAuthUserRequest
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class AuthToken
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
31
61
|
class AutomatedBackupConfig
|
|
32
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
63
|
|
|
@@ -328,6 +358,18 @@ module Google
|
|
|
328
358
|
include Google::Apis::Core::JsonObjectSupport
|
|
329
359
|
end
|
|
330
360
|
|
|
361
|
+
class ListAclPoliciesResponse
|
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
363
|
+
|
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
class ListAuthTokensResponse
|
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
369
|
+
|
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
371
|
+
end
|
|
372
|
+
|
|
331
373
|
class ListBackupCollectionsResponse
|
|
332
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
333
375
|
|
|
@@ -364,6 +406,12 @@ module Google
|
|
|
364
406
|
include Google::Apis::Core::JsonObjectSupport
|
|
365
407
|
end
|
|
366
408
|
|
|
409
|
+
class ListTokenAuthUsersResponse
|
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
411
|
+
|
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
413
|
+
end
|
|
414
|
+
|
|
367
415
|
class Location
|
|
368
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
369
417
|
|
|
@@ -592,6 +640,12 @@ module Google
|
|
|
592
640
|
include Google::Apis::Core::JsonObjectSupport
|
|
593
641
|
end
|
|
594
642
|
|
|
643
|
+
class TokenAuthUser
|
|
644
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
645
|
+
|
|
646
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
647
|
+
end
|
|
648
|
+
|
|
595
649
|
class TypedValue
|
|
596
650
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
597
651
|
|
|
@@ -641,6 +695,51 @@ module Google
|
|
|
641
695
|
end
|
|
642
696
|
end
|
|
643
697
|
|
|
698
|
+
class AclPolicy
|
|
699
|
+
# @private
|
|
700
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
701
|
+
property :etag, as: 'etag'
|
|
702
|
+
property :name, as: 'name'
|
|
703
|
+
collection :rules, as: 'rules', class: Google::Apis::RedisV1::AclRule, decorator: Google::Apis::RedisV1::AclRule::Representation
|
|
704
|
+
|
|
705
|
+
property :state, as: 'state'
|
|
706
|
+
property :version, :numeric_string => true, as: 'version'
|
|
707
|
+
end
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
class AclRule
|
|
711
|
+
# @private
|
|
712
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
713
|
+
property :rule, as: 'rule'
|
|
714
|
+
property :username, as: 'username'
|
|
715
|
+
end
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
class AddAuthTokenRequest
|
|
719
|
+
# @private
|
|
720
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
721
|
+
property :auth_token, as: 'authToken', class: Google::Apis::RedisV1::AuthToken, decorator: Google::Apis::RedisV1::AuthToken::Representation
|
|
722
|
+
|
|
723
|
+
end
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
class AddTokenAuthUserRequest
|
|
727
|
+
# @private
|
|
728
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
729
|
+
property :token_auth_user, as: 'tokenAuthUser'
|
|
730
|
+
end
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
class AuthToken
|
|
734
|
+
# @private
|
|
735
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
736
|
+
property :create_time, as: 'createTime'
|
|
737
|
+
property :name, as: 'name'
|
|
738
|
+
property :state, as: 'state'
|
|
739
|
+
property :token, as: 'token'
|
|
740
|
+
end
|
|
741
|
+
end
|
|
742
|
+
|
|
644
743
|
class AutomatedBackupConfig
|
|
645
744
|
# @private
|
|
646
745
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -781,6 +880,7 @@ module Google
|
|
|
781
880
|
# @private
|
|
782
881
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
783
882
|
property :acl_policy, as: 'aclPolicy'
|
|
883
|
+
property :acl_policy_in_sync, as: 'aclPolicyInSync'
|
|
784
884
|
property :allow_fewer_zones_deployment, as: 'allowFewerZonesDeployment'
|
|
785
885
|
property :async_cluster_endpoints_deletion_enabled, as: 'asyncClusterEndpointsDeletionEnabled'
|
|
786
886
|
property :authorization_mode, as: 'authorizationMode'
|
|
@@ -1027,6 +1127,7 @@ module Google
|
|
|
1027
1127
|
|
|
1028
1128
|
property :maintenance_info, as: 'maintenanceInfo', class: Google::Apis::RedisV1::ResourceMaintenanceInfo, decorator: Google::Apis::RedisV1::ResourceMaintenanceInfo::Representation
|
|
1029
1129
|
|
|
1130
|
+
collection :modes, as: 'modes'
|
|
1030
1131
|
property :primary_resource_id, as: 'primaryResourceId', class: Google::Apis::RedisV1::DatabaseResourceId, decorator: Google::Apis::RedisV1::DatabaseResourceId::Representation
|
|
1031
1132
|
|
|
1032
1133
|
property :primary_resource_location, as: 'primaryResourceLocation'
|
|
@@ -1294,6 +1395,26 @@ module Google
|
|
|
1294
1395
|
end
|
|
1295
1396
|
end
|
|
1296
1397
|
|
|
1398
|
+
class ListAclPoliciesResponse
|
|
1399
|
+
# @private
|
|
1400
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1401
|
+
collection :acl_policies, as: 'aclPolicies', class: Google::Apis::RedisV1::AclPolicy, decorator: Google::Apis::RedisV1::AclPolicy::Representation
|
|
1402
|
+
|
|
1403
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1404
|
+
collection :unreachable, as: 'unreachable'
|
|
1405
|
+
end
|
|
1406
|
+
end
|
|
1407
|
+
|
|
1408
|
+
class ListAuthTokensResponse
|
|
1409
|
+
# @private
|
|
1410
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1411
|
+
collection :auth_tokens, as: 'authTokens', class: Google::Apis::RedisV1::AuthToken, decorator: Google::Apis::RedisV1::AuthToken::Representation
|
|
1412
|
+
|
|
1413
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1414
|
+
collection :unreachable, as: 'unreachable'
|
|
1415
|
+
end
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1297
1418
|
class ListBackupCollectionsResponse
|
|
1298
1419
|
# @private
|
|
1299
1420
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1353,6 +1474,16 @@ module Google
|
|
|
1353
1474
|
end
|
|
1354
1475
|
end
|
|
1355
1476
|
|
|
1477
|
+
class ListTokenAuthUsersResponse
|
|
1478
|
+
# @private
|
|
1479
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1480
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1481
|
+
collection :token_auth_users, as: 'tokenAuthUsers', class: Google::Apis::RedisV1::TokenAuthUser, decorator: Google::Apis::RedisV1::TokenAuthUser::Representation
|
|
1482
|
+
|
|
1483
|
+
collection :unreachable, as: 'unreachable'
|
|
1484
|
+
end
|
|
1485
|
+
end
|
|
1486
|
+
|
|
1356
1487
|
class Location
|
|
1357
1488
|
# @private
|
|
1358
1489
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1724,6 +1855,14 @@ module Google
|
|
|
1724
1855
|
end
|
|
1725
1856
|
end
|
|
1726
1857
|
|
|
1858
|
+
class TokenAuthUser
|
|
1859
|
+
# @private
|
|
1860
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1861
|
+
property :name, as: 'name'
|
|
1862
|
+
property :state, as: 'state'
|
|
1863
|
+
end
|
|
1864
|
+
end
|
|
1865
|
+
|
|
1727
1866
|
class TypedValue
|
|
1728
1867
|
# @private
|
|
1729
1868
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -116,10 +116,15 @@ module Google
|
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
# Lists information about the supported locations for this service. This method
|
|
119
|
-
#
|
|
120
|
-
#
|
|
121
|
-
#
|
|
122
|
-
#
|
|
119
|
+
# lists locations based on the resource scope provided in the [
|
|
120
|
+
# ListLocationsRequest.name] field: * **Global locations**: If `name` is empty,
|
|
121
|
+
# the method lists the public locations available to all projects. * **Project-
|
|
122
|
+
# specific locations**: If `name` follows the format `projects/`project``, the
|
|
123
|
+
# method lists locations visible to that specific project. This includes public,
|
|
124
|
+
# private, or other project-specific locations enabled for the project. For gRPC
|
|
125
|
+
# and client library implementations, the resource name is passed as the `name`
|
|
126
|
+
# field. For direct service calls, the resource name is incorporated into the
|
|
127
|
+
# request path based on the specific service implementation and version.
|
|
123
128
|
# @param [String] name
|
|
124
129
|
# The resource that owns the locations collection, if applicable.
|
|
125
130
|
# @param [Array<String>, String] extra_location_types
|
|
@@ -166,6 +171,220 @@ module Google
|
|
|
166
171
|
execute_or_queue_command(command, &block)
|
|
167
172
|
end
|
|
168
173
|
|
|
174
|
+
# Creates an ACL Policy. The creation is executed synchronously and the policy
|
|
175
|
+
# is available for use immediately after the RPC returns.
|
|
176
|
+
# @param [String] parent
|
|
177
|
+
# Required. The resource name of the cluster location using the form: `projects/`
|
|
178
|
+
# project_id`/locations/`location_id`` where `location_id` refers to a Google
|
|
179
|
+
# Cloud region.
|
|
180
|
+
# @param [Google::Apis::RedisV1::AclPolicy] acl_policy_object
|
|
181
|
+
# @param [String] acl_policy_id
|
|
182
|
+
# Required. The logical name of the ACL Policy in the customer project with the
|
|
183
|
+
# following restrictions: * Must contain only lowercase letters, numbers, and
|
|
184
|
+
# hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must
|
|
185
|
+
# end with a number or a letter. * Must be unique within the customer project /
|
|
186
|
+
# location
|
|
187
|
+
# @param [String] request_id
|
|
188
|
+
# Optional. Idempotent request UUID. .
|
|
189
|
+
# @param [String] fields
|
|
190
|
+
# Selector specifying which fields to include in a partial response.
|
|
191
|
+
# @param [String] quota_user
|
|
192
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
193
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
194
|
+
# @param [Google::Apis::RequestOptions] options
|
|
195
|
+
# Request-specific options
|
|
196
|
+
#
|
|
197
|
+
# @yield [result, err] Result & error if block supplied
|
|
198
|
+
# @yieldparam result [Google::Apis::RedisV1::AclPolicy] parsed result object
|
|
199
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
200
|
+
#
|
|
201
|
+
# @return [Google::Apis::RedisV1::AclPolicy]
|
|
202
|
+
#
|
|
203
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
204
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
205
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
206
|
+
def create_project_location_acl_policy(parent, acl_policy_object = nil, acl_policy_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
207
|
+
command = make_simple_command(:post, 'v1/{+parent}/aclPolicies', options)
|
|
208
|
+
command.request_representation = Google::Apis::RedisV1::AclPolicy::Representation
|
|
209
|
+
command.request_object = acl_policy_object
|
|
210
|
+
command.response_representation = Google::Apis::RedisV1::AclPolicy::Representation
|
|
211
|
+
command.response_class = Google::Apis::RedisV1::AclPolicy
|
|
212
|
+
command.params['parent'] = parent unless parent.nil?
|
|
213
|
+
command.query['aclPolicyId'] = acl_policy_id unless acl_policy_id.nil?
|
|
214
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
215
|
+
command.query['fields'] = fields unless fields.nil?
|
|
216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
217
|
+
execute_or_queue_command(command, &block)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Deletes a specific Acl Policy. This action will delete the Acl Policy and all
|
|
221
|
+
# the rules associated with it. An ACL policy cannot be deleted if it is
|
|
222
|
+
# attached to a cluster.
|
|
223
|
+
# @param [String] name
|
|
224
|
+
# Required. Redis ACL Policy resource name using the form: `projects/`project_id`
|
|
225
|
+
# /locations/`location_id`/aclPolicies/`acl_policy_id`` where `location_id`
|
|
226
|
+
# refers to a GCP region.
|
|
227
|
+
# @param [String] etag
|
|
228
|
+
# Optional. Etag of the ACL policy. If this is different from the server's etag,
|
|
229
|
+
# the request will fail with an ABORTED error.
|
|
230
|
+
# @param [String] request_id
|
|
231
|
+
# Optional. Idempotent request UUID.
|
|
232
|
+
# @param [String] fields
|
|
233
|
+
# Selector specifying which fields to include in a partial response.
|
|
234
|
+
# @param [String] quota_user
|
|
235
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
236
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
237
|
+
# @param [Google::Apis::RequestOptions] options
|
|
238
|
+
# Request-specific options
|
|
239
|
+
#
|
|
240
|
+
# @yield [result, err] Result & error if block supplied
|
|
241
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
|
242
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
243
|
+
#
|
|
244
|
+
# @return [Google::Apis::RedisV1::Operation]
|
|
245
|
+
#
|
|
246
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
247
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
248
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
249
|
+
def delete_project_location_acl_policy(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
250
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
251
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
|
252
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
|
253
|
+
command.params['name'] = name unless name.nil?
|
|
254
|
+
command.query['etag'] = etag unless etag.nil?
|
|
255
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
256
|
+
command.query['fields'] = fields unless fields.nil?
|
|
257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
258
|
+
execute_or_queue_command(command, &block)
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# Gets the details of a specific Redis Cluster ACL Policy.
|
|
262
|
+
# @param [String] name
|
|
263
|
+
# Required. Redis ACL Policy resource name using the form: `projects/`project_id`
|
|
264
|
+
# /locations/`location_id`/aclPolicies/`acl_policy_id`` where `location_id`
|
|
265
|
+
# refers to a GCP region.
|
|
266
|
+
# @param [String] fields
|
|
267
|
+
# Selector specifying which fields to include in a partial response.
|
|
268
|
+
# @param [String] quota_user
|
|
269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
271
|
+
# @param [Google::Apis::RequestOptions] options
|
|
272
|
+
# Request-specific options
|
|
273
|
+
#
|
|
274
|
+
# @yield [result, err] Result & error if block supplied
|
|
275
|
+
# @yieldparam result [Google::Apis::RedisV1::AclPolicy] parsed result object
|
|
276
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
277
|
+
#
|
|
278
|
+
# @return [Google::Apis::RedisV1::AclPolicy]
|
|
279
|
+
#
|
|
280
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
281
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
282
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
283
|
+
def get_project_location_acl_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
284
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
285
|
+
command.response_representation = Google::Apis::RedisV1::AclPolicy::Representation
|
|
286
|
+
command.response_class = Google::Apis::RedisV1::AclPolicy
|
|
287
|
+
command.params['name'] = name unless name.nil?
|
|
288
|
+
command.query['fields'] = fields unless fields.nil?
|
|
289
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
290
|
+
execute_or_queue_command(command, &block)
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Lists all ACL Policies owned by a project in either the specified location (
|
|
294
|
+
# region) or all locations. The location should have the following format: * `
|
|
295
|
+
# projects/`project_id`/locations/`location_id`` If `location_id` is specified
|
|
296
|
+
# as `-` (wildcard), then all regions available to the project are queried, and
|
|
297
|
+
# the results are aggregated.
|
|
298
|
+
# @param [String] parent
|
|
299
|
+
# Required. The resource name of the cluster location using the form: `projects/`
|
|
300
|
+
# project_id`/locations/`location_id`` where `location_id` refers to a Google
|
|
301
|
+
# Cloud region.
|
|
302
|
+
# @param [Fixnum] page_size
|
|
303
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
|
304
|
+
# value of 1000 will be used by the service. Regardless of the page_size value,
|
|
305
|
+
# the response may include a partial list and a caller should only rely on
|
|
306
|
+
# response's `next_page_token` to determine if there are more ACL policies left
|
|
307
|
+
# to be queried. The maximum value is 1000; values above 1000 will be coerced to
|
|
308
|
+
# 1000.
|
|
309
|
+
# @param [String] page_token
|
|
310
|
+
# Optional. The `next_page_token` value returned from a previous `
|
|
311
|
+
# ListAclPolicies` request, if any.
|
|
312
|
+
# @param [String] fields
|
|
313
|
+
# Selector specifying which fields to include in a partial response.
|
|
314
|
+
# @param [String] quota_user
|
|
315
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
316
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
317
|
+
# @param [Google::Apis::RequestOptions] options
|
|
318
|
+
# Request-specific options
|
|
319
|
+
#
|
|
320
|
+
# @yield [result, err] Result & error if block supplied
|
|
321
|
+
# @yieldparam result [Google::Apis::RedisV1::ListAclPoliciesResponse] parsed result object
|
|
322
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
323
|
+
#
|
|
324
|
+
# @return [Google::Apis::RedisV1::ListAclPoliciesResponse]
|
|
325
|
+
#
|
|
326
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
327
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
328
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
329
|
+
def list_project_location_acl_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
330
|
+
command = make_simple_command(:get, 'v1/{+parent}/aclPolicies', options)
|
|
331
|
+
command.response_representation = Google::Apis::RedisV1::ListAclPoliciesResponse::Representation
|
|
332
|
+
command.response_class = Google::Apis::RedisV1::ListAclPoliciesResponse
|
|
333
|
+
command.params['parent'] = parent unless parent.nil?
|
|
334
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
335
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
336
|
+
command.query['fields'] = fields unless fields.nil?
|
|
337
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
338
|
+
execute_or_queue_command(command, &block)
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# Updates the ACL policy. The operation applies the updated ACL policy to all of
|
|
342
|
+
# the linked clusters. If Memorystore can apply the policy to all clusters, then
|
|
343
|
+
# the operation returns a SUCCESS status. If Memorystore can't apply the policy
|
|
344
|
+
# to all clusters, then to ensure eventual consistency, Memorystore uses
|
|
345
|
+
# reconciliation to apply the policy to the failed clusters. Completed
|
|
346
|
+
# longrunning.Operation will contain the new ACL Policy object in the response
|
|
347
|
+
# field.
|
|
348
|
+
# @param [String] name
|
|
349
|
+
# Identifier. Full resource path of the ACL policy.
|
|
350
|
+
# @param [Google::Apis::RedisV1::AclPolicy] acl_policy_object
|
|
351
|
+
# @param [String] request_id
|
|
352
|
+
# Optional. Idempotent request UUID.
|
|
353
|
+
# @param [String] update_mask
|
|
354
|
+
# Optional. Mask of fields to be updated. At least one path must be supplied in
|
|
355
|
+
# this field. The elements of the repeated paths field may only include these
|
|
356
|
+
# fields from `AclPolicy`: * `rules`
|
|
357
|
+
# @param [String] fields
|
|
358
|
+
# Selector specifying which fields to include in a partial response.
|
|
359
|
+
# @param [String] quota_user
|
|
360
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
361
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
362
|
+
# @param [Google::Apis::RequestOptions] options
|
|
363
|
+
# Request-specific options
|
|
364
|
+
#
|
|
365
|
+
# @yield [result, err] Result & error if block supplied
|
|
366
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
|
367
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
368
|
+
#
|
|
369
|
+
# @return [Google::Apis::RedisV1::Operation]
|
|
370
|
+
#
|
|
371
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
372
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
373
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
374
|
+
def patch_project_location_acl_policy(name, acl_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
375
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
376
|
+
command.request_representation = Google::Apis::RedisV1::AclPolicy::Representation
|
|
377
|
+
command.request_object = acl_policy_object
|
|
378
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
|
379
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
|
380
|
+
command.params['name'] = name unless name.nil?
|
|
381
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
382
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
383
|
+
command.query['fields'] = fields unless fields.nil?
|
|
384
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
385
|
+
execute_or_queue_command(command, &block)
|
|
386
|
+
end
|
|
387
|
+
|
|
169
388
|
# Get a backup collection.
|
|
170
389
|
# @param [String] name
|
|
171
390
|
# Required. Redis backupCollection resource name using the form: `projects/`
|
|
@@ -388,6 +607,40 @@ module Google
|
|
|
388
607
|
execute_or_queue_command(command, &block)
|
|
389
608
|
end
|
|
390
609
|
|
|
610
|
+
# Adds a token auth user for a token based auth enabled cluster.
|
|
611
|
+
# @param [String] cluster
|
|
612
|
+
# Required. The cluster resource that this token auth user will be added for.
|
|
613
|
+
# Format: projects/`project`/locations/`location`/clusters/`cluster`
|
|
614
|
+
# @param [Google::Apis::RedisV1::AddTokenAuthUserRequest] add_token_auth_user_request_object
|
|
615
|
+
# @param [String] fields
|
|
616
|
+
# Selector specifying which fields to include in a partial response.
|
|
617
|
+
# @param [String] quota_user
|
|
618
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
619
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
620
|
+
# @param [Google::Apis::RequestOptions] options
|
|
621
|
+
# Request-specific options
|
|
622
|
+
#
|
|
623
|
+
# @yield [result, err] Result & error if block supplied
|
|
624
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
|
625
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
626
|
+
#
|
|
627
|
+
# @return [Google::Apis::RedisV1::Operation]
|
|
628
|
+
#
|
|
629
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
630
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
631
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
632
|
+
def add_cluster_token_auth_user(cluster, add_token_auth_user_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
633
|
+
command = make_simple_command(:post, 'v1/{+cluster}:addTokenAuthUser', options)
|
|
634
|
+
command.request_representation = Google::Apis::RedisV1::AddTokenAuthUserRequest::Representation
|
|
635
|
+
command.request_object = add_token_auth_user_request_object
|
|
636
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
|
637
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
|
638
|
+
command.params['cluster'] = cluster unless cluster.nil?
|
|
639
|
+
command.query['fields'] = fields unless fields.nil?
|
|
640
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
641
|
+
execute_or_queue_command(command, &block)
|
|
642
|
+
end
|
|
643
|
+
|
|
391
644
|
# Backup Redis Cluster. If this is the first time a backup is being created, a
|
|
392
645
|
# backup collection will be created at the backend, and this backup belongs to
|
|
393
646
|
# this collection. Both collection and backup will have a resource name. Backup
|
|
@@ -597,8 +850,8 @@ module Google
|
|
|
597
850
|
# response may include a partial list and a caller should only rely on response'
|
|
598
851
|
# s `next_page_token` to determine if there are more clusters left to be queried.
|
|
599
852
|
# @param [String] page_token
|
|
600
|
-
# The `next_page_token` value returned from a previous ListClusters request,
|
|
601
|
-
# any.
|
|
853
|
+
# The `next_page_token` value returned from a previous `ListClusters` request,
|
|
854
|
+
# if any.
|
|
602
855
|
# @param [String] fields
|
|
603
856
|
# Selector specifying which fields to include in a partial response.
|
|
604
857
|
# @param [String] quota_user
|
|
@@ -709,6 +962,282 @@ module Google
|
|
|
709
962
|
execute_or_queue_command(command, &block)
|
|
710
963
|
end
|
|
711
964
|
|
|
965
|
+
# Adds a auth token for a user of a token based auth enabled cluster.
|
|
966
|
+
# @param [String] token_auth_user
|
|
967
|
+
# Required. The name of the token auth user resource that this auth token will
|
|
968
|
+
# be added for. Format: projects/`project`/locations/`location`/clusters/`
|
|
969
|
+
# cluster`/tokenAuthUsers/`token_auth_user`
|
|
970
|
+
# @param [Google::Apis::RedisV1::AddAuthTokenRequest] add_auth_token_request_object
|
|
971
|
+
# @param [String] fields
|
|
972
|
+
# Selector specifying which fields to include in a partial response.
|
|
973
|
+
# @param [String] quota_user
|
|
974
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
975
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
976
|
+
# @param [Google::Apis::RequestOptions] options
|
|
977
|
+
# Request-specific options
|
|
978
|
+
#
|
|
979
|
+
# @yield [result, err] Result & error if block supplied
|
|
980
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
|
981
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
982
|
+
#
|
|
983
|
+
# @return [Google::Apis::RedisV1::Operation]
|
|
984
|
+
#
|
|
985
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
986
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
987
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
988
|
+
def add_token_auth_user_auth_token(token_auth_user, add_auth_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
989
|
+
command = make_simple_command(:post, 'v1/{+tokenAuthUser}:addAuthToken', options)
|
|
990
|
+
command.request_representation = Google::Apis::RedisV1::AddAuthTokenRequest::Representation
|
|
991
|
+
command.request_object = add_auth_token_request_object
|
|
992
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
|
993
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
|
994
|
+
command.params['tokenAuthUser'] = token_auth_user unless token_auth_user.nil?
|
|
995
|
+
command.query['fields'] = fields unless fields.nil?
|
|
996
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
997
|
+
execute_or_queue_command(command, &block)
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
# Deletes a token auth user for a token based auth enabled cluster.
|
|
1001
|
+
# @param [String] name
|
|
1002
|
+
# Required. The name of the token auth user to delete. Format: projects/`project`
|
|
1003
|
+
# /locations/`location`/clusters/`cluster`/tokenAuthUsers/`token_auth_user`
|
|
1004
|
+
# @param [Boolean] force
|
|
1005
|
+
# Optional. If set to true, any child auth tokens of this user will also be
|
|
1006
|
+
# deleted. Otherwise, the request will only work if the user has no auth tokens.
|
|
1007
|
+
# @param [String] request_id
|
|
1008
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
1009
|
+
# request ID so that if you must retry your request, the server will know to
|
|
1010
|
+
# ignore the request if it has already been completed. The server will guarantee
|
|
1011
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
|
1012
|
+
# situation where you make an initial request and the request times out. If you
|
|
1013
|
+
# make the request again with the same request ID, the server can check if
|
|
1014
|
+
# original operation with the same request ID was received, and if so, will
|
|
1015
|
+
# ignore the second request. This prevents clients from accidentally creating
|
|
1016
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
|
1017
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
1018
|
+
# @param [String] fields
|
|
1019
|
+
# Selector specifying which fields to include in a partial response.
|
|
1020
|
+
# @param [String] quota_user
|
|
1021
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1022
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1023
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1024
|
+
# Request-specific options
|
|
1025
|
+
#
|
|
1026
|
+
# @yield [result, err] Result & error if block supplied
|
|
1027
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
|
1028
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1029
|
+
#
|
|
1030
|
+
# @return [Google::Apis::RedisV1::Operation]
|
|
1031
|
+
#
|
|
1032
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1033
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1034
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1035
|
+
def delete_project_location_cluster_token_auth_user(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1036
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
1037
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
|
1038
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
|
1039
|
+
command.params['name'] = name unless name.nil?
|
|
1040
|
+
command.query['force'] = force unless force.nil?
|
|
1041
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
1042
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1043
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1044
|
+
execute_or_queue_command(command, &block)
|
|
1045
|
+
end
|
|
1046
|
+
|
|
1047
|
+
# Gets a specific token auth user for a basic auth enabled cluster.
|
|
1048
|
+
# @param [String] name
|
|
1049
|
+
# Required. The name of token auth user for a token based auth enabled cluster.
|
|
1050
|
+
# Format: projects/`project`/locations/`location`/clusters/`cluster`/
|
|
1051
|
+
# tokenAuthUsers/`token_auth_user`
|
|
1052
|
+
# @param [String] fields
|
|
1053
|
+
# Selector specifying which fields to include in a partial response.
|
|
1054
|
+
# @param [String] quota_user
|
|
1055
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1056
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1057
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1058
|
+
# Request-specific options
|
|
1059
|
+
#
|
|
1060
|
+
# @yield [result, err] Result & error if block supplied
|
|
1061
|
+
# @yieldparam result [Google::Apis::RedisV1::TokenAuthUser] parsed result object
|
|
1062
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1063
|
+
#
|
|
1064
|
+
# @return [Google::Apis::RedisV1::TokenAuthUser]
|
|
1065
|
+
#
|
|
1066
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1067
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1068
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1069
|
+
def get_project_location_cluster_token_auth_user(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1070
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
1071
|
+
command.response_representation = Google::Apis::RedisV1::TokenAuthUser::Representation
|
|
1072
|
+
command.response_class = Google::Apis::RedisV1::TokenAuthUser
|
|
1073
|
+
command.params['name'] = name unless name.nil?
|
|
1074
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1075
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1076
|
+
execute_or_queue_command(command, &block)
|
|
1077
|
+
end
|
|
1078
|
+
|
|
1079
|
+
# Lists all the token auth users for a token based auth enabled cluster.
|
|
1080
|
+
# @param [String] parent
|
|
1081
|
+
# Required. The parent resource that this token based auth user will be listed
|
|
1082
|
+
# for. Format: projects/`project`/locations/`location`/clusters/`cluster`
|
|
1083
|
+
# @param [String] filter
|
|
1084
|
+
# Optional. Expression for filtering results.
|
|
1085
|
+
# @param [String] order_by
|
|
1086
|
+
# Optional. Sort results by a defined order.
|
|
1087
|
+
# @param [Fixnum] page_size
|
|
1088
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
|
1089
|
+
# value of 1000 will be used by the service. Regardless of the page_size value,
|
|
1090
|
+
# the response may include a partial list and a caller should only rely on
|
|
1091
|
+
# response's The maximum value is 1000; values above 1000 will be coerced to
|
|
1092
|
+
# 1000. `next_page_token` to determine if there are more clusters left to be
|
|
1093
|
+
# queried.
|
|
1094
|
+
# @param [String] page_token
|
|
1095
|
+
# Optional. The `next_page_token` value returned from a previous [
|
|
1096
|
+
# ListTokenAuthUsers] request, if any.
|
|
1097
|
+
# @param [String] fields
|
|
1098
|
+
# Selector specifying which fields to include in a partial response.
|
|
1099
|
+
# @param [String] quota_user
|
|
1100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1102
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1103
|
+
# Request-specific options
|
|
1104
|
+
#
|
|
1105
|
+
# @yield [result, err] Result & error if block supplied
|
|
1106
|
+
# @yieldparam result [Google::Apis::RedisV1::ListTokenAuthUsersResponse] parsed result object
|
|
1107
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1108
|
+
#
|
|
1109
|
+
# @return [Google::Apis::RedisV1::ListTokenAuthUsersResponse]
|
|
1110
|
+
#
|
|
1111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1114
|
+
def list_project_location_cluster_token_auth_users(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1115
|
+
command = make_simple_command(:get, 'v1/{+parent}/tokenAuthUsers', options)
|
|
1116
|
+
command.response_representation = Google::Apis::RedisV1::ListTokenAuthUsersResponse::Representation
|
|
1117
|
+
command.response_class = Google::Apis::RedisV1::ListTokenAuthUsersResponse
|
|
1118
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1119
|
+
command.query['filter'] = filter unless filter.nil?
|
|
1120
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1121
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1122
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1123
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1125
|
+
execute_or_queue_command(command, &block)
|
|
1126
|
+
end
|
|
1127
|
+
|
|
1128
|
+
# Removes a auth token for a user of a token based auth enabled instance.
|
|
1129
|
+
# @param [String] name
|
|
1130
|
+
# Required. The name of the token auth user resource that this auth token will
|
|
1131
|
+
# be deleted from. Format: projects/`project`/locations/`location`/clusters/`
|
|
1132
|
+
# cluster`/tokenAuthUsers/`token_auth_user`/authTokens/`auth_token`
|
|
1133
|
+
# @param [String] fields
|
|
1134
|
+
# Selector specifying which fields to include in a partial response.
|
|
1135
|
+
# @param [String] quota_user
|
|
1136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1138
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1139
|
+
# Request-specific options
|
|
1140
|
+
#
|
|
1141
|
+
# @yield [result, err] Result & error if block supplied
|
|
1142
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
|
1143
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1144
|
+
#
|
|
1145
|
+
# @return [Google::Apis::RedisV1::Operation]
|
|
1146
|
+
#
|
|
1147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1150
|
+
def delete_project_location_cluster_token_auth_user_auth_token(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1151
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
1152
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
|
1153
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
|
1154
|
+
command.params['name'] = name unless name.nil?
|
|
1155
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1157
|
+
execute_or_queue_command(command, &block)
|
|
1158
|
+
end
|
|
1159
|
+
|
|
1160
|
+
# Gets a specific auth token for a specific token auth user.
|
|
1161
|
+
# @param [String] name
|
|
1162
|
+
# Required. The name of auth token for a token based auth enabled cluster.
|
|
1163
|
+
# Format: projects/`project`/locations/`location`/clusters/`cluster`/
|
|
1164
|
+
# tokenAuthUsers/`token_auth_user`/authTokens/`auth_token`
|
|
1165
|
+
# @param [String] fields
|
|
1166
|
+
# Selector specifying which fields to include in a partial response.
|
|
1167
|
+
# @param [String] quota_user
|
|
1168
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1169
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1170
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1171
|
+
# Request-specific options
|
|
1172
|
+
#
|
|
1173
|
+
# @yield [result, err] Result & error if block supplied
|
|
1174
|
+
# @yieldparam result [Google::Apis::RedisV1::AuthToken] parsed result object
|
|
1175
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1176
|
+
#
|
|
1177
|
+
# @return [Google::Apis::RedisV1::AuthToken]
|
|
1178
|
+
#
|
|
1179
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1180
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1181
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1182
|
+
def get_project_location_cluster_token_auth_user_auth_token(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1183
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
1184
|
+
command.response_representation = Google::Apis::RedisV1::AuthToken::Representation
|
|
1185
|
+
command.response_class = Google::Apis::RedisV1::AuthToken
|
|
1186
|
+
command.params['name'] = name unless name.nil?
|
|
1187
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1189
|
+
execute_or_queue_command(command, &block)
|
|
1190
|
+
end
|
|
1191
|
+
|
|
1192
|
+
# Lists all the auth tokens for a specific token auth user.
|
|
1193
|
+
# @param [String] parent
|
|
1194
|
+
# Required. The parent resource that this auth token will be listed for. Format:
|
|
1195
|
+
# projects/`project`/locations/`location`/clusters/`cluster`/tokenAuthUsers/`
|
|
1196
|
+
# token_auth_user`
|
|
1197
|
+
# @param [String] filter
|
|
1198
|
+
# Optional. Expression for filtering results.
|
|
1199
|
+
# @param [String] order_by
|
|
1200
|
+
# Optional. Sort results by a defined order.
|
|
1201
|
+
# @param [Fixnum] page_size
|
|
1202
|
+
# Optional. The maximum number of items to return. The maximum value is 1000;
|
|
1203
|
+
# values above 1000 will be coerced to 1000. If not specified, a default value
|
|
1204
|
+
# of 1000 will be used by the service. Regardless of the page_size value, the
|
|
1205
|
+
# response may include a partial list and a caller should only rely on response'
|
|
1206
|
+
# s `next_page_token` to determine if there are more clusters left to be queried.
|
|
1207
|
+
# @param [String] page_token
|
|
1208
|
+
# Optional. The `next_page_token` value returned from a previous [
|
|
1209
|
+
# ListTokenAuthUsers] request, if any.
|
|
1210
|
+
# @param [String] fields
|
|
1211
|
+
# Selector specifying which fields to include in a partial response.
|
|
1212
|
+
# @param [String] quota_user
|
|
1213
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1214
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1215
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1216
|
+
# Request-specific options
|
|
1217
|
+
#
|
|
1218
|
+
# @yield [result, err] Result & error if block supplied
|
|
1219
|
+
# @yieldparam result [Google::Apis::RedisV1::ListAuthTokensResponse] parsed result object
|
|
1220
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1221
|
+
#
|
|
1222
|
+
# @return [Google::Apis::RedisV1::ListAuthTokensResponse]
|
|
1223
|
+
#
|
|
1224
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1225
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1226
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1227
|
+
def list_project_location_cluster_token_auth_user_auth_tokens(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1228
|
+
command = make_simple_command(:get, 'v1/{+parent}/authTokens', options)
|
|
1229
|
+
command.response_representation = Google::Apis::RedisV1::ListAuthTokensResponse::Representation
|
|
1230
|
+
command.response_class = Google::Apis::RedisV1::ListAuthTokensResponse
|
|
1231
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1232
|
+
command.query['filter'] = filter unless filter.nil?
|
|
1233
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1234
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1235
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1236
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1237
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1238
|
+
execute_or_queue_command(command, &block)
|
|
1239
|
+
end
|
|
1240
|
+
|
|
712
1241
|
# Creates a Redis instance based on the specified tier and memory size. By
|
|
713
1242
|
# default, the instance is accessible from the project's [default network](https:
|
|
714
1243
|
# //cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and
|
data/lib/google/apis/redis_v1.rb
CHANGED
|
@@ -31,6 +31,12 @@ module Google
|
|
|
31
31
|
|
|
32
32
|
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
34
|
+
|
|
35
|
+
# See your Google Cloud Memorystore for Redis data and the email address of your Google Account
|
|
36
|
+
AUTH_REDIS_READ_ONLY = 'https://www.googleapis.com/auth/redis.read-only'
|
|
37
|
+
|
|
38
|
+
# See, edit, configure, and delete your Google Cloud Memorystore for Redis data and see the email address for your Google Account
|
|
39
|
+
AUTH_REDIS_READ_WRITE = 'https://www.googleapis.com/auth/redis.read-write'
|
|
34
40
|
end
|
|
35
41
|
end
|
|
36
42
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-redis_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.89.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.89.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|