Debian Codegraph @

docs/dyn/redis_v1.projects.locations.aclPolicies.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="redis_v1.html">Google Cloud Memorystore for Redis API</a> . <a href="redis_v1.projects.html">projects</a> . <a href="redis_v1.projects.locations.html">locations</a> . <a href="redis_v1.projects.locations.aclPolicies.html">aclPolicies</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, aclPolicyId=None, body=None, requestId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates an ACL policy. The creation is executed synchronously and the policy is available for use immediately after the RPC returns.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, etag=None, requestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a specific ACL policy. This action will delete the ACL policy and all the rules associated with it. An ACL policy cannot be deleted if it is attached to a cluster.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the details of a specific Redis Cluster ACL policy.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all ACL policies owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the ACL policy. The operation applies the updated ACL policy to all of the linked clusters. If Memorystore can apply the policy to all clusters, then the operation returns a SUCCESS status. If Memorystore can't apply the policy to all clusters, then to ensure eventual consistency, Memorystore uses reconciliation to apply the policy to the failed clusters. Completed longrunning.Operation will contain the new ACL policy object in the response field.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, aclPolicyId=None, body=None, requestId=None, x__xgafv=None)</code>
106 <pre>Creates an ACL policy. The creation is executed synchronously and the policy is available for use immediately after the RPC returns.
107
108 Args:
109 parent: string, Required. The resource name of the cluster location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # The ACL policy resource.
114 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag for the ACL policy.
115 &quot;name&quot;: &quot;A String&quot;, # Identifier. Full resource path of the ACL policy.
116 &quot;rules&quot;: [ # Required. The ACL rules within the ACL policy.
117 { # A single ACL rule which defines the policy for a user.
118 &quot;rule&quot;: &quot;A String&quot;, # Required. The rule to be applied to the username. Ex: &quot;on &gt;password123 ~* +@all&quot; The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
119 &quot;username&quot;: &quot;A String&quot;, # Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Redis OSS.
120 },
121 ],
122 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the ACL policy.
123 &quot;version&quot;: &quot;A String&quot;, # Output only. Deprecated: Used in drift resolution.
124 }
125
126 aclPolicyId: string, Required. The logical name of the ACL policy in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the customer project / location
127 requestId: string, Optional. Idempotent request UUID. .
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133 Returns:
134 An object of the form:
135
136 { # The ACL policy resource.
137 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag for the ACL policy.
138 &quot;name&quot;: &quot;A String&quot;, # Identifier. Full resource path of the ACL policy.
139 &quot;rules&quot;: [ # Required. The ACL rules within the ACL policy.
140 { # A single ACL rule which defines the policy for a user.
141 &quot;rule&quot;: &quot;A String&quot;, # Required. The rule to be applied to the username. Ex: &quot;on &gt;password123 ~* +@all&quot; The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
142 &quot;username&quot;: &quot;A String&quot;, # Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Redis OSS.
143 },
144 ],
145 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the ACL policy.
146 &quot;version&quot;: &quot;A String&quot;, # Output only. Deprecated: Used in drift resolution.
147 }</pre>
148 </div>
149
150 <div class="method">
151 <code class="details" id="delete">delete(name, etag=None, requestId=None, x__xgafv=None)</code>
152 <pre>Deletes a specific ACL policy. This action will delete the ACL policy and all the rules associated with it. An ACL policy cannot be deleted if it is attached to a cluster.
153
154 Args:
155 name: string, Required. Redis ACL policy resource name using the form: `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where `location_id` refers to a GCP region. (required)
156 etag: string, Optional. Etag of the ACL policy. If this is different from the server&#x27;s etag, the request will fail with an ABORTED error.
157 requestId: string, Optional. Idempotent request UUID.
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
162
163 Returns:
164 An object of the form:
165
166 { # This resource represents a long-running operation that is the result of a network API call.
167 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
168 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
169 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
170 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
171 {
172 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
173 },
174 ],
175 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
176 },
177 &quot;metadata&quot;: { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. }
178 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
179 },
180 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
181 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
182 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
183 },
184 }</pre>
185 </div>
186
187 <div class="method">
188 <code class="details" id="get">get(name, x__xgafv=None)</code>
189 <pre>Gets the details of a specific Redis Cluster ACL policy.
190
191 Args:
192 name: string, Required. Redis ACL policy resource name using the form: `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}` where `location_id` refers to a GCP region. (required)
193 x__xgafv: string, V1 error format.
194 Allowed values
195 1 - v1 error format
196 2 - v2 error format
197
198 Returns:
199 An object of the form:
200
201 { # The ACL policy resource.
202 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag for the ACL policy.
203 &quot;name&quot;: &quot;A String&quot;, # Identifier. Full resource path of the ACL policy.
204 &quot;rules&quot;: [ # Required. The ACL rules within the ACL policy.
205 { # A single ACL rule which defines the policy for a user.
206 &quot;rule&quot;: &quot;A String&quot;, # Required. The rule to be applied to the username. Ex: &quot;on &gt;password123 ~* +@all&quot; The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
207 &quot;username&quot;: &quot;A String&quot;, # Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Redis OSS.
208 },
209 ],
210 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the ACL policy.
211 &quot;version&quot;: &quot;A String&quot;, # Output only. Deprecated: Used in drift resolution.
212 }</pre>
213 </div>
214
215 <div class="method">
216 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
217 <pre>Lists all ACL policies owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.
218
219 Args:
220 parent: string, Required. The resource name of the ACL policy location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google Cloud region. (required)
221 pageSize: integer, Optional. The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response&#x27;s `next_page_token` to determine if there are more ACL policies left to be queried. The maximum value is 1000; values above 1000 will be coerced to 1000.
222 pageToken: string, Optional. The `next_page_token` value returned from a previous `ListAclPolicies` request, if any.
223 x__xgafv: string, V1 error format.
224 Allowed values
225 1 - v1 error format
226 2 - v2 error format
227
228 Returns:
229 An object of the form:
230
231 { # Response for `ListAclPolicies`.
232 &quot;aclPolicies&quot;: [ # A list of ACL policies in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is &quot;-&quot;, all regions available to the project are queried, and the results aggregated.
233 { # The ACL policy resource.
234 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag for the ACL policy.
235 &quot;name&quot;: &quot;A String&quot;, # Identifier. Full resource path of the ACL policy.
236 &quot;rules&quot;: [ # Required. The ACL rules within the ACL policy.
237 { # A single ACL rule which defines the policy for a user.
238 &quot;rule&quot;: &quot;A String&quot;, # Required. The rule to be applied to the username. Ex: &quot;on &gt;password123 ~* +@all&quot; The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
239 &quot;username&quot;: &quot;A String&quot;, # Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Redis OSS.
240 },
241 ],
242 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the ACL policy.
243 &quot;version&quot;: &quot;A String&quot;, # Output only. Deprecated: Used in drift resolution.
244 },
245 ],
246 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
247 &quot;unreachable&quot;: [ # Unordered list. Locations that could not be reached.
248 &quot;A String&quot;,
249 ],
250 }</pre>
251 </div>
252
253 <div class="method">
254 <code class="details" id="list_next">list_next()</code>
255 <pre>Retrieves the next page of results.
256
257 Args:
258 previous_request: The request for the previous page. (required)
259 previous_response: The response from the request for the previous page. (required)
260
261 Returns:
262 A request object that you can call &#x27;execute()&#x27; on to request the next
263 page. Returns None if there are no more items in the collection.
264 </pre>
265 </div>
266
267 <div class="method">
268 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
269 <pre>Updates the ACL policy. The operation applies the updated ACL policy to all of the linked clusters. If Memorystore can apply the policy to all clusters, then the operation returns a SUCCESS status. If Memorystore can&#x27;t apply the policy to all clusters, then to ensure eventual consistency, Memorystore uses reconciliation to apply the policy to the failed clusters. Completed longrunning.Operation will contain the new ACL policy object in the response field.
270
271 Args:
272 name: string, Identifier. Full resource path of the ACL policy. (required)
273 body: object, The request body.
274 The object takes the form of:
275
276 { # The ACL policy resource.
277 &quot;etag&quot;: &quot;A String&quot;, # Output only. Etag for the ACL policy.
278 &quot;name&quot;: &quot;A String&quot;, # Identifier. Full resource path of the ACL policy.
279 &quot;rules&quot;: [ # Required. The ACL rules within the ACL policy.
280 { # A single ACL rule which defines the policy for a user.
281 &quot;rule&quot;: &quot;A String&quot;, # Required. The rule to be applied to the username. Ex: &quot;on &gt;password123 ~* +@all&quot; The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
282 &quot;username&quot;: &quot;A String&quot;, # Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Redis OSS.
283 },
284 ],
285 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the ACL policy.
286 &quot;version&quot;: &quot;A String&quot;, # Output only. Deprecated: Used in drift resolution.
287 }
288
289 requestId: string, Optional. Idempotent request UUID.
290 updateMask: string, Optional. Mask of fields to be updated. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from `AclPolicy`: * `rules`
291 x__xgafv: string, V1 error format.
292 Allowed values
293 1 - v1 error format
294 2 - v2 error format
295
296 Returns:
297 An object of the form:
298
299 { # This resource represents a long-running operation that is the result of a network API call.
300 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
301 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
302 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
303 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
304 {
305 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
306 },
307 ],
308 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
309 },
310 &quot;metadata&quot;: { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. }
311 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
312 },
313 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
314 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
315 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
316 },
317 }</pre>
318 </div>
319
320 </body></html>