1<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_v1.html">Cloud Memorystore for Memcached API</a> . <a href="memcache_v1.projects.html">projects</a> . <a href="memcache_v1.projects.locations.html">locations</a> . <a href="memcache_v1.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` restarts the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance.</p> 80<p class="toc_element"> 81 <code><a href="#close">close()</a></code></p> 82<p class="firstline">Close httplib2 connections.</p> 83<p class="toc_element"> 84 <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Creates a new Instance in a given location.</p> 86<p class="toc_element"> 87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 88<p class="firstline">Deletes a single Instance.</p> 89<p class="toc_element"> 90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 91<p class="firstline">Gets details of a single Instance.</p> 92<p class="toc_element"> 93 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Lists Instances in a given 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="#updateParameters">updateParameters(name, body=None, x__xgafv=None)</a></code></p> 103<p class="firstline">Updates the defined Memcached parameters for an existing instance. This method only stages the parameters, it must be followed by `ApplyParameters` to apply the parameters to nodes of the Memcached instance.</p> 104<h3>Method Details</h3> 105<div class="method"> 106 <code class="details" id="applyParameters">applyParameters(name, body=None, x__xgafv=None)</code> 107 <pre>`ApplyParameters` restarts the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance. 108 109Args: 110 name: string, Required. Resource name of the Memcached instance for which parameter group updates should be applied. (required) 111 body: object, The request body. 112 The object takes the form of: 113 114{ # Request for ApplyParameters. 115 "applyAll": True or False, # Whether to apply instance-level parameter group to all nodes. If set to true, users are restricted from specifying individual nodes, and `ApplyParameters` updates all nodes within the instance. 116 "nodeIds": [ # Nodes to which the instance-level parameter group is applied. 117 "A String", 118 ], 119} 120 121 x__xgafv: string, V1 error format. 122 Allowed values 123 1 - v1 error format 124 2 - v2 error format 125 126Returns: 127 An object of the form: 128 129 { # This resource represents a long-running operation that is the result of a network API call. 130 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 131 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 132 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 133 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 134 { 135 "a_key": "", # Properties of the object. Contains field @type with type URL. 136 }, 137 ], 138 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 139 }, 140 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 141 "a_key": "", # Properties of the object. Contains field @type with type URL. 142 }, 143 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 144 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 145 "a_key": "", # Properties of the object. Contains field @type with type URL. 146 }, 147}</pre> 148</div> 149 150<div class="method"> 151 <code class="details" id="close">close()</code> 152 <pre>Close httplib2 connections.</pre> 153</div> 154 155<div class="method"> 156 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code> 157 <pre>Creates a new Instance in a given location. 158 159Args: 160 parent: string, Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region (required) 161 body: object, The request body. 162 The object takes the form of: 163 164{ # A Memorystore for Memcached instance 165 "authorizedNetwork": "A String", # The full name of the Google Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. If left unspecified, the `default` network will be used. 166 "createTime": "A String", # Output only. The time the instance was created. 167 "discoveryEndpoint": "A String", # Output only. Endpoint for the Discovery API. 168 "displayName": "A String", # User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters. 169 "instanceMessages": [ # List of messages that describe the current state of the Memcached instance. 170 { 171 "code": "A String", # A code that correspond to one type of user-facing message. 172 "message": "A String", # Message on memcached instance which will be exposed to users. 173 }, 174 ], 175 "labels": { # Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources 176 "a_key": "A String", 177 }, 178 "memcacheFullVersion": "A String", # Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16". 179 "memcacheNodes": [ # Output only. List of Memcached nodes. Refer to Node message for more details. 180 { 181 "host": "A String", # Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node. 182 "nodeId": "A String", # Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name. 183 "parameters": { # User defined parameters currently applied to the node. 184 "id": "A String", # Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes. 185 "params": { # User defined set of parameters to use in the memcached process. 186 "a_key": "A String", 187 }, 188 }, 189 "port": 42, # Output only. The port number of the Memcached server on this node. 190 "state": "A String", # Output only. Current state of the Memcached node. 191 "zone": "A String", # Output only. Location (GCP Zone) for the Memcached node. 192 }, 193 ], 194 "memcacheVersion": "A String", # The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is `MEMCACHE_1_5`. The minor version will be automatically determined by our system based on the latest supported minor version. 195 "name": "A String", # Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Memcached instances are managed and addressed at the regional level so `location_id` here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details. 196 "nodeConfig": { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes. 197 "cpuCount": 42, # Required. Number of cpus per Memcached node. 198 "memorySizeMb": 42, # Required. Memory size in MiB for each Memcached node. 199 }, 200 "nodeCount": 42, # Required. Number of nodes in the Memcached instance. 201 "parameters": { # User defined parameters to apply to the memcached process on each node. 202 "id": "A String", # Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes. 203 "params": { # User defined set of parameters to use in the memcached process. 204 "a_key": "A String", 205 }, 206 }, 207 "state": "A String", # Output only. The state of this Memcached instance. 208 "updateTime": "A String", # Output only. The time the instance was updated. 209 "zones": [ # Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance. 210 "A String", 211 ], 212} 213 214 instanceId: string, Required. The logical name of the Memcached instance in the user project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the user project / location. If any of the above are not met, the API raises an invalid argument error. 215 x__xgafv: string, V1 error format. 216 Allowed values 217 1 - v1 error format 218 2 - v2 error format 219 220Returns: 221 An object of the form: 222 223 { # This resource represents a long-running operation that is the result of a network API call. 224 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 225 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 226 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 227 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 228 { 229 "a_key": "", # Properties of the object. Contains field @type with type URL. 230 }, 231 ], 232 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 233 }, 234 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 235 "a_key": "", # Properties of the object. Contains field @type with type URL. 236 }, 237 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 238 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 239 "a_key": "", # Properties of the object. Contains field @type with type URL. 240 }, 241}</pre> 242</div> 243 244<div class="method"> 245 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 246 <pre>Deletes a single Instance. 247 248Args: 249 name: string, Required. Memcached instance resource name in the format: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region (required) 250 x__xgafv: string, V1 error format. 251 Allowed values 252 1 - v1 error format 253 2 - v2 error format 254 255Returns: 256 An object of the form: 257 258 { # This resource represents a long-running operation that is the result of a network API call. 259 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 260 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 261 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 262 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 263 { 264 "a_key": "", # Properties of the object. Contains field @type with type URL. 265 }, 266 ], 267 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 268 }, 269 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 270 "a_key": "", # Properties of the object. Contains field @type with type URL. 271 }, 272 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 273 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 274 "a_key": "", # Properties of the object. Contains field @type with type URL. 275 }, 276}</pre> 277</div> 278 279<div class="method"> 280 <code class="details" id="get">get(name, x__xgafv=None)</code> 281 <pre>Gets details of a single Instance. 282 283Args: 284 name: string, Required. Memcached instance resource name in the format: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region (required) 285 x__xgafv: string, V1 error format. 286 Allowed values 287 1 - v1 error format 288 2 - v2 error format 289 290Returns: 291 An object of the form: 292 293 { # A Memorystore for Memcached instance 294 "authorizedNetwork": "A String", # The full name of the Google Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. If left unspecified, the `default` network will be used. 295 "createTime": "A String", # Output only. The time the instance was created. 296 "discoveryEndpoint": "A String", # Output only. Endpoint for the Discovery API. 297 "displayName": "A String", # User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters. 298 "instanceMessages": [ # List of messages that describe the current state of the Memcached instance. 299 { 300 "code": "A String", # A code that correspond to one type of user-facing message. 301 "message": "A String", # Message on memcached instance which will be exposed to users. 302 }, 303 ], 304 "labels": { # Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources 305 "a_key": "A String", 306 }, 307 "memcacheFullVersion": "A String", # Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16". 308 "memcacheNodes": [ # Output only. List of Memcached nodes. Refer to Node message for more details. 309 { 310 "host": "A String", # Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node. 311 "nodeId": "A String", # Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name. 312 "parameters": { # User defined parameters currently applied to the node. 313 "id": "A String", # Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes. 314 "params": { # User defined set of parameters to use in the memcached process. 315 "a_key": "A String", 316 }, 317 }, 318 "port": 42, # Output only. The port number of the Memcached server on this node. 319 "state": "A String", # Output only. Current state of the Memcached node. 320 "zone": "A String", # Output only. Location (GCP Zone) for the Memcached node. 321 }, 322 ], 323 "memcacheVersion": "A String", # The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is `MEMCACHE_1_5`. The minor version will be automatically determined by our system based on the latest supported minor version. 324 "name": "A String", # Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Memcached instances are managed and addressed at the regional level so `location_id` here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details. 325 "nodeConfig": { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes. 326 "cpuCount": 42, # Required. Number of cpus per Memcached node. 327 "memorySizeMb": 42, # Required. Memory size in MiB for each Memcached node. 328 }, 329 "nodeCount": 42, # Required. Number of nodes in the Memcached instance. 330 "parameters": { # User defined parameters to apply to the memcached process on each node. 331 "id": "A String", # Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes. 332 "params": { # User defined set of parameters to use in the memcached process. 333 "a_key": "A String", 334 }, 335 }, 336 "state": "A String", # Output only. The state of this Memcached instance. 337 "updateTime": "A String", # Output only. The time the instance was updated. 338 "zones": [ # Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance. 339 "A String", 340 ], 341}</pre> 342</div> 343 344<div class="method"> 345 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code> 346 <pre>Lists Instances in a given location. 347 348Args: 349 parent: string, Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region (required) 350 filter: string, List filter. For example, exclude all Memcached instances with name as my-instance by specifying `"name != my-instance"`. 351 orderBy: string, Sort results. Supported values are "name", "name desc" or "" (unsorted). 352 pageSize: integer, The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the `page_size` value, the response may include a partial list and a caller should only rely on response's `next_page_token` to determine if there are more instances left to be queried. 353 pageToken: string, The `next_page_token` value returned from a previous List request, if any. 354 x__xgafv: string, V1 error format. 355 Allowed values 356 1 - v1 error format 357 2 - v2 error format 358 359Returns: 360 An object of the form: 361 362 { # Response for ListInstances. 363 "instances": [ # A list of Memcached instances in the project in the specified location, or across all locations. If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. 364 { # A Memorystore for Memcached instance 365 "authorizedNetwork": "A String", # The full name of the Google Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. If left unspecified, the `default` network will be used. 366 "createTime": "A String", # Output only. The time the instance was created. 367 "discoveryEndpoint": "A String", # Output only. Endpoint for the Discovery API. 368 "displayName": "A String", # User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters. 369 "instanceMessages": [ # List of messages that describe the current state of the Memcached instance. 370 { 371 "code": "A String", # A code that correspond to one type of user-facing message. 372 "message": "A String", # Message on memcached instance which will be exposed to users. 373 }, 374 ], 375 "labels": { # Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources 376 "a_key": "A String", 377 }, 378 "memcacheFullVersion": "A String", # Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16". 379 "memcacheNodes": [ # Output only. List of Memcached nodes. Refer to Node message for more details. 380 { 381 "host": "A String", # Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node. 382 "nodeId": "A String", # Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name. 383 "parameters": { # User defined parameters currently applied to the node. 384 "id": "A String", # Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes. 385 "params": { # User defined set of parameters to use in the memcached process. 386 "a_key": "A String", 387 }, 388 }, 389 "port": 42, # Output only. The port number of the Memcached server on this node. 390 "state": "A String", # Output only. Current state of the Memcached node. 391 "zone": "A String", # Output only. Location (GCP Zone) for the Memcached node. 392 }, 393 ], 394 "memcacheVersion": "A String", # The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is `MEMCACHE_1_5`. The minor version will be automatically determined by our system based on the latest supported minor version. 395 "name": "A String", # Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Memcached instances are managed and addressed at the regional level so `location_id` here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details. 396 "nodeConfig": { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes. 397 "cpuCount": 42, # Required. Number of cpus per Memcached node. 398 "memorySizeMb": 42, # Required. Memory size in MiB for each Memcached node. 399 }, 400 "nodeCount": 42, # Required. Number of nodes in the Memcached instance. 401 "parameters": { # User defined parameters to apply to the memcached process on each node. 402 "id": "A String", # Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes. 403 "params": { # User defined set of parameters to use in the memcached process. 404 "a_key": "A String", 405 }, 406 }, 407 "state": "A String", # Output only. The state of this Memcached instance. 408 "updateTime": "A String", # Output only. The time the instance was updated. 409 "zones": [ # Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance. 410 "A String", 411 ], 412 }, 413 ], 414 "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list. 415 "unreachable": [ # Locations that could not be reached. 416 "A String", 417 ], 418}</pre> 419</div> 420 421<div class="method"> 422 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 423 <pre>Retrieves the next page of results. 424 425Args: 426 previous_request: The request for the previous page. (required) 427 previous_response: The response from the request for the previous page. (required) 428 429Returns: 430 A request object that you can call 'execute()' on to request the next 431 page. Returns None if there are no more items in the collection. 432 </pre> 433</div> 434 435<div class="method"> 436 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> 437 <pre>Updates an existing Instance in a given project and location. 438 439Args: 440 name: string, Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Memcached instances are managed and addressed at the regional level so `location_id` here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details. (required) 441 body: object, The request body. 442 The object takes the form of: 443 444{ # A Memorystore for Memcached instance 445 "authorizedNetwork": "A String", # The full name of the Google Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. If left unspecified, the `default` network will be used. 446 "createTime": "A String", # Output only. The time the instance was created. 447 "discoveryEndpoint": "A String", # Output only. Endpoint for the Discovery API. 448 "displayName": "A String", # User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters. 449 "instanceMessages": [ # List of messages that describe the current state of the Memcached instance. 450 { 451 "code": "A String", # A code that correspond to one type of user-facing message. 452 "message": "A String", # Message on memcached instance which will be exposed to users. 453 }, 454 ], 455 "labels": { # Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources 456 "a_key": "A String", 457 }, 458 "memcacheFullVersion": "A String", # Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16". 459 "memcacheNodes": [ # Output only. List of Memcached nodes. Refer to Node message for more details. 460 { 461 "host": "A String", # Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node. 462 "nodeId": "A String", # Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name. 463 "parameters": { # User defined parameters currently applied to the node. 464 "id": "A String", # Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes. 465 "params": { # User defined set of parameters to use in the memcached process. 466 "a_key": "A String", 467 }, 468 }, 469 "port": 42, # Output only. The port number of the Memcached server on this node. 470 "state": "A String", # Output only. Current state of the Memcached node. 471 "zone": "A String", # Output only. Location (GCP Zone) for the Memcached node. 472 }, 473 ], 474 "memcacheVersion": "A String", # The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is `MEMCACHE_1_5`. The minor version will be automatically determined by our system based on the latest supported minor version. 475 "name": "A String", # Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Memcached instances are managed and addressed at the regional level so `location_id` here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details. 476 "nodeConfig": { # Configuration for a Memcached Node. # Required. Configuration for Memcached nodes. 477 "cpuCount": 42, # Required. Number of cpus per Memcached node. 478 "memorySizeMb": 42, # Required. Memory size in MiB for each Memcached node. 479 }, 480 "nodeCount": 42, # Required. Number of nodes in the Memcached instance. 481 "parameters": { # User defined parameters to apply to the memcached process on each node. 482 "id": "A String", # Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes. 483 "params": { # User defined set of parameters to use in the memcached process. 484 "a_key": "A String", 485 }, 486 }, 487 "state": "A String", # Output only. The state of this Memcached instance. 488 "updateTime": "A String", # Output only. The time the instance was updated. 489 "zones": [ # Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance. 490 "A String", 491 ], 492} 493 494 updateMask: string, Required. Mask of fields to update. * `displayName` 495 x__xgafv: string, V1 error format. 496 Allowed values 497 1 - v1 error format 498 2 - v2 error format 499 500Returns: 501 An object of the form: 502 503 { # This resource represents a long-running operation that is the result of a network API call. 504 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 505 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 506 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 507 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 508 { 509 "a_key": "", # Properties of the object. Contains field @type with type URL. 510 }, 511 ], 512 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 513 }, 514 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 515 "a_key": "", # Properties of the object. Contains field @type with type URL. 516 }, 517 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 518 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 519 "a_key": "", # Properties of the object. Contains field @type with type URL. 520 }, 521}</pre> 522</div> 523 524<div class="method"> 525 <code class="details" id="updateParameters">updateParameters(name, body=None, x__xgafv=None)</code> 526 <pre>Updates the defined Memcached parameters for an existing instance. This method only stages the parameters, it must be followed by `ApplyParameters` to apply the parameters to nodes of the Memcached instance. 527 528Args: 529 name: string, Required. Resource name of the Memcached instance for which the parameters should be updated. (required) 530 body: object, The request body. 531 The object takes the form of: 532 533{ # Request for UpdateParameters. 534 "parameters": { # The parameters to apply to the instance. 535 "id": "A String", # Output only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes. 536 "params": { # User defined set of parameters to use in the memcached process. 537 "a_key": "A String", 538 }, 539 }, 540 "updateMask": "A String", # Required. Mask of fields to update. 541} 542 543 x__xgafv: string, V1 error format. 544 Allowed values 545 1 - v1 error format 546 2 - v2 error format 547 548Returns: 549 An object of the form: 550 551 { # This resource represents a long-running operation that is the result of a network API call. 552 "done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. 553 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. 554 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 555 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 556 { 557 "a_key": "", # Properties of the object. Contains field @type with type URL. 558 }, 559 ], 560 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 561 }, 562 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 563 "a_key": "", # Properties of the object. Contains field @type with type URL. 564 }, 565 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. 566 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 567 "a_key": "", # Properties of the object. Contains field @type with type URL. 568 }, 569}</pre> 570</div> 571 572</body></html>