Debian Codegraph @

docs/dyn/sqladmin_v1.instances.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="sqladmin_v1.html">Cloud SQL Admin API</a> . <a href="sqladmin_v1.instances.html">instances</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#ListEntraIdCertificates">ListEntraIdCertificates(project, instance, x__xgafv=None)</a></code></p>
79 <p class="firstline">Lists all versions of EntraID certificates for the specified instance. There can be up to three sets of certificates listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out.</p>
80 <p class="toc_element">
81 <code><a href="#ListServerCertificates">ListServerCertificates(project, instance, x__xgafv=None)</a></code></p>
82 <p class="firstline">Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out. For instances not using Certificate Authority Service (CAS) server CA, use ListServerCas instead.</p>
83 <p class="toc_element">
84 <code><a href="#RotateEntraIdCertificate">RotateEntraIdCertificate(project, instance, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Rotates the server certificate version to one previously added with the addEntraIdCertificate method.</p>
86 <p class="toc_element">
87 <code><a href="#RotateServerCertificate">RotateServerCertificate(project, instance, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa instead.</p>
89 <p class="toc_element">
90 <code><a href="#acquireSsrsLease">acquireSsrsLease(project, instance, body=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Acquire a lease for the setup of SQL Server Reporting Services (SSRS).</p>
92 <p class="toc_element">
93 <code><a href="#addEntraIdCertificate">addEntraIdCertificate(project, instance, x__xgafv=None)</a></code></p>
94 <p class="firstline">Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was previously added but never used in a certificate rotation, this operation replaces that version.</p>
95 <p class="toc_element">
96 <code><a href="#addServerCa">addServerCa(project, instance, x__xgafv=None)</a></code></p>
97 <p class="firstline">Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.</p>
98 <p class="toc_element">
99 <code><a href="#addServerCertificate">addServerCertificate(project, instance, x__xgafv=None)</a></code></p>
100 <p class="firstline">Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, use AddServerCa instead.</p>
101 <p class="toc_element">
102 <code><a href="#clone">clone(project, instance, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.</p>
104 <p class="toc_element">
105 <code><a href="#close">close()</a></code></p>
106 <p class="firstline">Close httplib2 connections.</p>
107 <p class="toc_element">
108 <code><a href="#delete">delete(project, instance, enableFinalBackup=None, finalBackupDescription=None, finalBackupExpiryTime=None, finalBackupTtlDays=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Deletes a Cloud SQL instance.</p>
110 <p class="toc_element">
111 <code><a href="#demote">demote(project, instance, body=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.</p>
113 <p class="toc_element">
114 <code><a href="#demoteMaster">demoteMaster(project, instance, body=None, x__xgafv=None)</a></code></p>
115 <p class="firstline">Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.</p>
116 <p class="toc_element">
117 <code><a href="#executeSql">executeSql(project, instance, body=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Execute SQL statements.</p>
119 <p class="toc_element">
120 <code><a href="#export">export(project, instance, body=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.</p>
122 <p class="toc_element">
123 <code><a href="#failover">failover(project, instance, body=None, x__xgafv=None)</a></code></p>
124 <p class="firstline">Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance.</p>
125 <p class="toc_element">
126 <code><a href="#get">get(project, instance, x__xgafv=None)</a></code></p>
127 <p class="firstline">Retrieves a resource containing information about a Cloud SQL instance.</p>
128 <p class="toc_element">
129 <code><a href="#import_">import_(project, instance, body=None, x__xgafv=None)</a></code></p>
130 <p class="firstline">Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.</p>
131 <p class="toc_element">
132 <code><a href="#insert">insert(project, body=None, x__xgafv=None)</a></code></p>
133 <p class="firstline">Creates a new Cloud SQL instance.</p>
134 <p class="toc_element">
135 <code><a href="#list">list(project, filter=None, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
136 <p class="firstline">Lists instances under a given project.</p>
137 <p class="toc_element">
138 <code><a href="#listServerCas">listServerCas(project, instance, x__xgafv=None)</a></code></p>
139 <p class="firstline">Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.</p>
140 <p class="toc_element">
141 <code><a href="#list_next">list_next()</a></code></p>
142 <p class="firstline">Retrieves the next page of results.</p>
143 <p class="toc_element">
144 <code><a href="#patch">patch(project, instance, body=None, x__xgafv=None)</a></code></p>
145 <p class="firstline">Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.</p>
146 <p class="toc_element">
147 <code><a href="#pointInTimeRestore">pointInTimeRestore(parent, body=None, x__xgafv=None)</a></code></p>
148 <p class="firstline">Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.</p>
149 <p class="toc_element">
150 <code><a href="#preCheckMajorVersionUpgrade">preCheckMajorVersionUpgrade(project, instance, body=None, x__xgafv=None)</a></code></p>
151 <p class="firstline">Execute MVU Pre-checks</p>
152 <p class="toc_element">
153 <code><a href="#promoteReplica">promoteReplica(project, instance, failover=None, x__xgafv=None)</a></code></p>
154 <p class="firstline">Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.</p>
155 <p class="toc_element">
156 <code><a href="#reencrypt">reencrypt(project, instance, body=None, x__xgafv=None)</a></code></p>
157 <p class="firstline">Reencrypt CMEK instance with latest key version.</p>
158 <p class="toc_element">
159 <code><a href="#releaseSsrsLease">releaseSsrsLease(project, instance, x__xgafv=None)</a></code></p>
160 <p class="firstline">Release a lease for the setup of SQL Server Reporting Services (SSRS).</p>
161 <p class="toc_element">
162 <code><a href="#resetSslConfig">resetSslConfig(project, instance, mode=None, x__xgafv=None)</a></code></p>
163 <p class="firstline">Deletes all client certificates and generates a new server SSL certificate for the instance.</p>
164 <p class="toc_element">
165 <code><a href="#restart">restart(project, instance, x__xgafv=None)</a></code></p>
166 <p class="firstline">Restarts a Cloud SQL instance.</p>
167 <p class="toc_element">
168 <code><a href="#restoreBackup">restoreBackup(project, instance, body=None, x__xgafv=None)</a></code></p>
169 <p class="firstline">Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.</p>
170 <p class="toc_element">
171 <code><a href="#rotateServerCa">rotateServerCa(project, instance, body=None, x__xgafv=None)</a></code></p>
172 <p class="firstline">Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.</p>
173 <p class="toc_element">
174 <code><a href="#startReplica">startReplica(project, instance, x__xgafv=None)</a></code></p>
175 <p class="firstline">Starts the replication in the read replica instance.</p>
176 <p class="toc_element">
177 <code><a href="#stopReplica">stopReplica(project, instance, x__xgafv=None)</a></code></p>
178 <p class="firstline">Stops the replication in the read replica instance.</p>
179 <p class="toc_element">
180 <code><a href="#switchover">switchover(project, instance, dbTimeout=None, x__xgafv=None)</a></code></p>
181 <p class="firstline">Switches over from the primary instance to the DR replica instance.</p>
182 <p class="toc_element">
183 <code><a href="#truncateLog">truncateLog(project, instance, body=None, x__xgafv=None)</a></code></p>
184 <p class="firstline">Truncate MySQL general and slow query log tables MySQL only.</p>
185 <p class="toc_element">
186 <code><a href="#update">update(project, instance, body=None, x__xgafv=None)</a></code></p>
187 <p class="firstline">Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.</p>
188 <h3>Method Details</h3>
189 <div class="method">
190 <code class="details" id="ListEntraIdCertificates">ListEntraIdCertificates(project, instance, x__xgafv=None)</code>
191 <pre>Lists all versions of EntraID certificates for the specified instance. There can be up to three sets of certificates listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out.
192
193 Args:
194 project: string, Required. Project ID of the project that contains the instance. (required)
195 instance: string, Required. Cloud SQL instance ID. This does not include the project ID. (required)
196 x__xgafv: string, V1 error format.
197 Allowed values
198 1 - v1 error format
199 2 - v2 error format
200
201 Returns:
202 An object of the form:
203
204 { # Instances ListEntraIdCertificates response.
205 &quot;activeVersion&quot;: &quot;A String&quot;, # The `sha1_fingerprint` of the active certificate from `certs`.
206 &quot;certs&quot;: [ # List of Entra ID certificates for the instance.
207 { # SslCerts Resource
208 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
209 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
210 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
211 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
212 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
213 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
214 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
215 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
216 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
217 },
218 ],
219 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instancesListEntraIdCertificates`.
220 }</pre>
221 </div>
222
223 <div class="method">
224 <code class="details" id="ListServerCertificates">ListServerCertificates(project, instance, x__xgafv=None)</code>
225 <pre>Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out. For instances not using Certificate Authority Service (CAS) server CA, use ListServerCas instead.
226
227 Args:
228 project: string, Required. Project ID of the project that contains the instance. (required)
229 instance: string, Required. Cloud SQL instance ID. This does not include the project ID. (required)
230 x__xgafv: string, V1 error format.
231 Allowed values
232 1 - v1 error format
233 2 - v2 error format
234
235 Returns:
236 An object of the form:
237
238 { # Instances ListServerCertificates response.
239 &quot;activeVersion&quot;: &quot;A String&quot;, # The `sha1_fingerprint` of the active certificate from `server_certs`.
240 &quot;caCerts&quot;: [ # List of server CA certificates for the instance.
241 { # SslCerts Resource
242 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
243 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
244 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
245 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
246 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
247 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
248 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
249 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
250 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
251 },
252 ],
253 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instancesListServerCertificates`.
254 &quot;serverCerts&quot;: [ # List of server certificates for the instance, signed by the corresponding CA from the `ca_certs` list.
255 { # SslCerts Resource
256 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
257 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
258 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
259 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
260 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
261 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
262 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
263 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
264 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
265 },
266 ],
267 }</pre>
268 </div>
269
270 <div class="method">
271 <code class="details" id="RotateEntraIdCertificate">RotateEntraIdCertificate(project, instance, body=None, x__xgafv=None)</code>
272 <pre>Rotates the server certificate version to one previously added with the addEntraIdCertificate method.
273
274 Args:
275 project: string, Required. Project ID of the project that contains the instance. (required)
276 instance: string, Required. Cloud SQL instance ID. This does not include the project ID. (required)
277 body: object, The request body.
278 The object takes the form of:
279
280 { # Rotate Entra ID certificate request.
281 &quot;rotateEntraIdCertificateContext&quot;: { # Instance rotate Entra ID certificate context. # Optional. Contains details about the rotate server certificate operation.
282 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#rotateEntraIdCertificateContext`.
283 &quot;nextVersion&quot;: &quot;A String&quot;, # Optional. The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.
284 },
285 }
286
287 x__xgafv: string, V1 error format.
288 Allowed values
289 1 - v1 error format
290 2 - v2 error format
291
292 Returns:
293 An object of the form:
294
295 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
296 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
297 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
298 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
299 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
300 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
301 },
302 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
303 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
304 &quot;message&quot;: &quot;A String&quot;, # The warning message.
305 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
306 },
307 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
308 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
309 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
310 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
311 },
312 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
313 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
314 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
315 { # Database instance operation error.
316 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
317 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
318 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
319 },
320 ],
321 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
322 },
323 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
324 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
325 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
326 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
327 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
328 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
329 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
330 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
331 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
332 },
333 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
334 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
335 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
336 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
337 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
338 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
339 },
340 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
341 &quot;A String&quot;,
342 ],
343 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
344 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
345 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
346 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
347 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
348 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
349 },
350 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
351 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
352 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
353 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
354 },
355 &quot;schemaOnly&quot;: True or False, # Export only schemas.
356 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
357 &quot;A String&quot;,
358 ],
359 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
360 },
361 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
362 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
363 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
364 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
365 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
366 },
367 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
368 },
369 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
370 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
371 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
372 &quot;encryptionOptions&quot;: {
373 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
374 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
375 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
376 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
377 },
378 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
379 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
380 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
381 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
382 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
383 },
384 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
385 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
386 &quot;A String&quot;,
387 ],
388 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
389 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
390 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
391 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
392 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
393 },
394 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
395 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
396 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
397 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
398 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
399 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
400 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
401 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
402 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
403 },
404 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
405 },
406 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
407 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
408 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
409 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
410 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
411 },
412 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
413 },
414 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
415 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
416 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
417 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
418 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
419 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
420 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
421 { # Structured PreCheckResponse containing message, type, and required actions.
422 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
423 &quot;A String&quot;,
424 ],
425 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
426 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
427 },
428 ],
429 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
430 },
431 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
432 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
433 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
434 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
435 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
436 },
437 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
438 &quot;targetLink&quot;: &quot;A String&quot;,
439 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
440 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
441 }</pre>
442 </div>
443
444 <div class="method">
445 <code class="details" id="RotateServerCertificate">RotateServerCertificate(project, instance, body=None, x__xgafv=None)</code>
446 <pre>Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa instead.
447
448 Args:
449 project: string, Required. Project ID of the project that contains the instance. (required)
450 instance: string, Required. Cloud SQL instance ID. This does not include the project ID. (required)
451 body: object, The request body.
452 The object takes the form of:
453
454 { # Rotate server certificate request.
455 &quot;rotateServerCertificateContext&quot;: { # Instance rotate server certificate context. # Optional. Contains details about the rotate server certificate operation.
456 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#rotateServerCertificateContext`.
457 &quot;nextVersion&quot;: &quot;A String&quot;, # The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.
458 },
459 }
460
461 x__xgafv: string, V1 error format.
462 Allowed values
463 1 - v1 error format
464 2 - v2 error format
465
466 Returns:
467 An object of the form:
468
469 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
470 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
471 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
472 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
473 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
474 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
475 },
476 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
477 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
478 &quot;message&quot;: &quot;A String&quot;, # The warning message.
479 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
480 },
481 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
482 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
483 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
484 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
485 },
486 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
487 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
488 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
489 { # Database instance operation error.
490 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
491 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
492 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
493 },
494 ],
495 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
496 },
497 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
498 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
499 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
500 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
501 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
502 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
503 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
504 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
505 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
506 },
507 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
508 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
509 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
510 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
511 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
512 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
513 },
514 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
515 &quot;A String&quot;,
516 ],
517 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
518 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
519 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
520 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
521 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
522 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
523 },
524 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
525 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
526 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
527 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
528 },
529 &quot;schemaOnly&quot;: True or False, # Export only schemas.
530 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
531 &quot;A String&quot;,
532 ],
533 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
534 },
535 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
536 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
537 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
538 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
539 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
540 },
541 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
542 },
543 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
544 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
545 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
546 &quot;encryptionOptions&quot;: {
547 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
548 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
549 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
550 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
551 },
552 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
553 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
554 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
555 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
556 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
557 },
558 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
559 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
560 &quot;A String&quot;,
561 ],
562 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
563 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
564 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
565 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
566 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
567 },
568 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
569 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
570 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
571 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
572 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
573 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
574 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
575 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
576 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
577 },
578 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
579 },
580 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
581 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
582 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
583 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
584 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
585 },
586 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
587 },
588 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
589 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
590 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
591 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
592 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
593 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
594 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
595 { # Structured PreCheckResponse containing message, type, and required actions.
596 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
597 &quot;A String&quot;,
598 ],
599 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
600 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
601 },
602 ],
603 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
604 },
605 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
606 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
607 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
608 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
609 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
610 },
611 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
612 &quot;targetLink&quot;: &quot;A String&quot;,
613 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
614 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
615 }</pre>
616 </div>
617
618 <div class="method">
619 <code class="details" id="acquireSsrsLease">acquireSsrsLease(project, instance, body=None, x__xgafv=None)</code>
620 <pre>Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
621
622 Args:
623 project: string, Required. Project ID of the project that contains the instance (Example: project-id). (required)
624 instance: string, Required. Cloud SQL instance ID. This doesn&#x27;t include the project ID. It&#x27;s composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id). (required)
625 body: object, The request body.
626 The object takes the form of:
627
628 { # Request to acquire a lease for SSRS.
629 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # Contains details about the acquire SSRS lease operation.
630 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
631 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
632 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
633 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
634 },
635 }
636
637 x__xgafv: string, V1 error format.
638 Allowed values
639 1 - v1 error format
640 2 - v2 error format
641
642 Returns:
643 An object of the form:
644
645 { # Response for the acquire SSRS lease request.
646 &quot;operationId&quot;: &quot;A String&quot;, # The unique identifier for this operation.
647 }</pre>
648 </div>
649
650 <div class="method">
651 <code class="details" id="addEntraIdCertificate">addEntraIdCertificate(project, instance, x__xgafv=None)</code>
652 <pre>Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was previously added but never used in a certificate rotation, this operation replaces that version.
653
654 Args:
655 project: string, Required. Project ID of the project that contains the instance. (required)
656 instance: string, Required. Cloud SQL instance ID. This does not include the project ID. (required)
657 x__xgafv: string, V1 error format.
658 Allowed values
659 1 - v1 error format
660 2 - v2 error format
661
662 Returns:
663 An object of the form:
664
665 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
666 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
667 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
668 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
669 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
670 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
671 },
672 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
673 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
674 &quot;message&quot;: &quot;A String&quot;, # The warning message.
675 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
676 },
677 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
678 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
679 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
680 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
681 },
682 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
683 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
684 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
685 { # Database instance operation error.
686 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
687 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
688 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
689 },
690 ],
691 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
692 },
693 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
694 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
695 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
696 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
697 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
698 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
699 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
700 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
701 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
702 },
703 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
704 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
705 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
706 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
707 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
708 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
709 },
710 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
711 &quot;A String&quot;,
712 ],
713 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
714 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
715 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
716 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
717 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
718 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
719 },
720 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
721 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
722 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
723 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
724 },
725 &quot;schemaOnly&quot;: True or False, # Export only schemas.
726 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
727 &quot;A String&quot;,
728 ],
729 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
730 },
731 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
732 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
733 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
734 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
735 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
736 },
737 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
738 },
739 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
740 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
741 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
742 &quot;encryptionOptions&quot;: {
743 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
744 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
745 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
746 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
747 },
748 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
749 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
750 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
751 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
752 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
753 },
754 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
755 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
756 &quot;A String&quot;,
757 ],
758 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
759 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
760 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
761 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
762 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
763 },
764 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
765 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
766 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
767 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
768 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
769 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
770 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
771 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
772 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
773 },
774 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
775 },
776 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
777 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
778 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
779 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
780 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
781 },
782 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
783 },
784 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
785 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
786 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
787 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
788 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
789 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
790 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
791 { # Structured PreCheckResponse containing message, type, and required actions.
792 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
793 &quot;A String&quot;,
794 ],
795 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
796 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
797 },
798 ],
799 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
800 },
801 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
802 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
803 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
804 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
805 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
806 },
807 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
808 &quot;targetLink&quot;: &quot;A String&quot;,
809 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
810 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
811 }</pre>
812 </div>
813
814 <div class="method">
815 <code class="details" id="addServerCa">addServerCa(project, instance, x__xgafv=None)</code>
816 <pre>Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.
817
818 Args:
819 project: string, Project ID of the project that contains the instance. (required)
820 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
821 x__xgafv: string, V1 error format.
822 Allowed values
823 1 - v1 error format
824 2 - v2 error format
825
826 Returns:
827 An object of the form:
828
829 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
830 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
831 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
832 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
833 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
834 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
835 },
836 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
837 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
838 &quot;message&quot;: &quot;A String&quot;, # The warning message.
839 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
840 },
841 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
842 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
843 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
844 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
845 },
846 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
847 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
848 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
849 { # Database instance operation error.
850 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
851 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
852 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
853 },
854 ],
855 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
856 },
857 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
858 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
859 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
860 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
861 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
862 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
863 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
864 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
865 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
866 },
867 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
868 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
869 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
870 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
871 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
872 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
873 },
874 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
875 &quot;A String&quot;,
876 ],
877 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
878 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
879 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
880 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
881 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
882 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
883 },
884 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
885 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
886 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
887 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
888 },
889 &quot;schemaOnly&quot;: True or False, # Export only schemas.
890 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
891 &quot;A String&quot;,
892 ],
893 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
894 },
895 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
896 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
897 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
898 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
899 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
900 },
901 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
902 },
903 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
904 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
905 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
906 &quot;encryptionOptions&quot;: {
907 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
908 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
909 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
910 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
911 },
912 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
913 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
914 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
915 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
916 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
917 },
918 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
919 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
920 &quot;A String&quot;,
921 ],
922 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
923 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
924 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
925 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
926 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
927 },
928 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
929 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
930 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
931 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
932 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
933 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
934 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
935 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
936 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
937 },
938 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
939 },
940 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
941 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
942 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
943 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
944 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
945 },
946 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
947 },
948 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
949 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
950 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
951 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
952 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
953 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
954 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
955 { # Structured PreCheckResponse containing message, type, and required actions.
956 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
957 &quot;A String&quot;,
958 ],
959 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
960 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
961 },
962 ],
963 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
964 },
965 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
966 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
967 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
968 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
969 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
970 },
971 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
972 &quot;targetLink&quot;: &quot;A String&quot;,
973 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
974 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
975 }</pre>
976 </div>
977
978 <div class="method">
979 <code class="details" id="addServerCertificate">addServerCertificate(project, instance, x__xgafv=None)</code>
980 <pre>Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, use AddServerCa instead.
981
982 Args:
983 project: string, Project ID of the project that contains the instance. (required)
984 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
985 x__xgafv: string, V1 error format.
986 Allowed values
987 1 - v1 error format
988 2 - v2 error format
989
990 Returns:
991 An object of the form:
992
993 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
994 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
995 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
996 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
997 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
998 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
999 },
1000 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
1001 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
1002 &quot;message&quot;: &quot;A String&quot;, # The warning message.
1003 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
1004 },
1005 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
1006 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
1007 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
1008 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
1009 },
1010 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1011 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
1012 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1013 { # Database instance operation error.
1014 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
1015 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
1016 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
1017 },
1018 ],
1019 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
1020 },
1021 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
1022 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
1023 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
1024 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
1025 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
1026 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
1027 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
1028 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
1029 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
1030 },
1031 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
1032 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1033 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1034 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1035 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1036 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
1037 },
1038 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
1039 &quot;A String&quot;,
1040 ],
1041 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
1042 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
1043 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
1044 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1045 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
1046 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
1047 },
1048 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
1049 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
1050 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
1051 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
1052 },
1053 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1054 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
1055 &quot;A String&quot;,
1056 ],
1057 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
1058 },
1059 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
1060 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
1061 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1062 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1063 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
1064 },
1065 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
1066 },
1067 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
1068 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1069 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
1070 &quot;encryptionOptions&quot;: {
1071 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1072 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
1073 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
1074 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1075 },
1076 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
1077 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
1078 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
1079 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
1080 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
1081 },
1082 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1083 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
1084 &quot;A String&quot;,
1085 ],
1086 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1087 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1088 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1089 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1090 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1091 },
1092 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
1093 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
1094 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
1095 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
1096 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
1097 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
1098 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
1099 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1100 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1101 },
1102 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
1103 },
1104 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
1105 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1106 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1107 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1108 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1109 },
1110 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
1111 },
1112 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1113 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
1114 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
1115 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
1116 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
1117 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
1118 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
1119 { # Structured PreCheckResponse containing message, type, and required actions.
1120 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
1121 &quot;A String&quot;,
1122 ],
1123 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
1124 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
1125 },
1126 ],
1127 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
1128 },
1129 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1130 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1131 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
1132 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
1133 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
1134 },
1135 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
1136 &quot;targetLink&quot;: &quot;A String&quot;,
1137 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1138 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1139 }</pre>
1140 </div>
1141
1142 <div class="method">
1143 <code class="details" id="clone">clone(project, instance, body=None, x__xgafv=None)</code>
1144 <pre>Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
1145
1146 Args:
1147 project: string, Required. Project ID of the source Cloud SQL instance. (required)
1148 instance: string, Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID. (required)
1149 body: object, The request body.
1150 The object takes the form of:
1151
1152 { # Database instance clone request.
1153 &quot;cloneContext&quot;: { # Database instance clone context. # Required. Contains details about the clone operation.
1154 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip Cloud SQL instance. For example: &quot;google-managed-services-default&quot;. If set, the cloned instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
1155 &quot;binLogCoordinates&quot;: { # Binary log coordinates. # Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
1156 &quot;binLogFileName&quot;: &quot;A String&quot;, # Name of the binary log file for a Cloud SQL instance.
1157 &quot;binLogPosition&quot;: &quot;A String&quot;, # Position (offset) within the binary log file.
1158 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#binLogCoordinates`.
1159 },
1160 &quot;databaseNames&quot;: [ # (SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.
1161 &quot;A String&quot;,
1162 ],
1163 &quot;destinationInstanceName&quot;: &quot;A String&quot;, # Required. Name of the Cloud SQL instance to be created as a clone.
1164 &quot;destinationNetwork&quot;: &quot;A String&quot;, # Optional. The fully qualified URI of the VPC network to which the cloned instance will be connected via private services access for private IP. For example:`projects/my-network-project/global/networks/my-network`. This field is only required for cross-project cloning.
1165 &quot;destinationProject&quot;: &quot;A String&quot;, # Optional. The project ID of the destination project where the cloned instance will be created. To perform a cross-project clone, this field is required. If not specified, the clone is created in the same project as the source instance.
1166 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#cloneContext`.
1167 &quot;pitrTimestampMs&quot;: &quot;A String&quot;, # Reserved for future use.
1168 &quot;pointInTime&quot;: &quot;A String&quot;, # Timestamp, if specified, identifies the time to which the source instance is cloned.
1169 &quot;preferredSecondaryZone&quot;: &quot;A String&quot;, # Optional. Copy clone and point-in-time recovery clone of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field. This field applies to all DB types.
1170 &quot;preferredZone&quot;: &quot;A String&quot;, # Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance. This field applies to all DB types.
1171 &quot;sourceInstanceDeletionTime&quot;: &quot;A String&quot;, # The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
1172 },
1173 }
1174
1175 x__xgafv: string, V1 error format.
1176 Allowed values
1177 1 - v1 error format
1178 2 - v2 error format
1179
1180 Returns:
1181 An object of the form:
1182
1183 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
1184 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
1185 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
1186 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
1187 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
1188 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
1189 },
1190 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
1191 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
1192 &quot;message&quot;: &quot;A String&quot;, # The warning message.
1193 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
1194 },
1195 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
1196 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
1197 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
1198 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
1199 },
1200 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1201 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
1202 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1203 { # Database instance operation error.
1204 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
1205 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
1206 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
1207 },
1208 ],
1209 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
1210 },
1211 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
1212 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
1213 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
1214 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
1215 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
1216 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
1217 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
1218 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
1219 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
1220 },
1221 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
1222 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1223 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1224 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1225 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1226 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
1227 },
1228 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
1229 &quot;A String&quot;,
1230 ],
1231 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
1232 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
1233 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
1234 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1235 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
1236 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
1237 },
1238 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
1239 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
1240 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
1241 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
1242 },
1243 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1244 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
1245 &quot;A String&quot;,
1246 ],
1247 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
1248 },
1249 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
1250 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
1251 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1252 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1253 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
1254 },
1255 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
1256 },
1257 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
1258 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1259 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
1260 &quot;encryptionOptions&quot;: {
1261 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1262 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
1263 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
1264 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1265 },
1266 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
1267 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
1268 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
1269 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
1270 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
1271 },
1272 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1273 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
1274 &quot;A String&quot;,
1275 ],
1276 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1277 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1278 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1279 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1280 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1281 },
1282 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
1283 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
1284 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
1285 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
1286 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
1287 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
1288 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
1289 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1290 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1291 },
1292 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
1293 },
1294 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
1295 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1296 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1297 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1298 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1299 },
1300 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
1301 },
1302 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1303 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
1304 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
1305 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
1306 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
1307 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
1308 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
1309 { # Structured PreCheckResponse containing message, type, and required actions.
1310 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
1311 &quot;A String&quot;,
1312 ],
1313 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
1314 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
1315 },
1316 ],
1317 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
1318 },
1319 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1320 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1321 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
1322 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
1323 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
1324 },
1325 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
1326 &quot;targetLink&quot;: &quot;A String&quot;,
1327 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1328 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1329 }</pre>
1330 </div>
1331
1332 <div class="method">
1333 <code class="details" id="close">close()</code>
1334 <pre>Close httplib2 connections.</pre>
1335 </div>
1336
1337 <div class="method">
1338 <code class="details" id="delete">delete(project, instance, enableFinalBackup=None, finalBackupDescription=None, finalBackupExpiryTime=None, finalBackupTtlDays=None, x__xgafv=None)</code>
1339 <pre>Deletes a Cloud SQL instance.
1340
1341 Args:
1342 project: string, Project ID of the project that contains the instance to be deleted. (required)
1343 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
1344 enableFinalBackup: boolean, Flag to opt-in for final backup. By default, it is turned off.
1345 finalBackupDescription: string, Optional. The description of the final backup.
1346 finalBackupExpiryTime: string, Optional. Final Backup expiration time. Timestamp in UTC of when this resource is considered expired.
1347 finalBackupTtlDays: string, Optional. Retention period of the final backup.
1348 x__xgafv: string, V1 error format.
1349 Allowed values
1350 1 - v1 error format
1351 2 - v2 error format
1352
1353 Returns:
1354 An object of the form:
1355
1356 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
1357 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
1358 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
1359 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
1360 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
1361 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
1362 },
1363 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
1364 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
1365 &quot;message&quot;: &quot;A String&quot;, # The warning message.
1366 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
1367 },
1368 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
1369 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
1370 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
1371 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
1372 },
1373 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1374 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
1375 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1376 { # Database instance operation error.
1377 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
1378 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
1379 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
1380 },
1381 ],
1382 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
1383 },
1384 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
1385 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
1386 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
1387 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
1388 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
1389 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
1390 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
1391 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
1392 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
1393 },
1394 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
1395 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1396 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1397 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1398 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1399 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
1400 },
1401 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
1402 &quot;A String&quot;,
1403 ],
1404 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
1405 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
1406 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
1407 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1408 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
1409 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
1410 },
1411 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
1412 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
1413 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
1414 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
1415 },
1416 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1417 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
1418 &quot;A String&quot;,
1419 ],
1420 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
1421 },
1422 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
1423 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
1424 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1425 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1426 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
1427 },
1428 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
1429 },
1430 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
1431 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1432 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
1433 &quot;encryptionOptions&quot;: {
1434 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1435 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
1436 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
1437 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1438 },
1439 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
1440 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
1441 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
1442 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
1443 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
1444 },
1445 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1446 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
1447 &quot;A String&quot;,
1448 ],
1449 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1450 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1451 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1452 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1453 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1454 },
1455 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
1456 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
1457 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
1458 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
1459 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
1460 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
1461 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
1462 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1463 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1464 },
1465 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
1466 },
1467 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
1468 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1469 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1470 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1471 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1472 },
1473 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
1474 },
1475 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1476 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
1477 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
1478 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
1479 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
1480 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
1481 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
1482 { # Structured PreCheckResponse containing message, type, and required actions.
1483 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
1484 &quot;A String&quot;,
1485 ],
1486 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
1487 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
1488 },
1489 ],
1490 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
1491 },
1492 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1493 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1494 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
1495 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
1496 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
1497 },
1498 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
1499 &quot;targetLink&quot;: &quot;A String&quot;,
1500 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1501 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1502 }</pre>
1503 </div>
1504
1505 <div class="method">
1506 <code class="details" id="demote">demote(project, instance, body=None, x__xgafv=None)</code>
1507 <pre>Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.
1508
1509 Args:
1510 project: string, Required. ID of the project that contains the instance. (required)
1511 instance: string, Required. Cloud SQL instance name. (required)
1512 body: object, The request body.
1513 The object takes the form of:
1514
1515 { # This request is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
1516 &quot;demoteContext&quot;: { # This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server. # Required. Contains details about the demote operation.
1517 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#demoteContext`.
1518 &quot;sourceRepresentativeInstanceName&quot;: &quot;A String&quot;, # Required. The name of the instance which acts as the on-premises primary instance in the replication setup.
1519 },
1520 }
1521
1522 x__xgafv: string, V1 error format.
1523 Allowed values
1524 1 - v1 error format
1525 2 - v2 error format
1526
1527 Returns:
1528 An object of the form:
1529
1530 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
1531 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
1532 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
1533 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
1534 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
1535 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
1536 },
1537 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
1538 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
1539 &quot;message&quot;: &quot;A String&quot;, # The warning message.
1540 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
1541 },
1542 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
1543 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
1544 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
1545 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
1546 },
1547 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1548 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
1549 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1550 { # Database instance operation error.
1551 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
1552 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
1553 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
1554 },
1555 ],
1556 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
1557 },
1558 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
1559 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
1560 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
1561 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
1562 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
1563 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
1564 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
1565 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
1566 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
1567 },
1568 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
1569 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1570 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1571 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1572 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1573 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
1574 },
1575 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
1576 &quot;A String&quot;,
1577 ],
1578 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
1579 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
1580 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
1581 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1582 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
1583 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
1584 },
1585 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
1586 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
1587 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
1588 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
1589 },
1590 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1591 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
1592 &quot;A String&quot;,
1593 ],
1594 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
1595 },
1596 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
1597 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
1598 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1599 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1600 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
1601 },
1602 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
1603 },
1604 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
1605 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1606 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
1607 &quot;encryptionOptions&quot;: {
1608 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1609 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
1610 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
1611 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1612 },
1613 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
1614 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
1615 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
1616 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
1617 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
1618 },
1619 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1620 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
1621 &quot;A String&quot;,
1622 ],
1623 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1624 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1625 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1626 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1627 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1628 },
1629 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
1630 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
1631 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
1632 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
1633 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
1634 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
1635 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
1636 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1637 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1638 },
1639 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
1640 },
1641 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
1642 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1643 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1644 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1645 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1646 },
1647 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
1648 },
1649 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1650 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
1651 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
1652 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
1653 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
1654 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
1655 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
1656 { # Structured PreCheckResponse containing message, type, and required actions.
1657 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
1658 &quot;A String&quot;,
1659 ],
1660 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
1661 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
1662 },
1663 ],
1664 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
1665 },
1666 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1667 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1668 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
1669 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
1670 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
1671 },
1672 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
1673 &quot;targetLink&quot;: &quot;A String&quot;,
1674 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1675 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1676 }</pre>
1677 </div>
1678
1679 <div class="method">
1680 <code class="details" id="demoteMaster">demoteMaster(project, instance, body=None, x__xgafv=None)</code>
1681 <pre>Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
1682
1683 Args:
1684 project: string, ID of the project that contains the instance. (required)
1685 instance: string, Cloud SQL instance name. (required)
1686 body: object, The request body.
1687 The object takes the form of:
1688
1689 { # Database demote primary instance request.
1690 &quot;demoteMasterContext&quot;: { # Database instance demote primary instance context. # Contains details about the demoteMaster operation.
1691 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#demoteMasterContext`.
1692 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as on-premises primary instance in the replication setup.
1693 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the on-premises primary instance. # Configuration specific to read-replicas replicating from the on-premises primary instance.
1694 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#demoteMasterConfiguration`.
1695 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
1696 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
1697 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
1698 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate. The format of the replica&#x27;s private key can be either PKCS #1 or PKCS #8.
1699 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#demoteMasterMysqlReplicaConfiguration`.
1700 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
1701 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
1702 },
1703 },
1704 &quot;skipReplicationSetup&quot;: True or False, # Flag to skip replication setup on the instance.
1705 &quot;verifyGtidConsistency&quot;: True or False, # Verify the GTID consistency for demote operation. Default value: `True`. Setting this flag to `false` enables you to bypass the GTID consistency check between on-premises primary instance and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.
1706 },
1707 }
1708
1709 x__xgafv: string, V1 error format.
1710 Allowed values
1711 1 - v1 error format
1712 2 - v2 error format
1713
1714 Returns:
1715 An object of the form:
1716
1717 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
1718 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
1719 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
1720 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
1721 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
1722 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
1723 },
1724 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
1725 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
1726 &quot;message&quot;: &quot;A String&quot;, # The warning message.
1727 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
1728 },
1729 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
1730 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
1731 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
1732 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
1733 },
1734 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1735 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
1736 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1737 { # Database instance operation error.
1738 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
1739 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
1740 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
1741 },
1742 ],
1743 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
1744 },
1745 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
1746 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
1747 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
1748 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
1749 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
1750 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
1751 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
1752 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
1753 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
1754 },
1755 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
1756 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1757 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1758 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1759 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1760 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
1761 },
1762 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
1763 &quot;A String&quot;,
1764 ],
1765 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
1766 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
1767 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
1768 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1769 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
1770 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
1771 },
1772 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
1773 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
1774 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
1775 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
1776 },
1777 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1778 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
1779 &quot;A String&quot;,
1780 ],
1781 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
1782 },
1783 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
1784 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
1785 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1786 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1787 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
1788 },
1789 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
1790 },
1791 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
1792 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1793 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
1794 &quot;encryptionOptions&quot;: {
1795 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1796 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
1797 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
1798 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
1799 },
1800 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
1801 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
1802 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
1803 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
1804 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
1805 },
1806 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1807 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
1808 &quot;A String&quot;,
1809 ],
1810 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1811 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1812 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1813 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1814 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1815 },
1816 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
1817 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
1818 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
1819 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
1820 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
1821 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
1822 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
1823 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1824 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
1825 },
1826 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
1827 },
1828 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
1829 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1830 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1831 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
1832 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
1833 },
1834 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
1835 },
1836 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1837 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
1838 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
1839 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
1840 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
1841 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
1842 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
1843 { # Structured PreCheckResponse containing message, type, and required actions.
1844 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
1845 &quot;A String&quot;,
1846 ],
1847 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
1848 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
1849 },
1850 ],
1851 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
1852 },
1853 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1854 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
1855 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
1856 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
1857 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
1858 },
1859 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
1860 &quot;targetLink&quot;: &quot;A String&quot;,
1861 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1862 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1863 }</pre>
1864 </div>
1865
1866 <div class="method">
1867 <code class="details" id="executeSql">executeSql(project, instance, body=None, x__xgafv=None)</code>
1868 <pre>Execute SQL statements.
1869
1870 Args:
1871 project: string, Required. Project ID of the project that contains the instance. (required)
1872 instance: string, Required. Database instance ID. This does not include the project ID. (required)
1873 body: object, The request body.
1874 The object takes the form of:
1875
1876 { # The request payload used to execute SQL statements.
1877 &quot;application&quot;: &quot;A String&quot;, # Optional. Specifies the name of the application that is making the request. This field is used for telemetry. Only alphanumeric characters, dashes, and underscores are allowed. The maximum length is 32 characters.
1878 &quot;autoIamAuthn&quot;: True or False, # Optional. When set to `true`, the API caller identity associated with the request is used for database authentication. The API caller must be an IAM user in the database.
1879 &quot;database&quot;: &quot;A String&quot;, # Optional. Name of the database on which the statement will be executed.
1880 &quot;partialResultMode&quot;: &quot;A String&quot;, # Optional. Controls how the API should respond when the SQL execution result is incomplete due to the size limit or another error. The default mode is to throw an error.
1881 &quot;rowLimit&quot;: &quot;A String&quot;, # Optional. The maximum number of rows returned per SQL statement.
1882 &quot;sqlStatement&quot;: &quot;A String&quot;, # Required. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
1883 &quot;user&quot;: &quot;A String&quot;, # Optional. The name of an existing database user to connect to the database. When `auto_iam_authn` is set to true, this field is ignored and the API caller&#x27;s IAM user is used.
1884 }
1885
1886 x__xgafv: string, V1 error format.
1887 Allowed values
1888 1 - v1 error format
1889 2 - v2 error format
1890
1891 Returns:
1892 An object of the form:
1893
1894 { # Execute SQL statements response.
1895 &quot;messages&quot;: [ # A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement.
1896 { # Represents a notice or warning message from the database.
1897 &quot;message&quot;: &quot;A String&quot;, # The full message string. For PostgreSQL, this is a formatted string that may include severity, code, and the notice/warning message. For MySQL, this contains the warning message.
1898 &quot;severity&quot;: &quot;A String&quot;, # The severity of the message (e.g., &quot;NOTICE&quot; for PostgreSQL, &quot;WARNING&quot; for MySQL).
1899 },
1900 ],
1901 &quot;metadata&quot;: { # The additional metadata information regarding the execution of the SQL statements. # The additional metadata information regarding the execution of the SQL statements.
1902 &quot;sqlStatementExecutionTime&quot;: &quot;A String&quot;, # The time taken to execute the SQL statements.
1903 },
1904 &quot;results&quot;: [ # The list of results after executing all the SQL statements.
1905 { # QueryResult contains the result of executing a single SQL statement.
1906 &quot;columns&quot;: [ # List of columns included in the result. This also includes the data type of the column.
1907 { # Contains the name and datatype of a column.
1908 &quot;name&quot;: &quot;A String&quot;, # Name of the column.
1909 &quot;type&quot;: &quot;A String&quot;, # Datatype of the column.
1910 },
1911 ],
1912 &quot;message&quot;: &quot;A String&quot;, # Message related to the SQL execution result.
1913 &quot;partialResult&quot;: True or False, # Set to true if the SQL execution&#x27;s result is truncated due to size limits or an error retrieving results.
1914 &quot;rows&quot;: [ # Rows returned by the SQL statement.
1915 { # Contains the values for a row.
1916 &quot;values&quot;: [ # The values for the row.
1917 { # The cell value of the table.
1918 &quot;nullValue&quot;: True or False, # If cell value is null, then this flag will be set to true.
1919 &quot;value&quot;: &quot;A String&quot;, # The cell value in string format.
1920 },
1921 ],
1922 },
1923 ],
1924 &quot;status&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). # If results were truncated due to an error, details of that error.
1925 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1926 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1927 {
1928 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1929 },
1930 ],
1931 &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.
1932 },
1933 },
1934 ],
1935 &quot;status&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). # Contains the error from the database if the SQL execution failed.
1936 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1937 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1938 {
1939 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1940 },
1941 ],
1942 &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.
1943 },
1944 }</pre>
1945 </div>
1946
1947 <div class="method">
1948 <code class="details" id="export">export(project, instance, body=None, x__xgafv=None)</code>
1949 <pre>Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
1950
1951 Args:
1952 project: string, Project ID of the project that contains the instance to be exported. (required)
1953 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
1954 body: object, The request body.
1955 The object takes the form of:
1956
1957 { # Database instance export request.
1958 &quot;exportContext&quot;: { # Database instance export context. # Contains details about the export operation.
1959 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
1960 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
1961 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
1962 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
1963 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
1964 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
1965 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
1966 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
1967 },
1968 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
1969 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1970 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1971 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
1972 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
1973 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
1974 },
1975 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
1976 &quot;A String&quot;,
1977 ],
1978 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
1979 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
1980 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
1981 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1982 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
1983 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
1984 },
1985 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
1986 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
1987 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
1988 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
1989 },
1990 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1991 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
1992 &quot;A String&quot;,
1993 ],
1994 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
1995 },
1996 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
1997 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
1998 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
1999 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
2000 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
2001 },
2002 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
2003 },
2004 }
2005
2006 x__xgafv: string, V1 error format.
2007 Allowed values
2008 1 - v1 error format
2009 2 - v2 error format
2010
2011 Returns:
2012 An object of the form:
2013
2014 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
2015 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
2016 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
2017 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
2018 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
2019 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
2020 },
2021 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
2022 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
2023 &quot;message&quot;: &quot;A String&quot;, # The warning message.
2024 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
2025 },
2026 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2027 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
2028 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
2029 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
2030 },
2031 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2032 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2033 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2034 { # Database instance operation error.
2035 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
2036 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
2037 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2038 },
2039 ],
2040 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
2041 },
2042 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
2043 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
2044 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
2045 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
2046 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
2047 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
2048 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
2049 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
2050 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
2051 },
2052 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
2053 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2054 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2055 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
2056 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
2057 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
2058 },
2059 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
2060 &quot;A String&quot;,
2061 ],
2062 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
2063 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
2064 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
2065 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2066 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
2067 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
2068 },
2069 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
2070 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
2071 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
2072 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
2073 },
2074 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2075 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
2076 &quot;A String&quot;,
2077 ],
2078 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
2079 },
2080 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
2081 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
2082 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
2083 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
2084 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
2085 },
2086 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
2087 },
2088 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2089 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2090 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
2091 &quot;encryptionOptions&quot;: {
2092 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
2093 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
2094 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
2095 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
2096 },
2097 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
2098 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
2099 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
2100 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
2101 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
2102 },
2103 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2104 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
2105 &quot;A String&quot;,
2106 ],
2107 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2108 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2109 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
2110 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
2111 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2112 },
2113 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
2114 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
2115 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
2116 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
2117 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
2118 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
2119 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
2120 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
2121 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
2122 },
2123 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
2124 },
2125 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
2126 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
2127 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
2128 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
2129 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
2130 },
2131 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
2132 },
2133 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2134 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
2135 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
2136 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
2137 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
2138 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
2139 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
2140 { # Structured PreCheckResponse containing message, type, and required actions.
2141 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
2142 &quot;A String&quot;,
2143 ],
2144 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
2145 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
2146 },
2147 ],
2148 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
2149 },
2150 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
2151 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2152 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
2153 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
2154 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
2155 },
2156 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
2157 &quot;targetLink&quot;: &quot;A String&quot;,
2158 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2159 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2160 }</pre>
2161 </div>
2162
2163 <div class="method">
2164 <code class="details" id="failover">failover(project, instance, body=None, x__xgafv=None)</code>
2165 <pre>Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance.
2166
2167 Args:
2168 project: string, ID of the project that contains the read replica. (required)
2169 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
2170 body: object, The request body.
2171 The object takes the form of:
2172
2173 { # Instance failover request.
2174 &quot;failoverContext&quot;: { # Database instance failover context. # Failover Context.
2175 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#failoverContext`.
2176 &quot;settingsVersion&quot;: &quot;A String&quot;, # The current settings version of this instance. Request will be rejected if this version doesn&#x27;t match the current settings version.
2177 },
2178 }
2179
2180 x__xgafv: string, V1 error format.
2181 Allowed values
2182 1 - v1 error format
2183 2 - v2 error format
2184
2185 Returns:
2186 An object of the form:
2187
2188 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
2189 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
2190 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
2191 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
2192 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
2193 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
2194 },
2195 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
2196 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
2197 &quot;message&quot;: &quot;A String&quot;, # The warning message.
2198 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
2199 },
2200 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2201 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
2202 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
2203 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
2204 },
2205 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2206 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2207 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2208 { # Database instance operation error.
2209 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
2210 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
2211 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2212 },
2213 ],
2214 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
2215 },
2216 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
2217 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
2218 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
2219 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
2220 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
2221 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
2222 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
2223 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
2224 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
2225 },
2226 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
2227 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2228 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2229 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
2230 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
2231 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
2232 },
2233 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
2234 &quot;A String&quot;,
2235 ],
2236 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
2237 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
2238 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
2239 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2240 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
2241 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
2242 },
2243 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
2244 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
2245 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
2246 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
2247 },
2248 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2249 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
2250 &quot;A String&quot;,
2251 ],
2252 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
2253 },
2254 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
2255 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
2256 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
2257 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
2258 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
2259 },
2260 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
2261 },
2262 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2263 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2264 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
2265 &quot;encryptionOptions&quot;: {
2266 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
2267 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
2268 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
2269 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
2270 },
2271 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
2272 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
2273 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
2274 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
2275 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
2276 },
2277 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2278 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
2279 &quot;A String&quot;,
2280 ],
2281 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2282 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2283 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
2284 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
2285 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2286 },
2287 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
2288 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
2289 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
2290 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
2291 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
2292 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
2293 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
2294 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
2295 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
2296 },
2297 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
2298 },
2299 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
2300 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
2301 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
2302 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
2303 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
2304 },
2305 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
2306 },
2307 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2308 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
2309 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
2310 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
2311 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
2312 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
2313 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
2314 { # Structured PreCheckResponse containing message, type, and required actions.
2315 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
2316 &quot;A String&quot;,
2317 ],
2318 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
2319 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
2320 },
2321 ],
2322 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
2323 },
2324 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
2325 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2326 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
2327 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
2328 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
2329 },
2330 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
2331 &quot;targetLink&quot;: &quot;A String&quot;,
2332 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2333 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2334 }</pre>
2335 </div>
2336
2337 <div class="method">
2338 <code class="details" id="get">get(project, instance, x__xgafv=None)</code>
2339 <pre>Retrieves a resource containing information about a Cloud SQL instance.
2340
2341 Args:
2342 project: string, Required. Project ID of the project that contains the instance. (required)
2343 instance: string, Required. Database instance ID. This does not include the project ID. (required)
2344 x__xgafv: string, V1 error format.
2345 Allowed values
2346 1 - v1 error format
2347 2 - v2 error format
2348
2349 Returns:
2350 An object of the form:
2351
2352 { # A Cloud SQL instance resource.
2353 &quot;availableMaintenanceVersions&quot;: [ # Output only. List all maintenance versions applicable on the instance
2354 &quot;A String&quot;,
2355 ],
2356 &quot;backendType&quot;: &quot;A String&quot;, # The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
2357 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
2358 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2359 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been deprecated. Use the &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
2360 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
2361 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
2362 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
2363 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.
2364 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
2365 },
2366 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
2367 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionStatus`.
2368 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
2369 },
2370 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The dns name of the instance.
2371 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this instance.
2372 { # DNS metadata.
2373 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
2374 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
2375 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
2376 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
2377 },
2378 ],
2379 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
2380 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
2381 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.
2382 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn&#x27;t include the project ID.
2383 },
2384 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
2385 &quot;geminiConfig&quot;: { # Gemini instance configuration. # Gemini instance configuration.
2386 &quot;activeQueryEnabled&quot;: True or False, # Output only. Whether the active query is enabled.
2387 &quot;entitled&quot;: True or False, # Output only. Whether Gemini is enabled.
2388 &quot;flagRecommenderEnabled&quot;: True or False, # Output only. Whether the flag recommender is enabled.
2389 &quot;googleVacuumMgmtEnabled&quot;: True or False, # Output only. Whether the vacuum management is enabled.
2390 &quot;indexAdvisorEnabled&quot;: True or False, # Output only. Whether the index advisor is enabled.
2391 &quot;oomSessionCancelEnabled&quot;: True or False, # Output only. Whether canceling the out-of-memory (OOM) session is enabled.
2392 },
2393 &quot;includeReplicasForMajorVersionUpgrade&quot;: True or False, # Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
2394 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
2395 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
2396 { # Database instance IP mapping
2397 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
2398 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
2399 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
2400 },
2401 ],
2402 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
2403 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instance`.
2404 &quot;maintenanceVersion&quot;: &quot;A String&quot;, # The current software version on the instance.
2405 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
2406 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
2407 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
2408 &quot;nodeCount&quot;: 42, # The number of read pool nodes in a read pool.
2409 &quot;nodes&quot;: [ # Output only. Entries containing information about each read pool node of the read pool.
2410 { # Details of a single read pool node of a read pool.
2411 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the read pool node.
2412 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this read pool node.
2413 { # DNS metadata.
2414 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
2415 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
2416 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
2417 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
2418 },
2419 ],
2420 &quot;gceZone&quot;: &quot;A String&quot;, # Output only. The zone of the read pool node.
2421 &quot;ipAddresses&quot;: [ # Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
2422 { # Database instance IP mapping
2423 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
2424 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
2425 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
2426 },
2427 ],
2428 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the read pool node, to be used for retrieving metrics and logs.
2429 &quot;pscAutoConnections&quot;: [ # Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.
2430 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
2431 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
2432 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
2433 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
2434 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
2435 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
2436 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
2437 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
2438 },
2439 ],
2440 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The Private Service Connect (PSC) service attachment of the read pool node.
2441 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the read pool node.
2442 },
2443 ],
2444 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
2445 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
2446 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
2447 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
2448 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
2449 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
2450 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#onPremisesConfiguration`.
2451 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
2452 &quot;selectedObjects&quot;: [ # Optional. A list of objects that the user selects for replication from an external source instance.
2453 { # A list of objects that the user selects for replication from an external source instance.
2454 &quot;database&quot;: &quot;A String&quot;, # Required. The name of the database to migrate.
2455 },
2456 ],
2457 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
2458 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
2459 &quot;project&quot;: &quot;A String&quot;, # The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
2460 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
2461 },
2462 &quot;sslOption&quot;: &quot;A String&quot;, # Optional. SSL option for replica connection to the on-premises source.
2463 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
2464 },
2465 &quot;outOfDiskReport&quot;: { # This message wraps up the information written by out-of-disk detection job. # This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
2466 &quot;sqlMinRecommendedIncreaseSizeGb&quot;: 42, # The minimum recommended increase size in GigaBytes This field is consumed by the frontend * Writers: * the proactive database wellness job for OOD. * Readers:
2467 &quot;sqlOutOfDiskState&quot;: &quot;A String&quot;, # This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
2468 },
2469 &quot;primaryDnsName&quot;: &quot;A String&quot;, # Output only. DEPRECATED: please use write_endpoint instead.
2470 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
2471 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The link to service attachment of PSC instance.
2472 &quot;region&quot;: &quot;A String&quot;, # The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
2473 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
2474 &quot;cascadableReplica&quot;: True or False, # Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
2475 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
2476 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#replicaConfiguration`.
2477 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
2478 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
2479 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
2480 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
2481 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
2482 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
2483 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#mysqlReplicaConfiguration`.
2484 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
2485 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
2486 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
2487 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
2488 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the primary instance&#x27;s Common Name value in the certificate that it sends during the SSL handshake.
2489 },
2490 },
2491 &quot;replicaNames&quot;: [ # The replicas of the instance.
2492 &quot;A String&quot;,
2493 ],
2494 &quot;replicationCluster&quot;: { # A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL. # Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
2495 &quot;drReplica&quot;: True or False, # Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
2496 &quot;failoverDrReplicaName&quot;: &quot;A String&quot;, # Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
2497 &quot;psaWriteEndpoint&quot;: &quot;A String&quot;, # Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn&#x27;t have a DR replica yet or the DR replica is deleted.
2498 },
2499 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
2500 &quot;satisfiesPzi&quot;: True or False, # Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
2501 &quot;satisfiesPzs&quot;: True or False, # This status indicates whether the instance satisfies PZS. The status is reserved for future use.
2502 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenance for this instance. # The start time of any upcoming scheduled maintenance for this instance.
2503 &quot;canDefer&quot;: True or False,
2504 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
2505 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
2506 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
2507 },
2508 &quot;secondaryGceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
2509 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
2510 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
2511 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
2512 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
2513 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
2514 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
2515 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2516 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
2517 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
2518 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
2519 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
2520 },
2521 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance.\This property is read-only.
2522 &quot;settings&quot;: { # Database instance settings. # The user settings.
2523 &quot;acceleratedReplicaMode&quot;: True or False, # Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
2524 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
2525 &quot;activeDirectoryConfig&quot;: { # Active Directory configuration, relevant only for Cloud SQL for SQL Server. # Active Directory configuration, relevant only for Cloud SQL for SQL Server.
2526 &quot;adminCredentialSecretName&quot;: &quot;A String&quot;, # Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).
2527 &quot;dnsServers&quot;: [ # Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
2528 &quot;A String&quot;,
2529 ],
2530 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
2531 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
2532 &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of the Active Directory configuration.
2533 &quot;organizationalUnit&quot;: &quot;A String&quot;, # Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
2534 },
2535 &quot;advancedMachineFeatures&quot;: { # Specifies options for controlling advanced machine features. # Specifies advanced machine configuration for the instances relevant only for SQL Server.
2536 &quot;threadsPerCore&quot;: 42, # The number of threads per physical core.
2537 },
2538 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
2539 &quot;A String&quot;,
2540 ],
2541 &quot;autoUpgradeEnabled&quot;: True or False, # Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.
2542 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
2543 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
2544 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
2545 &quot;retainedBackups&quot;: 42, # Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is &#x27;COUNT&#x27;, we will retain this many backups.
2546 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
2547 },
2548 &quot;backupTier&quot;: &quot;A String&quot;, # Output only. Backup tier that manages the backups for the instance.
2549 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
2550 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
2551 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupConfiguration`.
2552 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
2553 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Whether point in time recovery is enabled.
2554 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
2555 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
2556 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
2557 &quot;transactionalLogStorageState&quot;: &quot;A String&quot;, # Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
2558 },
2559 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
2560 &quot;connectionPoolConfig&quot;: { # The managed connection pooling configuration. # Optional. The managed connection pooling configuration for the instance.
2561 &quot;connectionPoolingEnabled&quot;: True or False, # Whether managed connection pooling is enabled.
2562 &quot;flags&quot;: [ # Optional. List of connection pool configuration flags.
2563 { # Connection pool flags for Cloud SQL instances managed connection pool configuration.
2564 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the flag.
2565 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
2566 },
2567 ],
2568 &quot;poolerCount&quot;: 42, # Output only. Number of connection poolers.
2569 },
2570 &quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
2571 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
2572 &quot;dataApiAccess&quot;: &quot;A String&quot;, # This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
2573 &quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
2574 &quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
2575 },
2576 &quot;dataDiskProvisionedIops&quot;: &quot;A String&quot;, # Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
2577 &quot;dataDiskProvisionedThroughput&quot;: &quot;A String&quot;, # Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
2578 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
2579 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
2580 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
2581 { # Database flags for Cloud SQL instances.
2582 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
2583 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
2584 },
2585 ],
2586 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
2587 &quot;deletionProtectionEnabled&quot;: True or False, # Configuration to protect against accidental instance deletion.
2588 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
2589 { # Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
2590 &quot;endDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
2591 &quot;startDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
2592 &quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
2593 },
2594 ],
2595 &quot;edition&quot;: &quot;A String&quot;, # Optional. The edition type of the Cloud SQL instance.
2596 &quot;enableDataplexIntegration&quot;: True or False, # Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
2597 &quot;enableGoogleMlIntegration&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
2598 &quot;entraidConfig&quot;: { # SQL Server Entra ID configuration. # Optional. The Microsoft Entra ID configuration for the SQL Server instance.
2599 &quot;applicationId&quot;: &quot;A String&quot;, # Optional. The application ID for the Entra ID configuration.
2600 &quot;kind&quot;: &quot;A String&quot;, # Output only. This is always sql#sqlServerEntraIdConfig
2601 &quot;tenantId&quot;: &quot;A String&quot;, # Optional. The tenant ID for the Entra ID configuration.
2602 },
2603 &quot;finalBackupConfig&quot;: { # Config used to determine the final backup settings for the instance. # Optional. The final backup configuration for the instance.
2604 &quot;enabled&quot;: True or False, # Whether the final backup is enabled for the instance.
2605 &quot;retentionDays&quot;: 42, # The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
2606 },
2607 &quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
2608 &quot;enhancedQueryInsightsEnabled&quot;: True or False, # Optional. Whether enhanced query insights feature is enabled.
2609 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
2610 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
2611 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
2612 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
2613 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
2614 },
2615 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
2616 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip Cloud SQL instance. For example: &quot;google-managed-services-default&quot;. If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
2617 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance using the IP. In &#x27;CIDR&#x27; notation, also known as &#x27;slash&#x27; notation (for example: `157.197.200.0/24`).
2618 { # An entry for an Access Control list.
2619 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2620 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#aclEntry`.
2621 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
2622 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
2623 },
2624 ],
2625 &quot;customSubjectAlternativeNames&quot;: [ # Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
2626 &quot;A String&quot;,
2627 ],
2628 &quot;enablePrivatePathForGoogleCloudServices&quot;: True or False, # Controls connectivity to private IP instances from Google services, such as BigQuery.
2629 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
2630 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
2631 &quot;pscConfig&quot;: { # PSC settings for a Cloud SQL instance. # PSC settings for this instance.
2632 &quot;allowedConsumerProjects&quot;: [ # Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
2633 &quot;A String&quot;,
2634 ],
2635 &quot;networkAttachmentUri&quot;: &quot;A String&quot;, # Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
2636 &quot;pscAutoConnectionPolicyEnabled&quot;: True or False, # Optional. Whether to set up the PSC service connection policy automatically.
2637 &quot;pscAutoConnections&quot;: [ # Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
2638 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
2639 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
2640 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
2641 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
2642 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
2643 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
2644 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
2645 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
2646 },
2647 ],
2648 &quot;pscAutoDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
2649 &quot;pscEnabled&quot;: True or False, # Whether PSC connectivity is enabled for this instance.
2650 &quot;pscWriteEndpointDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
2651 },
2652 &quot;requireSsl&quot;: True or False, # Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won&#x27;t be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
2653 &quot;serverCaMode&quot;: &quot;A String&quot;, # Specify what type of CA is used for the server certificate.
2654 &quot;serverCaPool&quot;: &quot;A String&quot;, # Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
2655 &quot;serverCertificateRotationMode&quot;: &quot;A String&quot;, # Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
2656 &quot;sslMode&quot;: &quot;A String&quot;, # Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
2657 },
2658 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#settings`.
2659 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified. # The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances.
2660 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
2661 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#locationPreference`.
2662 &quot;secondaryZone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to &#x27;no_secondary_zone&#x27;.
2663 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
2664 },
2665 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes. # The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
2666 &quot;day&quot;: 42, # Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
2667 &quot;hour&quot;: 42, # Hour of day - 0 to 23. Specify in the UTC time zone.
2668 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#maintenanceWindow`.
2669 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
2670 },
2671 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access. # The local user password validation policy of the instance.
2672 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
2673 &quot;disallowCompromisedCredentials&quot;: True or False, # This field is deprecated and will be removed in a future version of the API.
2674 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
2675 &quot;enablePasswordPolicy&quot;: True or False, # Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
2676 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
2677 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
2678 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
2679 },
2680 &quot;performanceCaptureConfig&quot;: { # Performance capture configuration. # Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations.
2681 &quot;enabled&quot;: True or False, # Optional. Enables or disables the performance capture feature.
2682 &quot;probeThreshold&quot;: 42, # Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
2683 &quot;probingIntervalSeconds&quot;: 42, # Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
2684 &quot;runningThreadsThreshold&quot;: 42, # Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
2685 &quot;secondsBehindSourceThreshold&quot;: 42, # Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
2686 &quot;transactionDurationThreshold&quot;: 42, # Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
2687 },
2688 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
2689 &quot;readPoolAutoScaleConfig&quot;: { # The read pool auto-scale configuration. # Optional. The read pool auto-scale configuration for the instance.
2690 &quot;disableScaleIn&quot;: True or False, # Indicates whether read pool auto scaling supports scale in operations (removing nodes).
2691 &quot;enabled&quot;: True or False, # Indicates whether read pool auto scaling is enabled.
2692 &quot;maxNodeCount&quot;: 42, # Maximum number of read pool nodes to be maintained.
2693 &quot;minNodeCount&quot;: 42, # Minimum number of read pool nodes to be maintained.
2694 &quot;scaleInCooldownSeconds&quot;: 42, # The cooldown period for scale-in operations.
2695 &quot;scaleOutCooldownSeconds&quot;: 42, # The cooldown period for scale-out operations.
2696 &quot;targetMetrics&quot;: [ # Optional. Target metrics for read pool auto scaling.
2697 { # Target metric for read pool auto scaling.
2698 &quot;metric&quot;: &quot;A String&quot;, # The metric name to be used for auto scaling.
2699 &quot;targetValue&quot;: 3.14, # The target value for the metric.
2700 },
2701 ],
2702 },
2703 &quot;replicationLagMaxSeconds&quot;: 42, # Optional. Configuration value for recreation of replica after certain replication lag
2704 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
2705 &quot;retainBackupsOnDelete&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
2706 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
2707 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
2708 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
2709 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
2710 &quot;retentionInterval&quot;: &quot;A String&quot;, # How long to keep generated audit files.
2711 &quot;uploadInterval&quot;: &quot;A String&quot;, # How often to upload generated audit files.
2712 },
2713 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
2714 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
2715 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
2716 &quot;timeZone&quot;: &quot;A String&quot;, # Server timezone, relevant only for Cloud SQL for SQL Server.
2717 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
2718 &quot;a_key&quot;: &quot;A String&quot;,
2719 },
2720 },
2721 &quot;sqlNetworkArchitecture&quot;: &quot;A String&quot;,
2722 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
2723 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
2724 &quot;A String&quot;,
2725 ],
2726 &quot;switchTransactionLogsToCloudStorageEnabled&quot;: True or False, # Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
2727 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `&quot;&quot; : &quot;&quot;`. For example, a single resource can have the following tags: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;, ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
2728 &quot;a_key&quot;: &quot;A String&quot;,
2729 },
2730 &quot;upgradableDatabaseVersions&quot;: [ # Output only. All database versions that are available for upgrade.
2731 { # An available database version. It can be a major or a minor version.
2732 &quot;displayName&quot;: &quot;A String&quot;, # The database version&#x27;s display name.
2733 &quot;majorVersion&quot;: &quot;A String&quot;, # The version&#x27;s major version name.
2734 &quot;name&quot;: &quot;A String&quot;, # The database version name. For MySQL 8.0, this string provides the database major and minor version.
2735 },
2736 ],
2737 &quot;writeEndpoint&quot;: &quot;A String&quot;, # Output only. The dns name of the primary instance in a replication group.
2738 }</pre>
2739 </div>
2740
2741 <div class="method">
2742 <code class="details" id="import_">import_(project, instance, body=None, x__xgafv=None)</code>
2743 <pre>Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
2744
2745 Args:
2746 project: string, Project ID of the project that contains the instance. (required)
2747 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
2748 body: object, The request body.
2749 The object takes the form of:
2750
2751 { # Database instance import request.
2752 &quot;importContext&quot;: { # Database instance import context. # Contains details about the import operation.
2753 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2754 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
2755 &quot;encryptionOptions&quot;: {
2756 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
2757 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
2758 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
2759 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
2760 },
2761 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
2762 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
2763 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
2764 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
2765 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
2766 },
2767 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2768 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
2769 &quot;A String&quot;,
2770 ],
2771 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2772 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2773 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
2774 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
2775 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2776 },
2777 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
2778 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
2779 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
2780 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
2781 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
2782 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
2783 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
2784 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
2785 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
2786 },
2787 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
2788 },
2789 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
2790 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
2791 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
2792 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
2793 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
2794 },
2795 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
2796 },
2797 }
2798
2799 x__xgafv: string, V1 error format.
2800 Allowed values
2801 1 - v1 error format
2802 2 - v2 error format
2803
2804 Returns:
2805 An object of the form:
2806
2807 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
2808 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
2809 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
2810 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
2811 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
2812 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
2813 },
2814 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
2815 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
2816 &quot;message&quot;: &quot;A String&quot;, # The warning message.
2817 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
2818 },
2819 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2820 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
2821 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
2822 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
2823 },
2824 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2825 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2826 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2827 { # Database instance operation error.
2828 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
2829 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
2830 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2831 },
2832 ],
2833 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
2834 },
2835 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
2836 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
2837 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
2838 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
2839 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
2840 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
2841 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
2842 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
2843 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
2844 },
2845 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
2846 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2847 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2848 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
2849 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
2850 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
2851 },
2852 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
2853 &quot;A String&quot;,
2854 ],
2855 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
2856 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
2857 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
2858 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2859 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
2860 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
2861 },
2862 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
2863 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
2864 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
2865 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
2866 },
2867 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2868 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
2869 &quot;A String&quot;,
2870 ],
2871 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
2872 },
2873 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
2874 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
2875 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
2876 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
2877 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
2878 },
2879 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
2880 },
2881 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2882 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2883 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
2884 &quot;encryptionOptions&quot;: {
2885 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
2886 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
2887 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
2888 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
2889 },
2890 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
2891 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
2892 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
2893 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
2894 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
2895 },
2896 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2897 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
2898 &quot;A String&quot;,
2899 ],
2900 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2901 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2902 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
2903 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
2904 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2905 },
2906 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
2907 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
2908 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
2909 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
2910 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
2911 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
2912 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
2913 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
2914 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
2915 },
2916 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
2917 },
2918 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
2919 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
2920 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
2921 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
2922 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
2923 },
2924 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
2925 },
2926 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2927 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
2928 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
2929 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
2930 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
2931 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
2932 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
2933 { # Structured PreCheckResponse containing message, type, and required actions.
2934 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
2935 &quot;A String&quot;,
2936 ],
2937 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
2938 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
2939 },
2940 ],
2941 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
2942 },
2943 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
2944 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2945 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
2946 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
2947 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
2948 },
2949 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
2950 &quot;targetLink&quot;: &quot;A String&quot;,
2951 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2952 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2953 }</pre>
2954 </div>
2955
2956 <div class="method">
2957 <code class="details" id="insert">insert(project, body=None, x__xgafv=None)</code>
2958 <pre>Creates a new Cloud SQL instance.
2959
2960 Args:
2961 project: string, Project ID of the project to which the newly created Cloud SQL instances should belong. (required)
2962 body: object, The request body.
2963 The object takes the form of:
2964
2965 { # A Cloud SQL instance resource.
2966 &quot;availableMaintenanceVersions&quot;: [ # Output only. List all maintenance versions applicable on the instance
2967 &quot;A String&quot;,
2968 ],
2969 &quot;backendType&quot;: &quot;A String&quot;, # The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
2970 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
2971 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2972 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been deprecated. Use the &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
2973 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
2974 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
2975 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
2976 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.
2977 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
2978 },
2979 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
2980 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionStatus`.
2981 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
2982 },
2983 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The dns name of the instance.
2984 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this instance.
2985 { # DNS metadata.
2986 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
2987 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
2988 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
2989 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
2990 },
2991 ],
2992 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
2993 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
2994 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.
2995 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn&#x27;t include the project ID.
2996 },
2997 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
2998 &quot;geminiConfig&quot;: { # Gemini instance configuration. # Gemini instance configuration.
2999 &quot;activeQueryEnabled&quot;: True or False, # Output only. Whether the active query is enabled.
3000 &quot;entitled&quot;: True or False, # Output only. Whether Gemini is enabled.
3001 &quot;flagRecommenderEnabled&quot;: True or False, # Output only. Whether the flag recommender is enabled.
3002 &quot;googleVacuumMgmtEnabled&quot;: True or False, # Output only. Whether the vacuum management is enabled.
3003 &quot;indexAdvisorEnabled&quot;: True or False, # Output only. Whether the index advisor is enabled.
3004 &quot;oomSessionCancelEnabled&quot;: True or False, # Output only. Whether canceling the out-of-memory (OOM) session is enabled.
3005 },
3006 &quot;includeReplicasForMajorVersionUpgrade&quot;: True or False, # Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
3007 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
3008 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
3009 { # Database instance IP mapping
3010 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
3011 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
3012 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
3013 },
3014 ],
3015 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
3016 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instance`.
3017 &quot;maintenanceVersion&quot;: &quot;A String&quot;, # The current software version on the instance.
3018 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
3019 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
3020 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
3021 &quot;nodeCount&quot;: 42, # The number of read pool nodes in a read pool.
3022 &quot;nodes&quot;: [ # Output only. Entries containing information about each read pool node of the read pool.
3023 { # Details of a single read pool node of a read pool.
3024 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the read pool node.
3025 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this read pool node.
3026 { # DNS metadata.
3027 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
3028 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
3029 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
3030 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
3031 },
3032 ],
3033 &quot;gceZone&quot;: &quot;A String&quot;, # Output only. The zone of the read pool node.
3034 &quot;ipAddresses&quot;: [ # Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
3035 { # Database instance IP mapping
3036 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
3037 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
3038 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
3039 },
3040 ],
3041 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the read pool node, to be used for retrieving metrics and logs.
3042 &quot;pscAutoConnections&quot;: [ # Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.
3043 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
3044 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
3045 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
3046 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
3047 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
3048 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
3049 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
3050 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
3051 },
3052 ],
3053 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The Private Service Connect (PSC) service attachment of the read pool node.
3054 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the read pool node.
3055 },
3056 ],
3057 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
3058 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
3059 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
3060 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
3061 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
3062 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
3063 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#onPremisesConfiguration`.
3064 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
3065 &quot;selectedObjects&quot;: [ # Optional. A list of objects that the user selects for replication from an external source instance.
3066 { # A list of objects that the user selects for replication from an external source instance.
3067 &quot;database&quot;: &quot;A String&quot;, # Required. The name of the database to migrate.
3068 },
3069 ],
3070 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
3071 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
3072 &quot;project&quot;: &quot;A String&quot;, # The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
3073 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
3074 },
3075 &quot;sslOption&quot;: &quot;A String&quot;, # Optional. SSL option for replica connection to the on-premises source.
3076 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
3077 },
3078 &quot;outOfDiskReport&quot;: { # This message wraps up the information written by out-of-disk detection job. # This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
3079 &quot;sqlMinRecommendedIncreaseSizeGb&quot;: 42, # The minimum recommended increase size in GigaBytes This field is consumed by the frontend * Writers: * the proactive database wellness job for OOD. * Readers:
3080 &quot;sqlOutOfDiskState&quot;: &quot;A String&quot;, # This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
3081 },
3082 &quot;primaryDnsName&quot;: &quot;A String&quot;, # Output only. DEPRECATED: please use write_endpoint instead.
3083 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
3084 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The link to service attachment of PSC instance.
3085 &quot;region&quot;: &quot;A String&quot;, # The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
3086 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
3087 &quot;cascadableReplica&quot;: True or False, # Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
3088 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
3089 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#replicaConfiguration`.
3090 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
3091 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
3092 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
3093 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
3094 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
3095 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
3096 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#mysqlReplicaConfiguration`.
3097 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
3098 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
3099 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
3100 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
3101 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the primary instance&#x27;s Common Name value in the certificate that it sends during the SSL handshake.
3102 },
3103 },
3104 &quot;replicaNames&quot;: [ # The replicas of the instance.
3105 &quot;A String&quot;,
3106 ],
3107 &quot;replicationCluster&quot;: { # A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL. # Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
3108 &quot;drReplica&quot;: True or False, # Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
3109 &quot;failoverDrReplicaName&quot;: &quot;A String&quot;, # Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
3110 &quot;psaWriteEndpoint&quot;: &quot;A String&quot;, # Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn&#x27;t have a DR replica yet or the DR replica is deleted.
3111 },
3112 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
3113 &quot;satisfiesPzi&quot;: True or False, # Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
3114 &quot;satisfiesPzs&quot;: True or False, # This status indicates whether the instance satisfies PZS. The status is reserved for future use.
3115 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenance for this instance. # The start time of any upcoming scheduled maintenance for this instance.
3116 &quot;canDefer&quot;: True or False,
3117 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
3118 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
3119 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
3120 },
3121 &quot;secondaryGceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
3122 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
3123 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
3124 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
3125 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
3126 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
3127 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
3128 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3129 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
3130 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
3131 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
3132 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
3133 },
3134 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance.\This property is read-only.
3135 &quot;settings&quot;: { # Database instance settings. # The user settings.
3136 &quot;acceleratedReplicaMode&quot;: True or False, # Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
3137 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
3138 &quot;activeDirectoryConfig&quot;: { # Active Directory configuration, relevant only for Cloud SQL for SQL Server. # Active Directory configuration, relevant only for Cloud SQL for SQL Server.
3139 &quot;adminCredentialSecretName&quot;: &quot;A String&quot;, # Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).
3140 &quot;dnsServers&quot;: [ # Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
3141 &quot;A String&quot;,
3142 ],
3143 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
3144 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
3145 &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of the Active Directory configuration.
3146 &quot;organizationalUnit&quot;: &quot;A String&quot;, # Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
3147 },
3148 &quot;advancedMachineFeatures&quot;: { # Specifies options for controlling advanced machine features. # Specifies advanced machine configuration for the instances relevant only for SQL Server.
3149 &quot;threadsPerCore&quot;: 42, # The number of threads per physical core.
3150 },
3151 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
3152 &quot;A String&quot;,
3153 ],
3154 &quot;autoUpgradeEnabled&quot;: True or False, # Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.
3155 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
3156 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
3157 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
3158 &quot;retainedBackups&quot;: 42, # Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is &#x27;COUNT&#x27;, we will retain this many backups.
3159 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
3160 },
3161 &quot;backupTier&quot;: &quot;A String&quot;, # Output only. Backup tier that manages the backups for the instance.
3162 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
3163 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
3164 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupConfiguration`.
3165 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
3166 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Whether point in time recovery is enabled.
3167 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
3168 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
3169 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
3170 &quot;transactionalLogStorageState&quot;: &quot;A String&quot;, # Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
3171 },
3172 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
3173 &quot;connectionPoolConfig&quot;: { # The managed connection pooling configuration. # Optional. The managed connection pooling configuration for the instance.
3174 &quot;connectionPoolingEnabled&quot;: True or False, # Whether managed connection pooling is enabled.
3175 &quot;flags&quot;: [ # Optional. List of connection pool configuration flags.
3176 { # Connection pool flags for Cloud SQL instances managed connection pool configuration.
3177 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the flag.
3178 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
3179 },
3180 ],
3181 &quot;poolerCount&quot;: 42, # Output only. Number of connection poolers.
3182 },
3183 &quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
3184 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
3185 &quot;dataApiAccess&quot;: &quot;A String&quot;, # This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
3186 &quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
3187 &quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
3188 },
3189 &quot;dataDiskProvisionedIops&quot;: &quot;A String&quot;, # Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
3190 &quot;dataDiskProvisionedThroughput&quot;: &quot;A String&quot;, # Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
3191 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
3192 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
3193 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
3194 { # Database flags for Cloud SQL instances.
3195 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
3196 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
3197 },
3198 ],
3199 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
3200 &quot;deletionProtectionEnabled&quot;: True or False, # Configuration to protect against accidental instance deletion.
3201 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
3202 { # Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
3203 &quot;endDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
3204 &quot;startDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
3205 &quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
3206 },
3207 ],
3208 &quot;edition&quot;: &quot;A String&quot;, # Optional. The edition type of the Cloud SQL instance.
3209 &quot;enableDataplexIntegration&quot;: True or False, # Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
3210 &quot;enableGoogleMlIntegration&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
3211 &quot;entraidConfig&quot;: { # SQL Server Entra ID configuration. # Optional. The Microsoft Entra ID configuration for the SQL Server instance.
3212 &quot;applicationId&quot;: &quot;A String&quot;, # Optional. The application ID for the Entra ID configuration.
3213 &quot;kind&quot;: &quot;A String&quot;, # Output only. This is always sql#sqlServerEntraIdConfig
3214 &quot;tenantId&quot;: &quot;A String&quot;, # Optional. The tenant ID for the Entra ID configuration.
3215 },
3216 &quot;finalBackupConfig&quot;: { # Config used to determine the final backup settings for the instance. # Optional. The final backup configuration for the instance.
3217 &quot;enabled&quot;: True or False, # Whether the final backup is enabled for the instance.
3218 &quot;retentionDays&quot;: 42, # The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
3219 },
3220 &quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
3221 &quot;enhancedQueryInsightsEnabled&quot;: True or False, # Optional. Whether enhanced query insights feature is enabled.
3222 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
3223 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
3224 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
3225 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
3226 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
3227 },
3228 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
3229 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip Cloud SQL instance. For example: &quot;google-managed-services-default&quot;. If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
3230 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance using the IP. In &#x27;CIDR&#x27; notation, also known as &#x27;slash&#x27; notation (for example: `157.197.200.0/24`).
3231 { # An entry for an Access Control list.
3232 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3233 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#aclEntry`.
3234 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
3235 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
3236 },
3237 ],
3238 &quot;customSubjectAlternativeNames&quot;: [ # Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
3239 &quot;A String&quot;,
3240 ],
3241 &quot;enablePrivatePathForGoogleCloudServices&quot;: True or False, # Controls connectivity to private IP instances from Google services, such as BigQuery.
3242 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
3243 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
3244 &quot;pscConfig&quot;: { # PSC settings for a Cloud SQL instance. # PSC settings for this instance.
3245 &quot;allowedConsumerProjects&quot;: [ # Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
3246 &quot;A String&quot;,
3247 ],
3248 &quot;networkAttachmentUri&quot;: &quot;A String&quot;, # Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
3249 &quot;pscAutoConnectionPolicyEnabled&quot;: True or False, # Optional. Whether to set up the PSC service connection policy automatically.
3250 &quot;pscAutoConnections&quot;: [ # Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
3251 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
3252 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
3253 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
3254 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
3255 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
3256 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
3257 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
3258 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
3259 },
3260 ],
3261 &quot;pscAutoDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
3262 &quot;pscEnabled&quot;: True or False, # Whether PSC connectivity is enabled for this instance.
3263 &quot;pscWriteEndpointDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
3264 },
3265 &quot;requireSsl&quot;: True or False, # Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won&#x27;t be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
3266 &quot;serverCaMode&quot;: &quot;A String&quot;, # Specify what type of CA is used for the server certificate.
3267 &quot;serverCaPool&quot;: &quot;A String&quot;, # Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
3268 &quot;serverCertificateRotationMode&quot;: &quot;A String&quot;, # Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
3269 &quot;sslMode&quot;: &quot;A String&quot;, # Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
3270 },
3271 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#settings`.
3272 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified. # The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances.
3273 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
3274 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#locationPreference`.
3275 &quot;secondaryZone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to &#x27;no_secondary_zone&#x27;.
3276 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
3277 },
3278 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes. # The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
3279 &quot;day&quot;: 42, # Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
3280 &quot;hour&quot;: 42, # Hour of day - 0 to 23. Specify in the UTC time zone.
3281 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#maintenanceWindow`.
3282 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
3283 },
3284 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access. # The local user password validation policy of the instance.
3285 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
3286 &quot;disallowCompromisedCredentials&quot;: True or False, # This field is deprecated and will be removed in a future version of the API.
3287 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
3288 &quot;enablePasswordPolicy&quot;: True or False, # Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
3289 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
3290 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
3291 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
3292 },
3293 &quot;performanceCaptureConfig&quot;: { # Performance capture configuration. # Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations.
3294 &quot;enabled&quot;: True or False, # Optional. Enables or disables the performance capture feature.
3295 &quot;probeThreshold&quot;: 42, # Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
3296 &quot;probingIntervalSeconds&quot;: 42, # Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
3297 &quot;runningThreadsThreshold&quot;: 42, # Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
3298 &quot;secondsBehindSourceThreshold&quot;: 42, # Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
3299 &quot;transactionDurationThreshold&quot;: 42, # Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
3300 },
3301 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
3302 &quot;readPoolAutoScaleConfig&quot;: { # The read pool auto-scale configuration. # Optional. The read pool auto-scale configuration for the instance.
3303 &quot;disableScaleIn&quot;: True or False, # Indicates whether read pool auto scaling supports scale in operations (removing nodes).
3304 &quot;enabled&quot;: True or False, # Indicates whether read pool auto scaling is enabled.
3305 &quot;maxNodeCount&quot;: 42, # Maximum number of read pool nodes to be maintained.
3306 &quot;minNodeCount&quot;: 42, # Minimum number of read pool nodes to be maintained.
3307 &quot;scaleInCooldownSeconds&quot;: 42, # The cooldown period for scale-in operations.
3308 &quot;scaleOutCooldownSeconds&quot;: 42, # The cooldown period for scale-out operations.
3309 &quot;targetMetrics&quot;: [ # Optional. Target metrics for read pool auto scaling.
3310 { # Target metric for read pool auto scaling.
3311 &quot;metric&quot;: &quot;A String&quot;, # The metric name to be used for auto scaling.
3312 &quot;targetValue&quot;: 3.14, # The target value for the metric.
3313 },
3314 ],
3315 },
3316 &quot;replicationLagMaxSeconds&quot;: 42, # Optional. Configuration value for recreation of replica after certain replication lag
3317 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
3318 &quot;retainBackupsOnDelete&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
3319 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
3320 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
3321 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
3322 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
3323 &quot;retentionInterval&quot;: &quot;A String&quot;, # How long to keep generated audit files.
3324 &quot;uploadInterval&quot;: &quot;A String&quot;, # How often to upload generated audit files.
3325 },
3326 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
3327 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
3328 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
3329 &quot;timeZone&quot;: &quot;A String&quot;, # Server timezone, relevant only for Cloud SQL for SQL Server.
3330 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
3331 &quot;a_key&quot;: &quot;A String&quot;,
3332 },
3333 },
3334 &quot;sqlNetworkArchitecture&quot;: &quot;A String&quot;,
3335 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
3336 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
3337 &quot;A String&quot;,
3338 ],
3339 &quot;switchTransactionLogsToCloudStorageEnabled&quot;: True or False, # Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
3340 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `&quot;&quot; : &quot;&quot;`. For example, a single resource can have the following tags: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;, ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
3341 &quot;a_key&quot;: &quot;A String&quot;,
3342 },
3343 &quot;upgradableDatabaseVersions&quot;: [ # Output only. All database versions that are available for upgrade.
3344 { # An available database version. It can be a major or a minor version.
3345 &quot;displayName&quot;: &quot;A String&quot;, # The database version&#x27;s display name.
3346 &quot;majorVersion&quot;: &quot;A String&quot;, # The version&#x27;s major version name.
3347 &quot;name&quot;: &quot;A String&quot;, # The database version name. For MySQL 8.0, this string provides the database major and minor version.
3348 },
3349 ],
3350 &quot;writeEndpoint&quot;: &quot;A String&quot;, # Output only. The dns name of the primary instance in a replication group.
3351 }
3352
3353 x__xgafv: string, V1 error format.
3354 Allowed values
3355 1 - v1 error format
3356 2 - v2 error format
3357
3358 Returns:
3359 An object of the form:
3360
3361 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
3362 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
3363 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
3364 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
3365 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
3366 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
3367 },
3368 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
3369 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
3370 &quot;message&quot;: &quot;A String&quot;, # The warning message.
3371 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
3372 },
3373 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
3374 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
3375 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
3376 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
3377 },
3378 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3379 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
3380 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
3381 { # Database instance operation error.
3382 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
3383 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
3384 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
3385 },
3386 ],
3387 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
3388 },
3389 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
3390 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
3391 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
3392 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
3393 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
3394 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
3395 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
3396 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
3397 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
3398 },
3399 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
3400 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
3401 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
3402 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
3403 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
3404 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
3405 },
3406 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
3407 &quot;A String&quot;,
3408 ],
3409 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
3410 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
3411 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
3412 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
3413 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
3414 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
3415 },
3416 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
3417 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
3418 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
3419 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
3420 },
3421 &quot;schemaOnly&quot;: True or False, # Export only schemas.
3422 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
3423 &quot;A String&quot;,
3424 ],
3425 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
3426 },
3427 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
3428 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
3429 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
3430 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
3431 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
3432 },
3433 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
3434 },
3435 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
3436 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
3437 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
3438 &quot;encryptionOptions&quot;: {
3439 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
3440 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
3441 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
3442 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
3443 },
3444 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
3445 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
3446 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
3447 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
3448 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
3449 },
3450 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
3451 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
3452 &quot;A String&quot;,
3453 ],
3454 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
3455 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
3456 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
3457 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
3458 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
3459 },
3460 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
3461 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
3462 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
3463 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
3464 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
3465 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
3466 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
3467 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
3468 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
3469 },
3470 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
3471 },
3472 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
3473 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
3474 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
3475 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
3476 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
3477 },
3478 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
3479 },
3480 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3481 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
3482 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
3483 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
3484 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
3485 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
3486 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
3487 { # Structured PreCheckResponse containing message, type, and required actions.
3488 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
3489 &quot;A String&quot;,
3490 ],
3491 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
3492 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
3493 },
3494 ],
3495 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
3496 },
3497 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
3498 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3499 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
3500 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
3501 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
3502 },
3503 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
3504 &quot;targetLink&quot;: &quot;A String&quot;,
3505 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
3506 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
3507 }</pre>
3508 </div>
3509
3510 <div class="method">
3511 <code class="details" id="list">list(project, filter=None, maxResults=None, pageToken=None, x__xgafv=None)</code>
3512 <pre>Lists instances under a given project.
3513
3514 Args:
3515 project: string, Project ID of the project for which to list Cloud SQL instances. (required)
3516 filter: string, A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, &#x27;instanceType:CLOUD_SQL_INSTANCE&#x27;. Fields can be nested as needed as per their JSON representation, such as &#x27;settings.userLabels.auto_start:true&#x27;. Multiple filter queries are space-separated. For example. &#x27;state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE&#x27;. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
3517 maxResults: integer, The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
3518 pageToken: string, A previously-returned page token representing part of the larger set of results to view.
3519 x__xgafv: string, V1 error format.
3520 Allowed values
3521 1 - v1 error format
3522 2 - v2 error format
3523
3524 Returns:
3525 An object of the form:
3526
3527 { # Database instances list response.
3528 &quot;items&quot;: [ # List of database instance resources.
3529 { # A Cloud SQL instance resource.
3530 &quot;availableMaintenanceVersions&quot;: [ # Output only. List all maintenance versions applicable on the instance
3531 &quot;A String&quot;,
3532 ],
3533 &quot;backendType&quot;: &quot;A String&quot;, # The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
3534 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
3535 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3536 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been deprecated. Use the &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
3537 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
3538 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
3539 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
3540 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.
3541 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
3542 },
3543 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
3544 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionStatus`.
3545 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
3546 },
3547 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The dns name of the instance.
3548 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this instance.
3549 { # DNS metadata.
3550 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
3551 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
3552 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
3553 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
3554 },
3555 ],
3556 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
3557 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
3558 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.
3559 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn&#x27;t include the project ID.
3560 },
3561 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
3562 &quot;geminiConfig&quot;: { # Gemini instance configuration. # Gemini instance configuration.
3563 &quot;activeQueryEnabled&quot;: True or False, # Output only. Whether the active query is enabled.
3564 &quot;entitled&quot;: True or False, # Output only. Whether Gemini is enabled.
3565 &quot;flagRecommenderEnabled&quot;: True or False, # Output only. Whether the flag recommender is enabled.
3566 &quot;googleVacuumMgmtEnabled&quot;: True or False, # Output only. Whether the vacuum management is enabled.
3567 &quot;indexAdvisorEnabled&quot;: True or False, # Output only. Whether the index advisor is enabled.
3568 &quot;oomSessionCancelEnabled&quot;: True or False, # Output only. Whether canceling the out-of-memory (OOM) session is enabled.
3569 },
3570 &quot;includeReplicasForMajorVersionUpgrade&quot;: True or False, # Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
3571 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
3572 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
3573 { # Database instance IP mapping
3574 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
3575 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
3576 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
3577 },
3578 ],
3579 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
3580 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instance`.
3581 &quot;maintenanceVersion&quot;: &quot;A String&quot;, # The current software version on the instance.
3582 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
3583 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
3584 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
3585 &quot;nodeCount&quot;: 42, # The number of read pool nodes in a read pool.
3586 &quot;nodes&quot;: [ # Output only. Entries containing information about each read pool node of the read pool.
3587 { # Details of a single read pool node of a read pool.
3588 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the read pool node.
3589 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this read pool node.
3590 { # DNS metadata.
3591 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
3592 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
3593 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
3594 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
3595 },
3596 ],
3597 &quot;gceZone&quot;: &quot;A String&quot;, # Output only. The zone of the read pool node.
3598 &quot;ipAddresses&quot;: [ # Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
3599 { # Database instance IP mapping
3600 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
3601 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
3602 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
3603 },
3604 ],
3605 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the read pool node, to be used for retrieving metrics and logs.
3606 &quot;pscAutoConnections&quot;: [ # Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.
3607 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
3608 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
3609 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
3610 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
3611 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
3612 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
3613 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
3614 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
3615 },
3616 ],
3617 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The Private Service Connect (PSC) service attachment of the read pool node.
3618 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the read pool node.
3619 },
3620 ],
3621 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
3622 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
3623 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
3624 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
3625 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
3626 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
3627 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#onPremisesConfiguration`.
3628 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
3629 &quot;selectedObjects&quot;: [ # Optional. A list of objects that the user selects for replication from an external source instance.
3630 { # A list of objects that the user selects for replication from an external source instance.
3631 &quot;database&quot;: &quot;A String&quot;, # Required. The name of the database to migrate.
3632 },
3633 ],
3634 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
3635 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
3636 &quot;project&quot;: &quot;A String&quot;, # The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
3637 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
3638 },
3639 &quot;sslOption&quot;: &quot;A String&quot;, # Optional. SSL option for replica connection to the on-premises source.
3640 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
3641 },
3642 &quot;outOfDiskReport&quot;: { # This message wraps up the information written by out-of-disk detection job. # This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
3643 &quot;sqlMinRecommendedIncreaseSizeGb&quot;: 42, # The minimum recommended increase size in GigaBytes This field is consumed by the frontend * Writers: * the proactive database wellness job for OOD. * Readers:
3644 &quot;sqlOutOfDiskState&quot;: &quot;A String&quot;, # This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
3645 },
3646 &quot;primaryDnsName&quot;: &quot;A String&quot;, # Output only. DEPRECATED: please use write_endpoint instead.
3647 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
3648 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The link to service attachment of PSC instance.
3649 &quot;region&quot;: &quot;A String&quot;, # The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
3650 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
3651 &quot;cascadableReplica&quot;: True or False, # Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
3652 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
3653 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#replicaConfiguration`.
3654 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
3655 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
3656 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
3657 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
3658 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
3659 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
3660 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#mysqlReplicaConfiguration`.
3661 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
3662 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
3663 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
3664 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
3665 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the primary instance&#x27;s Common Name value in the certificate that it sends during the SSL handshake.
3666 },
3667 },
3668 &quot;replicaNames&quot;: [ # The replicas of the instance.
3669 &quot;A String&quot;,
3670 ],
3671 &quot;replicationCluster&quot;: { # A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL. # Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
3672 &quot;drReplica&quot;: True or False, # Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
3673 &quot;failoverDrReplicaName&quot;: &quot;A String&quot;, # Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
3674 &quot;psaWriteEndpoint&quot;: &quot;A String&quot;, # Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn&#x27;t have a DR replica yet or the DR replica is deleted.
3675 },
3676 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
3677 &quot;satisfiesPzi&quot;: True or False, # Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
3678 &quot;satisfiesPzs&quot;: True or False, # This status indicates whether the instance satisfies PZS. The status is reserved for future use.
3679 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenance for this instance. # The start time of any upcoming scheduled maintenance for this instance.
3680 &quot;canDefer&quot;: True or False,
3681 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
3682 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
3683 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
3684 },
3685 &quot;secondaryGceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
3686 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
3687 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
3688 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
3689 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
3690 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
3691 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
3692 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3693 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
3694 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
3695 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
3696 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
3697 },
3698 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance.\This property is read-only.
3699 &quot;settings&quot;: { # Database instance settings. # The user settings.
3700 &quot;acceleratedReplicaMode&quot;: True or False, # Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
3701 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
3702 &quot;activeDirectoryConfig&quot;: { # Active Directory configuration, relevant only for Cloud SQL for SQL Server. # Active Directory configuration, relevant only for Cloud SQL for SQL Server.
3703 &quot;adminCredentialSecretName&quot;: &quot;A String&quot;, # Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).
3704 &quot;dnsServers&quot;: [ # Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
3705 &quot;A String&quot;,
3706 ],
3707 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
3708 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
3709 &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of the Active Directory configuration.
3710 &quot;organizationalUnit&quot;: &quot;A String&quot;, # Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
3711 },
3712 &quot;advancedMachineFeatures&quot;: { # Specifies options for controlling advanced machine features. # Specifies advanced machine configuration for the instances relevant only for SQL Server.
3713 &quot;threadsPerCore&quot;: 42, # The number of threads per physical core.
3714 },
3715 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
3716 &quot;A String&quot;,
3717 ],
3718 &quot;autoUpgradeEnabled&quot;: True or False, # Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.
3719 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
3720 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
3721 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
3722 &quot;retainedBackups&quot;: 42, # Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is &#x27;COUNT&#x27;, we will retain this many backups.
3723 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
3724 },
3725 &quot;backupTier&quot;: &quot;A String&quot;, # Output only. Backup tier that manages the backups for the instance.
3726 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
3727 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
3728 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupConfiguration`.
3729 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
3730 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Whether point in time recovery is enabled.
3731 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
3732 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
3733 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
3734 &quot;transactionalLogStorageState&quot;: &quot;A String&quot;, # Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
3735 },
3736 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
3737 &quot;connectionPoolConfig&quot;: { # The managed connection pooling configuration. # Optional. The managed connection pooling configuration for the instance.
3738 &quot;connectionPoolingEnabled&quot;: True or False, # Whether managed connection pooling is enabled.
3739 &quot;flags&quot;: [ # Optional. List of connection pool configuration flags.
3740 { # Connection pool flags for Cloud SQL instances managed connection pool configuration.
3741 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the flag.
3742 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
3743 },
3744 ],
3745 &quot;poolerCount&quot;: 42, # Output only. Number of connection poolers.
3746 },
3747 &quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
3748 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
3749 &quot;dataApiAccess&quot;: &quot;A String&quot;, # This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
3750 &quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
3751 &quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
3752 },
3753 &quot;dataDiskProvisionedIops&quot;: &quot;A String&quot;, # Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
3754 &quot;dataDiskProvisionedThroughput&quot;: &quot;A String&quot;, # Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
3755 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
3756 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
3757 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
3758 { # Database flags for Cloud SQL instances.
3759 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
3760 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
3761 },
3762 ],
3763 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
3764 &quot;deletionProtectionEnabled&quot;: True or False, # Configuration to protect against accidental instance deletion.
3765 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
3766 { # Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
3767 &quot;endDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
3768 &quot;startDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
3769 &quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
3770 },
3771 ],
3772 &quot;edition&quot;: &quot;A String&quot;, # Optional. The edition type of the Cloud SQL instance.
3773 &quot;enableDataplexIntegration&quot;: True or False, # Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
3774 &quot;enableGoogleMlIntegration&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
3775 &quot;entraidConfig&quot;: { # SQL Server Entra ID configuration. # Optional. The Microsoft Entra ID configuration for the SQL Server instance.
3776 &quot;applicationId&quot;: &quot;A String&quot;, # Optional. The application ID for the Entra ID configuration.
3777 &quot;kind&quot;: &quot;A String&quot;, # Output only. This is always sql#sqlServerEntraIdConfig
3778 &quot;tenantId&quot;: &quot;A String&quot;, # Optional. The tenant ID for the Entra ID configuration.
3779 },
3780 &quot;finalBackupConfig&quot;: { # Config used to determine the final backup settings for the instance. # Optional. The final backup configuration for the instance.
3781 &quot;enabled&quot;: True or False, # Whether the final backup is enabled for the instance.
3782 &quot;retentionDays&quot;: 42, # The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
3783 },
3784 &quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
3785 &quot;enhancedQueryInsightsEnabled&quot;: True or False, # Optional. Whether enhanced query insights feature is enabled.
3786 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
3787 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
3788 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
3789 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
3790 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
3791 },
3792 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
3793 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip Cloud SQL instance. For example: &quot;google-managed-services-default&quot;. If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
3794 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance using the IP. In &#x27;CIDR&#x27; notation, also known as &#x27;slash&#x27; notation (for example: `157.197.200.0/24`).
3795 { # An entry for an Access Control list.
3796 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3797 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#aclEntry`.
3798 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
3799 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
3800 },
3801 ],
3802 &quot;customSubjectAlternativeNames&quot;: [ # Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
3803 &quot;A String&quot;,
3804 ],
3805 &quot;enablePrivatePathForGoogleCloudServices&quot;: True or False, # Controls connectivity to private IP instances from Google services, such as BigQuery.
3806 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
3807 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
3808 &quot;pscConfig&quot;: { # PSC settings for a Cloud SQL instance. # PSC settings for this instance.
3809 &quot;allowedConsumerProjects&quot;: [ # Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
3810 &quot;A String&quot;,
3811 ],
3812 &quot;networkAttachmentUri&quot;: &quot;A String&quot;, # Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
3813 &quot;pscAutoConnectionPolicyEnabled&quot;: True or False, # Optional. Whether to set up the PSC service connection policy automatically.
3814 &quot;pscAutoConnections&quot;: [ # Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
3815 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
3816 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
3817 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
3818 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
3819 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
3820 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
3821 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
3822 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
3823 },
3824 ],
3825 &quot;pscAutoDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
3826 &quot;pscEnabled&quot;: True or False, # Whether PSC connectivity is enabled for this instance.
3827 &quot;pscWriteEndpointDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
3828 },
3829 &quot;requireSsl&quot;: True or False, # Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won&#x27;t be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
3830 &quot;serverCaMode&quot;: &quot;A String&quot;, # Specify what type of CA is used for the server certificate.
3831 &quot;serverCaPool&quot;: &quot;A String&quot;, # Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
3832 &quot;serverCertificateRotationMode&quot;: &quot;A String&quot;, # Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
3833 &quot;sslMode&quot;: &quot;A String&quot;, # Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
3834 },
3835 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#settings`.
3836 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified. # The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances.
3837 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
3838 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#locationPreference`.
3839 &quot;secondaryZone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to &#x27;no_secondary_zone&#x27;.
3840 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
3841 },
3842 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes. # The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
3843 &quot;day&quot;: 42, # Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
3844 &quot;hour&quot;: 42, # Hour of day - 0 to 23. Specify in the UTC time zone.
3845 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#maintenanceWindow`.
3846 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
3847 },
3848 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access. # The local user password validation policy of the instance.
3849 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
3850 &quot;disallowCompromisedCredentials&quot;: True or False, # This field is deprecated and will be removed in a future version of the API.
3851 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
3852 &quot;enablePasswordPolicy&quot;: True or False, # Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
3853 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
3854 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
3855 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
3856 },
3857 &quot;performanceCaptureConfig&quot;: { # Performance capture configuration. # Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations.
3858 &quot;enabled&quot;: True or False, # Optional. Enables or disables the performance capture feature.
3859 &quot;probeThreshold&quot;: 42, # Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
3860 &quot;probingIntervalSeconds&quot;: 42, # Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
3861 &quot;runningThreadsThreshold&quot;: 42, # Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
3862 &quot;secondsBehindSourceThreshold&quot;: 42, # Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
3863 &quot;transactionDurationThreshold&quot;: 42, # Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
3864 },
3865 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
3866 &quot;readPoolAutoScaleConfig&quot;: { # The read pool auto-scale configuration. # Optional. The read pool auto-scale configuration for the instance.
3867 &quot;disableScaleIn&quot;: True or False, # Indicates whether read pool auto scaling supports scale in operations (removing nodes).
3868 &quot;enabled&quot;: True or False, # Indicates whether read pool auto scaling is enabled.
3869 &quot;maxNodeCount&quot;: 42, # Maximum number of read pool nodes to be maintained.
3870 &quot;minNodeCount&quot;: 42, # Minimum number of read pool nodes to be maintained.
3871 &quot;scaleInCooldownSeconds&quot;: 42, # The cooldown period for scale-in operations.
3872 &quot;scaleOutCooldownSeconds&quot;: 42, # The cooldown period for scale-out operations.
3873 &quot;targetMetrics&quot;: [ # Optional. Target metrics for read pool auto scaling.
3874 { # Target metric for read pool auto scaling.
3875 &quot;metric&quot;: &quot;A String&quot;, # The metric name to be used for auto scaling.
3876 &quot;targetValue&quot;: 3.14, # The target value for the metric.
3877 },
3878 ],
3879 },
3880 &quot;replicationLagMaxSeconds&quot;: 42, # Optional. Configuration value for recreation of replica after certain replication lag
3881 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
3882 &quot;retainBackupsOnDelete&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
3883 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
3884 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
3885 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
3886 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
3887 &quot;retentionInterval&quot;: &quot;A String&quot;, # How long to keep generated audit files.
3888 &quot;uploadInterval&quot;: &quot;A String&quot;, # How often to upload generated audit files.
3889 },
3890 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
3891 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
3892 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
3893 &quot;timeZone&quot;: &quot;A String&quot;, # Server timezone, relevant only for Cloud SQL for SQL Server.
3894 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
3895 &quot;a_key&quot;: &quot;A String&quot;,
3896 },
3897 },
3898 &quot;sqlNetworkArchitecture&quot;: &quot;A String&quot;,
3899 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
3900 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
3901 &quot;A String&quot;,
3902 ],
3903 &quot;switchTransactionLogsToCloudStorageEnabled&quot;: True or False, # Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
3904 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `&quot;&quot; : &quot;&quot;`. For example, a single resource can have the following tags: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;, ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
3905 &quot;a_key&quot;: &quot;A String&quot;,
3906 },
3907 &quot;upgradableDatabaseVersions&quot;: [ # Output only. All database versions that are available for upgrade.
3908 { # An available database version. It can be a major or a minor version.
3909 &quot;displayName&quot;: &quot;A String&quot;, # The database version&#x27;s display name.
3910 &quot;majorVersion&quot;: &quot;A String&quot;, # The version&#x27;s major version name.
3911 &quot;name&quot;: &quot;A String&quot;, # The database version name. For MySQL 8.0, this string provides the database major and minor version.
3912 },
3913 ],
3914 &quot;writeEndpoint&quot;: &quot;A String&quot;, # Output only. The dns name of the primary instance in a replication group.
3915 },
3916 ],
3917 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instancesList`.
3918 &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
3919 &quot;warnings&quot;: [ # List of warnings that occurred while handling the request.
3920 { # An Admin API warning message.
3921 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
3922 &quot;message&quot;: &quot;A String&quot;, # The warning message.
3923 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
3924 },
3925 ],
3926 }</pre>
3927 </div>
3928
3929 <div class="method">
3930 <code class="details" id="listServerCas">listServerCas(project, instance, x__xgafv=None)</code>
3931 <pre>Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.
3932
3933 Args:
3934 project: string, Project ID of the project that contains the instance. (required)
3935 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
3936 x__xgafv: string, V1 error format.
3937 Allowed values
3938 1 - v1 error format
3939 2 - v2 error format
3940
3941 Returns:
3942 An object of the form:
3943
3944 { # Instances ListServerCas response.
3945 &quot;activeVersion&quot;: &quot;A String&quot;,
3946 &quot;certs&quot;: [ # List of server CA certificates for the instance.
3947 { # SslCerts Resource
3948 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
3949 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
3950 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
3951 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
3952 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3953 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
3954 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
3955 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
3956 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
3957 },
3958 ],
3959 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instancesListServerCas`.
3960 }</pre>
3961 </div>
3962
3963 <div class="method">
3964 <code class="details" id="list_next">list_next()</code>
3965 <pre>Retrieves the next page of results.
3966
3967 Args:
3968 previous_request: The request for the previous page. (required)
3969 previous_response: The response from the request for the previous page. (required)
3970
3971 Returns:
3972 A request object that you can call &#x27;execute()&#x27; on to request the next
3973 page. Returns None if there are no more items in the collection.
3974 </pre>
3975 </div>
3976
3977 <div class="method">
3978 <code class="details" id="patch">patch(project, instance, body=None, x__xgafv=None)</code>
3979 <pre>Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
3980
3981 Args:
3982 project: string, Project ID of the project that contains the instance. (required)
3983 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
3984 body: object, The request body.
3985 The object takes the form of:
3986
3987 { # A Cloud SQL instance resource.
3988 &quot;availableMaintenanceVersions&quot;: [ # Output only. List all maintenance versions applicable on the instance
3989 &quot;A String&quot;,
3990 ],
3991 &quot;backendType&quot;: &quot;A String&quot;, # The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
3992 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
3993 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
3994 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been deprecated. Use the &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
3995 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
3996 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
3997 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
3998 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.
3999 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
4000 },
4001 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
4002 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionStatus`.
4003 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
4004 },
4005 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The dns name of the instance.
4006 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this instance.
4007 { # DNS metadata.
4008 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
4009 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
4010 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
4011 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
4012 },
4013 ],
4014 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
4015 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
4016 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.
4017 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn&#x27;t include the project ID.
4018 },
4019 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
4020 &quot;geminiConfig&quot;: { # Gemini instance configuration. # Gemini instance configuration.
4021 &quot;activeQueryEnabled&quot;: True or False, # Output only. Whether the active query is enabled.
4022 &quot;entitled&quot;: True or False, # Output only. Whether Gemini is enabled.
4023 &quot;flagRecommenderEnabled&quot;: True or False, # Output only. Whether the flag recommender is enabled.
4024 &quot;googleVacuumMgmtEnabled&quot;: True or False, # Output only. Whether the vacuum management is enabled.
4025 &quot;indexAdvisorEnabled&quot;: True or False, # Output only. Whether the index advisor is enabled.
4026 &quot;oomSessionCancelEnabled&quot;: True or False, # Output only. Whether canceling the out-of-memory (OOM) session is enabled.
4027 },
4028 &quot;includeReplicasForMajorVersionUpgrade&quot;: True or False, # Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
4029 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
4030 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
4031 { # Database instance IP mapping
4032 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
4033 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
4034 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
4035 },
4036 ],
4037 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
4038 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instance`.
4039 &quot;maintenanceVersion&quot;: &quot;A String&quot;, # The current software version on the instance.
4040 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
4041 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
4042 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
4043 &quot;nodeCount&quot;: 42, # The number of read pool nodes in a read pool.
4044 &quot;nodes&quot;: [ # Output only. Entries containing information about each read pool node of the read pool.
4045 { # Details of a single read pool node of a read pool.
4046 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the read pool node.
4047 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this read pool node.
4048 { # DNS metadata.
4049 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
4050 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
4051 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
4052 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
4053 },
4054 ],
4055 &quot;gceZone&quot;: &quot;A String&quot;, # Output only. The zone of the read pool node.
4056 &quot;ipAddresses&quot;: [ # Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
4057 { # Database instance IP mapping
4058 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
4059 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
4060 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
4061 },
4062 ],
4063 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the read pool node, to be used for retrieving metrics and logs.
4064 &quot;pscAutoConnections&quot;: [ # Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.
4065 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
4066 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
4067 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
4068 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
4069 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
4070 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
4071 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
4072 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
4073 },
4074 ],
4075 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The Private Service Connect (PSC) service attachment of the read pool node.
4076 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the read pool node.
4077 },
4078 ],
4079 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
4080 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
4081 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
4082 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
4083 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
4084 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
4085 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#onPremisesConfiguration`.
4086 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
4087 &quot;selectedObjects&quot;: [ # Optional. A list of objects that the user selects for replication from an external source instance.
4088 { # A list of objects that the user selects for replication from an external source instance.
4089 &quot;database&quot;: &quot;A String&quot;, # Required. The name of the database to migrate.
4090 },
4091 ],
4092 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
4093 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
4094 &quot;project&quot;: &quot;A String&quot;, # The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
4095 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
4096 },
4097 &quot;sslOption&quot;: &quot;A String&quot;, # Optional. SSL option for replica connection to the on-premises source.
4098 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
4099 },
4100 &quot;outOfDiskReport&quot;: { # This message wraps up the information written by out-of-disk detection job. # This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
4101 &quot;sqlMinRecommendedIncreaseSizeGb&quot;: 42, # The minimum recommended increase size in GigaBytes This field is consumed by the frontend * Writers: * the proactive database wellness job for OOD. * Readers:
4102 &quot;sqlOutOfDiskState&quot;: &quot;A String&quot;, # This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
4103 },
4104 &quot;primaryDnsName&quot;: &quot;A String&quot;, # Output only. DEPRECATED: please use write_endpoint instead.
4105 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
4106 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The link to service attachment of PSC instance.
4107 &quot;region&quot;: &quot;A String&quot;, # The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
4108 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
4109 &quot;cascadableReplica&quot;: True or False, # Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
4110 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
4111 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#replicaConfiguration`.
4112 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
4113 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
4114 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
4115 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
4116 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
4117 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
4118 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#mysqlReplicaConfiguration`.
4119 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
4120 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
4121 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
4122 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
4123 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the primary instance&#x27;s Common Name value in the certificate that it sends during the SSL handshake.
4124 },
4125 },
4126 &quot;replicaNames&quot;: [ # The replicas of the instance.
4127 &quot;A String&quot;,
4128 ],
4129 &quot;replicationCluster&quot;: { # A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL. # Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
4130 &quot;drReplica&quot;: True or False, # Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
4131 &quot;failoverDrReplicaName&quot;: &quot;A String&quot;, # Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
4132 &quot;psaWriteEndpoint&quot;: &quot;A String&quot;, # Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn&#x27;t have a DR replica yet or the DR replica is deleted.
4133 },
4134 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
4135 &quot;satisfiesPzi&quot;: True or False, # Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
4136 &quot;satisfiesPzs&quot;: True or False, # This status indicates whether the instance satisfies PZS. The status is reserved for future use.
4137 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenance for this instance. # The start time of any upcoming scheduled maintenance for this instance.
4138 &quot;canDefer&quot;: True or False,
4139 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
4140 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
4141 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
4142 },
4143 &quot;secondaryGceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
4144 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
4145 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
4146 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
4147 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
4148 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
4149 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
4150 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
4151 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
4152 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
4153 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
4154 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
4155 },
4156 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance.\This property is read-only.
4157 &quot;settings&quot;: { # Database instance settings. # The user settings.
4158 &quot;acceleratedReplicaMode&quot;: True or False, # Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
4159 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
4160 &quot;activeDirectoryConfig&quot;: { # Active Directory configuration, relevant only for Cloud SQL for SQL Server. # Active Directory configuration, relevant only for Cloud SQL for SQL Server.
4161 &quot;adminCredentialSecretName&quot;: &quot;A String&quot;, # Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).
4162 &quot;dnsServers&quot;: [ # Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
4163 &quot;A String&quot;,
4164 ],
4165 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
4166 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
4167 &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of the Active Directory configuration.
4168 &quot;organizationalUnit&quot;: &quot;A String&quot;, # Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
4169 },
4170 &quot;advancedMachineFeatures&quot;: { # Specifies options for controlling advanced machine features. # Specifies advanced machine configuration for the instances relevant only for SQL Server.
4171 &quot;threadsPerCore&quot;: 42, # The number of threads per physical core.
4172 },
4173 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
4174 &quot;A String&quot;,
4175 ],
4176 &quot;autoUpgradeEnabled&quot;: True or False, # Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.
4177 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
4178 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
4179 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
4180 &quot;retainedBackups&quot;: 42, # Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is &#x27;COUNT&#x27;, we will retain this many backups.
4181 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
4182 },
4183 &quot;backupTier&quot;: &quot;A String&quot;, # Output only. Backup tier that manages the backups for the instance.
4184 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
4185 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
4186 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupConfiguration`.
4187 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
4188 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Whether point in time recovery is enabled.
4189 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
4190 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
4191 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
4192 &quot;transactionalLogStorageState&quot;: &quot;A String&quot;, # Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
4193 },
4194 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
4195 &quot;connectionPoolConfig&quot;: { # The managed connection pooling configuration. # Optional. The managed connection pooling configuration for the instance.
4196 &quot;connectionPoolingEnabled&quot;: True or False, # Whether managed connection pooling is enabled.
4197 &quot;flags&quot;: [ # Optional. List of connection pool configuration flags.
4198 { # Connection pool flags for Cloud SQL instances managed connection pool configuration.
4199 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the flag.
4200 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
4201 },
4202 ],
4203 &quot;poolerCount&quot;: 42, # Output only. Number of connection poolers.
4204 },
4205 &quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
4206 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
4207 &quot;dataApiAccess&quot;: &quot;A String&quot;, # This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
4208 &quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
4209 &quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
4210 },
4211 &quot;dataDiskProvisionedIops&quot;: &quot;A String&quot;, # Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
4212 &quot;dataDiskProvisionedThroughput&quot;: &quot;A String&quot;, # Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
4213 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
4214 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
4215 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
4216 { # Database flags for Cloud SQL instances.
4217 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
4218 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
4219 },
4220 ],
4221 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
4222 &quot;deletionProtectionEnabled&quot;: True or False, # Configuration to protect against accidental instance deletion.
4223 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
4224 { # Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
4225 &quot;endDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
4226 &quot;startDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
4227 &quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
4228 },
4229 ],
4230 &quot;edition&quot;: &quot;A String&quot;, # Optional. The edition type of the Cloud SQL instance.
4231 &quot;enableDataplexIntegration&quot;: True or False, # Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
4232 &quot;enableGoogleMlIntegration&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
4233 &quot;entraidConfig&quot;: { # SQL Server Entra ID configuration. # Optional. The Microsoft Entra ID configuration for the SQL Server instance.
4234 &quot;applicationId&quot;: &quot;A String&quot;, # Optional. The application ID for the Entra ID configuration.
4235 &quot;kind&quot;: &quot;A String&quot;, # Output only. This is always sql#sqlServerEntraIdConfig
4236 &quot;tenantId&quot;: &quot;A String&quot;, # Optional. The tenant ID for the Entra ID configuration.
4237 },
4238 &quot;finalBackupConfig&quot;: { # Config used to determine the final backup settings for the instance. # Optional. The final backup configuration for the instance.
4239 &quot;enabled&quot;: True or False, # Whether the final backup is enabled for the instance.
4240 &quot;retentionDays&quot;: 42, # The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
4241 },
4242 &quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
4243 &quot;enhancedQueryInsightsEnabled&quot;: True or False, # Optional. Whether enhanced query insights feature is enabled.
4244 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
4245 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
4246 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
4247 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
4248 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
4249 },
4250 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
4251 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip Cloud SQL instance. For example: &quot;google-managed-services-default&quot;. If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
4252 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance using the IP. In &#x27;CIDR&#x27; notation, also known as &#x27;slash&#x27; notation (for example: `157.197.200.0/24`).
4253 { # An entry for an Access Control list.
4254 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
4255 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#aclEntry`.
4256 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
4257 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
4258 },
4259 ],
4260 &quot;customSubjectAlternativeNames&quot;: [ # Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
4261 &quot;A String&quot;,
4262 ],
4263 &quot;enablePrivatePathForGoogleCloudServices&quot;: True or False, # Controls connectivity to private IP instances from Google services, such as BigQuery.
4264 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
4265 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
4266 &quot;pscConfig&quot;: { # PSC settings for a Cloud SQL instance. # PSC settings for this instance.
4267 &quot;allowedConsumerProjects&quot;: [ # Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
4268 &quot;A String&quot;,
4269 ],
4270 &quot;networkAttachmentUri&quot;: &quot;A String&quot;, # Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
4271 &quot;pscAutoConnectionPolicyEnabled&quot;: True or False, # Optional. Whether to set up the PSC service connection policy automatically.
4272 &quot;pscAutoConnections&quot;: [ # Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
4273 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
4274 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
4275 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
4276 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
4277 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
4278 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
4279 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
4280 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
4281 },
4282 ],
4283 &quot;pscAutoDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
4284 &quot;pscEnabled&quot;: True or False, # Whether PSC connectivity is enabled for this instance.
4285 &quot;pscWriteEndpointDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
4286 },
4287 &quot;requireSsl&quot;: True or False, # Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won&#x27;t be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
4288 &quot;serverCaMode&quot;: &quot;A String&quot;, # Specify what type of CA is used for the server certificate.
4289 &quot;serverCaPool&quot;: &quot;A String&quot;, # Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
4290 &quot;serverCertificateRotationMode&quot;: &quot;A String&quot;, # Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
4291 &quot;sslMode&quot;: &quot;A String&quot;, # Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
4292 },
4293 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#settings`.
4294 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified. # The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances.
4295 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
4296 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#locationPreference`.
4297 &quot;secondaryZone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to &#x27;no_secondary_zone&#x27;.
4298 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
4299 },
4300 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes. # The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
4301 &quot;day&quot;: 42, # Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
4302 &quot;hour&quot;: 42, # Hour of day - 0 to 23. Specify in the UTC time zone.
4303 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#maintenanceWindow`.
4304 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
4305 },
4306 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access. # The local user password validation policy of the instance.
4307 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
4308 &quot;disallowCompromisedCredentials&quot;: True or False, # This field is deprecated and will be removed in a future version of the API.
4309 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
4310 &quot;enablePasswordPolicy&quot;: True or False, # Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
4311 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
4312 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
4313 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
4314 },
4315 &quot;performanceCaptureConfig&quot;: { # Performance capture configuration. # Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations.
4316 &quot;enabled&quot;: True or False, # Optional. Enables or disables the performance capture feature.
4317 &quot;probeThreshold&quot;: 42, # Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
4318 &quot;probingIntervalSeconds&quot;: 42, # Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
4319 &quot;runningThreadsThreshold&quot;: 42, # Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
4320 &quot;secondsBehindSourceThreshold&quot;: 42, # Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
4321 &quot;transactionDurationThreshold&quot;: 42, # Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
4322 },
4323 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
4324 &quot;readPoolAutoScaleConfig&quot;: { # The read pool auto-scale configuration. # Optional. The read pool auto-scale configuration for the instance.
4325 &quot;disableScaleIn&quot;: True or False, # Indicates whether read pool auto scaling supports scale in operations (removing nodes).
4326 &quot;enabled&quot;: True or False, # Indicates whether read pool auto scaling is enabled.
4327 &quot;maxNodeCount&quot;: 42, # Maximum number of read pool nodes to be maintained.
4328 &quot;minNodeCount&quot;: 42, # Minimum number of read pool nodes to be maintained.
4329 &quot;scaleInCooldownSeconds&quot;: 42, # The cooldown period for scale-in operations.
4330 &quot;scaleOutCooldownSeconds&quot;: 42, # The cooldown period for scale-out operations.
4331 &quot;targetMetrics&quot;: [ # Optional. Target metrics for read pool auto scaling.
4332 { # Target metric for read pool auto scaling.
4333 &quot;metric&quot;: &quot;A String&quot;, # The metric name to be used for auto scaling.
4334 &quot;targetValue&quot;: 3.14, # The target value for the metric.
4335 },
4336 ],
4337 },
4338 &quot;replicationLagMaxSeconds&quot;: 42, # Optional. Configuration value for recreation of replica after certain replication lag
4339 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
4340 &quot;retainBackupsOnDelete&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
4341 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
4342 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
4343 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
4344 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
4345 &quot;retentionInterval&quot;: &quot;A String&quot;, # How long to keep generated audit files.
4346 &quot;uploadInterval&quot;: &quot;A String&quot;, # How often to upload generated audit files.
4347 },
4348 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
4349 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
4350 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
4351 &quot;timeZone&quot;: &quot;A String&quot;, # Server timezone, relevant only for Cloud SQL for SQL Server.
4352 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
4353 &quot;a_key&quot;: &quot;A String&quot;,
4354 },
4355 },
4356 &quot;sqlNetworkArchitecture&quot;: &quot;A String&quot;,
4357 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
4358 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
4359 &quot;A String&quot;,
4360 ],
4361 &quot;switchTransactionLogsToCloudStorageEnabled&quot;: True or False, # Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
4362 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `&quot;&quot; : &quot;&quot;`. For example, a single resource can have the following tags: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;, ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
4363 &quot;a_key&quot;: &quot;A String&quot;,
4364 },
4365 &quot;upgradableDatabaseVersions&quot;: [ # Output only. All database versions that are available for upgrade.
4366 { # An available database version. It can be a major or a minor version.
4367 &quot;displayName&quot;: &quot;A String&quot;, # The database version&#x27;s display name.
4368 &quot;majorVersion&quot;: &quot;A String&quot;, # The version&#x27;s major version name.
4369 &quot;name&quot;: &quot;A String&quot;, # The database version name. For MySQL 8.0, this string provides the database major and minor version.
4370 },
4371 ],
4372 &quot;writeEndpoint&quot;: &quot;A String&quot;, # Output only. The dns name of the primary instance in a replication group.
4373 }
4374
4375 x__xgafv: string, V1 error format.
4376 Allowed values
4377 1 - v1 error format
4378 2 - v2 error format
4379
4380 Returns:
4381 An object of the form:
4382
4383 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
4384 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
4385 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
4386 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
4387 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
4388 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
4389 },
4390 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
4391 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
4392 &quot;message&quot;: &quot;A String&quot;, # The warning message.
4393 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
4394 },
4395 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
4396 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
4397 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
4398 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
4399 },
4400 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
4401 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
4402 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
4403 { # Database instance operation error.
4404 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
4405 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
4406 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
4407 },
4408 ],
4409 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
4410 },
4411 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
4412 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
4413 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
4414 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
4415 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
4416 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
4417 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
4418 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
4419 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
4420 },
4421 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
4422 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
4423 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
4424 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
4425 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
4426 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
4427 },
4428 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
4429 &quot;A String&quot;,
4430 ],
4431 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
4432 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
4433 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
4434 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
4435 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
4436 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
4437 },
4438 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
4439 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
4440 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
4441 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
4442 },
4443 &quot;schemaOnly&quot;: True or False, # Export only schemas.
4444 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
4445 &quot;A String&quot;,
4446 ],
4447 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
4448 },
4449 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
4450 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
4451 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
4452 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
4453 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
4454 },
4455 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
4456 },
4457 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
4458 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
4459 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
4460 &quot;encryptionOptions&quot;: {
4461 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
4462 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
4463 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
4464 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
4465 },
4466 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
4467 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
4468 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
4469 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
4470 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
4471 },
4472 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
4473 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
4474 &quot;A String&quot;,
4475 ],
4476 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
4477 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
4478 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
4479 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
4480 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
4481 },
4482 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
4483 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
4484 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
4485 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
4486 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
4487 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
4488 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
4489 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
4490 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
4491 },
4492 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
4493 },
4494 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
4495 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
4496 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
4497 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
4498 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
4499 },
4500 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
4501 },
4502 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
4503 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
4504 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
4505 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
4506 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
4507 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
4508 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
4509 { # Structured PreCheckResponse containing message, type, and required actions.
4510 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
4511 &quot;A String&quot;,
4512 ],
4513 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
4514 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
4515 },
4516 ],
4517 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
4518 },
4519 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
4520 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
4521 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
4522 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
4523 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
4524 },
4525 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
4526 &quot;targetLink&quot;: &quot;A String&quot;,
4527 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
4528 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
4529 }</pre>
4530 </div>
4531
4532 <div class="method">
4533 <code class="details" id="pointInTimeRestore">pointInTimeRestore(parent, body=None, x__xgafv=None)</code>
4534 <pre>Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.
4535
4536 Args:
4537 parent: string, Required. The parent resource where you created this instance. Format: projects/{project} (required)
4538 body: object, The request body.
4539 The object takes the form of:
4540
4541 { # The context to perform a point-in-time recovery of an instance managed by Backup and Disaster Recovery (DR) Service.
4542 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: &quot;google-managed-services-default&quot;. If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
4543 &quot;datasource&quot;: &quot;A String&quot;, # The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.
4544 &quot;pointInTime&quot;: &quot;A String&quot;, # Required. The date and time to which you want to restore the instance.
4545 &quot;preferredSecondaryZone&quot;: &quot;A String&quot;, # Optional. Point-in-time recovery of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field.
4546 &quot;preferredZone&quot;: &quot;A String&quot;, # Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance.
4547 &quot;privateNetwork&quot;: &quot;A String&quot;, # Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`.
4548 &quot;region&quot;: &quot;A String&quot;, # Optional. The region of the target instance where the datasource will be restored. For example: &quot;us-central1&quot;.
4549 &quot;targetInstance&quot;: &quot;A String&quot;, # Target instance name.
4550 &quot;targetInstanceClearSettingsFieldNames&quot;: [ # Optional. Specifies the instance settings that will be cleared from the source instance. This field is only applicable for cross project PITRs.
4551 &quot;A String&quot;,
4552 ],
4553 &quot;targetInstanceSettings&quot;: { # A Cloud SQL instance resource. # Optional. Specifies the instance settings that will be overridden from the source instance. This field is only applicable for cross project PITRs.
4554 &quot;availableMaintenanceVersions&quot;: [ # Output only. List all maintenance versions applicable on the instance
4555 &quot;A String&quot;,
4556 ],
4557 &quot;backendType&quot;: &quot;A String&quot;, # The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
4558 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
4559 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
4560 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been deprecated. Use the &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
4561 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
4562 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
4563 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
4564 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.
4565 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
4566 },
4567 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
4568 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionStatus`.
4569 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
4570 },
4571 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The dns name of the instance.
4572 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this instance.
4573 { # DNS metadata.
4574 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
4575 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
4576 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
4577 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
4578 },
4579 ],
4580 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
4581 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
4582 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.
4583 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn&#x27;t include the project ID.
4584 },
4585 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
4586 &quot;geminiConfig&quot;: { # Gemini instance configuration. # Gemini instance configuration.
4587 &quot;activeQueryEnabled&quot;: True or False, # Output only. Whether the active query is enabled.
4588 &quot;entitled&quot;: True or False, # Output only. Whether Gemini is enabled.
4589 &quot;flagRecommenderEnabled&quot;: True or False, # Output only. Whether the flag recommender is enabled.
4590 &quot;googleVacuumMgmtEnabled&quot;: True or False, # Output only. Whether the vacuum management is enabled.
4591 &quot;indexAdvisorEnabled&quot;: True or False, # Output only. Whether the index advisor is enabled.
4592 &quot;oomSessionCancelEnabled&quot;: True or False, # Output only. Whether canceling the out-of-memory (OOM) session is enabled.
4593 },
4594 &quot;includeReplicasForMajorVersionUpgrade&quot;: True or False, # Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
4595 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
4596 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
4597 { # Database instance IP mapping
4598 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
4599 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
4600 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
4601 },
4602 ],
4603 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
4604 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instance`.
4605 &quot;maintenanceVersion&quot;: &quot;A String&quot;, # The current software version on the instance.
4606 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
4607 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
4608 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
4609 &quot;nodeCount&quot;: 42, # The number of read pool nodes in a read pool.
4610 &quot;nodes&quot;: [ # Output only. Entries containing information about each read pool node of the read pool.
4611 { # Details of a single read pool node of a read pool.
4612 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the read pool node.
4613 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this read pool node.
4614 { # DNS metadata.
4615 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
4616 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
4617 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
4618 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
4619 },
4620 ],
4621 &quot;gceZone&quot;: &quot;A String&quot;, # Output only. The zone of the read pool node.
4622 &quot;ipAddresses&quot;: [ # Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
4623 { # Database instance IP mapping
4624 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
4625 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
4626 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
4627 },
4628 ],
4629 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the read pool node, to be used for retrieving metrics and logs.
4630 &quot;pscAutoConnections&quot;: [ # Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.
4631 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
4632 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
4633 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
4634 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
4635 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
4636 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
4637 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
4638 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
4639 },
4640 ],
4641 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The Private Service Connect (PSC) service attachment of the read pool node.
4642 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the read pool node.
4643 },
4644 ],
4645 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
4646 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
4647 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
4648 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
4649 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
4650 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
4651 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#onPremisesConfiguration`.
4652 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
4653 &quot;selectedObjects&quot;: [ # Optional. A list of objects that the user selects for replication from an external source instance.
4654 { # A list of objects that the user selects for replication from an external source instance.
4655 &quot;database&quot;: &quot;A String&quot;, # Required. The name of the database to migrate.
4656 },
4657 ],
4658 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
4659 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
4660 &quot;project&quot;: &quot;A String&quot;, # The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
4661 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
4662 },
4663 &quot;sslOption&quot;: &quot;A String&quot;, # Optional. SSL option for replica connection to the on-premises source.
4664 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
4665 },
4666 &quot;outOfDiskReport&quot;: { # This message wraps up the information written by out-of-disk detection job. # This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
4667 &quot;sqlMinRecommendedIncreaseSizeGb&quot;: 42, # The minimum recommended increase size in GigaBytes This field is consumed by the frontend * Writers: * the proactive database wellness job for OOD. * Readers:
4668 &quot;sqlOutOfDiskState&quot;: &quot;A String&quot;, # This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
4669 },
4670 &quot;primaryDnsName&quot;: &quot;A String&quot;, # Output only. DEPRECATED: please use write_endpoint instead.
4671 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
4672 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The link to service attachment of PSC instance.
4673 &quot;region&quot;: &quot;A String&quot;, # The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
4674 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
4675 &quot;cascadableReplica&quot;: True or False, # Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
4676 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
4677 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#replicaConfiguration`.
4678 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
4679 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
4680 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
4681 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
4682 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
4683 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
4684 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#mysqlReplicaConfiguration`.
4685 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
4686 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
4687 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
4688 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
4689 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the primary instance&#x27;s Common Name value in the certificate that it sends during the SSL handshake.
4690 },
4691 },
4692 &quot;replicaNames&quot;: [ # The replicas of the instance.
4693 &quot;A String&quot;,
4694 ],
4695 &quot;replicationCluster&quot;: { # A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL. # Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
4696 &quot;drReplica&quot;: True or False, # Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
4697 &quot;failoverDrReplicaName&quot;: &quot;A String&quot;, # Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
4698 &quot;psaWriteEndpoint&quot;: &quot;A String&quot;, # Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn&#x27;t have a DR replica yet or the DR replica is deleted.
4699 },
4700 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
4701 &quot;satisfiesPzi&quot;: True or False, # Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
4702 &quot;satisfiesPzs&quot;: True or False, # This status indicates whether the instance satisfies PZS. The status is reserved for future use.
4703 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenance for this instance. # The start time of any upcoming scheduled maintenance for this instance.
4704 &quot;canDefer&quot;: True or False,
4705 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
4706 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
4707 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
4708 },
4709 &quot;secondaryGceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
4710 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
4711 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
4712 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
4713 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
4714 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
4715 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
4716 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
4717 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
4718 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
4719 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
4720 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
4721 },
4722 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance.\This property is read-only.
4723 &quot;settings&quot;: { # Database instance settings. # The user settings.
4724 &quot;acceleratedReplicaMode&quot;: True or False, # Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
4725 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
4726 &quot;activeDirectoryConfig&quot;: { # Active Directory configuration, relevant only for Cloud SQL for SQL Server. # Active Directory configuration, relevant only for Cloud SQL for SQL Server.
4727 &quot;adminCredentialSecretName&quot;: &quot;A String&quot;, # Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).
4728 &quot;dnsServers&quot;: [ # Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
4729 &quot;A String&quot;,
4730 ],
4731 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
4732 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
4733 &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of the Active Directory configuration.
4734 &quot;organizationalUnit&quot;: &quot;A String&quot;, # Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
4735 },
4736 &quot;advancedMachineFeatures&quot;: { # Specifies options for controlling advanced machine features. # Specifies advanced machine configuration for the instances relevant only for SQL Server.
4737 &quot;threadsPerCore&quot;: 42, # The number of threads per physical core.
4738 },
4739 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
4740 &quot;A String&quot;,
4741 ],
4742 &quot;autoUpgradeEnabled&quot;: True or False, # Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.
4743 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
4744 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
4745 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
4746 &quot;retainedBackups&quot;: 42, # Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is &#x27;COUNT&#x27;, we will retain this many backups.
4747 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
4748 },
4749 &quot;backupTier&quot;: &quot;A String&quot;, # Output only. Backup tier that manages the backups for the instance.
4750 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
4751 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
4752 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupConfiguration`.
4753 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
4754 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Whether point in time recovery is enabled.
4755 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
4756 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
4757 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
4758 &quot;transactionalLogStorageState&quot;: &quot;A String&quot;, # Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
4759 },
4760 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
4761 &quot;connectionPoolConfig&quot;: { # The managed connection pooling configuration. # Optional. The managed connection pooling configuration for the instance.
4762 &quot;connectionPoolingEnabled&quot;: True or False, # Whether managed connection pooling is enabled.
4763 &quot;flags&quot;: [ # Optional. List of connection pool configuration flags.
4764 { # Connection pool flags for Cloud SQL instances managed connection pool configuration.
4765 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the flag.
4766 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
4767 },
4768 ],
4769 &quot;poolerCount&quot;: 42, # Output only. Number of connection poolers.
4770 },
4771 &quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
4772 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
4773 &quot;dataApiAccess&quot;: &quot;A String&quot;, # This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
4774 &quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
4775 &quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
4776 },
4777 &quot;dataDiskProvisionedIops&quot;: &quot;A String&quot;, # Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
4778 &quot;dataDiskProvisionedThroughput&quot;: &quot;A String&quot;, # Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
4779 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
4780 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
4781 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
4782 { # Database flags for Cloud SQL instances.
4783 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
4784 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
4785 },
4786 ],
4787 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
4788 &quot;deletionProtectionEnabled&quot;: True or False, # Configuration to protect against accidental instance deletion.
4789 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
4790 { # Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
4791 &quot;endDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
4792 &quot;startDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
4793 &quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
4794 },
4795 ],
4796 &quot;edition&quot;: &quot;A String&quot;, # Optional. The edition type of the Cloud SQL instance.
4797 &quot;enableDataplexIntegration&quot;: True or False, # Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
4798 &quot;enableGoogleMlIntegration&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
4799 &quot;entraidConfig&quot;: { # SQL Server Entra ID configuration. # Optional. The Microsoft Entra ID configuration for the SQL Server instance.
4800 &quot;applicationId&quot;: &quot;A String&quot;, # Optional. The application ID for the Entra ID configuration.
4801 &quot;kind&quot;: &quot;A String&quot;, # Output only. This is always sql#sqlServerEntraIdConfig
4802 &quot;tenantId&quot;: &quot;A String&quot;, # Optional. The tenant ID for the Entra ID configuration.
4803 },
4804 &quot;finalBackupConfig&quot;: { # Config used to determine the final backup settings for the instance. # Optional. The final backup configuration for the instance.
4805 &quot;enabled&quot;: True or False, # Whether the final backup is enabled for the instance.
4806 &quot;retentionDays&quot;: 42, # The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
4807 },
4808 &quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
4809 &quot;enhancedQueryInsightsEnabled&quot;: True or False, # Optional. Whether enhanced query insights feature is enabled.
4810 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
4811 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
4812 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
4813 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
4814 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
4815 },
4816 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
4817 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip Cloud SQL instance. For example: &quot;google-managed-services-default&quot;. If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
4818 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance using the IP. In &#x27;CIDR&#x27; notation, also known as &#x27;slash&#x27; notation (for example: `157.197.200.0/24`).
4819 { # An entry for an Access Control list.
4820 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
4821 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#aclEntry`.
4822 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
4823 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
4824 },
4825 ],
4826 &quot;customSubjectAlternativeNames&quot;: [ # Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
4827 &quot;A String&quot;,
4828 ],
4829 &quot;enablePrivatePathForGoogleCloudServices&quot;: True or False, # Controls connectivity to private IP instances from Google services, such as BigQuery.
4830 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
4831 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
4832 &quot;pscConfig&quot;: { # PSC settings for a Cloud SQL instance. # PSC settings for this instance.
4833 &quot;allowedConsumerProjects&quot;: [ # Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
4834 &quot;A String&quot;,
4835 ],
4836 &quot;networkAttachmentUri&quot;: &quot;A String&quot;, # Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
4837 &quot;pscAutoConnectionPolicyEnabled&quot;: True or False, # Optional. Whether to set up the PSC service connection policy automatically.
4838 &quot;pscAutoConnections&quot;: [ # Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
4839 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
4840 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
4841 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
4842 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
4843 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
4844 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
4845 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
4846 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
4847 },
4848 ],
4849 &quot;pscAutoDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
4850 &quot;pscEnabled&quot;: True or False, # Whether PSC connectivity is enabled for this instance.
4851 &quot;pscWriteEndpointDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
4852 },
4853 &quot;requireSsl&quot;: True or False, # Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won&#x27;t be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
4854 &quot;serverCaMode&quot;: &quot;A String&quot;, # Specify what type of CA is used for the server certificate.
4855 &quot;serverCaPool&quot;: &quot;A String&quot;, # Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
4856 &quot;serverCertificateRotationMode&quot;: &quot;A String&quot;, # Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
4857 &quot;sslMode&quot;: &quot;A String&quot;, # Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
4858 },
4859 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#settings`.
4860 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified. # The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances.
4861 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
4862 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#locationPreference`.
4863 &quot;secondaryZone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to &#x27;no_secondary_zone&#x27;.
4864 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
4865 },
4866 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes. # The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
4867 &quot;day&quot;: 42, # Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
4868 &quot;hour&quot;: 42, # Hour of day - 0 to 23. Specify in the UTC time zone.
4869 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#maintenanceWindow`.
4870 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
4871 },
4872 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access. # The local user password validation policy of the instance.
4873 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
4874 &quot;disallowCompromisedCredentials&quot;: True or False, # This field is deprecated and will be removed in a future version of the API.
4875 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
4876 &quot;enablePasswordPolicy&quot;: True or False, # Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
4877 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
4878 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
4879 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
4880 },
4881 &quot;performanceCaptureConfig&quot;: { # Performance capture configuration. # Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations.
4882 &quot;enabled&quot;: True or False, # Optional. Enables or disables the performance capture feature.
4883 &quot;probeThreshold&quot;: 42, # Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
4884 &quot;probingIntervalSeconds&quot;: 42, # Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
4885 &quot;runningThreadsThreshold&quot;: 42, # Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
4886 &quot;secondsBehindSourceThreshold&quot;: 42, # Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
4887 &quot;transactionDurationThreshold&quot;: 42, # Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
4888 },
4889 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
4890 &quot;readPoolAutoScaleConfig&quot;: { # The read pool auto-scale configuration. # Optional. The read pool auto-scale configuration for the instance.
4891 &quot;disableScaleIn&quot;: True or False, # Indicates whether read pool auto scaling supports scale in operations (removing nodes).
4892 &quot;enabled&quot;: True or False, # Indicates whether read pool auto scaling is enabled.
4893 &quot;maxNodeCount&quot;: 42, # Maximum number of read pool nodes to be maintained.
4894 &quot;minNodeCount&quot;: 42, # Minimum number of read pool nodes to be maintained.
4895 &quot;scaleInCooldownSeconds&quot;: 42, # The cooldown period for scale-in operations.
4896 &quot;scaleOutCooldownSeconds&quot;: 42, # The cooldown period for scale-out operations.
4897 &quot;targetMetrics&quot;: [ # Optional. Target metrics for read pool auto scaling.
4898 { # Target metric for read pool auto scaling.
4899 &quot;metric&quot;: &quot;A String&quot;, # The metric name to be used for auto scaling.
4900 &quot;targetValue&quot;: 3.14, # The target value for the metric.
4901 },
4902 ],
4903 },
4904 &quot;replicationLagMaxSeconds&quot;: 42, # Optional. Configuration value for recreation of replica after certain replication lag
4905 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
4906 &quot;retainBackupsOnDelete&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
4907 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
4908 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
4909 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
4910 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
4911 &quot;retentionInterval&quot;: &quot;A String&quot;, # How long to keep generated audit files.
4912 &quot;uploadInterval&quot;: &quot;A String&quot;, # How often to upload generated audit files.
4913 },
4914 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
4915 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
4916 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
4917 &quot;timeZone&quot;: &quot;A String&quot;, # Server timezone, relevant only for Cloud SQL for SQL Server.
4918 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
4919 &quot;a_key&quot;: &quot;A String&quot;,
4920 },
4921 },
4922 &quot;sqlNetworkArchitecture&quot;: &quot;A String&quot;,
4923 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
4924 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
4925 &quot;A String&quot;,
4926 ],
4927 &quot;switchTransactionLogsToCloudStorageEnabled&quot;: True or False, # Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
4928 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `&quot;&quot; : &quot;&quot;`. For example, a single resource can have the following tags: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;, ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
4929 &quot;a_key&quot;: &quot;A String&quot;,
4930 },
4931 &quot;upgradableDatabaseVersions&quot;: [ # Output only. All database versions that are available for upgrade.
4932 { # An available database version. It can be a major or a minor version.
4933 &quot;displayName&quot;: &quot;A String&quot;, # The database version&#x27;s display name.
4934 &quot;majorVersion&quot;: &quot;A String&quot;, # The version&#x27;s major version name.
4935 &quot;name&quot;: &quot;A String&quot;, # The database version name. For MySQL 8.0, this string provides the database major and minor version.
4936 },
4937 ],
4938 &quot;writeEndpoint&quot;: &quot;A String&quot;, # Output only. The dns name of the primary instance in a replication group.
4939 },
4940 }
4941
4942 x__xgafv: string, V1 error format.
4943 Allowed values
4944 1 - v1 error format
4945 2 - v2 error format
4946
4947 Returns:
4948 An object of the form:
4949
4950 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
4951 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
4952 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
4953 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
4954 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
4955 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
4956 },
4957 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
4958 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
4959 &quot;message&quot;: &quot;A String&quot;, # The warning message.
4960 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
4961 },
4962 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
4963 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
4964 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
4965 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
4966 },
4967 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
4968 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
4969 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
4970 { # Database instance operation error.
4971 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
4972 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
4973 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
4974 },
4975 ],
4976 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
4977 },
4978 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
4979 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
4980 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
4981 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
4982 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
4983 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
4984 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
4985 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
4986 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
4987 },
4988 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
4989 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
4990 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
4991 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
4992 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
4993 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
4994 },
4995 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
4996 &quot;A String&quot;,
4997 ],
4998 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
4999 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
5000 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
5001 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
5002 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
5003 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
5004 },
5005 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
5006 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
5007 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
5008 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
5009 },
5010 &quot;schemaOnly&quot;: True or False, # Export only schemas.
5011 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
5012 &quot;A String&quot;,
5013 ],
5014 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
5015 },
5016 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
5017 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
5018 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5019 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5020 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
5021 },
5022 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
5023 },
5024 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
5025 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
5026 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
5027 &quot;encryptionOptions&quot;: {
5028 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5029 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
5030 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
5031 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5032 },
5033 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
5034 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
5035 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
5036 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
5037 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
5038 },
5039 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
5040 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
5041 &quot;A String&quot;,
5042 ],
5043 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5044 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5045 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5046 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5047 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
5048 },
5049 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
5050 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
5051 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
5052 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
5053 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
5054 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
5055 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
5056 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5057 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5058 },
5059 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
5060 },
5061 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
5062 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5063 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5064 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5065 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5066 },
5067 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
5068 },
5069 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5070 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
5071 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
5072 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
5073 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
5074 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
5075 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
5076 { # Structured PreCheckResponse containing message, type, and required actions.
5077 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
5078 &quot;A String&quot;,
5079 ],
5080 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
5081 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
5082 },
5083 ],
5084 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
5085 },
5086 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
5087 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5088 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
5089 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
5090 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
5091 },
5092 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
5093 &quot;targetLink&quot;: &quot;A String&quot;,
5094 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
5095 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
5096 }</pre>
5097 </div>
5098
5099 <div class="method">
5100 <code class="details" id="preCheckMajorVersionUpgrade">preCheckMajorVersionUpgrade(project, instance, body=None, x__xgafv=None)</code>
5101 <pre>Execute MVU Pre-checks
5102
5103 Args:
5104 project: string, Required. Project ID of the project that contains the instance. (required)
5105 instance: string, Required. Cloud SQL instance ID. This does not include the project ID. (required)
5106 body: object, The request body.
5107 The object takes the form of:
5108
5109 { # Request for Pre-checks for MVU
5110 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # Required. Contains details about the pre-check major version upgrade operation.
5111 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
5112 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
5113 { # Structured PreCheckResponse containing message, type, and required actions.
5114 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
5115 &quot;A String&quot;,
5116 ],
5117 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
5118 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
5119 },
5120 ],
5121 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
5122 },
5123 }
5124
5125 x__xgafv: string, V1 error format.
5126 Allowed values
5127 1 - v1 error format
5128 2 - v2 error format
5129
5130 Returns:
5131 An object of the form:
5132
5133 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
5134 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
5135 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
5136 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
5137 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
5138 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
5139 },
5140 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
5141 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
5142 &quot;message&quot;: &quot;A String&quot;, # The warning message.
5143 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
5144 },
5145 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
5146 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
5147 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
5148 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
5149 },
5150 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5151 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
5152 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
5153 { # Database instance operation error.
5154 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
5155 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
5156 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
5157 },
5158 ],
5159 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
5160 },
5161 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
5162 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
5163 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
5164 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
5165 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
5166 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
5167 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
5168 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
5169 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
5170 },
5171 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
5172 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5173 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5174 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5175 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5176 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
5177 },
5178 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
5179 &quot;A String&quot;,
5180 ],
5181 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
5182 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
5183 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
5184 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
5185 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
5186 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
5187 },
5188 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
5189 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
5190 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
5191 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
5192 },
5193 &quot;schemaOnly&quot;: True or False, # Export only schemas.
5194 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
5195 &quot;A String&quot;,
5196 ],
5197 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
5198 },
5199 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
5200 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
5201 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5202 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5203 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
5204 },
5205 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
5206 },
5207 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
5208 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
5209 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
5210 &quot;encryptionOptions&quot;: {
5211 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5212 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
5213 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
5214 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5215 },
5216 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
5217 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
5218 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
5219 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
5220 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
5221 },
5222 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
5223 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
5224 &quot;A String&quot;,
5225 ],
5226 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5227 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5228 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5229 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5230 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
5231 },
5232 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
5233 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
5234 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
5235 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
5236 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
5237 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
5238 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
5239 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5240 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5241 },
5242 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
5243 },
5244 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
5245 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5246 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5247 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5248 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5249 },
5250 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
5251 },
5252 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5253 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
5254 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
5255 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
5256 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
5257 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
5258 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
5259 { # Structured PreCheckResponse containing message, type, and required actions.
5260 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
5261 &quot;A String&quot;,
5262 ],
5263 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
5264 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
5265 },
5266 ],
5267 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
5268 },
5269 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
5270 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5271 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
5272 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
5273 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
5274 },
5275 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
5276 &quot;targetLink&quot;: &quot;A String&quot;,
5277 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
5278 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
5279 }</pre>
5280 </div>
5281
5282 <div class="method">
5283 <code class="details" id="promoteReplica">promoteReplica(project, instance, failover=None, x__xgafv=None)</code>
5284 <pre>Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
5285
5286 Args:
5287 project: string, ID of the project that contains the read replica. (required)
5288 instance: string, Cloud SQL read replica instance name. (required)
5289 failover: boolean, Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
5290 x__xgafv: string, V1 error format.
5291 Allowed values
5292 1 - v1 error format
5293 2 - v2 error format
5294
5295 Returns:
5296 An object of the form:
5297
5298 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
5299 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
5300 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
5301 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
5302 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
5303 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
5304 },
5305 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
5306 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
5307 &quot;message&quot;: &quot;A String&quot;, # The warning message.
5308 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
5309 },
5310 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
5311 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
5312 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
5313 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
5314 },
5315 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5316 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
5317 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
5318 { # Database instance operation error.
5319 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
5320 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
5321 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
5322 },
5323 ],
5324 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
5325 },
5326 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
5327 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
5328 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
5329 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
5330 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
5331 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
5332 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
5333 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
5334 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
5335 },
5336 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
5337 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5338 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5339 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5340 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5341 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
5342 },
5343 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
5344 &quot;A String&quot;,
5345 ],
5346 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
5347 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
5348 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
5349 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
5350 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
5351 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
5352 },
5353 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
5354 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
5355 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
5356 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
5357 },
5358 &quot;schemaOnly&quot;: True or False, # Export only schemas.
5359 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
5360 &quot;A String&quot;,
5361 ],
5362 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
5363 },
5364 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
5365 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
5366 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5367 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5368 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
5369 },
5370 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
5371 },
5372 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
5373 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
5374 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
5375 &quot;encryptionOptions&quot;: {
5376 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5377 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
5378 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
5379 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5380 },
5381 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
5382 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
5383 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
5384 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
5385 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
5386 },
5387 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
5388 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
5389 &quot;A String&quot;,
5390 ],
5391 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5392 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5393 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5394 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5395 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
5396 },
5397 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
5398 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
5399 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
5400 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
5401 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
5402 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
5403 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
5404 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5405 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5406 },
5407 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
5408 },
5409 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
5410 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5411 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5412 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5413 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5414 },
5415 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
5416 },
5417 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5418 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
5419 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
5420 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
5421 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
5422 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
5423 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
5424 { # Structured PreCheckResponse containing message, type, and required actions.
5425 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
5426 &quot;A String&quot;,
5427 ],
5428 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
5429 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
5430 },
5431 ],
5432 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
5433 },
5434 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
5435 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5436 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
5437 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
5438 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
5439 },
5440 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
5441 &quot;targetLink&quot;: &quot;A String&quot;,
5442 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
5443 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
5444 }</pre>
5445 </div>
5446
5447 <div class="method">
5448 <code class="details" id="reencrypt">reencrypt(project, instance, body=None, x__xgafv=None)</code>
5449 <pre>Reencrypt CMEK instance with latest key version.
5450
5451 Args:
5452 project: string, ID of the project that contains the instance. (required)
5453 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
5454 body: object, The request body.
5455 The object takes the form of:
5456
5457 { # Database Instance reencrypt request.
5458 &quot;backupReencryptionConfig&quot;: { # Backup Reencryption Config # Configuration specific to backup re-encryption
5459 &quot;backupLimit&quot;: 42, # Backup re-encryption limit
5460 &quot;backupType&quot;: &quot;A String&quot;, # Type of backups users want to re-encrypt.
5461 },
5462 }
5463
5464 x__xgafv: string, V1 error format.
5465 Allowed values
5466 1 - v1 error format
5467 2 - v2 error format
5468
5469 Returns:
5470 An object of the form:
5471
5472 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
5473 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
5474 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
5475 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
5476 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
5477 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
5478 },
5479 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
5480 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
5481 &quot;message&quot;: &quot;A String&quot;, # The warning message.
5482 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
5483 },
5484 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
5485 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
5486 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
5487 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
5488 },
5489 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5490 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
5491 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
5492 { # Database instance operation error.
5493 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
5494 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
5495 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
5496 },
5497 ],
5498 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
5499 },
5500 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
5501 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
5502 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
5503 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
5504 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
5505 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
5506 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
5507 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
5508 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
5509 },
5510 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
5511 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5512 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5513 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5514 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5515 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
5516 },
5517 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
5518 &quot;A String&quot;,
5519 ],
5520 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
5521 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
5522 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
5523 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
5524 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
5525 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
5526 },
5527 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
5528 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
5529 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
5530 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
5531 },
5532 &quot;schemaOnly&quot;: True or False, # Export only schemas.
5533 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
5534 &quot;A String&quot;,
5535 ],
5536 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
5537 },
5538 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
5539 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
5540 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5541 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5542 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
5543 },
5544 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
5545 },
5546 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
5547 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
5548 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
5549 &quot;encryptionOptions&quot;: {
5550 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5551 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
5552 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
5553 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5554 },
5555 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
5556 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
5557 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
5558 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
5559 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
5560 },
5561 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
5562 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
5563 &quot;A String&quot;,
5564 ],
5565 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5566 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5567 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5568 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5569 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
5570 },
5571 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
5572 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
5573 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
5574 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
5575 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
5576 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
5577 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
5578 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5579 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5580 },
5581 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
5582 },
5583 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
5584 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5585 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5586 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5587 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5588 },
5589 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
5590 },
5591 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5592 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
5593 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
5594 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
5595 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
5596 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
5597 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
5598 { # Structured PreCheckResponse containing message, type, and required actions.
5599 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
5600 &quot;A String&quot;,
5601 ],
5602 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
5603 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
5604 },
5605 ],
5606 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
5607 },
5608 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
5609 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5610 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
5611 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
5612 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
5613 },
5614 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
5615 &quot;targetLink&quot;: &quot;A String&quot;,
5616 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
5617 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
5618 }</pre>
5619 </div>
5620
5621 <div class="method">
5622 <code class="details" id="releaseSsrsLease">releaseSsrsLease(project, instance, x__xgafv=None)</code>
5623 <pre>Release a lease for the setup of SQL Server Reporting Services (SSRS).
5624
5625 Args:
5626 project: string, Required. The project ID that contains the instance. (required)
5627 instance: string, Required. The Cloud SQL instance ID. This doesn&#x27;t include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters. (required)
5628 x__xgafv: string, V1 error format.
5629 Allowed values
5630 1 - v1 error format
5631 2 - v2 error format
5632
5633 Returns:
5634 An object of the form:
5635
5636 { # Response for the release SSRS lease request.
5637 &quot;operationId&quot;: &quot;A String&quot;, # The unique identifier for this operation.
5638 }</pre>
5639 </div>
5640
5641 <div class="method">
5642 <code class="details" id="resetSslConfig">resetSslConfig(project, instance, mode=None, x__xgafv=None)</code>
5643 <pre>Deletes all client certificates and generates a new server SSL certificate for the instance.
5644
5645 Args:
5646 project: string, Project ID of the project that contains the instance. (required)
5647 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
5648 mode: string, Optional. Reset SSL mode to use.
5649 Allowed values
5650 RESET_SSL_MODE_UNSPECIFIED - Reset SSL mode is not specified.
5651 ALL - Refresh all TLS configs. This is the default behaviour.
5652 SYNC_FROM_PRIMARY - Refreshes the replication-related TLS configuration settings provided by the primary instance. Not applicable to on-premises replication instances.
5653 x__xgafv: string, V1 error format.
5654 Allowed values
5655 1 - v1 error format
5656 2 - v2 error format
5657
5658 Returns:
5659 An object of the form:
5660
5661 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
5662 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
5663 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
5664 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
5665 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
5666 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
5667 },
5668 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
5669 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
5670 &quot;message&quot;: &quot;A String&quot;, # The warning message.
5671 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
5672 },
5673 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
5674 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
5675 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
5676 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
5677 },
5678 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5679 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
5680 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
5681 { # Database instance operation error.
5682 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
5683 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
5684 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
5685 },
5686 ],
5687 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
5688 },
5689 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
5690 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
5691 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
5692 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
5693 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
5694 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
5695 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
5696 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
5697 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
5698 },
5699 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
5700 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5701 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5702 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5703 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5704 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
5705 },
5706 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
5707 &quot;A String&quot;,
5708 ],
5709 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
5710 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
5711 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
5712 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
5713 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
5714 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
5715 },
5716 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
5717 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
5718 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
5719 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
5720 },
5721 &quot;schemaOnly&quot;: True or False, # Export only schemas.
5722 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
5723 &quot;A String&quot;,
5724 ],
5725 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
5726 },
5727 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
5728 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
5729 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5730 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5731 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
5732 },
5733 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
5734 },
5735 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
5736 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
5737 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
5738 &quot;encryptionOptions&quot;: {
5739 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5740 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
5741 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
5742 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5743 },
5744 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
5745 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
5746 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
5747 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
5748 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
5749 },
5750 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
5751 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
5752 &quot;A String&quot;,
5753 ],
5754 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5755 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5756 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5757 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5758 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
5759 },
5760 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
5761 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
5762 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
5763 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
5764 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
5765 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
5766 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
5767 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5768 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5769 },
5770 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
5771 },
5772 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
5773 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5774 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5775 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5776 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5777 },
5778 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
5779 },
5780 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5781 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
5782 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
5783 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
5784 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
5785 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
5786 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
5787 { # Structured PreCheckResponse containing message, type, and required actions.
5788 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
5789 &quot;A String&quot;,
5790 ],
5791 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
5792 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
5793 },
5794 ],
5795 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
5796 },
5797 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
5798 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5799 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
5800 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
5801 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
5802 },
5803 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
5804 &quot;targetLink&quot;: &quot;A String&quot;,
5805 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
5806 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
5807 }</pre>
5808 </div>
5809
5810 <div class="method">
5811 <code class="details" id="restart">restart(project, instance, x__xgafv=None)</code>
5812 <pre>Restarts a Cloud SQL instance.
5813
5814 Args:
5815 project: string, Project ID of the project that contains the instance to be restarted. (required)
5816 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
5817 x__xgafv: string, V1 error format.
5818 Allowed values
5819 1 - v1 error format
5820 2 - v2 error format
5821
5822 Returns:
5823 An object of the form:
5824
5825 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
5826 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
5827 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
5828 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
5829 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
5830 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
5831 },
5832 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
5833 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
5834 &quot;message&quot;: &quot;A String&quot;, # The warning message.
5835 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
5836 },
5837 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
5838 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
5839 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
5840 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
5841 },
5842 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5843 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
5844 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
5845 { # Database instance operation error.
5846 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
5847 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
5848 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
5849 },
5850 ],
5851 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
5852 },
5853 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
5854 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
5855 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
5856 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
5857 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
5858 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
5859 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
5860 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
5861 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
5862 },
5863 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
5864 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5865 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5866 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5867 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5868 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
5869 },
5870 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
5871 &quot;A String&quot;,
5872 ],
5873 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
5874 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
5875 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
5876 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
5877 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
5878 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
5879 },
5880 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
5881 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
5882 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
5883 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
5884 },
5885 &quot;schemaOnly&quot;: True or False, # Export only schemas.
5886 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
5887 &quot;A String&quot;,
5888 ],
5889 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
5890 },
5891 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
5892 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
5893 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5894 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5895 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
5896 },
5897 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
5898 },
5899 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
5900 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
5901 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
5902 &quot;encryptionOptions&quot;: {
5903 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5904 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
5905 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
5906 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
5907 },
5908 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
5909 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
5910 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
5911 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
5912 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
5913 },
5914 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
5915 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
5916 &quot;A String&quot;,
5917 ],
5918 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
5919 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
5920 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
5921 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
5922 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
5923 },
5924 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
5925 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
5926 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
5927 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
5928 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
5929 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
5930 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
5931 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5932 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
5933 },
5934 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
5935 },
5936 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
5937 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5938 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
5939 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
5940 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
5941 },
5942 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
5943 },
5944 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5945 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
5946 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
5947 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
5948 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
5949 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
5950 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
5951 { # Structured PreCheckResponse containing message, type, and required actions.
5952 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
5953 &quot;A String&quot;,
5954 ],
5955 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
5956 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
5957 },
5958 ],
5959 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
5960 },
5961 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
5962 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
5963 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
5964 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
5965 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
5966 },
5967 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
5968 &quot;targetLink&quot;: &quot;A String&quot;,
5969 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
5970 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
5971 }</pre>
5972 </div>
5973
5974 <div class="method">
5975 <code class="details" id="restoreBackup">restoreBackup(project, instance, body=None, x__xgafv=None)</code>
5976 <pre>Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.
5977
5978 Args:
5979 project: string, Project ID of the project that contains the instance. (required)
5980 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
5981 body: object, The request body.
5982 The object takes the form of:
5983
5984 { # Database instance restore backup request.
5985 &quot;backup&quot;: &quot;A String&quot;, # The name of the backup that&#x27;s used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
5986 &quot;backupdrBackup&quot;: &quot;A String&quot;, # The name of the backup that&#x27;s used to restore a Cloud SQL instance: Format: &quot;projects/{project-id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-uid}&quot;. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
5987 &quot;restoreBackupContext&quot;: { # Database instance restore from backup context. Backup context contains source instance id and project id. # Parameters required to perform the restore backup operation.
5988 &quot;backupRunId&quot;: &quot;A String&quot;, # The ID of the backup run to restore from.
5989 &quot;instanceId&quot;: &quot;A String&quot;, # The ID of the instance that the backup was taken from.
5990 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#restoreBackupContext`.
5991 &quot;project&quot;: &quot;A String&quot;, # The full project ID of the source instance.
5992 },
5993 &quot;restoreInstanceClearOverridesFieldNames&quot;: [ # Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.
5994 &quot;A String&quot;,
5995 ],
5996 &quot;restoreInstanceSettings&quot;: { # A Cloud SQL instance resource. # Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can&#x27;t change the instance&#x27;s major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.
5997 &quot;availableMaintenanceVersions&quot;: [ # Output only. List all maintenance versions applicable on the instance
5998 &quot;A String&quot;,
5999 ],
6000 &quot;backendType&quot;: &quot;A String&quot;, # The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
6001 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
6002 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6003 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been deprecated. Use the &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
6004 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
6005 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
6006 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
6007 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.
6008 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
6009 },
6010 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
6011 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionStatus`.
6012 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
6013 },
6014 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The dns name of the instance.
6015 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this instance.
6016 { # DNS metadata.
6017 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
6018 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
6019 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
6020 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
6021 },
6022 ],
6023 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
6024 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
6025 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.
6026 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn&#x27;t include the project ID.
6027 },
6028 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
6029 &quot;geminiConfig&quot;: { # Gemini instance configuration. # Gemini instance configuration.
6030 &quot;activeQueryEnabled&quot;: True or False, # Output only. Whether the active query is enabled.
6031 &quot;entitled&quot;: True or False, # Output only. Whether Gemini is enabled.
6032 &quot;flagRecommenderEnabled&quot;: True or False, # Output only. Whether the flag recommender is enabled.
6033 &quot;googleVacuumMgmtEnabled&quot;: True or False, # Output only. Whether the vacuum management is enabled.
6034 &quot;indexAdvisorEnabled&quot;: True or False, # Output only. Whether the index advisor is enabled.
6035 &quot;oomSessionCancelEnabled&quot;: True or False, # Output only. Whether canceling the out-of-memory (OOM) session is enabled.
6036 },
6037 &quot;includeReplicasForMajorVersionUpgrade&quot;: True or False, # Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
6038 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
6039 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
6040 { # Database instance IP mapping
6041 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
6042 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
6043 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
6044 },
6045 ],
6046 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
6047 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instance`.
6048 &quot;maintenanceVersion&quot;: &quot;A String&quot;, # The current software version on the instance.
6049 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
6050 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
6051 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
6052 &quot;nodeCount&quot;: 42, # The number of read pool nodes in a read pool.
6053 &quot;nodes&quot;: [ # Output only. Entries containing information about each read pool node of the read pool.
6054 { # Details of a single read pool node of a read pool.
6055 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the read pool node.
6056 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this read pool node.
6057 { # DNS metadata.
6058 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
6059 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
6060 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
6061 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
6062 },
6063 ],
6064 &quot;gceZone&quot;: &quot;A String&quot;, # Output only. The zone of the read pool node.
6065 &quot;ipAddresses&quot;: [ # Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
6066 { # Database instance IP mapping
6067 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
6068 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
6069 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
6070 },
6071 ],
6072 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the read pool node, to be used for retrieving metrics and logs.
6073 &quot;pscAutoConnections&quot;: [ # Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.
6074 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
6075 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
6076 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
6077 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
6078 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
6079 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
6080 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
6081 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
6082 },
6083 ],
6084 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The Private Service Connect (PSC) service attachment of the read pool node.
6085 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the read pool node.
6086 },
6087 ],
6088 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
6089 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
6090 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
6091 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
6092 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
6093 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
6094 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#onPremisesConfiguration`.
6095 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
6096 &quot;selectedObjects&quot;: [ # Optional. A list of objects that the user selects for replication from an external source instance.
6097 { # A list of objects that the user selects for replication from an external source instance.
6098 &quot;database&quot;: &quot;A String&quot;, # Required. The name of the database to migrate.
6099 },
6100 ],
6101 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
6102 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
6103 &quot;project&quot;: &quot;A String&quot;, # The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
6104 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
6105 },
6106 &quot;sslOption&quot;: &quot;A String&quot;, # Optional. SSL option for replica connection to the on-premises source.
6107 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
6108 },
6109 &quot;outOfDiskReport&quot;: { # This message wraps up the information written by out-of-disk detection job. # This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
6110 &quot;sqlMinRecommendedIncreaseSizeGb&quot;: 42, # The minimum recommended increase size in GigaBytes This field is consumed by the frontend * Writers: * the proactive database wellness job for OOD. * Readers:
6111 &quot;sqlOutOfDiskState&quot;: &quot;A String&quot;, # This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
6112 },
6113 &quot;primaryDnsName&quot;: &quot;A String&quot;, # Output only. DEPRECATED: please use write_endpoint instead.
6114 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
6115 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The link to service attachment of PSC instance.
6116 &quot;region&quot;: &quot;A String&quot;, # The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
6117 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
6118 &quot;cascadableReplica&quot;: True or False, # Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
6119 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
6120 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#replicaConfiguration`.
6121 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
6122 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
6123 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
6124 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
6125 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
6126 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
6127 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#mysqlReplicaConfiguration`.
6128 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
6129 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
6130 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
6131 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
6132 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the primary instance&#x27;s Common Name value in the certificate that it sends during the SSL handshake.
6133 },
6134 },
6135 &quot;replicaNames&quot;: [ # The replicas of the instance.
6136 &quot;A String&quot;,
6137 ],
6138 &quot;replicationCluster&quot;: { # A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL. # Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
6139 &quot;drReplica&quot;: True or False, # Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
6140 &quot;failoverDrReplicaName&quot;: &quot;A String&quot;, # Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
6141 &quot;psaWriteEndpoint&quot;: &quot;A String&quot;, # Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn&#x27;t have a DR replica yet or the DR replica is deleted.
6142 },
6143 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
6144 &quot;satisfiesPzi&quot;: True or False, # Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
6145 &quot;satisfiesPzs&quot;: True or False, # This status indicates whether the instance satisfies PZS. The status is reserved for future use.
6146 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenance for this instance. # The start time of any upcoming scheduled maintenance for this instance.
6147 &quot;canDefer&quot;: True or False,
6148 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
6149 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
6150 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
6151 },
6152 &quot;secondaryGceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
6153 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
6154 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
6155 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
6156 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
6157 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
6158 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
6159 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6160 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
6161 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
6162 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
6163 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
6164 },
6165 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance.\This property is read-only.
6166 &quot;settings&quot;: { # Database instance settings. # The user settings.
6167 &quot;acceleratedReplicaMode&quot;: True or False, # Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
6168 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
6169 &quot;activeDirectoryConfig&quot;: { # Active Directory configuration, relevant only for Cloud SQL for SQL Server. # Active Directory configuration, relevant only for Cloud SQL for SQL Server.
6170 &quot;adminCredentialSecretName&quot;: &quot;A String&quot;, # Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).
6171 &quot;dnsServers&quot;: [ # Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
6172 &quot;A String&quot;,
6173 ],
6174 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
6175 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
6176 &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of the Active Directory configuration.
6177 &quot;organizationalUnit&quot;: &quot;A String&quot;, # Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
6178 },
6179 &quot;advancedMachineFeatures&quot;: { # Specifies options for controlling advanced machine features. # Specifies advanced machine configuration for the instances relevant only for SQL Server.
6180 &quot;threadsPerCore&quot;: 42, # The number of threads per physical core.
6181 },
6182 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
6183 &quot;A String&quot;,
6184 ],
6185 &quot;autoUpgradeEnabled&quot;: True or False, # Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.
6186 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
6187 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
6188 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
6189 &quot;retainedBackups&quot;: 42, # Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is &#x27;COUNT&#x27;, we will retain this many backups.
6190 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
6191 },
6192 &quot;backupTier&quot;: &quot;A String&quot;, # Output only. Backup tier that manages the backups for the instance.
6193 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
6194 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
6195 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupConfiguration`.
6196 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
6197 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Whether point in time recovery is enabled.
6198 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
6199 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
6200 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
6201 &quot;transactionalLogStorageState&quot;: &quot;A String&quot;, # Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
6202 },
6203 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
6204 &quot;connectionPoolConfig&quot;: { # The managed connection pooling configuration. # Optional. The managed connection pooling configuration for the instance.
6205 &quot;connectionPoolingEnabled&quot;: True or False, # Whether managed connection pooling is enabled.
6206 &quot;flags&quot;: [ # Optional. List of connection pool configuration flags.
6207 { # Connection pool flags for Cloud SQL instances managed connection pool configuration.
6208 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the flag.
6209 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
6210 },
6211 ],
6212 &quot;poolerCount&quot;: 42, # Output only. Number of connection poolers.
6213 },
6214 &quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
6215 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
6216 &quot;dataApiAccess&quot;: &quot;A String&quot;, # This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
6217 &quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
6218 &quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
6219 },
6220 &quot;dataDiskProvisionedIops&quot;: &quot;A String&quot;, # Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
6221 &quot;dataDiskProvisionedThroughput&quot;: &quot;A String&quot;, # Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
6222 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
6223 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
6224 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
6225 { # Database flags for Cloud SQL instances.
6226 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
6227 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
6228 },
6229 ],
6230 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
6231 &quot;deletionProtectionEnabled&quot;: True or False, # Configuration to protect against accidental instance deletion.
6232 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
6233 { # Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
6234 &quot;endDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
6235 &quot;startDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
6236 &quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
6237 },
6238 ],
6239 &quot;edition&quot;: &quot;A String&quot;, # Optional. The edition type of the Cloud SQL instance.
6240 &quot;enableDataplexIntegration&quot;: True or False, # Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
6241 &quot;enableGoogleMlIntegration&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
6242 &quot;entraidConfig&quot;: { # SQL Server Entra ID configuration. # Optional. The Microsoft Entra ID configuration for the SQL Server instance.
6243 &quot;applicationId&quot;: &quot;A String&quot;, # Optional. The application ID for the Entra ID configuration.
6244 &quot;kind&quot;: &quot;A String&quot;, # Output only. This is always sql#sqlServerEntraIdConfig
6245 &quot;tenantId&quot;: &quot;A String&quot;, # Optional. The tenant ID for the Entra ID configuration.
6246 },
6247 &quot;finalBackupConfig&quot;: { # Config used to determine the final backup settings for the instance. # Optional. The final backup configuration for the instance.
6248 &quot;enabled&quot;: True or False, # Whether the final backup is enabled for the instance.
6249 &quot;retentionDays&quot;: 42, # The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
6250 },
6251 &quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
6252 &quot;enhancedQueryInsightsEnabled&quot;: True or False, # Optional. Whether enhanced query insights feature is enabled.
6253 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
6254 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
6255 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
6256 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
6257 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
6258 },
6259 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
6260 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip Cloud SQL instance. For example: &quot;google-managed-services-default&quot;. If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
6261 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance using the IP. In &#x27;CIDR&#x27; notation, also known as &#x27;slash&#x27; notation (for example: `157.197.200.0/24`).
6262 { # An entry for an Access Control list.
6263 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6264 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#aclEntry`.
6265 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
6266 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
6267 },
6268 ],
6269 &quot;customSubjectAlternativeNames&quot;: [ # Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
6270 &quot;A String&quot;,
6271 ],
6272 &quot;enablePrivatePathForGoogleCloudServices&quot;: True or False, # Controls connectivity to private IP instances from Google services, such as BigQuery.
6273 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
6274 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
6275 &quot;pscConfig&quot;: { # PSC settings for a Cloud SQL instance. # PSC settings for this instance.
6276 &quot;allowedConsumerProjects&quot;: [ # Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
6277 &quot;A String&quot;,
6278 ],
6279 &quot;networkAttachmentUri&quot;: &quot;A String&quot;, # Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
6280 &quot;pscAutoConnectionPolicyEnabled&quot;: True or False, # Optional. Whether to set up the PSC service connection policy automatically.
6281 &quot;pscAutoConnections&quot;: [ # Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
6282 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
6283 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
6284 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
6285 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
6286 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
6287 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
6288 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
6289 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
6290 },
6291 ],
6292 &quot;pscAutoDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
6293 &quot;pscEnabled&quot;: True or False, # Whether PSC connectivity is enabled for this instance.
6294 &quot;pscWriteEndpointDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
6295 },
6296 &quot;requireSsl&quot;: True or False, # Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won&#x27;t be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
6297 &quot;serverCaMode&quot;: &quot;A String&quot;, # Specify what type of CA is used for the server certificate.
6298 &quot;serverCaPool&quot;: &quot;A String&quot;, # Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
6299 &quot;serverCertificateRotationMode&quot;: &quot;A String&quot;, # Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
6300 &quot;sslMode&quot;: &quot;A String&quot;, # Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
6301 },
6302 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#settings`.
6303 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified. # The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances.
6304 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
6305 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#locationPreference`.
6306 &quot;secondaryZone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to &#x27;no_secondary_zone&#x27;.
6307 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
6308 },
6309 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes. # The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
6310 &quot;day&quot;: 42, # Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
6311 &quot;hour&quot;: 42, # Hour of day - 0 to 23. Specify in the UTC time zone.
6312 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#maintenanceWindow`.
6313 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
6314 },
6315 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access. # The local user password validation policy of the instance.
6316 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
6317 &quot;disallowCompromisedCredentials&quot;: True or False, # This field is deprecated and will be removed in a future version of the API.
6318 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
6319 &quot;enablePasswordPolicy&quot;: True or False, # Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
6320 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
6321 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
6322 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
6323 },
6324 &quot;performanceCaptureConfig&quot;: { # Performance capture configuration. # Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations.
6325 &quot;enabled&quot;: True or False, # Optional. Enables or disables the performance capture feature.
6326 &quot;probeThreshold&quot;: 42, # Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
6327 &quot;probingIntervalSeconds&quot;: 42, # Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
6328 &quot;runningThreadsThreshold&quot;: 42, # Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
6329 &quot;secondsBehindSourceThreshold&quot;: 42, # Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
6330 &quot;transactionDurationThreshold&quot;: 42, # Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
6331 },
6332 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
6333 &quot;readPoolAutoScaleConfig&quot;: { # The read pool auto-scale configuration. # Optional. The read pool auto-scale configuration for the instance.
6334 &quot;disableScaleIn&quot;: True or False, # Indicates whether read pool auto scaling supports scale in operations (removing nodes).
6335 &quot;enabled&quot;: True or False, # Indicates whether read pool auto scaling is enabled.
6336 &quot;maxNodeCount&quot;: 42, # Maximum number of read pool nodes to be maintained.
6337 &quot;minNodeCount&quot;: 42, # Minimum number of read pool nodes to be maintained.
6338 &quot;scaleInCooldownSeconds&quot;: 42, # The cooldown period for scale-in operations.
6339 &quot;scaleOutCooldownSeconds&quot;: 42, # The cooldown period for scale-out operations.
6340 &quot;targetMetrics&quot;: [ # Optional. Target metrics for read pool auto scaling.
6341 { # Target metric for read pool auto scaling.
6342 &quot;metric&quot;: &quot;A String&quot;, # The metric name to be used for auto scaling.
6343 &quot;targetValue&quot;: 3.14, # The target value for the metric.
6344 },
6345 ],
6346 },
6347 &quot;replicationLagMaxSeconds&quot;: 42, # Optional. Configuration value for recreation of replica after certain replication lag
6348 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
6349 &quot;retainBackupsOnDelete&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
6350 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
6351 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
6352 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
6353 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
6354 &quot;retentionInterval&quot;: &quot;A String&quot;, # How long to keep generated audit files.
6355 &quot;uploadInterval&quot;: &quot;A String&quot;, # How often to upload generated audit files.
6356 },
6357 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
6358 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
6359 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
6360 &quot;timeZone&quot;: &quot;A String&quot;, # Server timezone, relevant only for Cloud SQL for SQL Server.
6361 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
6362 &quot;a_key&quot;: &quot;A String&quot;,
6363 },
6364 },
6365 &quot;sqlNetworkArchitecture&quot;: &quot;A String&quot;,
6366 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
6367 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
6368 &quot;A String&quot;,
6369 ],
6370 &quot;switchTransactionLogsToCloudStorageEnabled&quot;: True or False, # Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
6371 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `&quot;&quot; : &quot;&quot;`. For example, a single resource can have the following tags: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;, ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
6372 &quot;a_key&quot;: &quot;A String&quot;,
6373 },
6374 &quot;upgradableDatabaseVersions&quot;: [ # Output only. All database versions that are available for upgrade.
6375 { # An available database version. It can be a major or a minor version.
6376 &quot;displayName&quot;: &quot;A String&quot;, # The database version&#x27;s display name.
6377 &quot;majorVersion&quot;: &quot;A String&quot;, # The version&#x27;s major version name.
6378 &quot;name&quot;: &quot;A String&quot;, # The database version name. For MySQL 8.0, this string provides the database major and minor version.
6379 },
6380 ],
6381 &quot;writeEndpoint&quot;: &quot;A String&quot;, # Output only. The dns name of the primary instance in a replication group.
6382 },
6383 }
6384
6385 x__xgafv: string, V1 error format.
6386 Allowed values
6387 1 - v1 error format
6388 2 - v2 error format
6389
6390 Returns:
6391 An object of the form:
6392
6393 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
6394 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
6395 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
6396 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
6397 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
6398 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
6399 },
6400 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
6401 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
6402 &quot;message&quot;: &quot;A String&quot;, # The warning message.
6403 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
6404 },
6405 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
6406 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
6407 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
6408 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
6409 },
6410 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6411 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
6412 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
6413 { # Database instance operation error.
6414 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
6415 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
6416 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
6417 },
6418 ],
6419 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
6420 },
6421 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
6422 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
6423 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
6424 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
6425 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
6426 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
6427 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
6428 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
6429 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
6430 },
6431 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
6432 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
6433 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
6434 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
6435 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
6436 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
6437 },
6438 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
6439 &quot;A String&quot;,
6440 ],
6441 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
6442 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
6443 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
6444 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
6445 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
6446 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
6447 },
6448 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
6449 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
6450 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
6451 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
6452 },
6453 &quot;schemaOnly&quot;: True or False, # Export only schemas.
6454 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
6455 &quot;A String&quot;,
6456 ],
6457 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
6458 },
6459 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
6460 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
6461 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
6462 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
6463 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
6464 },
6465 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
6466 },
6467 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
6468 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
6469 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
6470 &quot;encryptionOptions&quot;: {
6471 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
6472 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
6473 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
6474 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
6475 },
6476 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
6477 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
6478 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
6479 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
6480 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
6481 },
6482 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
6483 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
6484 &quot;A String&quot;,
6485 ],
6486 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
6487 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
6488 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
6489 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
6490 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
6491 },
6492 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
6493 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
6494 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
6495 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
6496 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
6497 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
6498 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
6499 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
6500 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
6501 },
6502 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
6503 },
6504 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
6505 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
6506 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
6507 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
6508 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
6509 },
6510 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
6511 },
6512 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6513 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
6514 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
6515 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
6516 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
6517 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
6518 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
6519 { # Structured PreCheckResponse containing message, type, and required actions.
6520 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
6521 &quot;A String&quot;,
6522 ],
6523 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
6524 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
6525 },
6526 ],
6527 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
6528 },
6529 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
6530 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6531 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
6532 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
6533 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
6534 },
6535 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
6536 &quot;targetLink&quot;: &quot;A String&quot;,
6537 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
6538 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
6539 }</pre>
6540 </div>
6541
6542 <div class="method">
6543 <code class="details" id="rotateServerCa">rotateServerCa(project, instance, body=None, x__xgafv=None)</code>
6544 <pre>Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.
6545
6546 Args:
6547 project: string, Project ID of the project that contains the instance. (required)
6548 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
6549 body: object, The request body.
6550 The object takes the form of:
6551
6552 { # Rotate server CA request.
6553 &quot;rotateServerCaContext&quot;: { # Instance rotate server CA context. # Contains details about the rotate server CA operation.
6554 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#rotateServerCaContext`.
6555 &quot;nextVersion&quot;: &quot;A String&quot;, # The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version.
6556 },
6557 }
6558
6559 x__xgafv: string, V1 error format.
6560 Allowed values
6561 1 - v1 error format
6562 2 - v2 error format
6563
6564 Returns:
6565 An object of the form:
6566
6567 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
6568 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
6569 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
6570 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
6571 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
6572 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
6573 },
6574 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
6575 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
6576 &quot;message&quot;: &quot;A String&quot;, # The warning message.
6577 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
6578 },
6579 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
6580 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
6581 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
6582 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
6583 },
6584 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6585 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
6586 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
6587 { # Database instance operation error.
6588 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
6589 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
6590 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
6591 },
6592 ],
6593 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
6594 },
6595 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
6596 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
6597 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
6598 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
6599 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
6600 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
6601 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
6602 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
6603 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
6604 },
6605 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
6606 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
6607 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
6608 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
6609 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
6610 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
6611 },
6612 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
6613 &quot;A String&quot;,
6614 ],
6615 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
6616 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
6617 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
6618 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
6619 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
6620 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
6621 },
6622 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
6623 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
6624 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
6625 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
6626 },
6627 &quot;schemaOnly&quot;: True or False, # Export only schemas.
6628 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
6629 &quot;A String&quot;,
6630 ],
6631 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
6632 },
6633 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
6634 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
6635 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
6636 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
6637 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
6638 },
6639 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
6640 },
6641 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
6642 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
6643 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
6644 &quot;encryptionOptions&quot;: {
6645 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
6646 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
6647 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
6648 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
6649 },
6650 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
6651 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
6652 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
6653 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
6654 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
6655 },
6656 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
6657 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
6658 &quot;A String&quot;,
6659 ],
6660 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
6661 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
6662 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
6663 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
6664 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
6665 },
6666 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
6667 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
6668 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
6669 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
6670 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
6671 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
6672 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
6673 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
6674 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
6675 },
6676 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
6677 },
6678 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
6679 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
6680 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
6681 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
6682 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
6683 },
6684 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
6685 },
6686 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6687 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
6688 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
6689 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
6690 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
6691 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
6692 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
6693 { # Structured PreCheckResponse containing message, type, and required actions.
6694 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
6695 &quot;A String&quot;,
6696 ],
6697 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
6698 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
6699 },
6700 ],
6701 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
6702 },
6703 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
6704 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6705 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
6706 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
6707 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
6708 },
6709 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
6710 &quot;targetLink&quot;: &quot;A String&quot;,
6711 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
6712 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
6713 }</pre>
6714 </div>
6715
6716 <div class="method">
6717 <code class="details" id="startReplica">startReplica(project, instance, x__xgafv=None)</code>
6718 <pre>Starts the replication in the read replica instance.
6719
6720 Args:
6721 project: string, ID of the project that contains the read replica. (required)
6722 instance: string, Cloud SQL read replica instance name. (required)
6723 x__xgafv: string, V1 error format.
6724 Allowed values
6725 1 - v1 error format
6726 2 - v2 error format
6727
6728 Returns:
6729 An object of the form:
6730
6731 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
6732 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
6733 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
6734 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
6735 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
6736 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
6737 },
6738 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
6739 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
6740 &quot;message&quot;: &quot;A String&quot;, # The warning message.
6741 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
6742 },
6743 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
6744 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
6745 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
6746 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
6747 },
6748 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6749 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
6750 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
6751 { # Database instance operation error.
6752 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
6753 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
6754 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
6755 },
6756 ],
6757 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
6758 },
6759 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
6760 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
6761 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
6762 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
6763 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
6764 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
6765 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
6766 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
6767 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
6768 },
6769 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
6770 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
6771 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
6772 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
6773 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
6774 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
6775 },
6776 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
6777 &quot;A String&quot;,
6778 ],
6779 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
6780 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
6781 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
6782 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
6783 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
6784 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
6785 },
6786 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
6787 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
6788 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
6789 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
6790 },
6791 &quot;schemaOnly&quot;: True or False, # Export only schemas.
6792 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
6793 &quot;A String&quot;,
6794 ],
6795 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
6796 },
6797 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
6798 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
6799 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
6800 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
6801 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
6802 },
6803 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
6804 },
6805 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
6806 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
6807 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
6808 &quot;encryptionOptions&quot;: {
6809 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
6810 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
6811 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
6812 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
6813 },
6814 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
6815 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
6816 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
6817 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
6818 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
6819 },
6820 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
6821 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
6822 &quot;A String&quot;,
6823 ],
6824 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
6825 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
6826 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
6827 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
6828 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
6829 },
6830 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
6831 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
6832 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
6833 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
6834 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
6835 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
6836 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
6837 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
6838 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
6839 },
6840 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
6841 },
6842 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
6843 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
6844 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
6845 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
6846 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
6847 },
6848 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
6849 },
6850 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6851 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
6852 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
6853 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
6854 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
6855 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
6856 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
6857 { # Structured PreCheckResponse containing message, type, and required actions.
6858 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
6859 &quot;A String&quot;,
6860 ],
6861 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
6862 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
6863 },
6864 ],
6865 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
6866 },
6867 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
6868 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6869 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
6870 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
6871 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
6872 },
6873 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
6874 &quot;targetLink&quot;: &quot;A String&quot;,
6875 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
6876 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
6877 }</pre>
6878 </div>
6879
6880 <div class="method">
6881 <code class="details" id="stopReplica">stopReplica(project, instance, x__xgafv=None)</code>
6882 <pre>Stops the replication in the read replica instance.
6883
6884 Args:
6885 project: string, ID of the project that contains the read replica. (required)
6886 instance: string, Cloud SQL read replica instance name. (required)
6887 x__xgafv: string, V1 error format.
6888 Allowed values
6889 1 - v1 error format
6890 2 - v2 error format
6891
6892 Returns:
6893 An object of the form:
6894
6895 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
6896 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
6897 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
6898 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
6899 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
6900 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
6901 },
6902 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
6903 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
6904 &quot;message&quot;: &quot;A String&quot;, # The warning message.
6905 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
6906 },
6907 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
6908 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
6909 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
6910 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
6911 },
6912 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
6913 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
6914 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
6915 { # Database instance operation error.
6916 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
6917 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
6918 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
6919 },
6920 ],
6921 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
6922 },
6923 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
6924 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
6925 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
6926 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
6927 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
6928 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
6929 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
6930 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
6931 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
6932 },
6933 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
6934 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
6935 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
6936 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
6937 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
6938 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
6939 },
6940 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
6941 &quot;A String&quot;,
6942 ],
6943 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
6944 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
6945 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
6946 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
6947 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
6948 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
6949 },
6950 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
6951 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
6952 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
6953 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
6954 },
6955 &quot;schemaOnly&quot;: True or False, # Export only schemas.
6956 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
6957 &quot;A String&quot;,
6958 ],
6959 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
6960 },
6961 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
6962 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
6963 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
6964 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
6965 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
6966 },
6967 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
6968 },
6969 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
6970 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
6971 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
6972 &quot;encryptionOptions&quot;: {
6973 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
6974 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
6975 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
6976 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
6977 },
6978 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
6979 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
6980 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
6981 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
6982 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
6983 },
6984 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
6985 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
6986 &quot;A String&quot;,
6987 ],
6988 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
6989 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
6990 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
6991 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
6992 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
6993 },
6994 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
6995 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
6996 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
6997 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
6998 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
6999 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
7000 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
7001 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
7002 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
7003 },
7004 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
7005 },
7006 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
7007 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
7008 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
7009 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
7010 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
7011 },
7012 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
7013 },
7014 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7015 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
7016 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
7017 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
7018 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
7019 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
7020 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
7021 { # Structured PreCheckResponse containing message, type, and required actions.
7022 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
7023 &quot;A String&quot;,
7024 ],
7025 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
7026 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
7027 },
7028 ],
7029 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
7030 },
7031 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
7032 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7033 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
7034 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
7035 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
7036 },
7037 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
7038 &quot;targetLink&quot;: &quot;A String&quot;,
7039 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
7040 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
7041 }</pre>
7042 </div>
7043
7044 <div class="method">
7045 <code class="details" id="switchover">switchover(project, instance, dbTimeout=None, x__xgafv=None)</code>
7046 <pre>Switches over from the primary instance to the DR replica instance.
7047
7048 Args:
7049 project: string, ID of the project that contains the replica. (required)
7050 instance: string, Cloud SQL read replica instance name. (required)
7051 dbTimeout: string, Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
7052 x__xgafv: string, V1 error format.
7053 Allowed values
7054 1 - v1 error format
7055 2 - v2 error format
7056
7057 Returns:
7058 An object of the form:
7059
7060 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
7061 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
7062 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
7063 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
7064 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
7065 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
7066 },
7067 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
7068 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
7069 &quot;message&quot;: &quot;A String&quot;, # The warning message.
7070 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
7071 },
7072 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
7073 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
7074 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
7075 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
7076 },
7077 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7078 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
7079 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
7080 { # Database instance operation error.
7081 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
7082 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
7083 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
7084 },
7085 ],
7086 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
7087 },
7088 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
7089 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
7090 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
7091 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
7092 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
7093 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
7094 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
7095 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
7096 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
7097 },
7098 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
7099 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
7100 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
7101 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
7102 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
7103 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
7104 },
7105 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
7106 &quot;A String&quot;,
7107 ],
7108 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
7109 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
7110 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
7111 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
7112 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
7113 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
7114 },
7115 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
7116 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
7117 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
7118 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
7119 },
7120 &quot;schemaOnly&quot;: True or False, # Export only schemas.
7121 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
7122 &quot;A String&quot;,
7123 ],
7124 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
7125 },
7126 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
7127 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
7128 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
7129 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
7130 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
7131 },
7132 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
7133 },
7134 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
7135 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
7136 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
7137 &quot;encryptionOptions&quot;: {
7138 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
7139 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
7140 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
7141 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
7142 },
7143 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
7144 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
7145 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
7146 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
7147 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
7148 },
7149 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
7150 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
7151 &quot;A String&quot;,
7152 ],
7153 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
7154 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
7155 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
7156 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
7157 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
7158 },
7159 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
7160 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
7161 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
7162 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
7163 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
7164 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
7165 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
7166 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
7167 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
7168 },
7169 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
7170 },
7171 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
7172 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
7173 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
7174 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
7175 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
7176 },
7177 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
7178 },
7179 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7180 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
7181 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
7182 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
7183 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
7184 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
7185 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
7186 { # Structured PreCheckResponse containing message, type, and required actions.
7187 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
7188 &quot;A String&quot;,
7189 ],
7190 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
7191 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
7192 },
7193 ],
7194 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
7195 },
7196 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
7197 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7198 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
7199 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
7200 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
7201 },
7202 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
7203 &quot;targetLink&quot;: &quot;A String&quot;,
7204 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
7205 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
7206 }</pre>
7207 </div>
7208
7209 <div class="method">
7210 <code class="details" id="truncateLog">truncateLog(project, instance, body=None, x__xgafv=None)</code>
7211 <pre>Truncate MySQL general and slow query log tables MySQL only.
7212
7213 Args:
7214 project: string, Project ID of the Cloud SQL project. (required)
7215 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
7216 body: object, The request body.
7217 The object takes the form of:
7218
7219 { # Instance truncate log request.
7220 &quot;truncateLogContext&quot;: { # Database Instance truncate log context. # Contains details about the truncate log operation.
7221 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#truncateLogContext`.
7222 &quot;logType&quot;: &quot;A String&quot;, # The type of log to truncate. Valid values are `MYSQL_GENERAL_TABLE` and `MYSQL_SLOW_TABLE`.
7223 },
7224 }
7225
7226 x__xgafv: string, V1 error format.
7227 Allowed values
7228 1 - v1 error format
7229 2 - v2 error format
7230
7231 Returns:
7232 An object of the form:
7233
7234 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
7235 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
7236 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
7237 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
7238 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
7239 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
7240 },
7241 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
7242 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
7243 &quot;message&quot;: &quot;A String&quot;, # The warning message.
7244 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
7245 },
7246 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
7247 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
7248 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
7249 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
7250 },
7251 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7252 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
7253 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
7254 { # Database instance operation error.
7255 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
7256 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
7257 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
7258 },
7259 ],
7260 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
7261 },
7262 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
7263 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
7264 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
7265 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
7266 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
7267 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
7268 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
7269 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
7270 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
7271 },
7272 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
7273 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
7274 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
7275 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
7276 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
7277 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
7278 },
7279 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
7280 &quot;A String&quot;,
7281 ],
7282 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
7283 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
7284 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
7285 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
7286 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
7287 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
7288 },
7289 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
7290 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
7291 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
7292 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
7293 },
7294 &quot;schemaOnly&quot;: True or False, # Export only schemas.
7295 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
7296 &quot;A String&quot;,
7297 ],
7298 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
7299 },
7300 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
7301 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
7302 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
7303 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
7304 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
7305 },
7306 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
7307 },
7308 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
7309 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
7310 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
7311 &quot;encryptionOptions&quot;: {
7312 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
7313 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
7314 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
7315 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
7316 },
7317 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
7318 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
7319 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
7320 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
7321 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
7322 },
7323 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
7324 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
7325 &quot;A String&quot;,
7326 ],
7327 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
7328 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
7329 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
7330 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
7331 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
7332 },
7333 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
7334 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
7335 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
7336 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
7337 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
7338 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
7339 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
7340 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
7341 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
7342 },
7343 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
7344 },
7345 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
7346 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
7347 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
7348 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
7349 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
7350 },
7351 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
7352 },
7353 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7354 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
7355 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
7356 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
7357 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
7358 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
7359 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
7360 { # Structured PreCheckResponse containing message, type, and required actions.
7361 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
7362 &quot;A String&quot;,
7363 ],
7364 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
7365 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
7366 },
7367 ],
7368 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
7369 },
7370 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
7371 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7372 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
7373 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
7374 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
7375 },
7376 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
7377 &quot;targetLink&quot;: &quot;A String&quot;,
7378 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
7379 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
7380 }</pre>
7381 </div>
7382
7383 <div class="method">
7384 <code class="details" id="update">update(project, instance, body=None, x__xgafv=None)</code>
7385 <pre>Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.
7386
7387 Args:
7388 project: string, Project ID of the project that contains the instance. (required)
7389 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
7390 body: object, The request body.
7391 The object takes the form of:
7392
7393 { # A Cloud SQL instance resource.
7394 &quot;availableMaintenanceVersions&quot;: [ # Output only. List all maintenance versions applicable on the instance
7395 &quot;A String&quot;,
7396 ],
7397 &quot;backendType&quot;: &quot;A String&quot;, # The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
7398 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
7399 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7400 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been deprecated. Use the &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
7401 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
7402 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
7403 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
7404 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionConfiguration`.
7405 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
7406 },
7407 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
7408 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#diskEncryptionStatus`.
7409 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
7410 },
7411 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The dns name of the instance.
7412 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this instance.
7413 { # DNS metadata.
7414 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
7415 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
7416 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
7417 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
7418 },
7419 ],
7420 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
7421 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
7422 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true.
7423 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn&#x27;t include the project ID.
7424 },
7425 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
7426 &quot;geminiConfig&quot;: { # Gemini instance configuration. # Gemini instance configuration.
7427 &quot;activeQueryEnabled&quot;: True or False, # Output only. Whether the active query is enabled.
7428 &quot;entitled&quot;: True or False, # Output only. Whether Gemini is enabled.
7429 &quot;flagRecommenderEnabled&quot;: True or False, # Output only. Whether the flag recommender is enabled.
7430 &quot;googleVacuumMgmtEnabled&quot;: True or False, # Output only. Whether the vacuum management is enabled.
7431 &quot;indexAdvisorEnabled&quot;: True or False, # Output only. Whether the index advisor is enabled.
7432 &quot;oomSessionCancelEnabled&quot;: True or False, # Output only. Whether canceling the out-of-memory (OOM) session is enabled.
7433 },
7434 &quot;includeReplicasForMajorVersionUpgrade&quot;: True or False, # Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
7435 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
7436 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
7437 { # Database instance IP mapping
7438 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
7439 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
7440 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
7441 },
7442 ],
7443 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
7444 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#instance`.
7445 &quot;maintenanceVersion&quot;: &quot;A String&quot;, # The current software version on the instance.
7446 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
7447 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
7448 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
7449 &quot;nodeCount&quot;: 42, # The number of read pool nodes in a read pool.
7450 &quot;nodes&quot;: [ # Output only. Entries containing information about each read pool node of the read pool.
7451 { # Details of a single read pool node of a read pool.
7452 &quot;dnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the read pool node.
7453 &quot;dnsNames&quot;: [ # Output only. The list of DNS names used by this read pool node.
7454 { # DNS metadata.
7455 &quot;connectionType&quot;: &quot;A String&quot;, # Output only. The connection type of the DNS name.
7456 &quot;dnsScope&quot;: &quot;A String&quot;, # Output only. The scope that the DNS name applies to.
7457 &quot;name&quot;: &quot;A String&quot;, # Output only. The DNS name.
7458 &quot;recordManager&quot;: &quot;A String&quot;, # Output only. The manager for this DNS record.
7459 },
7460 ],
7461 &quot;gceZone&quot;: &quot;A String&quot;, # Output only. The zone of the read pool node.
7462 &quot;ipAddresses&quot;: [ # Output only. Mappings containing IP addresses that can be used to connect to the read pool node.
7463 { # Database instance IP mapping
7464 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
7465 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
7466 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
7467 },
7468 ],
7469 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the read pool node, to be used for retrieving metrics and logs.
7470 &quot;pscAutoConnections&quot;: [ # Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node.
7471 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
7472 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
7473 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
7474 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
7475 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
7476 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
7477 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
7478 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
7479 },
7480 ],
7481 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The Private Service Connect (PSC) service attachment of the read pool node.
7482 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the read pool node.
7483 },
7484 ],
7485 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
7486 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
7487 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
7488 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
7489 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
7490 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
7491 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#onPremisesConfiguration`.
7492 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
7493 &quot;selectedObjects&quot;: [ # Optional. A list of objects that the user selects for replication from an external source instance.
7494 { # A list of objects that the user selects for replication from an external source instance.
7495 &quot;database&quot;: &quot;A String&quot;, # Required. The name of the database to migrate.
7496 },
7497 ],
7498 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
7499 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
7500 &quot;project&quot;: &quot;A String&quot;, # The project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
7501 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
7502 },
7503 &quot;sslOption&quot;: &quot;A String&quot;, # Optional. SSL option for replica connection to the on-premises source.
7504 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
7505 },
7506 &quot;outOfDiskReport&quot;: { # This message wraps up the information written by out-of-disk detection job. # This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
7507 &quot;sqlMinRecommendedIncreaseSizeGb&quot;: 42, # The minimum recommended increase size in GigaBytes This field is consumed by the frontend * Writers: * the proactive database wellness job for OOD. * Readers:
7508 &quot;sqlOutOfDiskState&quot;: &quot;A String&quot;, # This field represents the state generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
7509 },
7510 &quot;primaryDnsName&quot;: &quot;A String&quot;, # Output only. DEPRECATED: please use write_endpoint instead.
7511 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
7512 &quot;pscServiceAttachmentLink&quot;: &quot;A String&quot;, # Output only. The link to service attachment of PSC instance.
7513 &quot;region&quot;: &quot;A String&quot;, # The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
7514 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
7515 &quot;cascadableReplica&quot;: True or False, # Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
7516 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
7517 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#replicaConfiguration`.
7518 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
7519 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
7520 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
7521 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponding public key is encoded in the client&#x27;s certificate.
7522 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
7523 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
7524 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#mysqlReplicaConfiguration`.
7525 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
7526 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
7527 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
7528 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
7529 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the primary instance&#x27;s Common Name value in the certificate that it sends during the SSL handshake.
7530 },
7531 },
7532 &quot;replicaNames&quot;: [ # The replicas of the instance.
7533 &quot;A String&quot;,
7534 ],
7535 &quot;replicationCluster&quot;: { # A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL. # Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
7536 &quot;drReplica&quot;: True or False, # Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
7537 &quot;failoverDrReplicaName&quot;: &quot;A String&quot;, # Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
7538 &quot;psaWriteEndpoint&quot;: &quot;A String&quot;, # Output only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn&#x27;t have a DR replica yet or the DR replica is deleted.
7539 },
7540 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
7541 &quot;satisfiesPzi&quot;: True or False, # Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
7542 &quot;satisfiesPzs&quot;: True or False, # This status indicates whether the instance satisfies PZS. The status is reserved for future use.
7543 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenance for this instance. # The start time of any upcoming scheduled maintenance for this instance.
7544 &quot;canDefer&quot;: True or False,
7545 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
7546 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
7547 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
7548 },
7549 &quot;secondaryGceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
7550 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
7551 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
7552 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
7553 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
7554 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
7555 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
7556 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7557 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
7558 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#sslCert`.
7559 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
7560 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
7561 },
7562 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance.\This property is read-only.
7563 &quot;settings&quot;: { # Database instance settings. # The user settings.
7564 &quot;acceleratedReplicaMode&quot;: True or False, # Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
7565 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
7566 &quot;activeDirectoryConfig&quot;: { # Active Directory configuration, relevant only for Cloud SQL for SQL Server. # Active Directory configuration, relevant only for Cloud SQL for SQL Server.
7567 &quot;adminCredentialSecretName&quot;: &quot;A String&quot;, # Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).
7568 &quot;dnsServers&quot;: [ # Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.
7569 &quot;A String&quot;,
7570 ],
7571 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
7572 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
7573 &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode of the Active Directory configuration.
7574 &quot;organizationalUnit&quot;: &quot;A String&quot;, # Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
7575 },
7576 &quot;advancedMachineFeatures&quot;: { # Specifies options for controlling advanced machine features. # Specifies advanced machine configuration for the instances relevant only for SQL Server.
7577 &quot;threadsPerCore&quot;: 42, # The number of threads per physical core.
7578 },
7579 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
7580 &quot;A String&quot;,
7581 ],
7582 &quot;autoUpgradeEnabled&quot;: True or False, # Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.
7583 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./ For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
7584 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
7585 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
7586 &quot;retainedBackups&quot;: 42, # Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is &#x27;COUNT&#x27;, we will retain this many backups.
7587 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
7588 },
7589 &quot;backupTier&quot;: &quot;A String&quot;, # Output only. Backup tier that manages the backups for the instance.
7590 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
7591 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
7592 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupConfiguration`.
7593 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
7594 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Whether point in time recovery is enabled.
7595 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
7596 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
7597 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
7598 &quot;transactionalLogStorageState&quot;: &quot;A String&quot;, # Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
7599 },
7600 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
7601 &quot;connectionPoolConfig&quot;: { # The managed connection pooling configuration. # Optional. The managed connection pooling configuration for the instance.
7602 &quot;connectionPoolingEnabled&quot;: True or False, # Whether managed connection pooling is enabled.
7603 &quot;flags&quot;: [ # Optional. List of connection pool configuration flags.
7604 { # Connection pool flags for Cloud SQL instances managed connection pool configuration.
7605 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the flag.
7606 &quot;value&quot;: &quot;A String&quot;, # Required. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
7607 },
7608 ],
7609 &quot;poolerCount&quot;: 42, # Output only. Number of connection poolers.
7610 },
7611 &quot;connectorEnforcement&quot;: &quot;A String&quot;, # Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
7612 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
7613 &quot;dataApiAccess&quot;: &quot;A String&quot;, # This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
7614 &quot;dataCacheConfig&quot;: { # Data cache configurations. # Configuration for data cache.
7615 &quot;dataCacheEnabled&quot;: True or False, # Whether data cache is enabled for the instance.
7616 },
7617 &quot;dataDiskProvisionedIops&quot;: &quot;A String&quot;, # Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
7618 &quot;dataDiskProvisionedThroughput&quot;: &quot;A String&quot;, # Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
7619 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
7620 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
7621 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
7622 { # Database flags for Cloud SQL instances.
7623 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
7624 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn&#x27;t take a value.
7625 },
7626 ],
7627 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
7628 &quot;deletionProtectionEnabled&quot;: True or False, # Configuration to protect against accidental instance deletion.
7629 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
7630 { # Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
7631 &quot;endDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
7632 &quot;startDate&quot;: &quot;A String&quot;, # &quot;deny maintenance period&quot; start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
7633 &quot;time&quot;: &quot;A String&quot;, # Time in UTC when the &quot;deny maintenance period&quot; starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
7634 },
7635 ],
7636 &quot;edition&quot;: &quot;A String&quot;, # Optional. The edition type of the Cloud SQL instance.
7637 &quot;enableDataplexIntegration&quot;: True or False, # Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
7638 &quot;enableGoogleMlIntegration&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
7639 &quot;entraidConfig&quot;: { # SQL Server Entra ID configuration. # Optional. The Microsoft Entra ID configuration for the SQL Server instance.
7640 &quot;applicationId&quot;: &quot;A String&quot;, # Optional. The application ID for the Entra ID configuration.
7641 &quot;kind&quot;: &quot;A String&quot;, # Output only. This is always sql#sqlServerEntraIdConfig
7642 &quot;tenantId&quot;: &quot;A String&quot;, # Optional. The tenant ID for the Entra ID configuration.
7643 },
7644 &quot;finalBackupConfig&quot;: { # Config used to determine the final backup settings for the instance. # Optional. The final backup configuration for the instance.
7645 &quot;enabled&quot;: True or False, # Whether the final backup is enabled for the instance.
7646 &quot;retentionDays&quot;: 42, # The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
7647 },
7648 &quot;insightsConfig&quot;: { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres.
7649 &quot;enhancedQueryInsightsEnabled&quot;: True or False, # Optional. Whether enhanced query insights feature is enabled.
7650 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
7651 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
7652 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
7653 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
7654 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
7655 },
7656 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
7657 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip Cloud SQL instance. For example: &quot;google-managed-services-default&quot;. If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
7658 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance using the IP. In &#x27;CIDR&#x27; notation, also known as &#x27;slash&#x27; notation (for example: `157.197.200.0/24`).
7659 { # An entry for an Access Control list.
7660 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7661 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#aclEntry`.
7662 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
7663 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
7664 },
7665 ],
7666 &quot;customSubjectAlternativeNames&quot;: [ # Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
7667 &quot;A String&quot;,
7668 ],
7669 &quot;enablePrivatePathForGoogleCloudServices&quot;: True or False, # Controls connectivity to private IP instances from Google services, such as BigQuery.
7670 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
7671 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
7672 &quot;pscConfig&quot;: { # PSC settings for a Cloud SQL instance. # PSC settings for this instance.
7673 &quot;allowedConsumerProjects&quot;: [ # Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
7674 &quot;A String&quot;,
7675 ],
7676 &quot;networkAttachmentUri&quot;: &quot;A String&quot;, # Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
7677 &quot;pscAutoConnectionPolicyEnabled&quot;: True or False, # Optional. Whether to set up the PSC service connection policy automatically.
7678 &quot;pscAutoConnections&quot;: [ # Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
7679 { # Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
7680 &quot;consumerNetwork&quot;: &quot;A String&quot;, # Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project.
7681 &quot;consumerNetworkStatus&quot;: &quot;A String&quot;, # The connection policy status of the consumer network.
7682 &quot;consumerProject&quot;: &quot;A String&quot;, # Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
7683 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of the consumer endpoint.
7684 &quot;serviceConnectionPolicy&quot;: &quot;A String&quot;, # Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
7685 &quot;serviceConnectionPolicyCreationResult&quot;: &quot;A String&quot;, # Output only. The status of service connection policy creation.
7686 &quot;status&quot;: &quot;A String&quot;, # The connection status of the consumer endpoint.
7687 },
7688 ],
7689 &quot;pscAutoDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
7690 &quot;pscEnabled&quot;: True or False, # Whether PSC connectivity is enabled for this instance.
7691 &quot;pscWriteEndpointDnsEnabled&quot;: True or False, # Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
7692 },
7693 &quot;requireSsl&quot;: True or False, # Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won&#x27;t be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
7694 &quot;serverCaMode&quot;: &quot;A String&quot;, # Specify what type of CA is used for the server certificate.
7695 &quot;serverCaPool&quot;: &quot;A String&quot;, # Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
7696 &quot;serverCertificateRotationMode&quot;: &quot;A String&quot;, # Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
7697 &quot;sslMode&quot;: &quot;A String&quot;, # Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
7698 },
7699 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#settings`.
7700 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified. # The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances.
7701 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
7702 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#locationPreference`.
7703 &quot;secondaryZone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to &#x27;no_secondary_zone&#x27;.
7704 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
7705 },
7706 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes. # The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
7707 &quot;day&quot;: 42, # Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
7708 &quot;hour&quot;: 42, # Hour of day - 0 to 23. Specify in the UTC time zone.
7709 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#maintenanceWindow`.
7710 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
7711 },
7712 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access. # The local user password validation policy of the instance.
7713 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
7714 &quot;disallowCompromisedCredentials&quot;: True or False, # This field is deprecated and will be removed in a future version of the API.
7715 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
7716 &quot;enablePasswordPolicy&quot;: True or False, # Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
7717 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
7718 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
7719 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
7720 },
7721 &quot;performanceCaptureConfig&quot;: { # Performance capture configuration. # Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations.
7722 &quot;enabled&quot;: True or False, # Optional. Enables or disables the performance capture feature.
7723 &quot;probeThreshold&quot;: 42, # Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
7724 &quot;probingIntervalSeconds&quot;: 42, # Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
7725 &quot;runningThreadsThreshold&quot;: 42, # Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
7726 &quot;secondsBehindSourceThreshold&quot;: 42, # Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
7727 &quot;transactionDurationThreshold&quot;: 42, # Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
7728 },
7729 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
7730 &quot;readPoolAutoScaleConfig&quot;: { # The read pool auto-scale configuration. # Optional. The read pool auto-scale configuration for the instance.
7731 &quot;disableScaleIn&quot;: True or False, # Indicates whether read pool auto scaling supports scale in operations (removing nodes).
7732 &quot;enabled&quot;: True or False, # Indicates whether read pool auto scaling is enabled.
7733 &quot;maxNodeCount&quot;: 42, # Maximum number of read pool nodes to be maintained.
7734 &quot;minNodeCount&quot;: 42, # Minimum number of read pool nodes to be maintained.
7735 &quot;scaleInCooldownSeconds&quot;: 42, # The cooldown period for scale-in operations.
7736 &quot;scaleOutCooldownSeconds&quot;: 42, # The cooldown period for scale-out operations.
7737 &quot;targetMetrics&quot;: [ # Optional. Target metrics for read pool auto scaling.
7738 { # Target metric for read pool auto scaling.
7739 &quot;metric&quot;: &quot;A String&quot;, # The metric name to be used for auto scaling.
7740 &quot;targetValue&quot;: 3.14, # The target value for the metric.
7741 },
7742 ],
7743 },
7744 &quot;replicationLagMaxSeconds&quot;: 42, # Optional. Configuration value for recreation of replica after certain replication lag
7745 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
7746 &quot;retainBackupsOnDelete&quot;: True or False, # Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
7747 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
7748 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
7749 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
7750 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
7751 &quot;retentionInterval&quot;: &quot;A String&quot;, # How long to keep generated audit files.
7752 &quot;uploadInterval&quot;: &quot;A String&quot;, # How often to upload generated audit files.
7753 },
7754 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
7755 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
7756 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
7757 &quot;timeZone&quot;: &quot;A String&quot;, # Server timezone, relevant only for Cloud SQL for SQL Server.
7758 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
7759 &quot;a_key&quot;: &quot;A String&quot;,
7760 },
7761 },
7762 &quot;sqlNetworkArchitecture&quot;: &quot;A String&quot;,
7763 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
7764 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
7765 &quot;A String&quot;,
7766 ],
7767 &quot;switchTransactionLogsToCloudStorageEnabled&quot;: True or False, # Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
7768 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `&quot;&quot; : &quot;&quot;`. For example, a single resource can have the following tags: ``` &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;, ``` For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
7769 &quot;a_key&quot;: &quot;A String&quot;,
7770 },
7771 &quot;upgradableDatabaseVersions&quot;: [ # Output only. All database versions that are available for upgrade.
7772 { # An available database version. It can be a major or a minor version.
7773 &quot;displayName&quot;: &quot;A String&quot;, # The database version&#x27;s display name.
7774 &quot;majorVersion&quot;: &quot;A String&quot;, # The version&#x27;s major version name.
7775 &quot;name&quot;: &quot;A String&quot;, # The database version name. For MySQL 8.0, this string provides the database major and minor version.
7776 },
7777 ],
7778 &quot;writeEndpoint&quot;: &quot;A String&quot;, # Output only. The dns name of the primary instance in a replication group.
7779 }
7780
7781 x__xgafv: string, V1 error format.
7782 Allowed values
7783 1 - v1 error format
7784 2 - v2 error format
7785
7786 Returns:
7787 An object of the form:
7788
7789 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
7790 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
7791 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
7792 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
7793 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
7794 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
7795 },
7796 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
7797 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
7798 &quot;message&quot;: &quot;A String&quot;, # The warning message.
7799 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
7800 },
7801 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
7802 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
7803 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
7804 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
7805 },
7806 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7807 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
7808 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
7809 { # Database instance operation error.
7810 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
7811 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
7812 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
7813 },
7814 ],
7815 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
7816 },
7817 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
7818 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
7819 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
7820 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
7821 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
7822 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
7823 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
7824 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
7825 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
7826 },
7827 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
7828 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
7829 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
7830 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
7831 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
7832 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
7833 },
7834 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
7835 &quot;A String&quot;,
7836 ],
7837 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
7838 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
7839 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
7840 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
7841 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
7842 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
7843 },
7844 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
7845 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
7846 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
7847 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
7848 },
7849 &quot;schemaOnly&quot;: True or False, # Export only schemas.
7850 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
7851 &quot;A String&quot;,
7852 ],
7853 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
7854 },
7855 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
7856 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
7857 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
7858 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
7859 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
7860 },
7861 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
7862 },
7863 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
7864 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
7865 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
7866 &quot;encryptionOptions&quot;: {
7867 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
7868 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
7869 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
7870 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
7871 },
7872 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
7873 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
7874 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
7875 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
7876 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
7877 },
7878 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
7879 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
7880 &quot;A String&quot;,
7881 ],
7882 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
7883 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
7884 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
7885 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
7886 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
7887 },
7888 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
7889 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
7890 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
7891 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
7892 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
7893 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
7894 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
7895 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
7896 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
7897 },
7898 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
7899 },
7900 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
7901 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
7902 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
7903 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
7904 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
7905 },
7906 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
7907 },
7908 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7909 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
7910 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
7911 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
7912 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
7913 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
7914 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
7915 { # Structured PreCheckResponse containing message, type, and required actions.
7916 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
7917 &quot;A String&quot;,
7918 ],
7919 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
7920 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
7921 },
7922 ],
7923 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
7924 },
7925 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
7926 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
7927 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
7928 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
7929 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
7930 },
7931 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
7932 &quot;targetLink&quot;: &quot;A String&quot;,
7933 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
7934 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
7935 }</pre>
7936 </div>
7937
7938 </body></html>