blob: ad5457d41e23df81df9e81fb47c878cca6b36924 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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="memcache_v1beta2.html">Cloud Memorystore for Memcached API</a> . <a href="memcache_v1beta2.projects.html">projects</a> . <a href="memcache_v1beta2.projects.locations.html">locations</a> . <a href="memcache_v1beta2.projects.locations.instances.html">instances</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#applyParameters">applyParameters(name, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">ApplyParameters will update current set of Parameters to the set of</p>
80<p class="toc_element">
81 <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a new Instance in a given project and location.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a single Instance.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets details of a single Instance.</p>
89<p class="toc_element">
90 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Gets the access control policy for a resource.</p>
92<p class="toc_element">
93 <code><a href="#list">list(parent, filter=None, pageToken=None, orderBy=None, pageSize=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Lists Instances in a given project and location.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Updates an existing Instance in a given project and location.</p>
101<p class="toc_element">
102 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Sets the access control policy on the specified resource. Replaces any</p>
104<p class="toc_element">
105 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
107<p class="toc_element">
108 <code><a href="#updateParameters">updateParameters(name, body=None, x__xgafv=None)</a></code></p>
109<p class="firstline">Updates the defined Memcached Parameters for an existing Instance.</p>
110<h3>Method Details</h3>
111<div class="method">
112 <code class="details" id="applyParameters">applyParameters(name, body=None, x__xgafv=None)</code>
113 <pre>ApplyParameters will update current set of Parameters to the set of
114specified nodes of the Memcached Instance.
115
116Args:
117 name: string, Required. Resource name of the Memcached instance for which parameter group updates
118should be applied. (required)
119 body: object, The request body.
120 The object takes the form of:
121
122{ # Request for ApplyParameters.
123 &quot;nodeIds&quot;: [ # Nodes to which we should apply the instance-level parameter group.
124 &quot;A String&quot;,
125 ],
126 &quot;applyAll&quot;: True or False, # Whether to apply instance-level parameter group to all nodes. If set to
127 # true, will explicitly restrict users from specifying any nodes, and apply
128 # parameter group updates to all nodes within the instance.
129 }
130
131 x__xgafv: string, V1 error format.
132 Allowed values
133 1 - v1 error format
134 2 - v2 error format
135
136Returns:
137 An object of the form:
138
139 { # This resource represents a long-running operation that is the result of a
140 # network API call.
141 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
142 # method returns no data on success, such as `Delete`, the response is
143 # `google.protobuf.Empty`. If the original method is standard
144 # `Get`/`Create`/`Update`, the response should be the resource. For other
145 # methods, the response should have the type `XxxResponse`, where `Xxx`
146 # is the original method name. For example, if the original method name
147 # is `TakeSnapshot()`, the inferred response type is
148 # `TakeSnapshotResponse`.
149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150 },
151 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
152 # originally returns it. If you use the default HTTP mapping, the
153 # `name` should be a resource name ending with `operations/{unique_id}`.
154 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
155 # different programming environments, including REST APIs and RPC APIs. It is
156 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
157 # three pieces of data: error code, error message, and error details.
158 #
159 # You can find out more about this error model and how to work with it in the
160 # [API Design Guide](https://cloud.google.com/apis/design/errors).
161 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
162 # message types for APIs to use.
163 {
164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
165 },
166 ],
167 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
168 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
169 # user-facing error message should be localized and sent in the
170 # google.rpc.Status.details field, or localized by the client.
171 },
172 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
173 # contains progress information and common metadata such as create time.
174 # Some services might not provide such metadata. Any method that returns a
175 # long-running operation should document the metadata type, if any.
176 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
177 },
178 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
179 # If `true`, the operation is completed, and either `error` or `response` is
180 # available.
181 }</pre>
182</div>
183
184<div class="method">
185 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code>
186 <pre>Creates a new Instance in a given project and location.
187
188Args:
189 parent: string, Required. The resource name of the instance location using the form:
190 `projects/{project_id}/locations/{location_id}`
191where `location_id` refers to a GCP region (required)
192 body: object, The request body.
193 The object takes the form of:
194
195{
196 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User provided name for the instance only used for display
197 # purposes. Cannot be more than 80 characters.
198 &quot;nodeCount&quot;: 42, # Required. Number of nodes in the Memcached instance.
199 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
200 # Refer to cloud documentation on labels for more details.
201 # https://cloud.google.com/compute/docs/labeling-resources
202 &quot;a_key&quot;: &quot;A String&quot;,
203 },
204 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
205 &quot;zones&quot;: [ # Optional. Zones where Memcached nodes should be provisioned in.
206 # Memcached nodes will be equally distributed across these zones. If not
207 # provided, the service will by default create nodes in all zones in the
208 # region for the instance.
209 &quot;A String&quot;,
210 ],
211 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the instance was updated.
212 &quot;parameters&quot;: { # Optional: User defined parameters to apply to the memcached process
213 # on each node.
214 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
215 # can use this id to determine if the parameters associated with the instance
216 # differ from the parameters associated with the nodes and any action needs
217 # to be taken to apply parameters on nodes.
218 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
219 &quot;a_key&quot;: &quot;A String&quot;,
220 },
221 },
222 &quot;memcacheNodes&quot;: [ # Output only. List of Memcached nodes.
223 # Refer to [Node] message for more details.
224 {
225 &quot;port&quot;: 42, # Output only. The port number of the Memcached server on this node.
226 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. Identifier of the Memcached node. The node id does not
227 # include project or location like the Memcached instance name.
228 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the Memcached node used by the
229 # clients to connect to the Memcached server on this node.
230 &quot;zone&quot;: &quot;A String&quot;, # Output only. Location (GCP Zone) for the Memcached node.
231 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Memcached node.
232 &quot;parameters&quot;: { # User defined parameters currently applied to the node.
233 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
234 # can use this id to determine if the parameters associated with the instance
235 # differ from the parameters associated with the nodes and any action needs
236 # to be taken to apply parameters on nodes.
237 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
238 &quot;a_key&quot;: &quot;A String&quot;,
239 },
240 },
241 },
242 ],
243 &quot;nodeConfig&quot;: { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes.
244 &quot;cpuCount&quot;: 42, # Required. Number of cpus per Memcached node.
245 &quot;memorySizeMb&quot;: 42, # Required. Memory size in MiB for each Memcached node.
246 },
247 &quot;memcacheVersion&quot;: &quot;A String&quot;, # Optional. The major version of Memcached software.
248 # If not provided, latest supported version will be used. Currently the
249 # latest supported major version is MEMCACHE_1_5.
250 # The minor version will be automatically determined by our system based on
251 # the latest supported minor version.
252 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # Optional. The full name of the Google Compute Engine
253 # [network](/compute/docs/networks-and-firewalls#networks) to which the
254 # instance is connected. If left unspecified, the `default` network
255 # will be used.
256 &quot;memcacheFullVersion&quot;: &quot;A String&quot;, # Output only. The full version of memcached server running on this instance.
257 # System automatically determines the full memcached version for an instance
258 # based on the input MemcacheVersion.
259 # The full version format will be &quot;memcached-1.5.16&quot;.
260 &quot;instanceMessages&quot;: [ # List of messages that describe current statuses of memcached instance.
261 {
262 &quot;code&quot;: &quot;A String&quot;, # A code that correspond to one type of user-facing message.
263 &quot;message&quot;: &quot;A String&quot;, # Message on memcached instance which will be exposed to users.
264 },
265 ],
266 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this Memcached instance.
267 &quot;name&quot;: &quot;A String&quot;, # Required. Unique name of the resource in this scope including project and
268 # location using the form:
269 # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
270 #
271 # Note: Memcached instances are managed and addressed at regional level so
272 # location_id here refers to a GCP region; however, users may choose which
273 # zones Memcached nodes within an instances should be provisioned in.
274 # Refer to [zones] field for more details.
275 &quot;discoveryEndpoint&quot;: &quot;A String&quot;, # Output only. Endpoint for Discovery API
276}
277
278 instanceId: string, Required. The logical name of the Memcached instance in the user
279project with the following restrictions:
280
281* Must contain only lowercase letters, numbers, and hyphens.
282* Must start with a letter.
283* Must be between 1-40 characters.
284* Must end with a number or a letter.
285* Must be unique within the user project / location
286 x__xgafv: string, V1 error format.
287 Allowed values
288 1 - v1 error format
289 2 - v2 error format
290
291Returns:
292 An object of the form:
293
294 { # This resource represents a long-running operation that is the result of a
295 # network API call.
296 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
297 # method returns no data on success, such as `Delete`, the response is
298 # `google.protobuf.Empty`. If the original method is standard
299 # `Get`/`Create`/`Update`, the response should be the resource. For other
300 # methods, the response should have the type `XxxResponse`, where `Xxx`
301 # is the original method name. For example, if the original method name
302 # is `TakeSnapshot()`, the inferred response type is
303 # `TakeSnapshotResponse`.
304 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
305 },
306 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
307 # originally returns it. If you use the default HTTP mapping, the
308 # `name` should be a resource name ending with `operations/{unique_id}`.
309 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
310 # different programming environments, including REST APIs and RPC APIs. It is
311 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
312 # three pieces of data: error code, error message, and error details.
313 #
314 # You can find out more about this error model and how to work with it in the
315 # [API Design Guide](https://cloud.google.com/apis/design/errors).
316 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
317 # message types for APIs to use.
318 {
319 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
320 },
321 ],
322 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
323 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
324 # user-facing error message should be localized and sent in the
325 # google.rpc.Status.details field, or localized by the client.
326 },
327 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
328 # contains progress information and common metadata such as create time.
329 # Some services might not provide such metadata. Any method that returns a
330 # long-running operation should document the metadata type, if any.
331 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
332 },
333 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
334 # If `true`, the operation is completed, and either `error` or `response` is
335 # available.
336 }</pre>
337</div>
338
339<div class="method">
340 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
341 <pre>Deletes a single Instance.
342
343Args:
344 name: string, Required. Memcached instance resource name in the format:
345 `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
346where `location_id` refers to a GCP region (required)
347 x__xgafv: string, V1 error format.
348 Allowed values
349 1 - v1 error format
350 2 - v2 error format
351
352Returns:
353 An object of the form:
354
355 { # This resource represents a long-running operation that is the result of a
356 # network API call.
357 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
358 # method returns no data on success, such as `Delete`, the response is
359 # `google.protobuf.Empty`. If the original method is standard
360 # `Get`/`Create`/`Update`, the response should be the resource. For other
361 # methods, the response should have the type `XxxResponse`, where `Xxx`
362 # is the original method name. For example, if the original method name
363 # is `TakeSnapshot()`, the inferred response type is
364 # `TakeSnapshotResponse`.
365 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
366 },
367 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
368 # originally returns it. If you use the default HTTP mapping, the
369 # `name` should be a resource name ending with `operations/{unique_id}`.
370 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
371 # different programming environments, including REST APIs and RPC APIs. It is
372 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
373 # three pieces of data: error code, error message, and error details.
374 #
375 # You can find out more about this error model and how to work with it in the
376 # [API Design Guide](https://cloud.google.com/apis/design/errors).
377 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
378 # message types for APIs to use.
379 {
380 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
381 },
382 ],
383 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
384 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
385 # user-facing error message should be localized and sent in the
386 # google.rpc.Status.details field, or localized by the client.
387 },
388 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
389 # contains progress information and common metadata such as create time.
390 # Some services might not provide such metadata. Any method that returns a
391 # long-running operation should document the metadata type, if any.
392 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
393 },
394 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
395 # If `true`, the operation is completed, and either `error` or `response` is
396 # available.
397 }</pre>
398</div>
399
400<div class="method">
401 <code class="details" id="get">get(name, x__xgafv=None)</code>
402 <pre>Gets details of a single Instance.
403
404Args:
405 name: string, Required. Memcached instance resource name in the format:
406 `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
407where `location_id` refers to a GCP region (required)
408 x__xgafv: string, V1 error format.
409 Allowed values
410 1 - v1 error format
411 2 - v2 error format
412
413Returns:
414 An object of the form:
415
416 {
417 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User provided name for the instance only used for display
418 # purposes. Cannot be more than 80 characters.
419 &quot;nodeCount&quot;: 42, # Required. Number of nodes in the Memcached instance.
420 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
421 # Refer to cloud documentation on labels for more details.
422 # https://cloud.google.com/compute/docs/labeling-resources
423 &quot;a_key&quot;: &quot;A String&quot;,
424 },
425 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
426 &quot;zones&quot;: [ # Optional. Zones where Memcached nodes should be provisioned in.
427 # Memcached nodes will be equally distributed across these zones. If not
428 # provided, the service will by default create nodes in all zones in the
429 # region for the instance.
430 &quot;A String&quot;,
431 ],
432 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the instance was updated.
433 &quot;parameters&quot;: { # Optional: User defined parameters to apply to the memcached process
434 # on each node.
435 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
436 # can use this id to determine if the parameters associated with the instance
437 # differ from the parameters associated with the nodes and any action needs
438 # to be taken to apply parameters on nodes.
439 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
440 &quot;a_key&quot;: &quot;A String&quot;,
441 },
442 },
443 &quot;memcacheNodes&quot;: [ # Output only. List of Memcached nodes.
444 # Refer to [Node] message for more details.
445 {
446 &quot;port&quot;: 42, # Output only. The port number of the Memcached server on this node.
447 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. Identifier of the Memcached node. The node id does not
448 # include project or location like the Memcached instance name.
449 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the Memcached node used by the
450 # clients to connect to the Memcached server on this node.
451 &quot;zone&quot;: &quot;A String&quot;, # Output only. Location (GCP Zone) for the Memcached node.
452 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Memcached node.
453 &quot;parameters&quot;: { # User defined parameters currently applied to the node.
454 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
455 # can use this id to determine if the parameters associated with the instance
456 # differ from the parameters associated with the nodes and any action needs
457 # to be taken to apply parameters on nodes.
458 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
459 &quot;a_key&quot;: &quot;A String&quot;,
460 },
461 },
462 },
463 ],
464 &quot;nodeConfig&quot;: { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes.
465 &quot;cpuCount&quot;: 42, # Required. Number of cpus per Memcached node.
466 &quot;memorySizeMb&quot;: 42, # Required. Memory size in MiB for each Memcached node.
467 },
468 &quot;memcacheVersion&quot;: &quot;A String&quot;, # Optional. The major version of Memcached software.
469 # If not provided, latest supported version will be used. Currently the
470 # latest supported major version is MEMCACHE_1_5.
471 # The minor version will be automatically determined by our system based on
472 # the latest supported minor version.
473 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # Optional. The full name of the Google Compute Engine
474 # [network](/compute/docs/networks-and-firewalls#networks) to which the
475 # instance is connected. If left unspecified, the `default` network
476 # will be used.
477 &quot;memcacheFullVersion&quot;: &quot;A String&quot;, # Output only. The full version of memcached server running on this instance.
478 # System automatically determines the full memcached version for an instance
479 # based on the input MemcacheVersion.
480 # The full version format will be &quot;memcached-1.5.16&quot;.
481 &quot;instanceMessages&quot;: [ # List of messages that describe current statuses of memcached instance.
482 {
483 &quot;code&quot;: &quot;A String&quot;, # A code that correspond to one type of user-facing message.
484 &quot;message&quot;: &quot;A String&quot;, # Message on memcached instance which will be exposed to users.
485 },
486 ],
487 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this Memcached instance.
488 &quot;name&quot;: &quot;A String&quot;, # Required. Unique name of the resource in this scope including project and
489 # location using the form:
490 # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
491 #
492 # Note: Memcached instances are managed and addressed at regional level so
493 # location_id here refers to a GCP region; however, users may choose which
494 # zones Memcached nodes within an instances should be provisioned in.
495 # Refer to [zones] field for more details.
496 &quot;discoveryEndpoint&quot;: &quot;A String&quot;, # Output only. Endpoint for Discovery API
497 }</pre>
498</div>
499
500<div class="method">
501 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
502 <pre>Gets the access control policy for a resource.
503Returns an empty policy if the resource exists and does not have a policy
504set.
505
506Args:
507 resource: string, REQUIRED: The resource for which the policy is being requested.
508See the operation documentation for the appropriate value for this field. (required)
509 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned.
510
511Valid values are 0, 1, and 3. Requests specifying an invalid value will be
512rejected.
513
514Requests for policies with any conditional bindings must specify version 3.
515Policies without any conditional bindings may specify any valid value or
516leave the field unset.
517
518To learn which resources support conditions in their IAM policies, see the
519[IAM
520documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
521 x__xgafv: string, V1 error format.
522 Allowed values
523 1 - v1 error format
524 2 - v2 error format
525
526Returns:
527 An object of the form:
528
529 { # An Identity and Access Management (IAM) policy, which specifies access
530 # controls for Google Cloud resources.
531 #
532 #
533 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
534 # `members` to a single `role`. Members can be user accounts, service accounts,
535 # Google groups, and domains (such as G Suite). A `role` is a named list of
536 # permissions; each `role` can be an IAM predefined role or a user-created
537 # custom role.
538 #
539 # For some types of Google Cloud resources, a `binding` can also specify a
540 # `condition`, which is a logical expression that allows access to a resource
541 # only if the expression evaluates to `true`. A condition can add constraints
542 # based on attributes of the request, the resource, or both. To learn which
543 # resources support conditions in their IAM policies, see the
544 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
545 #
546 # **JSON example:**
547 #
548 # {
549 # &quot;bindings&quot;: [
550 # {
551 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
552 # &quot;members&quot;: [
553 # &quot;user:mike@example.com&quot;,
554 # &quot;group:admins@example.com&quot;,
555 # &quot;domain:google.com&quot;,
556 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
557 # ]
558 # },
559 # {
560 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
561 # &quot;members&quot;: [
562 # &quot;user:eve@example.com&quot;
563 # ],
564 # &quot;condition&quot;: {
565 # &quot;title&quot;: &quot;expirable access&quot;,
566 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
567 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
568 # }
569 # }
570 # ],
571 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
572 # &quot;version&quot;: 3
573 # }
574 #
575 # **YAML example:**
576 #
577 # bindings:
578 # - members:
579 # - user:mike@example.com
580 # - group:admins@example.com
581 # - domain:google.com
582 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
583 # role: roles/resourcemanager.organizationAdmin
584 # - members:
585 # - user:eve@example.com
586 # role: roles/resourcemanager.organizationViewer
587 # condition:
588 # title: expirable access
589 # description: Does not grant access after Sep 2020
590 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
591 # - etag: BwWWja0YfJA=
592 # - version: 3
593 #
594 # For a description of IAM and its features, see the
595 # [IAM documentation](https://cloud.google.com/iam/docs/).
596 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
597 # prevent simultaneous updates of a policy from overwriting each other.
598 # It is strongly suggested that systems make use of the `etag` in the
599 # read-modify-write cycle to perform policy updates in order to avoid race
600 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
601 # systems are expected to put that etag in the request to `setIamPolicy` to
602 # ensure that their change will be applied to the same version of the policy.
603 #
604 # **Important:** If you use IAM Conditions, you must include the `etag` field
605 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
606 # you to overwrite a version `3` policy with a version `1` policy, and all of
607 # the conditions in the version `3` policy are lost.
608 &quot;version&quot;: 42, # Specifies the format of the policy.
609 #
610 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
611 # are rejected.
612 #
613 # Any operation that affects conditional role bindings must specify version
614 # `3`. This requirement applies to the following operations:
615 #
616 # * Getting a policy that includes a conditional role binding
617 # * Adding a conditional role binding to a policy
618 # * Changing a conditional role binding in a policy
619 # * Removing any role binding, with or without a condition, from a policy
620 # that includes conditions
621 #
622 # **Important:** If you use IAM Conditions, you must include the `etag` field
623 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
624 # you to overwrite a version `3` policy with a version `1` policy, and all of
625 # the conditions in the version `3` policy are lost.
626 #
627 # If a policy does not include any conditions, operations on that policy may
628 # specify any valid version or leave the field unset.
629 #
630 # To learn which resources support conditions in their IAM policies, see the
631 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
632 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
633 { # Specifies the audit configuration for a service.
634 # The configuration determines which permission types are logged, and what
635 # identities, if any, are exempted from logging.
636 # An AuditConfig must have one or more AuditLogConfigs.
637 #
638 # If there are AuditConfigs for both `allServices` and a specific service,
639 # the union of the two AuditConfigs is used for that service: the log_types
640 # specified in each AuditConfig are enabled, and the exempted_members in each
641 # AuditLogConfig are exempted.
642 #
643 # Example Policy with multiple AuditConfigs:
644 #
645 # {
646 # &quot;audit_configs&quot;: [
647 # {
648 # &quot;service&quot;: &quot;allServices&quot;
649 # &quot;audit_log_configs&quot;: [
650 # {
651 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
652 # &quot;exempted_members&quot;: [
653 # &quot;user:jose@example.com&quot;
654 # ]
655 # },
656 # {
657 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
658 # },
659 # {
660 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
661 # }
662 # ]
663 # },
664 # {
665 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
666 # &quot;audit_log_configs&quot;: [
667 # {
668 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
669 # },
670 # {
671 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
672 # &quot;exempted_members&quot;: [
673 # &quot;user:aliya@example.com&quot;
674 # ]
675 # }
676 # ]
677 # }
678 # ]
679 # }
680 #
681 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
682 # logging. It also exempts jose@example.com from DATA_READ logging, and
683 # aliya@example.com from DATA_WRITE logging.
684 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
685 { # Provides the configuration for logging a type of permissions.
686 # Example:
687 #
688 # {
689 # &quot;audit_log_configs&quot;: [
690 # {
691 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
692 # &quot;exempted_members&quot;: [
693 # &quot;user:jose@example.com&quot;
694 # ]
695 # },
696 # {
697 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
698 # }
699 # ]
700 # }
701 #
702 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
703 # jose@example.com from DATA_READ logging.
704 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
705 # permission.
706 # Follows the same format of Binding.members.
707 &quot;A String&quot;,
708 ],
709 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
710 },
711 ],
712 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
713 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
714 # `allServices` is a special value that covers all services.
715 },
716 ],
717 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
718 # `condition` that determines how and when the `bindings` are applied. Each
719 # of the `bindings` must contain at least one member.
720 { # Associates `members` with a `role`.
721 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
722 #
723 # If the condition evaluates to `true`, then this binding applies to the
724 # current request.
725 #
726 # If the condition evaluates to `false`, then this binding does not apply to
727 # the current request. However, a different role binding might grant the same
728 # role to one or more of the members in this binding.
729 #
730 # To learn which resources support conditions in their IAM policies, see the
731 # [IAM
732 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
733 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
734 # are documented at https://github.com/google/cel-spec.
735 #
736 # Example (Comparison):
737 #
738 # title: &quot;Summary size limit&quot;
739 # description: &quot;Determines if a summary is less than 100 chars&quot;
740 # expression: &quot;document.summary.size() &lt; 100&quot;
741 #
742 # Example (Equality):
743 #
744 # title: &quot;Requestor is owner&quot;
745 # description: &quot;Determines if requestor is the document owner&quot;
746 # expression: &quot;document.owner == request.auth.claims.email&quot;
747 #
748 # Example (Logic):
749 #
750 # title: &quot;Public documents&quot;
751 # description: &quot;Determine whether the document should be publicly visible&quot;
752 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
753 #
754 # Example (Data Manipulation):
755 #
756 # title: &quot;Notification string&quot;
757 # description: &quot;Create a notification string with a timestamp.&quot;
758 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
759 #
760 # The exact variables and functions that may be referenced within an expression
761 # are determined by the service that evaluates it. See the service
762 # documentation for additional information.
763 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
764 # its purpose. This can be used e.g. in UIs which allow to enter the
765 # expression.
766 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
767 # reporting, e.g. a file name and a position in the file.
768 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
769 # describes the expression, e.g. when hovered over it in a UI.
770 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
771 # syntax.
772 },
773 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
774 # `members` can have the following values:
775 #
776 # * `allUsers`: A special identifier that represents anyone who is
777 # on the internet; with or without a Google account.
778 #
779 # * `allAuthenticatedUsers`: A special identifier that represents anyone
780 # who is authenticated with a Google account or a service account.
781 #
782 # * `user:{emailid}`: An email address that represents a specific Google
783 # account. For example, `alice@example.com` .
784 #
785 #
786 # * `serviceAccount:{emailid}`: An email address that represents a service
787 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
788 #
789 # * `group:{emailid}`: An email address that represents a Google group.
790 # For example, `admins@example.com`.
791 #
792 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
793 # identifier) representing a user that has been recently deleted. For
794 # example, `alice@example.com?uid=123456789012345678901`. If the user is
795 # recovered, this value reverts to `user:{emailid}` and the recovered user
796 # retains the role in the binding.
797 #
798 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
799 # unique identifier) representing a service account that has been recently
800 # deleted. For example,
801 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
802 # If the service account is undeleted, this value reverts to
803 # `serviceAccount:{emailid}` and the undeleted service account retains the
804 # role in the binding.
805 #
806 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
807 # identifier) representing a Google group that has been recently
808 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
809 # the group is recovered, this value reverts to `group:{emailid}` and the
810 # recovered group retains the role in the binding.
811 #
812 #
813 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
814 # users of that domain. For example, `google.com` or `example.com`.
815 #
816 &quot;A String&quot;,
817 ],
818 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
819 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
820 },
821 ],
822 }</pre>
823</div>
824
825<div class="method">
826 <code class="details" id="list">list(parent, filter=None, pageToken=None, orderBy=None, pageSize=None, x__xgafv=None)</code>
827 <pre>Lists Instances in a given project and location.
828
829Args:
830 parent: string, Required. The resource name of the instance location using the form:
831 `projects/{project_id}/locations/{location_id}`
832where `location_id` refers to a GCP region (required)
833 filter: string, List filter. For example, exclude all Memcached instances with name as
834my-instance by specifying &quot;name != my-instance&quot;.
835 pageToken: string, The next_page_token value returned from a previous List request,
836if any.
837 orderBy: string, Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
838 pageSize: integer, The maximum number of items to return.
839
840If not specified, a default value of 1000 will be used by the service.
841Regardless of the page_size value, the response may include a partial list
842and a caller should only rely on response&#x27;s
843next_page_token
844to determine if there are more instances left to be queried.
845 x__xgafv: string, V1 error format.
846 Allowed values
847 1 - v1 error format
848 2 - v2 error format
849
850Returns:
851 An object of the form:
852
853 { # Response for ListInstances.
854 &quot;resources&quot;: [ # A list of Memcached instances in the project in the specified location,
855 # or across all locations.
856 #
857 # If the `location_id` in the parent field of the request is &quot;-&quot;, all regions
858 # available to the project are queried, and the results aggregated.
859 {
860 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User provided name for the instance only used for display
861 # purposes. Cannot be more than 80 characters.
862 &quot;nodeCount&quot;: 42, # Required. Number of nodes in the Memcached instance.
863 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
864 # Refer to cloud documentation on labels for more details.
865 # https://cloud.google.com/compute/docs/labeling-resources
866 &quot;a_key&quot;: &quot;A String&quot;,
867 },
868 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
869 &quot;zones&quot;: [ # Optional. Zones where Memcached nodes should be provisioned in.
870 # Memcached nodes will be equally distributed across these zones. If not
871 # provided, the service will by default create nodes in all zones in the
872 # region for the instance.
873 &quot;A String&quot;,
874 ],
875 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the instance was updated.
876 &quot;parameters&quot;: { # Optional: User defined parameters to apply to the memcached process
877 # on each node.
878 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
879 # can use this id to determine if the parameters associated with the instance
880 # differ from the parameters associated with the nodes and any action needs
881 # to be taken to apply parameters on nodes.
882 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
883 &quot;a_key&quot;: &quot;A String&quot;,
884 },
885 },
886 &quot;memcacheNodes&quot;: [ # Output only. List of Memcached nodes.
887 # Refer to [Node] message for more details.
888 {
889 &quot;port&quot;: 42, # Output only. The port number of the Memcached server on this node.
890 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. Identifier of the Memcached node. The node id does not
891 # include project or location like the Memcached instance name.
892 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the Memcached node used by the
893 # clients to connect to the Memcached server on this node.
894 &quot;zone&quot;: &quot;A String&quot;, # Output only. Location (GCP Zone) for the Memcached node.
895 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Memcached node.
896 &quot;parameters&quot;: { # User defined parameters currently applied to the node.
897 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
898 # can use this id to determine if the parameters associated with the instance
899 # differ from the parameters associated with the nodes and any action needs
900 # to be taken to apply parameters on nodes.
901 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
902 &quot;a_key&quot;: &quot;A String&quot;,
903 },
904 },
905 },
906 ],
907 &quot;nodeConfig&quot;: { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes.
908 &quot;cpuCount&quot;: 42, # Required. Number of cpus per Memcached node.
909 &quot;memorySizeMb&quot;: 42, # Required. Memory size in MiB for each Memcached node.
910 },
911 &quot;memcacheVersion&quot;: &quot;A String&quot;, # Optional. The major version of Memcached software.
912 # If not provided, latest supported version will be used. Currently the
913 # latest supported major version is MEMCACHE_1_5.
914 # The minor version will be automatically determined by our system based on
915 # the latest supported minor version.
916 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # Optional. The full name of the Google Compute Engine
917 # [network](/compute/docs/networks-and-firewalls#networks) to which the
918 # instance is connected. If left unspecified, the `default` network
919 # will be used.
920 &quot;memcacheFullVersion&quot;: &quot;A String&quot;, # Output only. The full version of memcached server running on this instance.
921 # System automatically determines the full memcached version for an instance
922 # based on the input MemcacheVersion.
923 # The full version format will be &quot;memcached-1.5.16&quot;.
924 &quot;instanceMessages&quot;: [ # List of messages that describe current statuses of memcached instance.
925 {
926 &quot;code&quot;: &quot;A String&quot;, # A code that correspond to one type of user-facing message.
927 &quot;message&quot;: &quot;A String&quot;, # Message on memcached instance which will be exposed to users.
928 },
929 ],
930 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this Memcached instance.
931 &quot;name&quot;: &quot;A String&quot;, # Required. Unique name of the resource in this scope including project and
932 # location using the form:
933 # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
934 #
935 # Note: Memcached instances are managed and addressed at regional level so
936 # location_id here refers to a GCP region; however, users may choose which
937 # zones Memcached nodes within an instances should be provisioned in.
938 # Refer to [zones] field for more details.
939 &quot;discoveryEndpoint&quot;: &quot;A String&quot;, # Output only. Endpoint for Discovery API
940 },
941 ],
942 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more
943 # results in the list.
944 &quot;unreachable&quot;: [ # Locations that could not be reached.
945 &quot;A String&quot;,
946 ],
947 }</pre>
948</div>
949
950<div class="method">
951 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
952 <pre>Retrieves the next page of results.
953
954Args:
955 previous_request: The request for the previous page. (required)
956 previous_response: The response from the request for the previous page. (required)
957
958Returns:
959 A request object that you can call &#x27;execute()&#x27; on to request the next
960 page. Returns None if there are no more items in the collection.
961 </pre>
962</div>
963
964<div class="method">
965 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
966 <pre>Updates an existing Instance in a given project and location.
967
968Args:
969 name: string, Required. Unique name of the resource in this scope including project and
970location using the form:
971 `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
972
973Note: Memcached instances are managed and addressed at regional level so
974location_id here refers to a GCP region; however, users may choose which
975zones Memcached nodes within an instances should be provisioned in.
976Refer to [zones] field for more details. (required)
977 body: object, The request body.
978 The object takes the form of:
979
980{
981 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User provided name for the instance only used for display
982 # purposes. Cannot be more than 80 characters.
983 &quot;nodeCount&quot;: 42, # Required. Number of nodes in the Memcached instance.
984 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
985 # Refer to cloud documentation on labels for more details.
986 # https://cloud.google.com/compute/docs/labeling-resources
987 &quot;a_key&quot;: &quot;A String&quot;,
988 },
989 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
990 &quot;zones&quot;: [ # Optional. Zones where Memcached nodes should be provisioned in.
991 # Memcached nodes will be equally distributed across these zones. If not
992 # provided, the service will by default create nodes in all zones in the
993 # region for the instance.
994 &quot;A String&quot;,
995 ],
996 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the instance was updated.
997 &quot;parameters&quot;: { # Optional: User defined parameters to apply to the memcached process
998 # on each node.
999 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
1000 # can use this id to determine if the parameters associated with the instance
1001 # differ from the parameters associated with the nodes and any action needs
1002 # to be taken to apply parameters on nodes.
1003 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
1004 &quot;a_key&quot;: &quot;A String&quot;,
1005 },
1006 },
1007 &quot;memcacheNodes&quot;: [ # Output only. List of Memcached nodes.
1008 # Refer to [Node] message for more details.
1009 {
1010 &quot;port&quot;: 42, # Output only. The port number of the Memcached server on this node.
1011 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. Identifier of the Memcached node. The node id does not
1012 # include project or location like the Memcached instance name.
1013 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the Memcached node used by the
1014 # clients to connect to the Memcached server on this node.
1015 &quot;zone&quot;: &quot;A String&quot;, # Output only. Location (GCP Zone) for the Memcached node.
1016 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Memcached node.
1017 &quot;parameters&quot;: { # User defined parameters currently applied to the node.
1018 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
1019 # can use this id to determine if the parameters associated with the instance
1020 # differ from the parameters associated with the nodes and any action needs
1021 # to be taken to apply parameters on nodes.
1022 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
1023 &quot;a_key&quot;: &quot;A String&quot;,
1024 },
1025 },
1026 },
1027 ],
1028 &quot;nodeConfig&quot;: { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes.
1029 &quot;cpuCount&quot;: 42, # Required. Number of cpus per Memcached node.
1030 &quot;memorySizeMb&quot;: 42, # Required. Memory size in MiB for each Memcached node.
1031 },
1032 &quot;memcacheVersion&quot;: &quot;A String&quot;, # Optional. The major version of Memcached software.
1033 # If not provided, latest supported version will be used. Currently the
1034 # latest supported major version is MEMCACHE_1_5.
1035 # The minor version will be automatically determined by our system based on
1036 # the latest supported minor version.
1037 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # Optional. The full name of the Google Compute Engine
1038 # [network](/compute/docs/networks-and-firewalls#networks) to which the
1039 # instance is connected. If left unspecified, the `default` network
1040 # will be used.
1041 &quot;memcacheFullVersion&quot;: &quot;A String&quot;, # Output only. The full version of memcached server running on this instance.
1042 # System automatically determines the full memcached version for an instance
1043 # based on the input MemcacheVersion.
1044 # The full version format will be &quot;memcached-1.5.16&quot;.
1045 &quot;instanceMessages&quot;: [ # List of messages that describe current statuses of memcached instance.
1046 {
1047 &quot;code&quot;: &quot;A String&quot;, # A code that correspond to one type of user-facing message.
1048 &quot;message&quot;: &quot;A String&quot;, # Message on memcached instance which will be exposed to users.
1049 },
1050 ],
1051 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this Memcached instance.
1052 &quot;name&quot;: &quot;A String&quot;, # Required. Unique name of the resource in this scope including project and
1053 # location using the form:
1054 # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
1055 #
1056 # Note: Memcached instances are managed and addressed at regional level so
1057 # location_id here refers to a GCP region; however, users may choose which
1058 # zones Memcached nodes within an instances should be provisioned in.
1059 # Refer to [zones] field for more details.
1060 &quot;discoveryEndpoint&quot;: &quot;A String&quot;, # Output only. Endpoint for Discovery API
1061}
1062
1063 updateMask: string, Required. Mask of fields to update.
1064 * `displayName`
1065 x__xgafv: string, V1 error format.
1066 Allowed values
1067 1 - v1 error format
1068 2 - v2 error format
1069
1070Returns:
1071 An object of the form:
1072
1073 { # This resource represents a long-running operation that is the result of a
1074 # network API call.
1075 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
1076 # method returns no data on success, such as `Delete`, the response is
1077 # `google.protobuf.Empty`. If the original method is standard
1078 # `Get`/`Create`/`Update`, the response should be the resource. For other
1079 # methods, the response should have the type `XxxResponse`, where `Xxx`
1080 # is the original method name. For example, if the original method name
1081 # is `TakeSnapshot()`, the inferred response type is
1082 # `TakeSnapshotResponse`.
1083 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1084 },
1085 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1086 # originally returns it. If you use the default HTTP mapping, the
1087 # `name` should be a resource name ending with `operations/{unique_id}`.
1088 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
1089 # different programming environments, including REST APIs and RPC APIs. It is
1090 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1091 # three pieces of data: error code, error message, and error details.
1092 #
1093 # You can find out more about this error model and how to work with it in the
1094 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1095 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1096 # message types for APIs to use.
1097 {
1098 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1099 },
1100 ],
1101 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1102 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1103 # user-facing error message should be localized and sent in the
1104 # google.rpc.Status.details field, or localized by the client.
1105 },
1106 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1107 # contains progress information and common metadata such as create time.
1108 # Some services might not provide such metadata. Any method that returns a
1109 # long-running operation should document the metadata type, if any.
1110 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1111 },
1112 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1113 # If `true`, the operation is completed, and either `error` or `response` is
1114 # available.
1115 }</pre>
1116</div>
1117
1118<div class="method">
1119 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
1120 <pre>Sets the access control policy on the specified resource. Replaces any
1121existing policy.
1122
1123Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
1124
1125Args:
1126 resource: string, REQUIRED: The resource for which the policy is being specified.
1127See the operation documentation for the appropriate value for this field. (required)
1128 body: object, The request body.
1129 The object takes the form of:
1130
1131{ # Request message for `SetIamPolicy` method.
1132 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1133 # the fields in the mask will be modified. If no mask is provided, the
1134 # following default mask is used:
1135 #
1136 # `paths: &quot;bindings, etag&quot;`
1137 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
1138 # the policy is limited to a few 10s of KB. An empty policy is a
1139 # valid policy but certain Cloud Platform services (such as Projects)
1140 # might reject them.
1141 # controls for Google Cloud resources.
1142 #
1143 #
1144 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1145 # `members` to a single `role`. Members can be user accounts, service accounts,
1146 # Google groups, and domains (such as G Suite). A `role` is a named list of
1147 # permissions; each `role` can be an IAM predefined role or a user-created
1148 # custom role.
1149 #
1150 # For some types of Google Cloud resources, a `binding` can also specify a
1151 # `condition`, which is a logical expression that allows access to a resource
1152 # only if the expression evaluates to `true`. A condition can add constraints
1153 # based on attributes of the request, the resource, or both. To learn which
1154 # resources support conditions in their IAM policies, see the
1155 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1156 #
1157 # **JSON example:**
1158 #
1159 # {
1160 # &quot;bindings&quot;: [
1161 # {
1162 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1163 # &quot;members&quot;: [
1164 # &quot;user:mike@example.com&quot;,
1165 # &quot;group:admins@example.com&quot;,
1166 # &quot;domain:google.com&quot;,
1167 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
1168 # ]
1169 # },
1170 # {
1171 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1172 # &quot;members&quot;: [
1173 # &quot;user:eve@example.com&quot;
1174 # ],
1175 # &quot;condition&quot;: {
1176 # &quot;title&quot;: &quot;expirable access&quot;,
1177 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1178 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1179 # }
1180 # }
1181 # ],
1182 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1183 # &quot;version&quot;: 3
1184 # }
1185 #
1186 # **YAML example:**
1187 #
1188 # bindings:
1189 # - members:
1190 # - user:mike@example.com
1191 # - group:admins@example.com
1192 # - domain:google.com
1193 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1194 # role: roles/resourcemanager.organizationAdmin
1195 # - members:
1196 # - user:eve@example.com
1197 # role: roles/resourcemanager.organizationViewer
1198 # condition:
1199 # title: expirable access
1200 # description: Does not grant access after Sep 2020
1201 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1202 # - etag: BwWWja0YfJA=
1203 # - version: 3
1204 #
1205 # For a description of IAM and its features, see the
1206 # [IAM documentation](https://cloud.google.com/iam/docs/).
1207 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1208 # prevent simultaneous updates of a policy from overwriting each other.
1209 # It is strongly suggested that systems make use of the `etag` in the
1210 # read-modify-write cycle to perform policy updates in order to avoid race
1211 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1212 # systems are expected to put that etag in the request to `setIamPolicy` to
1213 # ensure that their change will be applied to the same version of the policy.
1214 #
1215 # **Important:** If you use IAM Conditions, you must include the `etag` field
1216 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1217 # you to overwrite a version `3` policy with a version `1` policy, and all of
1218 # the conditions in the version `3` policy are lost.
1219 &quot;version&quot;: 42, # Specifies the format of the policy.
1220 #
1221 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1222 # are rejected.
1223 #
1224 # Any operation that affects conditional role bindings must specify version
1225 # `3`. This requirement applies to the following operations:
1226 #
1227 # * Getting a policy that includes a conditional role binding
1228 # * Adding a conditional role binding to a policy
1229 # * Changing a conditional role binding in a policy
1230 # * Removing any role binding, with or without a condition, from a policy
1231 # that includes conditions
1232 #
1233 # **Important:** If you use IAM Conditions, you must include the `etag` field
1234 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1235 # you to overwrite a version `3` policy with a version `1` policy, and all of
1236 # the conditions in the version `3` policy are lost.
1237 #
1238 # If a policy does not include any conditions, operations on that policy may
1239 # specify any valid version or leave the field unset.
1240 #
1241 # To learn which resources support conditions in their IAM policies, see the
1242 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1243 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1244 { # Specifies the audit configuration for a service.
1245 # The configuration determines which permission types are logged, and what
1246 # identities, if any, are exempted from logging.
1247 # An AuditConfig must have one or more AuditLogConfigs.
1248 #
1249 # If there are AuditConfigs for both `allServices` and a specific service,
1250 # the union of the two AuditConfigs is used for that service: the log_types
1251 # specified in each AuditConfig are enabled, and the exempted_members in each
1252 # AuditLogConfig are exempted.
1253 #
1254 # Example Policy with multiple AuditConfigs:
1255 #
1256 # {
1257 # &quot;audit_configs&quot;: [
1258 # {
1259 # &quot;service&quot;: &quot;allServices&quot;
1260 # &quot;audit_log_configs&quot;: [
1261 # {
1262 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1263 # &quot;exempted_members&quot;: [
1264 # &quot;user:jose@example.com&quot;
1265 # ]
1266 # },
1267 # {
1268 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1269 # },
1270 # {
1271 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1272 # }
1273 # ]
1274 # },
1275 # {
1276 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1277 # &quot;audit_log_configs&quot;: [
1278 # {
1279 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1280 # },
1281 # {
1282 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1283 # &quot;exempted_members&quot;: [
1284 # &quot;user:aliya@example.com&quot;
1285 # ]
1286 # }
1287 # ]
1288 # }
1289 # ]
1290 # }
1291 #
1292 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1293 # logging. It also exempts jose@example.com from DATA_READ logging, and
1294 # aliya@example.com from DATA_WRITE logging.
1295 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1296 { # Provides the configuration for logging a type of permissions.
1297 # Example:
1298 #
1299 # {
1300 # &quot;audit_log_configs&quot;: [
1301 # {
1302 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1303 # &quot;exempted_members&quot;: [
1304 # &quot;user:jose@example.com&quot;
1305 # ]
1306 # },
1307 # {
1308 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1309 # }
1310 # ]
1311 # }
1312 #
1313 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1314 # jose@example.com from DATA_READ logging.
1315 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1316 # permission.
1317 # Follows the same format of Binding.members.
1318 &quot;A String&quot;,
1319 ],
1320 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1321 },
1322 ],
1323 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1324 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1325 # `allServices` is a special value that covers all services.
1326 },
1327 ],
1328 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1329 # `condition` that determines how and when the `bindings` are applied. Each
1330 # of the `bindings` must contain at least one member.
1331 { # Associates `members` with a `role`.
1332 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1333 #
1334 # If the condition evaluates to `true`, then this binding applies to the
1335 # current request.
1336 #
1337 # If the condition evaluates to `false`, then this binding does not apply to
1338 # the current request. However, a different role binding might grant the same
1339 # role to one or more of the members in this binding.
1340 #
1341 # To learn which resources support conditions in their IAM policies, see the
1342 # [IAM
1343 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1344 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1345 # are documented at https://github.com/google/cel-spec.
1346 #
1347 # Example (Comparison):
1348 #
1349 # title: &quot;Summary size limit&quot;
1350 # description: &quot;Determines if a summary is less than 100 chars&quot;
1351 # expression: &quot;document.summary.size() &lt; 100&quot;
1352 #
1353 # Example (Equality):
1354 #
1355 # title: &quot;Requestor is owner&quot;
1356 # description: &quot;Determines if requestor is the document owner&quot;
1357 # expression: &quot;document.owner == request.auth.claims.email&quot;
1358 #
1359 # Example (Logic):
1360 #
1361 # title: &quot;Public documents&quot;
1362 # description: &quot;Determine whether the document should be publicly visible&quot;
1363 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1364 #
1365 # Example (Data Manipulation):
1366 #
1367 # title: &quot;Notification string&quot;
1368 # description: &quot;Create a notification string with a timestamp.&quot;
1369 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1370 #
1371 # The exact variables and functions that may be referenced within an expression
1372 # are determined by the service that evaluates it. See the service
1373 # documentation for additional information.
1374 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1375 # its purpose. This can be used e.g. in UIs which allow to enter the
1376 # expression.
1377 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1378 # reporting, e.g. a file name and a position in the file.
1379 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1380 # describes the expression, e.g. when hovered over it in a UI.
1381 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1382 # syntax.
1383 },
1384 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1385 # `members` can have the following values:
1386 #
1387 # * `allUsers`: A special identifier that represents anyone who is
1388 # on the internet; with or without a Google account.
1389 #
1390 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1391 # who is authenticated with a Google account or a service account.
1392 #
1393 # * `user:{emailid}`: An email address that represents a specific Google
1394 # account. For example, `alice@example.com` .
1395 #
1396 #
1397 # * `serviceAccount:{emailid}`: An email address that represents a service
1398 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1399 #
1400 # * `group:{emailid}`: An email address that represents a Google group.
1401 # For example, `admins@example.com`.
1402 #
1403 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1404 # identifier) representing a user that has been recently deleted. For
1405 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1406 # recovered, this value reverts to `user:{emailid}` and the recovered user
1407 # retains the role in the binding.
1408 #
1409 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1410 # unique identifier) representing a service account that has been recently
1411 # deleted. For example,
1412 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1413 # If the service account is undeleted, this value reverts to
1414 # `serviceAccount:{emailid}` and the undeleted service account retains the
1415 # role in the binding.
1416 #
1417 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1418 # identifier) representing a Google group that has been recently
1419 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1420 # the group is recovered, this value reverts to `group:{emailid}` and the
1421 # recovered group retains the role in the binding.
1422 #
1423 #
1424 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1425 # users of that domain. For example, `google.com` or `example.com`.
1426 #
1427 &quot;A String&quot;,
1428 ],
1429 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1430 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1431 },
1432 ],
1433 },
1434 }
1435
1436 x__xgafv: string, V1 error format.
1437 Allowed values
1438 1 - v1 error format
1439 2 - v2 error format
1440
1441Returns:
1442 An object of the form:
1443
1444 { # An Identity and Access Management (IAM) policy, which specifies access
1445 # controls for Google Cloud resources.
1446 #
1447 #
1448 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1449 # `members` to a single `role`. Members can be user accounts, service accounts,
1450 # Google groups, and domains (such as G Suite). A `role` is a named list of
1451 # permissions; each `role` can be an IAM predefined role or a user-created
1452 # custom role.
1453 #
1454 # For some types of Google Cloud resources, a `binding` can also specify a
1455 # `condition`, which is a logical expression that allows access to a resource
1456 # only if the expression evaluates to `true`. A condition can add constraints
1457 # based on attributes of the request, the resource, or both. To learn which
1458 # resources support conditions in their IAM policies, see the
1459 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1460 #
1461 # **JSON example:**
1462 #
1463 # {
1464 # &quot;bindings&quot;: [
1465 # {
1466 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1467 # &quot;members&quot;: [
1468 # &quot;user:mike@example.com&quot;,
1469 # &quot;group:admins@example.com&quot;,
1470 # &quot;domain:google.com&quot;,
1471 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
1472 # ]
1473 # },
1474 # {
1475 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1476 # &quot;members&quot;: [
1477 # &quot;user:eve@example.com&quot;
1478 # ],
1479 # &quot;condition&quot;: {
1480 # &quot;title&quot;: &quot;expirable access&quot;,
1481 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1482 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1483 # }
1484 # }
1485 # ],
1486 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1487 # &quot;version&quot;: 3
1488 # }
1489 #
1490 # **YAML example:**
1491 #
1492 # bindings:
1493 # - members:
1494 # - user:mike@example.com
1495 # - group:admins@example.com
1496 # - domain:google.com
1497 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1498 # role: roles/resourcemanager.organizationAdmin
1499 # - members:
1500 # - user:eve@example.com
1501 # role: roles/resourcemanager.organizationViewer
1502 # condition:
1503 # title: expirable access
1504 # description: Does not grant access after Sep 2020
1505 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1506 # - etag: BwWWja0YfJA=
1507 # - version: 3
1508 #
1509 # For a description of IAM and its features, see the
1510 # [IAM documentation](https://cloud.google.com/iam/docs/).
1511 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1512 # prevent simultaneous updates of a policy from overwriting each other.
1513 # It is strongly suggested that systems make use of the `etag` in the
1514 # read-modify-write cycle to perform policy updates in order to avoid race
1515 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1516 # systems are expected to put that etag in the request to `setIamPolicy` to
1517 # ensure that their change will be applied to the same version of the policy.
1518 #
1519 # **Important:** If you use IAM Conditions, you must include the `etag` field
1520 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1521 # you to overwrite a version `3` policy with a version `1` policy, and all of
1522 # the conditions in the version `3` policy are lost.
1523 &quot;version&quot;: 42, # Specifies the format of the policy.
1524 #
1525 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1526 # are rejected.
1527 #
1528 # Any operation that affects conditional role bindings must specify version
1529 # `3`. This requirement applies to the following operations:
1530 #
1531 # * Getting a policy that includes a conditional role binding
1532 # * Adding a conditional role binding to a policy
1533 # * Changing a conditional role binding in a policy
1534 # * Removing any role binding, with or without a condition, from a policy
1535 # that includes conditions
1536 #
1537 # **Important:** If you use IAM Conditions, you must include the `etag` field
1538 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1539 # you to overwrite a version `3` policy with a version `1` policy, and all of
1540 # the conditions in the version `3` policy are lost.
1541 #
1542 # If a policy does not include any conditions, operations on that policy may
1543 # specify any valid version or leave the field unset.
1544 #
1545 # To learn which resources support conditions in their IAM policies, see the
1546 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1547 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1548 { # Specifies the audit configuration for a service.
1549 # The configuration determines which permission types are logged, and what
1550 # identities, if any, are exempted from logging.
1551 # An AuditConfig must have one or more AuditLogConfigs.
1552 #
1553 # If there are AuditConfigs for both `allServices` and a specific service,
1554 # the union of the two AuditConfigs is used for that service: the log_types
1555 # specified in each AuditConfig are enabled, and the exempted_members in each
1556 # AuditLogConfig are exempted.
1557 #
1558 # Example Policy with multiple AuditConfigs:
1559 #
1560 # {
1561 # &quot;audit_configs&quot;: [
1562 # {
1563 # &quot;service&quot;: &quot;allServices&quot;
1564 # &quot;audit_log_configs&quot;: [
1565 # {
1566 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1567 # &quot;exempted_members&quot;: [
1568 # &quot;user:jose@example.com&quot;
1569 # ]
1570 # },
1571 # {
1572 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1573 # },
1574 # {
1575 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1576 # }
1577 # ]
1578 # },
1579 # {
1580 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1581 # &quot;audit_log_configs&quot;: [
1582 # {
1583 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1584 # },
1585 # {
1586 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1587 # &quot;exempted_members&quot;: [
1588 # &quot;user:aliya@example.com&quot;
1589 # ]
1590 # }
1591 # ]
1592 # }
1593 # ]
1594 # }
1595 #
1596 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1597 # logging. It also exempts jose@example.com from DATA_READ logging, and
1598 # aliya@example.com from DATA_WRITE logging.
1599 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1600 { # Provides the configuration for logging a type of permissions.
1601 # Example:
1602 #
1603 # {
1604 # &quot;audit_log_configs&quot;: [
1605 # {
1606 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1607 # &quot;exempted_members&quot;: [
1608 # &quot;user:jose@example.com&quot;
1609 # ]
1610 # },
1611 # {
1612 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1613 # }
1614 # ]
1615 # }
1616 #
1617 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1618 # jose@example.com from DATA_READ logging.
1619 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1620 # permission.
1621 # Follows the same format of Binding.members.
1622 &quot;A String&quot;,
1623 ],
1624 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1625 },
1626 ],
1627 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1628 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1629 # `allServices` is a special value that covers all services.
1630 },
1631 ],
1632 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1633 # `condition` that determines how and when the `bindings` are applied. Each
1634 # of the `bindings` must contain at least one member.
1635 { # Associates `members` with a `role`.
1636 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1637 #
1638 # If the condition evaluates to `true`, then this binding applies to the
1639 # current request.
1640 #
1641 # If the condition evaluates to `false`, then this binding does not apply to
1642 # the current request. However, a different role binding might grant the same
1643 # role to one or more of the members in this binding.
1644 #
1645 # To learn which resources support conditions in their IAM policies, see the
1646 # [IAM
1647 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1648 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1649 # are documented at https://github.com/google/cel-spec.
1650 #
1651 # Example (Comparison):
1652 #
1653 # title: &quot;Summary size limit&quot;
1654 # description: &quot;Determines if a summary is less than 100 chars&quot;
1655 # expression: &quot;document.summary.size() &lt; 100&quot;
1656 #
1657 # Example (Equality):
1658 #
1659 # title: &quot;Requestor is owner&quot;
1660 # description: &quot;Determines if requestor is the document owner&quot;
1661 # expression: &quot;document.owner == request.auth.claims.email&quot;
1662 #
1663 # Example (Logic):
1664 #
1665 # title: &quot;Public documents&quot;
1666 # description: &quot;Determine whether the document should be publicly visible&quot;
1667 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1668 #
1669 # Example (Data Manipulation):
1670 #
1671 # title: &quot;Notification string&quot;
1672 # description: &quot;Create a notification string with a timestamp.&quot;
1673 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1674 #
1675 # The exact variables and functions that may be referenced within an expression
1676 # are determined by the service that evaluates it. See the service
1677 # documentation for additional information.
1678 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1679 # its purpose. This can be used e.g. in UIs which allow to enter the
1680 # expression.
1681 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1682 # reporting, e.g. a file name and a position in the file.
1683 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1684 # describes the expression, e.g. when hovered over it in a UI.
1685 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1686 # syntax.
1687 },
1688 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1689 # `members` can have the following values:
1690 #
1691 # * `allUsers`: A special identifier that represents anyone who is
1692 # on the internet; with or without a Google account.
1693 #
1694 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1695 # who is authenticated with a Google account or a service account.
1696 #
1697 # * `user:{emailid}`: An email address that represents a specific Google
1698 # account. For example, `alice@example.com` .
1699 #
1700 #
1701 # * `serviceAccount:{emailid}`: An email address that represents a service
1702 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1703 #
1704 # * `group:{emailid}`: An email address that represents a Google group.
1705 # For example, `admins@example.com`.
1706 #
1707 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1708 # identifier) representing a user that has been recently deleted. For
1709 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1710 # recovered, this value reverts to `user:{emailid}` and the recovered user
1711 # retains the role in the binding.
1712 #
1713 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1714 # unique identifier) representing a service account that has been recently
1715 # deleted. For example,
1716 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1717 # If the service account is undeleted, this value reverts to
1718 # `serviceAccount:{emailid}` and the undeleted service account retains the
1719 # role in the binding.
1720 #
1721 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1722 # identifier) representing a Google group that has been recently
1723 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1724 # the group is recovered, this value reverts to `group:{emailid}` and the
1725 # recovered group retains the role in the binding.
1726 #
1727 #
1728 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1729 # users of that domain. For example, `google.com` or `example.com`.
1730 #
1731 &quot;A String&quot;,
1732 ],
1733 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1734 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1735 },
1736 ],
1737 }</pre>
1738</div>
1739
1740<div class="method">
1741 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1742 <pre>Returns permissions that a caller has on the specified resource.
1743If the resource does not exist, this will return an empty set of
1744permissions, not a `NOT_FOUND` error.
1745
1746Note: This operation is designed to be used for building permission-aware
1747UIs and command-line tools, not for authorization checking. This operation
1748may &quot;fail open&quot; without warning.
1749
1750Args:
1751 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1752See the operation documentation for the appropriate value for this field. (required)
1753 body: object, The request body.
1754 The object takes the form of:
1755
1756{ # Request message for `TestIamPermissions` method.
1757 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1758 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
1759 # information see
1760 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1761 &quot;A String&quot;,
1762 ],
1763 }
1764
1765 x__xgafv: string, V1 error format.
1766 Allowed values
1767 1 - v1 error format
1768 2 - v2 error format
1769
1770Returns:
1771 An object of the form:
1772
1773 { # Response message for `TestIamPermissions` method.
1774 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
1775 # allowed.
1776 &quot;A String&quot;,
1777 ],
1778 }</pre>
1779</div>
1780
1781<div class="method">
1782 <code class="details" id="updateParameters">updateParameters(name, body=None, x__xgafv=None)</code>
1783 <pre>Updates the defined Memcached Parameters for an existing Instance.
1784This method only stages the parameters, it must be followed by
1785ApplyParameters to apply the parameters to nodes of the Memcached Instance.
1786
1787Args:
1788 name: string, Required. Resource name of the Memcached instance for which the parameters should be
1789updated. (required)
1790 body: object, The request body.
1791 The object takes the form of:
1792
1793{ # Request for UpdateParameters.
1794 &quot;updateMask&quot;: &quot;A String&quot;, # Required. Mask of fields to update.
1795 &quot;parameters&quot;: { # The parameters to apply to the instance.
1796 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
1797 # can use this id to determine if the parameters associated with the instance
1798 # differ from the parameters associated with the nodes and any action needs
1799 # to be taken to apply parameters on nodes.
1800 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
1801 &quot;a_key&quot;: &quot;A String&quot;,
1802 },
1803 },
1804 }
1805
1806 x__xgafv: string, V1 error format.
1807 Allowed values
1808 1 - v1 error format
1809 2 - v2 error format
1810
1811Returns:
1812 An object of the form:
1813
1814 { # This resource represents a long-running operation that is the result of a
1815 # network API call.
1816 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
1817 # method returns no data on success, such as `Delete`, the response is
1818 # `google.protobuf.Empty`. If the original method is standard
1819 # `Get`/`Create`/`Update`, the response should be the resource. For other
1820 # methods, the response should have the type `XxxResponse`, where `Xxx`
1821 # is the original method name. For example, if the original method name
1822 # is `TakeSnapshot()`, the inferred response type is
1823 # `TakeSnapshotResponse`.
1824 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1825 },
1826 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1827 # originally returns it. If you use the default HTTP mapping, the
1828 # `name` should be a resource name ending with `operations/{unique_id}`.
1829 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
1830 # different programming environments, including REST APIs and RPC APIs. It is
1831 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1832 # three pieces of data: error code, error message, and error details.
1833 #
1834 # You can find out more about this error model and how to work with it in the
1835 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1836 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1837 # message types for APIs to use.
1838 {
1839 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1840 },
1841 ],
1842 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1843 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1844 # user-facing error message should be localized and sent in the
1845 # google.rpc.Status.details field, or localized by the client.
1846 },
1847 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1848 # contains progress information and common metadata such as create time.
1849 # Some services might not provide such metadata. Any method that returns a
1850 # long-running operation should document the metadata type, if any.
1851 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1852 },
1853 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1854 # If `true`, the operation is completed, and either `error` or `response` is
1855 # available.
1856 }</pre>
1857</div>
1858
1859</body></html>