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="redis_v1.html">Google Cloud Memorystore for Redis API</a> . <a href="redis_v1.projects.html">projects</a> . <a href="redis_v1.projects.locations.html">locations</a> . <a href="redis_v1.projects.locations.instances.html">instances</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's [default network](https://cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.</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 specific Redis instance. Instance stops serving and data is deleted.</p> 86<p class="toc_element"> 87 <code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Export Redis instance data into a Redis RDB format file in Cloud Storage. Redis will continue serving during this operation. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.</p> 89<p class="toc_element"> 90 <code><a href="#failover">failover(name, body=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Initiates a failover of the primary node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance.</p> 92<p class="toc_element"> 93 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 94<p class="firstline">Gets the details of a specific Redis instance.</p> 95<p class="toc_element"> 96 <code><a href="#getAuthString">getAuthString(name, x__xgafv=None)</a></code></p> 97<p class="firstline">Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance.</p> 98<p class="toc_element"> 99 <code><a href="#import_">import_(name, body=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.</p> 101<p class="toc_element"> 102 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 103<p class="firstline">Lists all Redis instances owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.</p> 104<p class="toc_element"> 105 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 106<p class="firstline">Retrieves the next page of results.</p> 107<p class="toc_element"> 108 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> 109<p class="firstline">Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.</p> 110<p class="toc_element"> 111 <code><a href="#rescheduleMaintenance">rescheduleMaintenance(name, body=None, x__xgafv=None)</a></code></p> 112<p class="firstline">Reschedule maintenance for a given instance in a given project and location.</p> 113<p class="toc_element"> 114 <code><a href="#upgrade">upgrade(name, body=None, x__xgafv=None)</a></code></p> 115<p class="firstline">Upgrades Redis instance to the newer Redis version specified in the request.</p> 116<h3>Method Details</h3> 117<div class="method"> 118 <code class="details" id="close">close()</code> 119 <pre>Close httplib2 connections.</pre> 120</div> 121 122<div class="method"> 123 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code> 124 <pre>Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's [default network](https://cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. 125 126Args: 127 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) 128 body: object, The request body. 129 The object takes the form of: 130 131{ # A Google Cloud Redis instance. 132 "alternativeLocationId": "A String", # Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service. 133 "authEnabled": True or False, # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to "true" AUTH is enabled on the instance. Default value is "false" meaning AUTH is disabled. 134 "authorizedNetwork": "A String", # Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used. 135 "connectMode": "A String", # Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING. 136 "createTime": "A String", # Output only. The time the instance was created. 137 "currentLocationId": "A String", # Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance. 138 "displayName": "A String", # An arbitrary and optional user-provided name for the instance. 139 "host": "A String", # Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service. 140 "labels": { # Resource labels to represent user provided metadata 141 "a_key": "A String", 142 }, 143 "locationId": "A String", # Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone. 144 "maintenancePolicy": { # Maintenance policy for an instance. # Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time. 145 "createTime": "A String", # Output only. The time when the policy was created. 146 "description": "A String", # Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. 147 "updateTime": "A String", # Output only. The time when the policy was last updated. 148 "weeklyMaintenanceWindow": [ # Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. 149 { # Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window. 150 "day": "A String", # Required. The day of week that maintenance updates occur. 151 "duration": "A String", # Output only. Duration of the maintenance window. The current window is fixed at 1 hour. 152 "startTime": { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Start time of the window in UTC time. 153 "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. 154 "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. 155 "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. 156 "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. 157 }, 158 }, 159 ], 160 }, 161 "maintenanceSchedule": { # Upcoming maintenance schedule. If no maintenance is scheduled, fields are not populated. # Output only. Date and time of upcoming maintenance events which have been scheduled. 162 "canReschedule": True or False, # If the scheduled maintenance can be rescheduled, default is true. 163 "endTime": "A String", # Output only. The end time of any upcoming scheduled maintenance for this instance. 164 "scheduleDeadlineTime": "A String", # Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. 165 "startTime": "A String", # Output only. The start time of any upcoming scheduled maintenance for this instance. 166 }, 167 "memorySizeGb": 42, # Required. Redis memory size in GiB. 168 "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: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. 169 "nodes": [ # Output only. Info per node. 170 { # Node specific properties. 171 "id": "A String", # Output only. Node identifying string. e.g. 'node-0', 'node-1' 172 "zone": "A String", # Output only. Location of the node. 173 }, 174 ], 175 "persistenceConfig": { # Configuration of the persistence functionality. # Optional. Persistence configuration parameters 176 "persistenceMode": "A String", # Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used. 177 "rdbNextSnapshotTime": "A String", # Output only. The next time that a snapshot attempt is scheduled to occur. 178 "rdbSnapshotPeriod": "A String", # Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default. 179 "rdbSnapshotStartTime": "A String", # Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used. 180 }, 181 "persistenceIamIdentity": "A String", # Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:". The value may change over time for a given instance so should be checked before each import/export operation. 182 "port": 42, # Output only. The port number of the exposed Redis endpoint. 183 "readEndpoint": "A String", # Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'. 184 "readEndpointPort": 42, # Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'. 185 "readReplicasMode": "A String", # Optional. Read replica mode. Can only be specified when trying to create the instance. 186 "redisConfigs": { # Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries 187 "a_key": "A String", 188 }, 189 "redisVersion": "A String", # Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility 190 "replicaCount": 42, # Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0. 191 "reservedIpRange": "A String", # Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28. 192 "serverCaCerts": [ # Output only. List of server CA certificates for the instance. 193 { # TlsCertificate Resource 194 "cert": "A String", # PEM representation. 195 "createTime": "A String", # Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. 196 "expireTime": "A String", # Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. 197 "serialNumber": "A String", # Serial number, as extracted from the certificate. 198 "sha1Fingerprint": "A String", # Sha1 Fingerprint of the certificate. 199 }, 200 ], 201 "state": "A String", # Output only. The current state of this instance. 202 "statusMessage": "A String", # Output only. Additional information about the current status of this instance, if available. 203 "tier": "A String", # Required. The service tier of the instance. 204 "transitEncryptionMode": "A String", # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance. 205} 206 207 instanceId: string, Required. The logical name of the Redis instance in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / location 208 x__xgafv: string, V1 error format. 209 Allowed values 210 1 - v1 error format 211 2 - v2 error format 212 213Returns: 214 An object of the form: 215 216 { # This resource represents a long-running operation that is the result of a network API call. 217 "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. 218 "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. 219 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 220 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 221 { 222 "a_key": "", # Properties of the object. Contains field @type with type URL. 223 }, 224 ], 225 "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. 226 }, 227 "metadata": { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. } 228 "a_key": "", # Properties of the object. Contains field @type with type URL. 229 }, 230 "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}`. 231 "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`. 232 "a_key": "", # Properties of the object. Contains field @type with type URL. 233 }, 234}</pre> 235</div> 236 237<div class="method"> 238 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 239 <pre>Deletes a specific Redis instance. Instance stops serving and data is deleted. 240 241Args: 242 name: string, Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. (required) 243 x__xgafv: string, V1 error format. 244 Allowed values 245 1 - v1 error format 246 2 - v2 error format 247 248Returns: 249 An object of the form: 250 251 { # This resource represents a long-running operation that is the result of a network API call. 252 "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. 253 "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. 254 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 255 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 256 { 257 "a_key": "", # Properties of the object. Contains field @type with type URL. 258 }, 259 ], 260 "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. 261 }, 262 "metadata": { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. } 263 "a_key": "", # Properties of the object. Contains field @type with type URL. 264 }, 265 "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}`. 266 "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`. 267 "a_key": "", # Properties of the object. Contains field @type with type URL. 268 }, 269}</pre> 270</div> 271 272<div class="method"> 273 <code class="details" id="export">export(name, body=None, x__xgafv=None)</code> 274 <pre>Export Redis instance data into a Redis RDB format file in Cloud Storage. Redis will continue serving during this operation. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. 275 276Args: 277 name: string, Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. (required) 278 body: object, The request body. 279 The object takes the form of: 280 281{ # Request for Export. 282 "outputConfig": { # The output content # Required. Specify data to be exported. 283 "gcsDestination": { # The Cloud Storage location for the output content # Google Cloud Storage destination for output content. 284 "uri": "A String", # Required. Data destination URI (e.g. 'gs://my_bucket/my_object'). Existing files will be overwritten. 285 }, 286 }, 287} 288 289 x__xgafv: string, V1 error format. 290 Allowed values 291 1 - v1 error format 292 2 - v2 error format 293 294Returns: 295 An object of the form: 296 297 { # This resource represents a long-running operation that is the result of a network API call. 298 "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. 299 "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. 300 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 301 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 302 { 303 "a_key": "", # Properties of the object. Contains field @type with type URL. 304 }, 305 ], 306 "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. 307 }, 308 "metadata": { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. } 309 "a_key": "", # Properties of the object. Contains field @type with type URL. 310 }, 311 "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}`. 312 "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`. 313 "a_key": "", # Properties of the object. Contains field @type with type URL. 314 }, 315}</pre> 316</div> 317 318<div class="method"> 319 <code class="details" id="failover">failover(name, body=None, x__xgafv=None)</code> 320 <pre>Initiates a failover of the primary node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance. 321 322Args: 323 name: string, Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. (required) 324 body: object, The request body. 325 The object takes the form of: 326 327{ # Request for Failover. 328 "dataProtectionMode": "A String", # Optional. Available data protection modes that the user can choose. If it's unspecified, data protection mode will be LIMITED_DATA_LOSS by default. 329} 330 331 x__xgafv: string, V1 error format. 332 Allowed values 333 1 - v1 error format 334 2 - v2 error format 335 336Returns: 337 An object of the form: 338 339 { # This resource represents a long-running operation that is the result of a network API call. 340 "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. 341 "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. 342 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 343 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 344 { 345 "a_key": "", # Properties of the object. Contains field @type with type URL. 346 }, 347 ], 348 "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. 349 }, 350 "metadata": { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. } 351 "a_key": "", # Properties of the object. Contains field @type with type URL. 352 }, 353 "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}`. 354 "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`. 355 "a_key": "", # Properties of the object. Contains field @type with type URL. 356 }, 357}</pre> 358</div> 359 360<div class="method"> 361 <code class="details" id="get">get(name, x__xgafv=None)</code> 362 <pre>Gets the details of a specific Redis instance. 363 364Args: 365 name: string, Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. (required) 366 x__xgafv: string, V1 error format. 367 Allowed values 368 1 - v1 error format 369 2 - v2 error format 370 371Returns: 372 An object of the form: 373 374 { # A Google Cloud Redis instance. 375 "alternativeLocationId": "A String", # Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service. 376 "authEnabled": True or False, # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to "true" AUTH is enabled on the instance. Default value is "false" meaning AUTH is disabled. 377 "authorizedNetwork": "A String", # Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used. 378 "connectMode": "A String", # Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING. 379 "createTime": "A String", # Output only. The time the instance was created. 380 "currentLocationId": "A String", # Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance. 381 "displayName": "A String", # An arbitrary and optional user-provided name for the instance. 382 "host": "A String", # Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service. 383 "labels": { # Resource labels to represent user provided metadata 384 "a_key": "A String", 385 }, 386 "locationId": "A String", # Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone. 387 "maintenancePolicy": { # Maintenance policy for an instance. # Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time. 388 "createTime": "A String", # Output only. The time when the policy was created. 389 "description": "A String", # Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. 390 "updateTime": "A String", # Output only. The time when the policy was last updated. 391 "weeklyMaintenanceWindow": [ # Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. 392 { # Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window. 393 "day": "A String", # Required. The day of week that maintenance updates occur. 394 "duration": "A String", # Output only. Duration of the maintenance window. The current window is fixed at 1 hour. 395 "startTime": { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Start time of the window in UTC time. 396 "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. 397 "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. 398 "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. 399 "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. 400 }, 401 }, 402 ], 403 }, 404 "maintenanceSchedule": { # Upcoming maintenance schedule. If no maintenance is scheduled, fields are not populated. # Output only. Date and time of upcoming maintenance events which have been scheduled. 405 "canReschedule": True or False, # If the scheduled maintenance can be rescheduled, default is true. 406 "endTime": "A String", # Output only. The end time of any upcoming scheduled maintenance for this instance. 407 "scheduleDeadlineTime": "A String", # Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. 408 "startTime": "A String", # Output only. The start time of any upcoming scheduled maintenance for this instance. 409 }, 410 "memorySizeGb": 42, # Required. Redis memory size in GiB. 411 "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: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. 412 "nodes": [ # Output only. Info per node. 413 { # Node specific properties. 414 "id": "A String", # Output only. Node identifying string. e.g. 'node-0', 'node-1' 415 "zone": "A String", # Output only. Location of the node. 416 }, 417 ], 418 "persistenceConfig": { # Configuration of the persistence functionality. # Optional. Persistence configuration parameters 419 "persistenceMode": "A String", # Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used. 420 "rdbNextSnapshotTime": "A String", # Output only. The next time that a snapshot attempt is scheduled to occur. 421 "rdbSnapshotPeriod": "A String", # Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default. 422 "rdbSnapshotStartTime": "A String", # Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used. 423 }, 424 "persistenceIamIdentity": "A String", # Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:". The value may change over time for a given instance so should be checked before each import/export operation. 425 "port": 42, # Output only. The port number of the exposed Redis endpoint. 426 "readEndpoint": "A String", # Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'. 427 "readEndpointPort": 42, # Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'. 428 "readReplicasMode": "A String", # Optional. Read replica mode. Can only be specified when trying to create the instance. 429 "redisConfigs": { # Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries 430 "a_key": "A String", 431 }, 432 "redisVersion": "A String", # Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility 433 "replicaCount": 42, # Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0. 434 "reservedIpRange": "A String", # Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28. 435 "serverCaCerts": [ # Output only. List of server CA certificates for the instance. 436 { # TlsCertificate Resource 437 "cert": "A String", # PEM representation. 438 "createTime": "A String", # Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. 439 "expireTime": "A String", # Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. 440 "serialNumber": "A String", # Serial number, as extracted from the certificate. 441 "sha1Fingerprint": "A String", # Sha1 Fingerprint of the certificate. 442 }, 443 ], 444 "state": "A String", # Output only. The current state of this instance. 445 "statusMessage": "A String", # Output only. Additional information about the current status of this instance, if available. 446 "tier": "A String", # Required. The service tier of the instance. 447 "transitEncryptionMode": "A String", # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance. 448}</pre> 449</div> 450 451<div class="method"> 452 <code class="details" id="getAuthString">getAuthString(name, x__xgafv=None)</code> 453 <pre>Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance. 454 455Args: 456 name: string, Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. (required) 457 x__xgafv: string, V1 error format. 458 Allowed values 459 1 - v1 error format 460 2 - v2 error format 461 462Returns: 463 An object of the form: 464 465 { # Instance AUTH string details. 466 "authString": "A String", # AUTH string set on the instance. 467}</pre> 468</div> 469 470<div class="method"> 471 <code class="details" id="import_">import_(name, body=None, x__xgafv=None)</code> 472 <pre>Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. 473 474Args: 475 name: string, Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. (required) 476 body: object, The request body. 477 The object takes the form of: 478 479{ # Request for Import. 480 "inputConfig": { # The input content # Required. Specify data to be imported. 481 "gcsSource": { # The Cloud Storage location for the input content # Google Cloud Storage location where input content is located. 482 "uri": "A String", # Required. Source data URI. (e.g. 'gs://my_bucket/my_object'). 483 }, 484 }, 485} 486 487 x__xgafv: string, V1 error format. 488 Allowed values 489 1 - v1 error format 490 2 - v2 error format 491 492Returns: 493 An object of the form: 494 495 { # This resource represents a long-running operation that is the result of a network API call. 496 "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. 497 "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. 498 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 499 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 500 { 501 "a_key": "", # Properties of the object. Contains field @type with type URL. 502 }, 503 ], 504 "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. 505 }, 506 "metadata": { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. } 507 "a_key": "", # Properties of the object. Contains field @type with type URL. 508 }, 509 "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}`. 510 "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`. 511 "a_key": "", # Properties of the object. Contains field @type with type URL. 512 }, 513}</pre> 514</div> 515 516<div class="method"> 517 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> 518 <pre>Lists all Redis instances owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. 519 520Args: 521 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) 522 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. 523 pageToken: string, The `next_page_token` value returned from a previous ListInstances request, if any. 524 x__xgafv: string, V1 error format. 525 Allowed values 526 1 - v1 error format 527 2 - v2 error format 528 529Returns: 530 An object of the form: 531 532 { # Response for ListInstances. 533 "instances": [ # A list of Redis 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. If in such an aggregated query a location is unavailable, a placeholder Redis entry is included in the response with the `name` field set to a value of the form `projects/{project_id}/locations/{location_id}/instances/`- and the `status` field set to ERROR and `status_message` field set to "location not available for ListInstances". 534 { # A Google Cloud Redis instance. 535 "alternativeLocationId": "A String", # Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service. 536 "authEnabled": True or False, # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to "true" AUTH is enabled on the instance. Default value is "false" meaning AUTH is disabled. 537 "authorizedNetwork": "A String", # Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used. 538 "connectMode": "A String", # Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING. 539 "createTime": "A String", # Output only. The time the instance was created. 540 "currentLocationId": "A String", # Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance. 541 "displayName": "A String", # An arbitrary and optional user-provided name for the instance. 542 "host": "A String", # Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service. 543 "labels": { # Resource labels to represent user provided metadata 544 "a_key": "A String", 545 }, 546 "locationId": "A String", # Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone. 547 "maintenancePolicy": { # Maintenance policy for an instance. # Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time. 548 "createTime": "A String", # Output only. The time when the policy was created. 549 "description": "A String", # Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. 550 "updateTime": "A String", # Output only. The time when the policy was last updated. 551 "weeklyMaintenanceWindow": [ # Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. 552 { # Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window. 553 "day": "A String", # Required. The day of week that maintenance updates occur. 554 "duration": "A String", # Output only. Duration of the maintenance window. The current window is fixed at 1 hour. 555 "startTime": { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Start time of the window in UTC time. 556 "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. 557 "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. 558 "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. 559 "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. 560 }, 561 }, 562 ], 563 }, 564 "maintenanceSchedule": { # Upcoming maintenance schedule. If no maintenance is scheduled, fields are not populated. # Output only. Date and time of upcoming maintenance events which have been scheduled. 565 "canReschedule": True or False, # If the scheduled maintenance can be rescheduled, default is true. 566 "endTime": "A String", # Output only. The end time of any upcoming scheduled maintenance for this instance. 567 "scheduleDeadlineTime": "A String", # Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. 568 "startTime": "A String", # Output only. The start time of any upcoming scheduled maintenance for this instance. 569 }, 570 "memorySizeGb": 42, # Required. Redis memory size in GiB. 571 "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: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. 572 "nodes": [ # Output only. Info per node. 573 { # Node specific properties. 574 "id": "A String", # Output only. Node identifying string. e.g. 'node-0', 'node-1' 575 "zone": "A String", # Output only. Location of the node. 576 }, 577 ], 578 "persistenceConfig": { # Configuration of the persistence functionality. # Optional. Persistence configuration parameters 579 "persistenceMode": "A String", # Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used. 580 "rdbNextSnapshotTime": "A String", # Output only. The next time that a snapshot attempt is scheduled to occur. 581 "rdbSnapshotPeriod": "A String", # Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default. 582 "rdbSnapshotStartTime": "A String", # Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used. 583 }, 584 "persistenceIamIdentity": "A String", # Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:". The value may change over time for a given instance so should be checked before each import/export operation. 585 "port": 42, # Output only. The port number of the exposed Redis endpoint. 586 "readEndpoint": "A String", # Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'. 587 "readEndpointPort": 42, # Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'. 588 "readReplicasMode": "A String", # Optional. Read replica mode. Can only be specified when trying to create the instance. 589 "redisConfigs": { # Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries 590 "a_key": "A String", 591 }, 592 "redisVersion": "A String", # Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility 593 "replicaCount": 42, # Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0. 594 "reservedIpRange": "A String", # Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28. 595 "serverCaCerts": [ # Output only. List of server CA certificates for the instance. 596 { # TlsCertificate Resource 597 "cert": "A String", # PEM representation. 598 "createTime": "A String", # Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. 599 "expireTime": "A String", # Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. 600 "serialNumber": "A String", # Serial number, as extracted from the certificate. 601 "sha1Fingerprint": "A String", # Sha1 Fingerprint of the certificate. 602 }, 603 ], 604 "state": "A String", # Output only. The current state of this instance. 605 "statusMessage": "A String", # Output only. Additional information about the current status of this instance, if available. 606 "tier": "A String", # Required. The service tier of the instance. 607 "transitEncryptionMode": "A String", # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance. 608 }, 609 ], 610 "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list. 611 "unreachable": [ # Locations that could not be reached. 612 "A String", 613 ], 614}</pre> 615</div> 616 617<div class="method"> 618 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 619 <pre>Retrieves the next page of results. 620 621Args: 622 previous_request: The request for the previous page. (required) 623 previous_response: The response from the request for the previous page. (required) 624 625Returns: 626 A request object that you can call 'execute()' on to request the next 627 page. Returns None if there are no more items in the collection. 628 </pre> 629</div> 630 631<div class="method"> 632 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> 633 <pre>Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. 634 635Args: 636 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: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. (required) 637 body: object, The request body. 638 The object takes the form of: 639 640{ # A Google Cloud Redis instance. 641 "alternativeLocationId": "A String", # Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service. 642 "authEnabled": True or False, # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to "true" AUTH is enabled on the instance. Default value is "false" meaning AUTH is disabled. 643 "authorizedNetwork": "A String", # Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used. 644 "connectMode": "A String", # Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING. 645 "createTime": "A String", # Output only. The time the instance was created. 646 "currentLocationId": "A String", # Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance. 647 "displayName": "A String", # An arbitrary and optional user-provided name for the instance. 648 "host": "A String", # Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service. 649 "labels": { # Resource labels to represent user provided metadata 650 "a_key": "A String", 651 }, 652 "locationId": "A String", # Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone. 653 "maintenancePolicy": { # Maintenance policy for an instance. # Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time. 654 "createTime": "A String", # Output only. The time when the policy was created. 655 "description": "A String", # Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. 656 "updateTime": "A String", # Output only. The time when the policy was last updated. 657 "weeklyMaintenanceWindow": [ # Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. 658 { # Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window. 659 "day": "A String", # Required. The day of week that maintenance updates occur. 660 "duration": "A String", # Output only. Duration of the maintenance window. The current window is fixed at 1 hour. 661 "startTime": { # Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. # Required. Start time of the window in UTC time. 662 "hours": 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. 663 "minutes": 42, # Minutes of hour of day. Must be from 0 to 59. 664 "nanos": 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. 665 "seconds": 42, # Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. 666 }, 667 }, 668 ], 669 }, 670 "maintenanceSchedule": { # Upcoming maintenance schedule. If no maintenance is scheduled, fields are not populated. # Output only. Date and time of upcoming maintenance events which have been scheduled. 671 "canReschedule": True or False, # If the scheduled maintenance can be rescheduled, default is true. 672 "endTime": "A String", # Output only. The end time of any upcoming scheduled maintenance for this instance. 673 "scheduleDeadlineTime": "A String", # Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. 674 "startTime": "A String", # Output only. The start time of any upcoming scheduled maintenance for this instance. 675 }, 676 "memorySizeGb": 42, # Required. Redis memory size in GiB. 677 "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: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to location_id and alternative_location_id fields for more details. 678 "nodes": [ # Output only. Info per node. 679 { # Node specific properties. 680 "id": "A String", # Output only. Node identifying string. e.g. 'node-0', 'node-1' 681 "zone": "A String", # Output only. Location of the node. 682 }, 683 ], 684 "persistenceConfig": { # Configuration of the persistence functionality. # Optional. Persistence configuration parameters 685 "persistenceMode": "A String", # Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used. 686 "rdbNextSnapshotTime": "A String", # Output only. The next time that a snapshot attempt is scheduled to occur. 687 "rdbSnapshotPeriod": "A String", # Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default. 688 "rdbSnapshotStartTime": "A String", # Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used. 689 }, 690 "persistenceIamIdentity": "A String", # Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:". The value may change over time for a given instance so should be checked before each import/export operation. 691 "port": 42, # Output only. The port number of the exposed Redis endpoint. 692 "readEndpoint": "A String", # Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'. 693 "readEndpointPort": 42, # Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'. 694 "readReplicasMode": "A String", # Optional. Read replica mode. Can only be specified when trying to create the instance. 695 "redisConfigs": { # Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries 696 "a_key": "A String", 697 }, 698 "redisVersion": "A String", # Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility 699 "replicaCount": 42, # Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0. 700 "reservedIpRange": "A String", # Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28. 701 "serverCaCerts": [ # Output only. List of server CA certificates for the instance. 702 { # TlsCertificate Resource 703 "cert": "A String", # PEM representation. 704 "createTime": "A String", # Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. 705 "expireTime": "A String", # Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`. 706 "serialNumber": "A String", # Serial number, as extracted from the certificate. 707 "sha1Fingerprint": "A String", # Sha1 Fingerprint of the certificate. 708 }, 709 ], 710 "state": "A String", # Output only. The current state of this instance. 711 "statusMessage": "A String", # Output only. Additional information about the current status of this instance, if available. 712 "tier": "A String", # Required. The service tier of the instance. 713 "transitEncryptionMode": "A String", # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance. 714} 715 716 updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` * `replica_count` 717 x__xgafv: string, V1 error format. 718 Allowed values 719 1 - v1 error format 720 2 - v2 error format 721 722Returns: 723 An object of the form: 724 725 { # This resource represents a long-running operation that is the result of a network API call. 726 "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. 727 "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. 728 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 729 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 730 { 731 "a_key": "", # Properties of the object. Contains field @type with type URL. 732 }, 733 ], 734 "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. 735 }, 736 "metadata": { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. } 737 "a_key": "", # Properties of the object. Contains field @type with type URL. 738 }, 739 "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}`. 740 "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`. 741 "a_key": "", # Properties of the object. Contains field @type with type URL. 742 }, 743}</pre> 744</div> 745 746<div class="method"> 747 <code class="details" id="rescheduleMaintenance">rescheduleMaintenance(name, body=None, x__xgafv=None)</code> 748 <pre>Reschedule maintenance for a given instance in a given project and location. 749 750Args: 751 name: string, Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. (required) 752 body: object, The request body. 753 The object takes the form of: 754 755{ # Request for RescheduleMaintenance. 756 "rescheduleType": "A String", # Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well. 757 "scheduleTime": "A String", # Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. 758} 759 760 x__xgafv: string, V1 error format. 761 Allowed values 762 1 - v1 error format 763 2 - v2 error format 764 765Returns: 766 An object of the form: 767 768 { # This resource represents a long-running operation that is the result of a network API call. 769 "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. 770 "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. 771 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 772 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 773 { 774 "a_key": "", # Properties of the object. Contains field @type with type URL. 775 }, 776 ], 777 "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. 778 }, 779 "metadata": { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. } 780 "a_key": "", # Properties of the object. Contains field @type with type URL. 781 }, 782 "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}`. 783 "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`. 784 "a_key": "", # Properties of the object. Contains field @type with type URL. 785 }, 786}</pre> 787</div> 788 789<div class="method"> 790 <code class="details" id="upgrade">upgrade(name, body=None, x__xgafv=None)</code> 791 <pre>Upgrades Redis instance to the newer Redis version specified in the request. 792 793Args: 794 name: string, Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region. (required) 795 body: object, The request body. 796 The object takes the form of: 797 798{ # Request for UpgradeInstance. 799 "redisVersion": "A String", # Required. Specifies the target version of Redis software to upgrade to. 800} 801 802 x__xgafv: string, V1 error format. 803 Allowed values 804 1 - v1 error format 805 2 - v2 error format 806 807Returns: 808 An object of the form: 809 810 { # This resource represents a long-running operation that is the result of a network API call. 811 "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. 812 "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. 813 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 814 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 815 { 816 "a_key": "", # Properties of the object. Contains field @type with type URL. 817 }, 818 ], 819 "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. 820 }, 821 "metadata": { # { `createTime`: The time the operation was created. `endTime`: The time the operation finished running. `target`: Server-defined resource path for the target of the operation. `verb`: Name of the verb executed by the operation. `statusDetail`: Human-readable status of the operation, if any. `cancelRequested`: Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. `apiVersion`: API version used to start the operation. } 822 "a_key": "", # Properties of the object. Contains field @type with type URL. 823 }, 824 "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}`. 825 "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`. 826 "a_key": "", # Properties of the object. Contains field @type with type URL. 827 }, 828}</pre> 829</div> 830 831</body></html>