blob: ddd994124e31e362dd16270e53216309c8ac6707 [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">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070093 <code><a href="#list">list(parent, pageToken=None, orderBy=None, pageSize=None, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070094<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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &quot;applyAll&quot;: True or False, # Whether to apply instance-level parameter group to all nodes. If set to
124 # true, will explicitly restrict users from specifying any nodes, and apply
125 # parameter group updates to all nodes within the instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700126 &quot;nodeIds&quot;: [ # Nodes to which we should apply the instance-level parameter group.
127 &quot;A String&quot;,
128 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 }
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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700141 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
142 # contains progress information and common metadata such as create time.
143 # Some services might not provide such metadata. Any method that returns a
144 # long-running operation should document the metadata type, if any.
145 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
146 },
147 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
148 # If `true`, the operation is completed, and either `error` or `response` is
149 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
151 # method returns no data on success, such as `Delete`, the response is
152 # `google.protobuf.Empty`. If the original method is standard
153 # `Get`/`Create`/`Update`, the response should be the resource. For other
154 # methods, the response should have the type `XxxResponse`, where `Xxx`
155 # is the original method name. For example, if the original method name
156 # is `TakeSnapshot()`, the inferred response type is
157 # `TakeSnapshotResponse`.
158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
159 },
160 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
161 # originally returns it. If you use the default HTTP mapping, the
162 # `name` should be a resource name ending with `operations/{unique_id}`.
163 &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.
164 # different programming environments, including REST APIs and RPC APIs. It is
165 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
166 # three pieces of data: error code, error message, and error details.
167 #
168 # You can find out more about this error model and how to work with it in the
169 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700170 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
171 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
172 # user-facing error message should be localized and sent in the
173 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
175 # message types for APIs to use.
176 {
177 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
178 },
179 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 }</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{
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;memcacheNodes&quot;: [ # Output only. List of Memcached nodes.
197 # Refer to [Node] message for more details.
198 {
199 &quot;port&quot;: 42, # Output only. The port number of the Memcached server on this node.
200 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. Identifier of the Memcached node. The node id does not
201 # include project or location like the Memcached instance name.
202 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the Memcached node used by the
203 # clients to connect to the Memcached server on this node.
204 &quot;zone&quot;: &quot;A String&quot;, # Output only. Location (GCP Zone) for the Memcached node.
205 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Memcached node.
206 &quot;parameters&quot;: { # User defined parameters currently applied to the node.
207 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
208 # can use this id to determine if the parameters associated with the instance
209 # differ from the parameters associated with the nodes and any action needs
210 # to be taken to apply parameters on nodes.
211 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
212 &quot;a_key&quot;: &quot;A String&quot;,
213 },
214 },
215 },
216 ],
217 &quot;nodeConfig&quot;: { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes.
218 &quot;cpuCount&quot;: 42, # Required. Number of cpus per Memcached node.
219 &quot;memorySizeMb&quot;: 42, # Required. Memory size in MiB for each Memcached node.
220 },
221 &quot;memcacheVersion&quot;: &quot;A String&quot;, # Optional. The major version of Memcached software.
222 # If not provided, latest supported version will be used. Currently the
223 # latest supported major version is MEMCACHE_1_5.
224 # The minor version will be automatically determined by our system based on
225 # the latest supported minor version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;memcacheFullVersion&quot;: &quot;A String&quot;, # Output only. The full version of memcached server running on this instance.
227 # System automatically determines the full memcached version for an instance
228 # based on the input MemcacheVersion.
229 # The full version format will be &quot;memcached-1.5.16&quot;.
230 &quot;instanceMessages&quot;: [ # List of messages that describe current statuses of memcached instance.
231 {
232 &quot;code&quot;: &quot;A String&quot;, # A code that correspond to one type of user-facing message.
233 &quot;message&quot;: &quot;A String&quot;, # Message on memcached instance which will be exposed to users.
234 },
235 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700236 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # Optional. The full name of the Google Compute Engine
237 # [network](/compute/docs/networks-and-firewalls#networks) to which the
238 # instance is connected. If left unspecified, the `default` network
239 # will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700240 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this Memcached instance.
241 &quot;name&quot;: &quot;A String&quot;, # Required. Unique name of the resource in this scope including project and
242 # location using the form:
243 # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
244 #
245 # Note: Memcached instances are managed and addressed at regional level so
246 # location_id here refers to a GCP region; however, users may choose which
247 # zones Memcached nodes within an instances should be provisioned in.
248 # Refer to [zones] field for more details.
249 &quot;discoveryEndpoint&quot;: &quot;A String&quot;, # Output only. Endpoint for Discovery API
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700250 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User provided name for the instance only used for display
251 # purposes. Cannot be more than 80 characters.
252 &quot;nodeCount&quot;: 42, # Required. Number of nodes in the Memcached instance.
253 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
254 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
255 # Refer to cloud documentation on labels for more details.
256 # https://cloud.google.com/compute/docs/labeling-resources
257 &quot;a_key&quot;: &quot;A String&quot;,
258 },
259 &quot;zones&quot;: [ # Optional. Zones where Memcached nodes should be provisioned in.
260 # Memcached nodes will be equally distributed across these zones. If not
261 # provided, the service will by default create nodes in all zones in the
262 # region for the instance.
263 &quot;A String&quot;,
264 ],
265 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the instance was updated.
266 &quot;parameters&quot;: { # Optional: User defined parameters to apply to the memcached process
267 # on each node.
268 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
269 # can use this id to determine if the parameters associated with the instance
270 # differ from the parameters associated with the nodes and any action needs
271 # to be taken to apply parameters on nodes.
272 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
273 &quot;a_key&quot;: &quot;A String&quot;,
274 },
275 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700276}
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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700296 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
297 # contains progress information and common metadata such as create time.
298 # Some services might not provide such metadata. Any method that returns a
299 # long-running operation should document the metadata type, if any.
300 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
301 },
302 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
303 # If `true`, the operation is completed, and either `error` or `response` is
304 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
306 # method returns no data on success, such as `Delete`, the response is
307 # `google.protobuf.Empty`. If the original method is standard
308 # `Get`/`Create`/`Update`, the response should be the resource. For other
309 # methods, the response should have the type `XxxResponse`, where `Xxx`
310 # is the original method name. For example, if the original method name
311 # is `TakeSnapshot()`, the inferred response type is
312 # `TakeSnapshotResponse`.
313 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
314 },
315 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
316 # originally returns it. If you use the default HTTP mapping, the
317 # `name` should be a resource name ending with `operations/{unique_id}`.
318 &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.
319 # different programming environments, including REST APIs and RPC APIs. It is
320 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
321 # three pieces of data: error code, error message, and error details.
322 #
323 # You can find out more about this error model and how to work with it in the
324 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700325 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
326 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
327 # user-facing error message should be localized and sent in the
328 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
330 # message types for APIs to use.
331 {
332 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
333 },
334 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700336 }</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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700357 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
358 # contains progress information and common metadata such as create time.
359 # Some services might not provide such metadata. Any method that returns a
360 # long-running operation should document the metadata type, if any.
361 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
362 },
363 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
364 # If `true`, the operation is completed, and either `error` or `response` is
365 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700366 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
367 # method returns no data on success, such as `Delete`, the response is
368 # `google.protobuf.Empty`. If the original method is standard
369 # `Get`/`Create`/`Update`, the response should be the resource. For other
370 # methods, the response should have the type `XxxResponse`, where `Xxx`
371 # is the original method name. For example, if the original method name
372 # is `TakeSnapshot()`, the inferred response type is
373 # `TakeSnapshotResponse`.
374 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
375 },
376 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
377 # originally returns it. If you use the default HTTP mapping, the
378 # `name` should be a resource name ending with `operations/{unique_id}`.
379 &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.
380 # different programming environments, including REST APIs and RPC APIs. It is
381 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
382 # three pieces of data: error code, error message, and error details.
383 #
384 # You can find out more about this error model and how to work with it in the
385 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700386 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
387 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
388 # user-facing error message should be localized and sent in the
389 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
391 # message types for APIs to use.
392 {
393 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
394 },
395 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 }</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 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700417 &quot;memcacheNodes&quot;: [ # Output only. List of Memcached nodes.
418 # Refer to [Node] message for more details.
419 {
420 &quot;port&quot;: 42, # Output only. The port number of the Memcached server on this node.
421 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. Identifier of the Memcached node. The node id does not
422 # include project or location like the Memcached instance name.
423 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the Memcached node used by the
424 # clients to connect to the Memcached server on this node.
425 &quot;zone&quot;: &quot;A String&quot;, # Output only. Location (GCP Zone) for the Memcached node.
426 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Memcached node.
427 &quot;parameters&quot;: { # User defined parameters currently applied to the node.
428 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
429 # can use this id to determine if the parameters associated with the instance
430 # differ from the parameters associated with the nodes and any action needs
431 # to be taken to apply parameters on nodes.
432 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
433 &quot;a_key&quot;: &quot;A String&quot;,
434 },
435 },
436 },
437 ],
438 &quot;nodeConfig&quot;: { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes.
439 &quot;cpuCount&quot;: 42, # Required. Number of cpus per Memcached node.
440 &quot;memorySizeMb&quot;: 42, # Required. Memory size in MiB for each Memcached node.
441 },
442 &quot;memcacheVersion&quot;: &quot;A String&quot;, # Optional. The major version of Memcached software.
443 # If not provided, latest supported version will be used. Currently the
444 # latest supported major version is MEMCACHE_1_5.
445 # The minor version will be automatically determined by our system based on
446 # the latest supported minor version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;memcacheFullVersion&quot;: &quot;A String&quot;, # Output only. The full version of memcached server running on this instance.
448 # System automatically determines the full memcached version for an instance
449 # based on the input MemcacheVersion.
450 # The full version format will be &quot;memcached-1.5.16&quot;.
451 &quot;instanceMessages&quot;: [ # List of messages that describe current statuses of memcached instance.
452 {
453 &quot;code&quot;: &quot;A String&quot;, # A code that correspond to one type of user-facing message.
454 &quot;message&quot;: &quot;A String&quot;, # Message on memcached instance which will be exposed to users.
455 },
456 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700457 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # Optional. The full name of the Google Compute Engine
458 # [network](/compute/docs/networks-and-firewalls#networks) to which the
459 # instance is connected. If left unspecified, the `default` network
460 # will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this Memcached instance.
462 &quot;name&quot;: &quot;A String&quot;, # Required. Unique name of the resource in this scope including project and
463 # location using the form:
464 # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
465 #
466 # Note: Memcached instances are managed and addressed at regional level so
467 # location_id here refers to a GCP region; however, users may choose which
468 # zones Memcached nodes within an instances should be provisioned in.
469 # Refer to [zones] field for more details.
470 &quot;discoveryEndpoint&quot;: &quot;A String&quot;, # Output only. Endpoint for Discovery API
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700471 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User provided name for the instance only used for display
472 # purposes. Cannot be more than 80 characters.
473 &quot;nodeCount&quot;: 42, # Required. Number of nodes in the Memcached instance.
474 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
475 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
476 # Refer to cloud documentation on labels for more details.
477 # https://cloud.google.com/compute/docs/labeling-resources
478 &quot;a_key&quot;: &quot;A String&quot;,
479 },
480 &quot;zones&quot;: [ # Optional. Zones where Memcached nodes should be provisioned in.
481 # Memcached nodes will be equally distributed across these zones. If not
482 # provided, the service will by default create nodes in all zones in the
483 # region for the instance.
484 &quot;A String&quot;,
485 ],
486 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the instance was updated.
487 &quot;parameters&quot;: { # Optional: User defined parameters to apply to the memcached process
488 # on each node.
489 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
490 # can use this id to determine if the parameters associated with the instance
491 # differ from the parameters associated with the nodes and any action needs
492 # to be taken to apply parameters on nodes.
493 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
494 &quot;a_key&quot;: &quot;A String&quot;,
495 },
496 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700497 }</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/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700596 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
597 # `condition` that determines how and when the `bindings` are applied. Each
598 # of the `bindings` must contain at least one member.
599 { # Associates `members` with a `role`.
600 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
601 #
602 # If the condition evaluates to `true`, then this binding applies to the
603 # current request.
604 #
605 # If the condition evaluates to `false`, then this binding does not apply to
606 # the current request. However, a different role binding might grant the same
607 # role to one or more of the members in this binding.
608 #
609 # To learn which resources support conditions in their IAM policies, see the
610 # [IAM
611 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
612 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
613 # are documented at https://github.com/google/cel-spec.
614 #
615 # Example (Comparison):
616 #
617 # title: &quot;Summary size limit&quot;
618 # description: &quot;Determines if a summary is less than 100 chars&quot;
619 # expression: &quot;document.summary.size() &lt; 100&quot;
620 #
621 # Example (Equality):
622 #
623 # title: &quot;Requestor is owner&quot;
624 # description: &quot;Determines if requestor is the document owner&quot;
625 # expression: &quot;document.owner == request.auth.claims.email&quot;
626 #
627 # Example (Logic):
628 #
629 # title: &quot;Public documents&quot;
630 # description: &quot;Determine whether the document should be publicly visible&quot;
631 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
632 #
633 # Example (Data Manipulation):
634 #
635 # title: &quot;Notification string&quot;
636 # description: &quot;Create a notification string with a timestamp.&quot;
637 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
638 #
639 # The exact variables and functions that may be referenced within an expression
640 # are determined by the service that evaluates it. See the service
641 # documentation for additional information.
642 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
643 # syntax.
644 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
645 # its purpose. This can be used e.g. in UIs which allow to enter the
646 # expression.
647 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
648 # reporting, e.g. a file name and a position in the file.
649 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
650 # describes the expression, e.g. when hovered over it in a UI.
651 },
652 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
653 # `members` can have the following values:
654 #
655 # * `allUsers`: A special identifier that represents anyone who is
656 # on the internet; with or without a Google account.
657 #
658 # * `allAuthenticatedUsers`: A special identifier that represents anyone
659 # who is authenticated with a Google account or a service account.
660 #
661 # * `user:{emailid}`: An email address that represents a specific Google
662 # account. For example, `alice@example.com` .
663 #
664 #
665 # * `serviceAccount:{emailid}`: An email address that represents a service
666 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
667 #
668 # * `group:{emailid}`: An email address that represents a Google group.
669 # For example, `admins@example.com`.
670 #
671 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
672 # identifier) representing a user that has been recently deleted. For
673 # example, `alice@example.com?uid=123456789012345678901`. If the user is
674 # recovered, this value reverts to `user:{emailid}` and the recovered user
675 # retains the role in the binding.
676 #
677 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
678 # unique identifier) representing a service account that has been recently
679 # deleted. For example,
680 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
681 # If the service account is undeleted, this value reverts to
682 # `serviceAccount:{emailid}` and the undeleted service account retains the
683 # role in the binding.
684 #
685 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
686 # identifier) representing a Google group that has been recently
687 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
688 # the group is recovered, this value reverts to `group:{emailid}` and the
689 # recovered group retains the role in the binding.
690 #
691 #
692 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
693 # users of that domain. For example, `google.com` or `example.com`.
694 #
695 &quot;A String&quot;,
696 ],
697 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
698 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
699 },
700 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700701 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
702 # prevent simultaneous updates of a policy from overwriting each other.
703 # It is strongly suggested that systems make use of the `etag` in the
704 # read-modify-write cycle to perform policy updates in order to avoid race
705 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
706 # systems are expected to put that etag in the request to `setIamPolicy` to
707 # ensure that their change will be applied to the same version of the policy.
708 #
709 # **Important:** If you use IAM Conditions, you must include the `etag` field
710 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
711 # you to overwrite a version `3` policy with a version `1` policy, and all of
712 # the conditions in the version `3` policy are lost.
713 &quot;version&quot;: 42, # Specifies the format of the policy.
714 #
715 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
716 # are rejected.
717 #
718 # Any operation that affects conditional role bindings must specify version
719 # `3`. This requirement applies to the following operations:
720 #
721 # * Getting a policy that includes a conditional role binding
722 # * Adding a conditional role binding to a policy
723 # * Changing a conditional role binding in a policy
724 # * Removing any role binding, with or without a condition, from a policy
725 # that includes conditions
726 #
727 # **Important:** If you use IAM Conditions, you must include the `etag` field
728 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
729 # you to overwrite a version `3` policy with a version `1` policy, and all of
730 # the conditions in the version `3` policy are lost.
731 #
732 # If a policy does not include any conditions, operations on that policy may
733 # specify any valid version or leave the field unset.
734 #
735 # To learn which resources support conditions in their IAM policies, see the
736 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
737 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
738 { # Specifies the audit configuration for a service.
739 # The configuration determines which permission types are logged, and what
740 # identities, if any, are exempted from logging.
741 # An AuditConfig must have one or more AuditLogConfigs.
742 #
743 # If there are AuditConfigs for both `allServices` and a specific service,
744 # the union of the two AuditConfigs is used for that service: the log_types
745 # specified in each AuditConfig are enabled, and the exempted_members in each
746 # AuditLogConfig are exempted.
747 #
748 # Example Policy with multiple AuditConfigs:
749 #
750 # {
751 # &quot;audit_configs&quot;: [
752 # {
753 # &quot;service&quot;: &quot;allServices&quot;
754 # &quot;audit_log_configs&quot;: [
755 # {
756 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
757 # &quot;exempted_members&quot;: [
758 # &quot;user:jose@example.com&quot;
759 # ]
760 # },
761 # {
762 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
763 # },
764 # {
765 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
766 # }
767 # ]
768 # },
769 # {
770 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
771 # &quot;audit_log_configs&quot;: [
772 # {
773 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
774 # },
775 # {
776 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
777 # &quot;exempted_members&quot;: [
778 # &quot;user:aliya@example.com&quot;
779 # ]
780 # }
781 # ]
782 # }
783 # ]
784 # }
785 #
786 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
787 # logging. It also exempts jose@example.com from DATA_READ logging, and
788 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700789 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
790 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
791 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -0700792 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
793 { # Provides the configuration for logging a type of permissions.
794 # Example:
795 #
796 # {
797 # &quot;audit_log_configs&quot;: [
798 # {
799 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
800 # &quot;exempted_members&quot;: [
801 # &quot;user:jose@example.com&quot;
802 # ]
803 # },
804 # {
805 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
806 # }
807 # ]
808 # }
809 #
810 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
811 # jose@example.com from DATA_READ logging.
812 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
813 # permission.
814 # Follows the same format of Binding.members.
815 &quot;A String&quot;,
816 ],
817 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
818 },
819 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 },
821 ],
822 }</pre>
823</div>
824
825<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700826 <code class="details" id="list">list(parent, pageToken=None, orderBy=None, pageSize=None, filter=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700827 <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)
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 pageToken: string, The next_page_token value returned from a previous List request,
834if any.
835 orderBy: string, Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
836 pageSize: integer, The maximum number of items to return.
837
838If not specified, a default value of 1000 will be used by the service.
839Regardless of the page_size value, the response may include a partial list
840and a caller should only rely on response&#x27;s
841next_page_token
842to determine if there are more instances left to be queried.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700843 filter: string, List filter. For example, exclude all Memcached instances with name as
844my-instance by specifying &quot;name != my-instance&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 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 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 &quot;memcacheNodes&quot;: [ # Output only. List of Memcached nodes.
861 # Refer to [Node] message for more details.
862 {
863 &quot;port&quot;: 42, # Output only. The port number of the Memcached server on this node.
864 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. Identifier of the Memcached node. The node id does not
865 # include project or location like the Memcached instance name.
866 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the Memcached node used by the
867 # clients to connect to the Memcached server on this node.
868 &quot;zone&quot;: &quot;A String&quot;, # Output only. Location (GCP Zone) for the Memcached node.
869 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Memcached node.
870 &quot;parameters&quot;: { # User defined parameters currently applied to the node.
871 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
872 # can use this id to determine if the parameters associated with the instance
873 # differ from the parameters associated with the nodes and any action needs
874 # to be taken to apply parameters on nodes.
875 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
876 &quot;a_key&quot;: &quot;A String&quot;,
877 },
878 },
879 },
880 ],
881 &quot;nodeConfig&quot;: { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes.
882 &quot;cpuCount&quot;: 42, # Required. Number of cpus per Memcached node.
883 &quot;memorySizeMb&quot;: 42, # Required. Memory size in MiB for each Memcached node.
884 },
885 &quot;memcacheVersion&quot;: &quot;A String&quot;, # Optional. The major version of Memcached software.
886 # If not provided, latest supported version will be used. Currently the
887 # latest supported major version is MEMCACHE_1_5.
888 # The minor version will be automatically determined by our system based on
889 # the latest supported minor version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700890 &quot;memcacheFullVersion&quot;: &quot;A String&quot;, # Output only. The full version of memcached server running on this instance.
891 # System automatically determines the full memcached version for an instance
892 # based on the input MemcacheVersion.
893 # The full version format will be &quot;memcached-1.5.16&quot;.
894 &quot;instanceMessages&quot;: [ # List of messages that describe current statuses of memcached instance.
895 {
896 &quot;code&quot;: &quot;A String&quot;, # A code that correspond to one type of user-facing message.
897 &quot;message&quot;: &quot;A String&quot;, # Message on memcached instance which will be exposed to users.
898 },
899 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700900 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # Optional. The full name of the Google Compute Engine
901 # [network](/compute/docs/networks-and-firewalls#networks) to which the
902 # instance is connected. If left unspecified, the `default` network
903 # will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this Memcached instance.
905 &quot;name&quot;: &quot;A String&quot;, # Required. Unique name of the resource in this scope including project and
906 # location using the form:
907 # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
908 #
909 # Note: Memcached instances are managed and addressed at regional level so
910 # location_id here refers to a GCP region; however, users may choose which
911 # zones Memcached nodes within an instances should be provisioned in.
912 # Refer to [zones] field for more details.
913 &quot;discoveryEndpoint&quot;: &quot;A String&quot;, # Output only. Endpoint for Discovery API
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700914 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User provided name for the instance only used for display
915 # purposes. Cannot be more than 80 characters.
916 &quot;nodeCount&quot;: 42, # Required. Number of nodes in the Memcached instance.
917 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
918 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
919 # Refer to cloud documentation on labels for more details.
920 # https://cloud.google.com/compute/docs/labeling-resources
921 &quot;a_key&quot;: &quot;A String&quot;,
922 },
923 &quot;zones&quot;: [ # Optional. Zones where Memcached nodes should be provisioned in.
924 # Memcached nodes will be equally distributed across these zones. If not
925 # provided, the service will by default create nodes in all zones in the
926 # region for the instance.
927 &quot;A String&quot;,
928 ],
929 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the instance was updated.
930 &quot;parameters&quot;: { # Optional: User defined parameters to apply to the memcached process
931 # on each node.
932 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
933 # can use this id to determine if the parameters associated with the instance
934 # differ from the parameters associated with the nodes and any action needs
935 # to be taken to apply parameters on nodes.
936 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
937 &quot;a_key&quot;: &quot;A String&quot;,
938 },
939 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700940 },
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{
Bu Sun Kim65020912020-05-20 12:08:20 -0700981 &quot;memcacheNodes&quot;: [ # Output only. List of Memcached nodes.
982 # Refer to [Node] message for more details.
983 {
984 &quot;port&quot;: 42, # Output only. The port number of the Memcached server on this node.
985 &quot;nodeId&quot;: &quot;A String&quot;, # Output only. Identifier of the Memcached node. The node id does not
986 # include project or location like the Memcached instance name.
987 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the Memcached node used by the
988 # clients to connect to the Memcached server on this node.
989 &quot;zone&quot;: &quot;A String&quot;, # Output only. Location (GCP Zone) for the Memcached node.
990 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the Memcached node.
991 &quot;parameters&quot;: { # User defined parameters currently applied to the node.
992 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
993 # can use this id to determine if the parameters associated with the instance
994 # differ from the parameters associated with the nodes and any action needs
995 # to be taken to apply parameters on nodes.
996 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
997 &quot;a_key&quot;: &quot;A String&quot;,
998 },
999 },
1000 },
1001 ],
1002 &quot;nodeConfig&quot;: { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes.
1003 &quot;cpuCount&quot;: 42, # Required. Number of cpus per Memcached node.
1004 &quot;memorySizeMb&quot;: 42, # Required. Memory size in MiB for each Memcached node.
1005 },
1006 &quot;memcacheVersion&quot;: &quot;A String&quot;, # Optional. The major version of Memcached software.
1007 # If not provided, latest supported version will be used. Currently the
1008 # latest supported major version is MEMCACHE_1_5.
1009 # The minor version will be automatically determined by our system based on
1010 # the latest supported minor version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001011 &quot;memcacheFullVersion&quot;: &quot;A String&quot;, # Output only. The full version of memcached server running on this instance.
1012 # System automatically determines the full memcached version for an instance
1013 # based on the input MemcacheVersion.
1014 # The full version format will be &quot;memcached-1.5.16&quot;.
1015 &quot;instanceMessages&quot;: [ # List of messages that describe current statuses of memcached instance.
1016 {
1017 &quot;code&quot;: &quot;A String&quot;, # A code that correspond to one type of user-facing message.
1018 &quot;message&quot;: &quot;A String&quot;, # Message on memcached instance which will be exposed to users.
1019 },
1020 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001021 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # Optional. The full name of the Google Compute Engine
1022 # [network](/compute/docs/networks-and-firewalls#networks) to which the
1023 # instance is connected. If left unspecified, the `default` network
1024 # will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07001025 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of this Memcached instance.
1026 &quot;name&quot;: &quot;A String&quot;, # Required. Unique name of the resource in this scope including project and
1027 # location using the form:
1028 # `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
1029 #
1030 # Note: Memcached instances are managed and addressed at regional level so
1031 # location_id here refers to a GCP region; however, users may choose which
1032 # zones Memcached nodes within an instances should be provisioned in.
1033 # Refer to [zones] field for more details.
1034 &quot;discoveryEndpoint&quot;: &quot;A String&quot;, # Output only. Endpoint for Discovery API
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001035 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User provided name for the instance only used for display
1036 # purposes. Cannot be more than 80 characters.
1037 &quot;nodeCount&quot;: 42, # Required. Number of nodes in the Memcached instance.
1038 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
1039 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
1040 # Refer to cloud documentation on labels for more details.
1041 # https://cloud.google.com/compute/docs/labeling-resources
1042 &quot;a_key&quot;: &quot;A String&quot;,
1043 },
1044 &quot;zones&quot;: [ # Optional. Zones where Memcached nodes should be provisioned in.
1045 # Memcached nodes will be equally distributed across these zones. If not
1046 # provided, the service will by default create nodes in all zones in the
1047 # region for the instance.
1048 &quot;A String&quot;,
1049 ],
1050 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the instance was updated.
1051 &quot;parameters&quot;: { # Optional: User defined parameters to apply to the memcached process
1052 # on each node.
1053 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique ID associated with this set of parameters. Users
1054 # can use this id to determine if the parameters associated with the instance
1055 # differ from the parameters associated with the nodes and any action needs
1056 # to be taken to apply parameters on nodes.
1057 &quot;params&quot;: { # User defined set of parameters to use in the memcached process.
1058 &quot;a_key&quot;: &quot;A String&quot;,
1059 },
1060 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001061}
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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001075 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1076 # contains progress information and common metadata such as create time.
1077 # Some services might not provide such metadata. Any method that returns a
1078 # long-running operation should document the metadata type, if any.
1079 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1080 },
1081 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1082 # If `true`, the operation is completed, and either `error` or `response` is
1083 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001084 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
1085 # method returns no data on success, such as `Delete`, the response is
1086 # `google.protobuf.Empty`. If the original method is standard
1087 # `Get`/`Create`/`Update`, the response should be the resource. For other
1088 # methods, the response should have the type `XxxResponse`, where `Xxx`
1089 # is the original method name. For example, if the original method name
1090 # is `TakeSnapshot()`, the inferred response type is
1091 # `TakeSnapshotResponse`.
1092 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1093 },
1094 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1095 # originally returns it. If you use the default HTTP mapping, the
1096 # `name` should be a resource name ending with `operations/{unique_id}`.
1097 &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.
1098 # different programming environments, including REST APIs and RPC APIs. It is
1099 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1100 # three pieces of data: error code, error message, and error details.
1101 #
1102 # You can find out more about this error model and how to work with it in the
1103 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001104 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1105 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1106 # user-facing error message should be localized and sent in the
1107 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07001108 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1109 # message types for APIs to use.
1110 {
1111 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1112 },
1113 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001114 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001115 }</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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001132 &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
1133 # the policy is limited to a few 10s of KB. An empty policy is a
1134 # valid policy but certain Cloud Platform services (such as Projects)
1135 # might reject them.
1136 # controls for Google Cloud resources.
1137 #
1138 #
1139 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1140 # `members` to a single `role`. Members can be user accounts, service accounts,
1141 # Google groups, and domains (such as G Suite). A `role` is a named list of
1142 # permissions; each `role` can be an IAM predefined role or a user-created
1143 # custom role.
1144 #
1145 # For some types of Google Cloud resources, a `binding` can also specify a
1146 # `condition`, which is a logical expression that allows access to a resource
1147 # only if the expression evaluates to `true`. A condition can add constraints
1148 # based on attributes of the request, the resource, or both. To learn which
1149 # resources support conditions in their IAM policies, see the
1150 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1151 #
1152 # **JSON example:**
1153 #
1154 # {
1155 # &quot;bindings&quot;: [
1156 # {
1157 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1158 # &quot;members&quot;: [
1159 # &quot;user:mike@example.com&quot;,
1160 # &quot;group:admins@example.com&quot;,
1161 # &quot;domain:google.com&quot;,
1162 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
1163 # ]
1164 # },
1165 # {
1166 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1167 # &quot;members&quot;: [
1168 # &quot;user:eve@example.com&quot;
1169 # ],
1170 # &quot;condition&quot;: {
1171 # &quot;title&quot;: &quot;expirable access&quot;,
1172 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1173 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1174 # }
1175 # }
1176 # ],
1177 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1178 # &quot;version&quot;: 3
1179 # }
1180 #
1181 # **YAML example:**
1182 #
1183 # bindings:
1184 # - members:
1185 # - user:mike@example.com
1186 # - group:admins@example.com
1187 # - domain:google.com
1188 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1189 # role: roles/resourcemanager.organizationAdmin
1190 # - members:
1191 # - user:eve@example.com
1192 # role: roles/resourcemanager.organizationViewer
1193 # condition:
1194 # title: expirable access
1195 # description: Does not grant access after Sep 2020
1196 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1197 # - etag: BwWWja0YfJA=
1198 # - version: 3
1199 #
1200 # For a description of IAM and its features, see the
1201 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001202 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1203 # `condition` that determines how and when the `bindings` are applied. Each
1204 # of the `bindings` must contain at least one member.
1205 { # Associates `members` with a `role`.
1206 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1207 #
1208 # If the condition evaluates to `true`, then this binding applies to the
1209 # current request.
1210 #
1211 # If the condition evaluates to `false`, then this binding does not apply to
1212 # the current request. However, a different role binding might grant the same
1213 # role to one or more of the members in this binding.
1214 #
1215 # To learn which resources support conditions in their IAM policies, see the
1216 # [IAM
1217 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1218 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1219 # are documented at https://github.com/google/cel-spec.
1220 #
1221 # Example (Comparison):
1222 #
1223 # title: &quot;Summary size limit&quot;
1224 # description: &quot;Determines if a summary is less than 100 chars&quot;
1225 # expression: &quot;document.summary.size() &lt; 100&quot;
1226 #
1227 # Example (Equality):
1228 #
1229 # title: &quot;Requestor is owner&quot;
1230 # description: &quot;Determines if requestor is the document owner&quot;
1231 # expression: &quot;document.owner == request.auth.claims.email&quot;
1232 #
1233 # Example (Logic):
1234 #
1235 # title: &quot;Public documents&quot;
1236 # description: &quot;Determine whether the document should be publicly visible&quot;
1237 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1238 #
1239 # Example (Data Manipulation):
1240 #
1241 # title: &quot;Notification string&quot;
1242 # description: &quot;Create a notification string with a timestamp.&quot;
1243 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1244 #
1245 # The exact variables and functions that may be referenced within an expression
1246 # are determined by the service that evaluates it. See the service
1247 # documentation for additional information.
1248 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1249 # syntax.
1250 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1251 # its purpose. This can be used e.g. in UIs which allow to enter the
1252 # expression.
1253 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1254 # reporting, e.g. a file name and a position in the file.
1255 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1256 # describes the expression, e.g. when hovered over it in a UI.
1257 },
1258 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1259 # `members` can have the following values:
1260 #
1261 # * `allUsers`: A special identifier that represents anyone who is
1262 # on the internet; with or without a Google account.
1263 #
1264 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1265 # who is authenticated with a Google account or a service account.
1266 #
1267 # * `user:{emailid}`: An email address that represents a specific Google
1268 # account. For example, `alice@example.com` .
1269 #
1270 #
1271 # * `serviceAccount:{emailid}`: An email address that represents a service
1272 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1273 #
1274 # * `group:{emailid}`: An email address that represents a Google group.
1275 # For example, `admins@example.com`.
1276 #
1277 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1278 # identifier) representing a user that has been recently deleted. For
1279 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1280 # recovered, this value reverts to `user:{emailid}` and the recovered user
1281 # retains the role in the binding.
1282 #
1283 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1284 # unique identifier) representing a service account that has been recently
1285 # deleted. For example,
1286 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1287 # If the service account is undeleted, this value reverts to
1288 # `serviceAccount:{emailid}` and the undeleted service account retains the
1289 # role in the binding.
1290 #
1291 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1292 # identifier) representing a Google group that has been recently
1293 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1294 # the group is recovered, this value reverts to `group:{emailid}` and the
1295 # recovered group retains the role in the binding.
1296 #
1297 #
1298 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1299 # users of that domain. For example, `google.com` or `example.com`.
1300 #
1301 &quot;A String&quot;,
1302 ],
1303 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1304 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1305 },
1306 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001307 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1308 # prevent simultaneous updates of a policy from overwriting each other.
1309 # It is strongly suggested that systems make use of the `etag` in the
1310 # read-modify-write cycle to perform policy updates in order to avoid race
1311 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1312 # systems are expected to put that etag in the request to `setIamPolicy` to
1313 # ensure that their change will be applied to the same version of the policy.
1314 #
1315 # **Important:** If you use IAM Conditions, you must include the `etag` field
1316 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1317 # you to overwrite a version `3` policy with a version `1` policy, and all of
1318 # the conditions in the version `3` policy are lost.
1319 &quot;version&quot;: 42, # Specifies the format of the policy.
1320 #
1321 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1322 # are rejected.
1323 #
1324 # Any operation that affects conditional role bindings must specify version
1325 # `3`. This requirement applies to the following operations:
1326 #
1327 # * Getting a policy that includes a conditional role binding
1328 # * Adding a conditional role binding to a policy
1329 # * Changing a conditional role binding in a policy
1330 # * Removing any role binding, with or without a condition, from a policy
1331 # that includes conditions
1332 #
1333 # **Important:** If you use IAM Conditions, you must include the `etag` field
1334 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1335 # you to overwrite a version `3` policy with a version `1` policy, and all of
1336 # the conditions in the version `3` policy are lost.
1337 #
1338 # If a policy does not include any conditions, operations on that policy may
1339 # specify any valid version or leave the field unset.
1340 #
1341 # To learn which resources support conditions in their IAM policies, see the
1342 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1343 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1344 { # Specifies the audit configuration for a service.
1345 # The configuration determines which permission types are logged, and what
1346 # identities, if any, are exempted from logging.
1347 # An AuditConfig must have one or more AuditLogConfigs.
1348 #
1349 # If there are AuditConfigs for both `allServices` and a specific service,
1350 # the union of the two AuditConfigs is used for that service: the log_types
1351 # specified in each AuditConfig are enabled, and the exempted_members in each
1352 # AuditLogConfig are exempted.
1353 #
1354 # Example Policy with multiple AuditConfigs:
1355 #
1356 # {
1357 # &quot;audit_configs&quot;: [
1358 # {
1359 # &quot;service&quot;: &quot;allServices&quot;
1360 # &quot;audit_log_configs&quot;: [
1361 # {
1362 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1363 # &quot;exempted_members&quot;: [
1364 # &quot;user:jose@example.com&quot;
1365 # ]
1366 # },
1367 # {
1368 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1369 # },
1370 # {
1371 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1372 # }
1373 # ]
1374 # },
1375 # {
1376 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1377 # &quot;audit_log_configs&quot;: [
1378 # {
1379 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1380 # },
1381 # {
1382 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1383 # &quot;exempted_members&quot;: [
1384 # &quot;user:aliya@example.com&quot;
1385 # ]
1386 # }
1387 # ]
1388 # }
1389 # ]
1390 # }
1391 #
1392 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1393 # logging. It also exempts jose@example.com from DATA_READ logging, and
1394 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001395 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1396 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1397 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -07001398 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1399 { # Provides the configuration for logging a type of permissions.
1400 # Example:
1401 #
1402 # {
1403 # &quot;audit_log_configs&quot;: [
1404 # {
1405 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1406 # &quot;exempted_members&quot;: [
1407 # &quot;user:jose@example.com&quot;
1408 # ]
1409 # },
1410 # {
1411 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1412 # }
1413 # ]
1414 # }
1415 #
1416 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1417 # jose@example.com from DATA_READ logging.
1418 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1419 # permission.
1420 # Follows the same format of Binding.members.
1421 &quot;A String&quot;,
1422 ],
1423 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1424 },
1425 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001426 },
1427 ],
1428 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001429 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1430 # the fields in the mask will be modified. If no mask is provided, the
1431 # following default mask is used:
1432 #
1433 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -07001434 }
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/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001511 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1512 # `condition` that determines how and when the `bindings` are applied. Each
1513 # of the `bindings` must contain at least one member.
1514 { # Associates `members` with a `role`.
1515 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1516 #
1517 # If the condition evaluates to `true`, then this binding applies to the
1518 # current request.
1519 #
1520 # If the condition evaluates to `false`, then this binding does not apply to
1521 # the current request. However, a different role binding might grant the same
1522 # role to one or more of the members in this binding.
1523 #
1524 # To learn which resources support conditions in their IAM policies, see the
1525 # [IAM
1526 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1527 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1528 # are documented at https://github.com/google/cel-spec.
1529 #
1530 # Example (Comparison):
1531 #
1532 # title: &quot;Summary size limit&quot;
1533 # description: &quot;Determines if a summary is less than 100 chars&quot;
1534 # expression: &quot;document.summary.size() &lt; 100&quot;
1535 #
1536 # Example (Equality):
1537 #
1538 # title: &quot;Requestor is owner&quot;
1539 # description: &quot;Determines if requestor is the document owner&quot;
1540 # expression: &quot;document.owner == request.auth.claims.email&quot;
1541 #
1542 # Example (Logic):
1543 #
1544 # title: &quot;Public documents&quot;
1545 # description: &quot;Determine whether the document should be publicly visible&quot;
1546 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1547 #
1548 # Example (Data Manipulation):
1549 #
1550 # title: &quot;Notification string&quot;
1551 # description: &quot;Create a notification string with a timestamp.&quot;
1552 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1553 #
1554 # The exact variables and functions that may be referenced within an expression
1555 # are determined by the service that evaluates it. See the service
1556 # documentation for additional information.
1557 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1558 # syntax.
1559 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1560 # its purpose. This can be used e.g. in UIs which allow to enter the
1561 # expression.
1562 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1563 # reporting, e.g. a file name and a position in the file.
1564 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1565 # describes the expression, e.g. when hovered over it in a UI.
1566 },
1567 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1568 # `members` can have the following values:
1569 #
1570 # * `allUsers`: A special identifier that represents anyone who is
1571 # on the internet; with or without a Google account.
1572 #
1573 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1574 # who is authenticated with a Google account or a service account.
1575 #
1576 # * `user:{emailid}`: An email address that represents a specific Google
1577 # account. For example, `alice@example.com` .
1578 #
1579 #
1580 # * `serviceAccount:{emailid}`: An email address that represents a service
1581 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1582 #
1583 # * `group:{emailid}`: An email address that represents a Google group.
1584 # For example, `admins@example.com`.
1585 #
1586 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1587 # identifier) representing a user that has been recently deleted. For
1588 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1589 # recovered, this value reverts to `user:{emailid}` and the recovered user
1590 # retains the role in the binding.
1591 #
1592 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1593 # unique identifier) representing a service account that has been recently
1594 # deleted. For example,
1595 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1596 # If the service account is undeleted, this value reverts to
1597 # `serviceAccount:{emailid}` and the undeleted service account retains the
1598 # role in the binding.
1599 #
1600 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1601 # identifier) representing a Google group that has been recently
1602 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1603 # the group is recovered, this value reverts to `group:{emailid}` and the
1604 # recovered group retains the role in the binding.
1605 #
1606 #
1607 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1608 # users of that domain. For example, `google.com` or `example.com`.
1609 #
1610 &quot;A String&quot;,
1611 ],
1612 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1613 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1614 },
1615 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001616 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1617 # prevent simultaneous updates of a policy from overwriting each other.
1618 # It is strongly suggested that systems make use of the `etag` in the
1619 # read-modify-write cycle to perform policy updates in order to avoid race
1620 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1621 # systems are expected to put that etag in the request to `setIamPolicy` to
1622 # ensure that their change will be applied to the same version of the policy.
1623 #
1624 # **Important:** If you use IAM Conditions, you must include the `etag` field
1625 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1626 # you to overwrite a version `3` policy with a version `1` policy, and all of
1627 # the conditions in the version `3` policy are lost.
1628 &quot;version&quot;: 42, # Specifies the format of the policy.
1629 #
1630 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1631 # are rejected.
1632 #
1633 # Any operation that affects conditional role bindings must specify version
1634 # `3`. This requirement applies to the following operations:
1635 #
1636 # * Getting a policy that includes a conditional role binding
1637 # * Adding a conditional role binding to a policy
1638 # * Changing a conditional role binding in a policy
1639 # * Removing any role binding, with or without a condition, from a policy
1640 # that includes conditions
1641 #
1642 # **Important:** If you use IAM Conditions, you must include the `etag` field
1643 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1644 # you to overwrite a version `3` policy with a version `1` policy, and all of
1645 # the conditions in the version `3` policy are lost.
1646 #
1647 # If a policy does not include any conditions, operations on that policy may
1648 # specify any valid version or leave the field unset.
1649 #
1650 # To learn which resources support conditions in their IAM policies, see the
1651 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1652 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1653 { # Specifies the audit configuration for a service.
1654 # The configuration determines which permission types are logged, and what
1655 # identities, if any, are exempted from logging.
1656 # An AuditConfig must have one or more AuditLogConfigs.
1657 #
1658 # If there are AuditConfigs for both `allServices` and a specific service,
1659 # the union of the two AuditConfigs is used for that service: the log_types
1660 # specified in each AuditConfig are enabled, and the exempted_members in each
1661 # AuditLogConfig are exempted.
1662 #
1663 # Example Policy with multiple AuditConfigs:
1664 #
1665 # {
1666 # &quot;audit_configs&quot;: [
1667 # {
1668 # &quot;service&quot;: &quot;allServices&quot;
1669 # &quot;audit_log_configs&quot;: [
1670 # {
1671 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1672 # &quot;exempted_members&quot;: [
1673 # &quot;user:jose@example.com&quot;
1674 # ]
1675 # },
1676 # {
1677 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1678 # },
1679 # {
1680 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1681 # }
1682 # ]
1683 # },
1684 # {
1685 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1686 # &quot;audit_log_configs&quot;: [
1687 # {
1688 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1689 # },
1690 # {
1691 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1692 # &quot;exempted_members&quot;: [
1693 # &quot;user:aliya@example.com&quot;
1694 # ]
1695 # }
1696 # ]
1697 # }
1698 # ]
1699 # }
1700 #
1701 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1702 # logging. It also exempts jose@example.com from DATA_READ logging, and
1703 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001704 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1705 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1706 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -07001707 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1708 { # Provides the configuration for logging a type of permissions.
1709 # Example:
1710 #
1711 # {
1712 # &quot;audit_log_configs&quot;: [
1713 # {
1714 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1715 # &quot;exempted_members&quot;: [
1716 # &quot;user:jose@example.com&quot;
1717 # ]
1718 # },
1719 # {
1720 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1721 # }
1722 # ]
1723 # }
1724 #
1725 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1726 # jose@example.com from DATA_READ logging.
1727 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1728 # permission.
1729 # Follows the same format of Binding.members.
1730 &quot;A String&quot;,
1731 ],
1732 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1733 },
1734 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001735 },
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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001816 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1817 # contains progress information and common metadata such as create time.
1818 # Some services might not provide such metadata. Any method that returns a
1819 # long-running operation should document the metadata type, if any.
1820 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1821 },
1822 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1823 # If `true`, the operation is completed, and either `error` or `response` is
1824 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001825 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
1826 # method returns no data on success, such as `Delete`, the response is
1827 # `google.protobuf.Empty`. If the original method is standard
1828 # `Get`/`Create`/`Update`, the response should be the resource. For other
1829 # methods, the response should have the type `XxxResponse`, where `Xxx`
1830 # is the original method name. For example, if the original method name
1831 # is `TakeSnapshot()`, the inferred response type is
1832 # `TakeSnapshotResponse`.
1833 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1834 },
1835 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1836 # originally returns it. If you use the default HTTP mapping, the
1837 # `name` should be a resource name ending with `operations/{unique_id}`.
1838 &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.
1839 # different programming environments, including REST APIs and RPC APIs. It is
1840 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1841 # three pieces of data: error code, error message, and error details.
1842 #
1843 # You can find out more about this error model and how to work with it in the
1844 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001845 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1846 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1847 # user-facing error message should be localized and sent in the
1848 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07001849 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1850 # message types for APIs to use.
1851 {
1852 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1853 },
1854 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001855 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001856 }</pre>
1857</div>
1858
1859</body></html>