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