blob: 33625d21a5ed9e19ce2146cc129fc80719086824 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, instanceId=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes a specific Redis instance. Instance stops serving and data is deleted.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#failover">failover(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070096 <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">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#import_">import_(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800102 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<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>
Dan O'Mearadd494642020-05-01 07:42:23 -0700110<p class="toc_element">
yoshi-code-bot38664e82021-05-29 00:50:02 -0700111 <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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code><a href="#upgrade">upgrade(name, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115<p class="firstline">Upgrades Redis instance to the newer Redis version specified in the request.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116<h3>Method Details</h3>
117<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 <code class="details" id="close">close()</code>
119 <pre>Close httplib2 connections.</pre>
120</div>
121
122<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 <code class="details" id="create">create(parent, body=None, instanceId=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124 <pre>Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project&#x27;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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125
126Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700127 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700128 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129 The object takes the form of:
130
131{ # A Google Cloud Redis instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800132 &quot;alternativeLocationId&quot;: &quot;A String&quot;, # Optional. Only applicable to STANDARD_HA tier which protects the instance against zonal failures by provisioning it across two zones. If provided, it must be a different zone from the one provided in location_id.
133 &quot;authEnabled&quot;: True or False, # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to &quot;true&quot; AUTH is enabled on the instance. Default value is &quot;false&quot; meaning AUTH is disabled.
134 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # 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 &quot;connectMode&quot;: &quot;A String&quot;, # Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.
136 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
137 &quot;currentLocationId&quot;: &quot;A String&quot;, # Output only. The current zone where the Redis endpoint is placed. For Basic Tier instances, this will always be the same as the location_id provided by the user at creation time. For Standard Tier instances, this can be either location_id or alternative_location_id and can change after a failover event.
138 &quot;displayName&quot;: &quot;A String&quot;, # An arbitrary and optional user-provided name for the instance.
139 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.
140 &quot;labels&quot;: { # Resource labels to represent user provided metadata
141 &quot;a_key&quot;: &quot;A String&quot;,
142 },
143 &quot;locationId&quot;: &quot;A String&quot;, # Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone for the instance. For STANDARD_HA tier, instances will be created across two zones for protection against zonal failures. If alternative_location_id is also provided, it must be different from location_id.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700144 &quot;maintenancePolicy&quot;: { # Maintenance policy for an instance. # Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time.
145 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the policy was created.
146 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
147 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the policy was last updated.
148 &quot;weeklyMaintenanceWindow&quot;: [ # 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 &quot;day&quot;: &quot;A String&quot;, # Required. The day of week that maintenance updates occur.
151 &quot;duration&quot;: &quot;A String&quot;, # Output only. Duration of the maintenance window. The current window is fixed at 3 hours.
152 &quot;startTime&quot;: { # 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 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
154 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
155 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
156 &quot;seconds&quot;: 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 &quot;maintenanceSchedule&quot;: { # 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 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled, default is true.
163 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of any upcoming scheduled maintenance for this instance.
164 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.
165 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of any upcoming scheduled maintenance for this instance.
166 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800167 &quot;memorySizeGb&quot;: 42, # Required. Redis memory size in GiB.
168 &quot;name&quot;: &quot;A String&quot;, # 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 &quot;persistenceIamIdentity&quot;: &quot;A String&quot;, # Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is &quot;serviceAccount:&quot;. The value may change over time for a given instance so should be checked before each import/export operation.
170 &quot;port&quot;: 42, # Output only. The port number of the exposed Redis endpoint.
171 &quot;redisConfigs&quot;: { # 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
172 &quot;a_key&quot;: &quot;A String&quot;,
173 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700174 &quot;redisVersion&quot;: &quot;A String&quot;, # 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
175 &quot;reservedIpRange&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800176 &quot;serverCaCerts&quot;: [ # Output only. List of server CA certificates for the instance.
177 { # TlsCertificate Resource
178 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
179 &quot;createTime&quot;: &quot;A String&quot;, # 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`.
180 &quot;expireTime&quot;: &quot;A String&quot;, # 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`.
181 &quot;serialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
182 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint of the certificate.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800183 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800184 ],
185 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this instance.
186 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current status of this instance, if available.
187 &quot;tier&quot;: &quot;A String&quot;, # Required. The service tier of the instance.
yoshi-code-bot69706592021-03-03 03:54:02 -0800188 &quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800189}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700191 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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 x__xgafv: string, V1 error format.
193 Allowed values
194 1 - v1 error format
195 2 - v2 error format
196
197Returns:
198 An object of the form:
199
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700200 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800201 &quot;done&quot;: 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.
202 &quot;error&quot;: { # 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.
203 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
204 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
205 {
206 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
207 },
208 ],
209 &quot;message&quot;: &quot;A String&quot;, # 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.
210 },
211 &quot;metadata&quot;: { # { `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. }
212 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
213 },
214 &quot;name&quot;: &quot;A String&quot;, # 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}`.
215 &quot;response&quot;: { # 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`.
216 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
217 },
218}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219</div>
220
221<div class="method">
222 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700223 <pre>Deletes a specific Redis instance. Instance stops serving and data is deleted.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224
225Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700226 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)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700227 x__xgafv: string, V1 error format.
228 Allowed values
229 1 - v1 error format
230 2 - v2 error format
231
232Returns:
233 An object of the form:
234
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700235 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800236 &quot;done&quot;: 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.
237 &quot;error&quot;: { # 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.
238 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
239 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
240 {
241 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
242 },
243 ],
244 &quot;message&quot;: &quot;A String&quot;, # 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.
245 },
246 &quot;metadata&quot;: { # { `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. }
247 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
248 },
249 &quot;name&quot;: &quot;A String&quot;, # 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}`.
250 &quot;response&quot;: { # 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`.
251 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
252 },
253}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700254</div>
255
256<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700257 <code class="details" id="export">export(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700258 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259
260Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700261 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263 The object takes the form of:
264
265{ # Request for Export.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800266 &quot;outputConfig&quot;: { # The output content # Required. Specify data to be exported.
267 &quot;gcsDestination&quot;: { # The Cloud Storage location for the output content # Google Cloud Storage destination for output content.
268 &quot;uri&quot;: &quot;A String&quot;, # Required. Data destination URI (e.g. &#x27;gs://my_bucket/my_object&#x27;). Existing files will be overwritten.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700269 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800270 },
271}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700272
273 x__xgafv: string, V1 error format.
274 Allowed values
275 1 - v1 error format
276 2 - v2 error format
277
278Returns:
279 An object of the form:
280
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700281 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800282 &quot;done&quot;: 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.
283 &quot;error&quot;: { # 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.
284 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
285 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
286 {
287 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
288 },
289 ],
290 &quot;message&quot;: &quot;A String&quot;, # 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.
291 },
292 &quot;metadata&quot;: { # { `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. }
293 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
294 },
295 &quot;name&quot;: &quot;A String&quot;, # 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}`.
296 &quot;response&quot;: { # 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`.
297 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
298 },
299}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700300</div>
301
302<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700303 <code class="details" id="failover">failover(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700304 <pre>Initiates a failover of the primary node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700305
306Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700307 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700308 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700309 The object takes the form of:
310
311{ # Request for Failover.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800312 &quot;dataProtectionMode&quot;: &quot;A String&quot;, # Optional. Available data protection modes that the user can choose. If it&#x27;s unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
313}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314
315 x__xgafv: string, V1 error format.
316 Allowed values
317 1 - v1 error format
318 2 - v2 error format
319
320Returns:
321 An object of the form:
322
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700323 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800324 &quot;done&quot;: 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.
325 &quot;error&quot;: { # 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.
326 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
327 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
328 {
329 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
330 },
331 ],
332 &quot;message&quot;: &quot;A String&quot;, # 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.
333 },
334 &quot;metadata&quot;: { # { `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. }
335 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
336 },
337 &quot;name&quot;: &quot;A String&quot;, # 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}`.
338 &quot;response&quot;: { # 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`.
339 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
340 },
341}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700342</div>
343
344<div class="method">
345 <code class="details" id="get">get(name, x__xgafv=None)</code>
346 <pre>Gets the details of a specific Redis instance.
347
348Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700349 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)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700350 x__xgafv: string, V1 error format.
351 Allowed values
352 1 - v1 error format
353 2 - v2 error format
354
355Returns:
356 An object of the form:
357
358 { # A Google Cloud Redis instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800359 &quot;alternativeLocationId&quot;: &quot;A String&quot;, # Optional. Only applicable to STANDARD_HA tier which protects the instance against zonal failures by provisioning it across two zones. If provided, it must be a different zone from the one provided in location_id.
360 &quot;authEnabled&quot;: True or False, # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to &quot;true&quot; AUTH is enabled on the instance. Default value is &quot;false&quot; meaning AUTH is disabled.
361 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # 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.
362 &quot;connectMode&quot;: &quot;A String&quot;, # Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.
363 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
364 &quot;currentLocationId&quot;: &quot;A String&quot;, # Output only. The current zone where the Redis endpoint is placed. For Basic Tier instances, this will always be the same as the location_id provided by the user at creation time. For Standard Tier instances, this can be either location_id or alternative_location_id and can change after a failover event.
365 &quot;displayName&quot;: &quot;A String&quot;, # An arbitrary and optional user-provided name for the instance.
366 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.
367 &quot;labels&quot;: { # Resource labels to represent user provided metadata
368 &quot;a_key&quot;: &quot;A String&quot;,
369 },
370 &quot;locationId&quot;: &quot;A String&quot;, # Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone for the instance. For STANDARD_HA tier, instances will be created across two zones for protection against zonal failures. If alternative_location_id is also provided, it must be different from location_id.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700371 &quot;maintenancePolicy&quot;: { # Maintenance policy for an instance. # Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time.
372 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the policy was created.
373 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
374 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the policy was last updated.
375 &quot;weeklyMaintenanceWindow&quot;: [ # 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.
376 { # Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.
377 &quot;day&quot;: &quot;A String&quot;, # Required. The day of week that maintenance updates occur.
378 &quot;duration&quot;: &quot;A String&quot;, # Output only. Duration of the maintenance window. The current window is fixed at 3 hours.
379 &quot;startTime&quot;: { # 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.
380 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
381 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
382 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
383 &quot;seconds&quot;: 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.
384 },
385 },
386 ],
387 },
388 &quot;maintenanceSchedule&quot;: { # 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.
389 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled, default is true.
390 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of any upcoming scheduled maintenance for this instance.
391 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.
392 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of any upcoming scheduled maintenance for this instance.
393 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800394 &quot;memorySizeGb&quot;: 42, # Required. Redis memory size in GiB.
395 &quot;name&quot;: &quot;A String&quot;, # 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.
396 &quot;persistenceIamIdentity&quot;: &quot;A String&quot;, # Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is &quot;serviceAccount:&quot;. The value may change over time for a given instance so should be checked before each import/export operation.
397 &quot;port&quot;: 42, # Output only. The port number of the exposed Redis endpoint.
398 &quot;redisConfigs&quot;: { # 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
399 &quot;a_key&quot;: &quot;A String&quot;,
400 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700401 &quot;redisVersion&quot;: &quot;A String&quot;, # 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
402 &quot;reservedIpRange&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800403 &quot;serverCaCerts&quot;: [ # Output only. List of server CA certificates for the instance.
404 { # TlsCertificate Resource
405 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
406 &quot;createTime&quot;: &quot;A String&quot;, # 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`.
407 &quot;expireTime&quot;: &quot;A String&quot;, # 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`.
408 &quot;serialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
409 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint of the certificate.
410 },
411 ],
412 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this instance.
413 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current status of this instance, if available.
414 &quot;tier&quot;: &quot;A String&quot;, # Required. The service tier of the instance.
yoshi-code-bot69706592021-03-03 03:54:02 -0800415 &quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800416}</pre>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700417</div>
418
419<div class="method">
420 <code class="details" id="getAuthString">getAuthString(name, x__xgafv=None)</code>
421 <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.
422
423Args:
424 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)
425 x__xgafv: string, V1 error format.
426 Allowed values
427 1 - v1 error format
428 2 - v2 error format
429
430Returns:
431 An object of the form:
432
433 { # Instance AUTH string details.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800434 &quot;authString&quot;: &quot;A String&quot;, # AUTH string set on the instance.
435}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436</div>
437
438<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700439 <code class="details" id="import_">import_(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700440 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700441
442Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700443 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700444 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700445 The object takes the form of:
446
447{ # Request for Import.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800448 &quot;inputConfig&quot;: { # The input content # Required. Specify data to be imported.
449 &quot;gcsSource&quot;: { # The Cloud Storage location for the input content # Google Cloud Storage location where input content is located.
450 &quot;uri&quot;: &quot;A String&quot;, # Required. Source data URI. (e.g. &#x27;gs://my_bucket/my_object&#x27;).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700451 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800452 },
453}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700454
455 x__xgafv: string, V1 error format.
456 Allowed values
457 1 - v1 error format
458 2 - v2 error format
459
460Returns:
461 An object of the form:
462
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700463 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800464 &quot;done&quot;: 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.
465 &quot;error&quot;: { # 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.
466 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
467 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
468 {
469 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
470 },
471 ],
472 &quot;message&quot;: &quot;A String&quot;, # 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.
473 },
474 &quot;metadata&quot;: { # { `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. }
475 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
476 },
477 &quot;name&quot;: &quot;A String&quot;, # 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}`.
478 &quot;response&quot;: { # 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`.
479 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
480 },
481}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700482</div>
483
484<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800485 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700486 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700487
488Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700489 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)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800490 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&#x27;s `next_page_token` to determine if there are more instances left to be queried.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800491 pageToken: string, The `next_page_token` value returned from a previous ListInstances request, if any.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700492 x__xgafv: string, V1 error format.
493 Allowed values
494 1 - v1 error format
495 2 - v2 error format
496
497Returns:
498 An object of the form:
499
500 { # Response for ListInstances.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800501 &quot;instances&quot;: [ # 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 &quot;-&quot;, 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 &quot;location not available for ListInstances&quot;.
502 { # A Google Cloud Redis instance.
503 &quot;alternativeLocationId&quot;: &quot;A String&quot;, # Optional. Only applicable to STANDARD_HA tier which protects the instance against zonal failures by provisioning it across two zones. If provided, it must be a different zone from the one provided in location_id.
504 &quot;authEnabled&quot;: True or False, # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to &quot;true&quot; AUTH is enabled on the instance. Default value is &quot;false&quot; meaning AUTH is disabled.
505 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # 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.
506 &quot;connectMode&quot;: &quot;A String&quot;, # Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.
507 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
508 &quot;currentLocationId&quot;: &quot;A String&quot;, # Output only. The current zone where the Redis endpoint is placed. For Basic Tier instances, this will always be the same as the location_id provided by the user at creation time. For Standard Tier instances, this can be either location_id or alternative_location_id and can change after a failover event.
509 &quot;displayName&quot;: &quot;A String&quot;, # An arbitrary and optional user-provided name for the instance.
510 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.
511 &quot;labels&quot;: { # Resource labels to represent user provided metadata
512 &quot;a_key&quot;: &quot;A String&quot;,
513 },
514 &quot;locationId&quot;: &quot;A String&quot;, # Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone for the instance. For STANDARD_HA tier, instances will be created across two zones for protection against zonal failures. If alternative_location_id is also provided, it must be different from location_id.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700515 &quot;maintenancePolicy&quot;: { # Maintenance policy for an instance. # Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time.
516 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the policy was created.
517 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
518 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the policy was last updated.
519 &quot;weeklyMaintenanceWindow&quot;: [ # 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.
520 { # Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.
521 &quot;day&quot;: &quot;A String&quot;, # Required. The day of week that maintenance updates occur.
522 &quot;duration&quot;: &quot;A String&quot;, # Output only. Duration of the maintenance window. The current window is fixed at 3 hours.
523 &quot;startTime&quot;: { # 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.
524 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
525 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
526 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
527 &quot;seconds&quot;: 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.
528 },
529 },
530 ],
531 },
532 &quot;maintenanceSchedule&quot;: { # 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.
533 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled, default is true.
534 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of any upcoming scheduled maintenance for this instance.
535 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.
536 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of any upcoming scheduled maintenance for this instance.
537 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800538 &quot;memorySizeGb&quot;: 42, # Required. Redis memory size in GiB.
539 &quot;name&quot;: &quot;A String&quot;, # 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.
540 &quot;persistenceIamIdentity&quot;: &quot;A String&quot;, # Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is &quot;serviceAccount:&quot;. The value may change over time for a given instance so should be checked before each import/export operation.
541 &quot;port&quot;: 42, # Output only. The port number of the exposed Redis endpoint.
542 &quot;redisConfigs&quot;: { # 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
543 &quot;a_key&quot;: &quot;A String&quot;,
544 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700545 &quot;redisVersion&quot;: &quot;A String&quot;, # 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
546 &quot;reservedIpRange&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800547 &quot;serverCaCerts&quot;: [ # Output only. List of server CA certificates for the instance.
548 { # TlsCertificate Resource
549 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
550 &quot;createTime&quot;: &quot;A String&quot;, # 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`.
551 &quot;expireTime&quot;: &quot;A String&quot;, # 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`.
552 &quot;serialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
553 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint of the certificate.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800554 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800555 ],
556 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this instance.
557 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current status of this instance, if available.
558 &quot;tier&quot;: &quot;A String&quot;, # Required. The service tier of the instance.
yoshi-code-bot69706592021-03-03 03:54:02 -0800559 &quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800560 },
561 ],
562 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
563 &quot;unreachable&quot;: [ # Locations that could not be reached.
564 &quot;A String&quot;,
565 ],
566}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700567</div>
568
569<div class="method">
570 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
571 <pre>Retrieves the next page of results.
572
573Args:
574 previous_request: The request for the previous page. (required)
575 previous_response: The response from the request for the previous page. (required)
576
577Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700579 page. Returns None if there are no more items in the collection.
580 </pre>
581</div>
582
583<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700584 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700585 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700586
587Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700588 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700589 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700590 The object takes the form of:
591
592{ # A Google Cloud Redis instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800593 &quot;alternativeLocationId&quot;: &quot;A String&quot;, # Optional. Only applicable to STANDARD_HA tier which protects the instance against zonal failures by provisioning it across two zones. If provided, it must be a different zone from the one provided in location_id.
594 &quot;authEnabled&quot;: True or False, # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to &quot;true&quot; AUTH is enabled on the instance. Default value is &quot;false&quot; meaning AUTH is disabled.
595 &quot;authorizedNetwork&quot;: &quot;A String&quot;, # 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.
596 &quot;connectMode&quot;: &quot;A String&quot;, # Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.
597 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the instance was created.
598 &quot;currentLocationId&quot;: &quot;A String&quot;, # Output only. The current zone where the Redis endpoint is placed. For Basic Tier instances, this will always be the same as the location_id provided by the user at creation time. For Standard Tier instances, this can be either location_id or alternative_location_id and can change after a failover event.
599 &quot;displayName&quot;: &quot;A String&quot;, # An arbitrary and optional user-provided name for the instance.
600 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.
601 &quot;labels&quot;: { # Resource labels to represent user provided metadata
602 &quot;a_key&quot;: &quot;A String&quot;,
603 },
604 &quot;locationId&quot;: &quot;A String&quot;, # Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone for the instance. For STANDARD_HA tier, instances will be created across two zones for protection against zonal failures. If alternative_location_id is also provided, it must be different from location_id.
yoshi-code-bot38664e82021-05-29 00:50:02 -0700605 &quot;maintenancePolicy&quot;: { # Maintenance policy for an instance. # Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time.
606 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the policy was created.
607 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.
608 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the policy was last updated.
609 &quot;weeklyMaintenanceWindow&quot;: [ # 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.
610 { # Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.
611 &quot;day&quot;: &quot;A String&quot;, # Required. The day of week that maintenance updates occur.
612 &quot;duration&quot;: &quot;A String&quot;, # Output only. Duration of the maintenance window. The current window is fixed at 3 hours.
613 &quot;startTime&quot;: { # 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.
614 &quot;hours&quot;: 42, # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value &quot;24:00:00&quot; for scenarios like business closing time.
615 &quot;minutes&quot;: 42, # Minutes of hour of day. Must be from 0 to 59.
616 &quot;nanos&quot;: 42, # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
617 &quot;seconds&quot;: 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.
618 },
619 },
620 ],
621 },
622 &quot;maintenanceSchedule&quot;: { # 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.
623 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled, default is true.
624 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The end time of any upcoming scheduled maintenance for this instance.
625 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.
626 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The start time of any upcoming scheduled maintenance for this instance.
627 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800628 &quot;memorySizeGb&quot;: 42, # Required. Redis memory size in GiB.
629 &quot;name&quot;: &quot;A String&quot;, # 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.
630 &quot;persistenceIamIdentity&quot;: &quot;A String&quot;, # Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is &quot;serviceAccount:&quot;. The value may change over time for a given instance so should be checked before each import/export operation.
631 &quot;port&quot;: 42, # Output only. The port number of the exposed Redis endpoint.
632 &quot;redisConfigs&quot;: { # 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
633 &quot;a_key&quot;: &quot;A String&quot;,
634 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700635 &quot;redisVersion&quot;: &quot;A String&quot;, # 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
636 &quot;reservedIpRange&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800637 &quot;serverCaCerts&quot;: [ # Output only. List of server CA certificates for the instance.
638 { # TlsCertificate Resource
639 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
640 &quot;createTime&quot;: &quot;A String&quot;, # 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`.
641 &quot;expireTime&quot;: &quot;A String&quot;, # 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`.
642 &quot;serialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
643 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint of the certificate.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800644 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800645 ],
646 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this instance.
647 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current status of this instance, if available.
648 &quot;tier&quot;: &quot;A String&quot;, # Required. The service tier of the instance.
yoshi-code-bot69706592021-03-03 03:54:02 -0800649 &quot;transitEncryptionMode&quot;: &quot;A String&quot;, # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800650}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700652 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`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700653 x__xgafv: string, V1 error format.
654 Allowed values
655 1 - v1 error format
656 2 - v2 error format
657
658Returns:
659 An object of the form:
660
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700661 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800662 &quot;done&quot;: 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.
663 &quot;error&quot;: { # 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.
664 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
665 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
666 {
667 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
668 },
669 ],
670 &quot;message&quot;: &quot;A String&quot;, # 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.
671 },
672 &quot;metadata&quot;: { # { `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. }
673 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
674 },
675 &quot;name&quot;: &quot;A String&quot;, # 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}`.
676 &quot;response&quot;: { # 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`.
677 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
678 },
679}</pre>
Dan O'Mearadd494642020-05-01 07:42:23 -0700680</div>
681
682<div class="method">
yoshi-code-bot38664e82021-05-29 00:50:02 -0700683 <code class="details" id="rescheduleMaintenance">rescheduleMaintenance(name, body=None, x__xgafv=None)</code>
684 <pre>Reschedule maintenance for a given instance in a given project and location.
685
686Args:
687 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)
688 body: object, The request body.
689 The object takes the form of:
690
691{ # Request for RescheduleMaintenance.
692 &quot;rescheduleType&quot;: &quot;A String&quot;, # Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
693 &quot;scheduleTime&quot;: &quot;A String&quot;, # 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`.
694}
695
696 x__xgafv: string, V1 error format.
697 Allowed values
698 1 - v1 error format
699 2 - v2 error format
700
701Returns:
702 An object of the form:
703
704 { # This resource represents a long-running operation that is the result of a network API call.
705 &quot;done&quot;: 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.
706 &quot;error&quot;: { # 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.
707 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
708 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
709 {
710 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
711 },
712 ],
713 &quot;message&quot;: &quot;A String&quot;, # 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.
714 },
715 &quot;metadata&quot;: { # { `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. }
716 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
717 },
718 &quot;name&quot;: &quot;A String&quot;, # 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}`.
719 &quot;response&quot;: { # 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`.
720 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
721 },
722}</pre>
723</div>
724
725<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700726 <code class="details" id="upgrade">upgrade(name, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700727 <pre>Upgrades Redis instance to the newer Redis version specified in the request.
Dan O'Mearadd494642020-05-01 07:42:23 -0700728
729Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700730 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700731 body: object, The request body.
732 The object takes the form of:
733
734{ # Request for UpgradeInstance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800735 &quot;redisVersion&quot;: &quot;A String&quot;, # Required. Specifies the target version of Redis software to upgrade to.
736}
Dan O'Mearadd494642020-05-01 07:42:23 -0700737
738 x__xgafv: string, V1 error format.
739 Allowed values
740 1 - v1 error format
741 2 - v2 error format
742
743Returns:
744 An object of the form:
745
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700746 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800747 &quot;done&quot;: 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.
748 &quot;error&quot;: { # 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.
749 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
750 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
751 {
752 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
753 },
754 ],
755 &quot;message&quot;: &quot;A String&quot;, # 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.
756 },
757 &quot;metadata&quot;: { # { `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. }
758 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
759 },
760 &quot;name&quot;: &quot;A String&quot;, # 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}`.
761 &quot;response&quot;: { # 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`.
762 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
763 },
764}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700765</div>
766
767</body></html>