blob: db4dec76ce2629348c896f4d2174b7a610c91fca [file] [log] [blame]
Craig Citroe633be12015-03-02 13:40:36 -08001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="sqladmin_v1beta4.html">Cloud SQL Admin API</a> . <a href="sqladmin_v1beta4.instances.html">instances</a></h1>
Craig Citroe633be12015-03-02 13:40:36 -080076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#addServerCa">addServerCa(project, instance, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Add 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.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#clone">clone(project, instance, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<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>
83<p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
Craig Citroe633be12015-03-02 13:40:36 -080086<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#delete">delete(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080088<p class="firstline">Deletes a Cloud SQL instance.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#demoteMaster">demoteMaster(project, instance, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#export">export(project, instance, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.</p>
Craig Citroe633be12015-03-02 13:40:36 -080095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#failover">failover(project, instance, body=None, x__xgafv=None)</a></code></p>
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -070097<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>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#get">get(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800100<p class="firstline">Retrieves a resource containing information about a Cloud SQL instance.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#import_">import_(project, instance, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103<p class="firstline">Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#insert">insert(project, body=None, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800106<p class="firstline">Creates a new Cloud SQL instance.</p>
107<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800108 <code><a href="#list">list(project, filter=None, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700109<p class="firstline">Lists instances under a given project.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#listServerCas">listServerCas(project, instance, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<p class="toc_element">
Craig Citroe633be12015-03-02 13:40:36 -0800114 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
115<p class="firstline">Retrieves the next page of results.</p>
116<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 <code><a href="#patch">patch(project, instance, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118<p class="firstline">Updates settings of a Cloud SQL instance. This method supports patch semantics.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800119<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code><a href="#promoteReplica">promoteReplica(project, instance, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121<p class="firstline">Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800122<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 <code><a href="#resetSslConfig">resetSslConfig(project, instance, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124<p class="firstline">Deletes all client certificates and generates a new server SSL certificate for the instance.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800125<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 <code><a href="#restart">restart(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800127<p class="firstline">Restarts a Cloud SQL instance.</p>
128<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700129 <code><a href="#restoreBackup">restoreBackup(project, instance, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700130<p class="firstline">Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800131<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700132 <code><a href="#rotateServerCa">rotateServerCa(project, instance, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700133<p class="firstline">Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 <code><a href="#startReplica">startReplica(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800136<p class="firstline">Starts the replication in the read replica instance.</p>
137<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700138 <code><a href="#stopReplica">stopReplica(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800139<p class="firstline">Stops the replication in the read replica instance.</p>
140<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700141 <code><a href="#truncateLog">truncateLog(project, instance, body=None, x__xgafv=None)</a></code></p>
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700142<p class="firstline">Truncate MySQL general and slow query log tables MySQL only.</p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800143<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 <code><a href="#update">update(project, instance, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145<p class="firstline">Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800146<h3>Method Details</h3>
147<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700148 <code class="details" id="addServerCa">addServerCa(project, instance, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700149 <pre>Add 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.
Craig Citroe633be12015-03-02 13:40:36 -0800150
151Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700152 project: string, Project ID of the project that contains the instance. (required)
153 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700154 x__xgafv: string, V1 error format.
155 Allowed values
156 1 - v1 error format
157 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800158
159Returns:
160 An object of the form:
161
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700162 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800163 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
164 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -0700165 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800166 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700167 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800168 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
169 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
170 { # Database instance operation error.
171 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -0700172 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800173 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
174 },
175 ],
yoshi-code-bot312da312021-09-21 00:22:28 -0700176 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800177 },
178 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -0700179 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700180 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
181 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
182 &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.
183 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800184 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800185 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800186 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800187 &quot;A String&quot;,
188 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800189 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700190 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 &quot;offload&quot;: True or False, # Option for export offload.
192 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
193 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800194 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800195 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800196 &quot;schemaOnly&quot;: True or False, # Export only schemas.
197 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800198 &quot;A String&quot;,
199 ],
200 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700201 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800202 },
203 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
204 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
205 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -0700206 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800207 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700208 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800209 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800210 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800211 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
212 &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.
213 &quot;A String&quot;,
214 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700215 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
216 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
217 &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.
218 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800219 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
220 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700221 &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. If **fileType** is **CSV**, one database must be specified.
222 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800223 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -0700224 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
225 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800226 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700227 &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**.
228 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800229 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700230 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800231 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -0700232 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800233 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800234 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
235 &quot;targetLink&quot;: &quot;A String&quot;,
236 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
237 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
238}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700239</div>
240
241<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700242 <code class="details" id="clone">clone(project, instance, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243 <pre>Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244
245Args:
246 project: string, Project ID of the source as well as the clone Cloud SQL instance. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700247 instance: string, The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700248 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700249 The object takes the form of:
250
251{ # Database instance clone request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800252 &quot;cloneContext&quot;: { # Database instance clone context. # Contains details about the clone operation.
253 &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.
254 &quot;binLogFileName&quot;: &quot;A String&quot;, # Name of the binary log file for a Cloud SQL instance.
255 &quot;binLogPosition&quot;: &quot;A String&quot;, # Position (offset) within the binary log file.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700256 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#binLogCoordinates**.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800258 &quot;destinationInstanceName&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance to be created as a clone.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700259 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#cloneContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800260 &quot;pitrTimestampMs&quot;: &quot;A String&quot;, # Reserved for future use.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700261 &quot;pointInTime&quot;: &quot;A String&quot;, # Timestamp, if specified, identifies the time to which the source instance is cloned.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800262 },
263}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264
Dan O'Mearadd494642020-05-01 07:42:23 -0700265 x__xgafv: string, V1 error format.
266 Allowed values
267 1 - v1 error format
268 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700269
270Returns:
271 An object of the form:
272
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700273 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800274 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
275 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -0700276 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800277 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700278 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800279 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
280 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
281 { # Database instance operation error.
282 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -0700283 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800284 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
285 },
286 ],
yoshi-code-bot312da312021-09-21 00:22:28 -0700287 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800288 },
289 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -0700290 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700291 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
292 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
293 &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.
294 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800295 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800296 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800297 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800298 &quot;A String&quot;,
299 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800300 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700301 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800302 &quot;offload&quot;: True or False, # Option for export offload.
303 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
304 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800305 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800306 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800307 &quot;schemaOnly&quot;: True or False, # Export only schemas.
308 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800309 &quot;A String&quot;,
310 ],
311 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700312 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800313 },
314 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
315 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
316 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -0700317 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800318 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700319 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800320 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800321 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800322 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
323 &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.
324 &quot;A String&quot;,
325 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700326 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
327 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
328 &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.
329 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800330 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
331 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700332 &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. If **fileType** is **CSV**, one database must be specified.
333 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800334 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -0700335 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
336 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800337 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700338 &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**.
339 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800340 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700341 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800342 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -0700343 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800344 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800345 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
346 &quot;targetLink&quot;: &quot;A String&quot;,
347 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
348 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
349}</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800350</div>
351
352<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700353 <code class="details" id="close">close()</code>
354 <pre>Close httplib2 connections.</pre>
355</div>
356
357<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700358 <code class="details" id="delete">delete(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -0800359 <pre>Deletes a Cloud SQL instance.
360
361Args:
362 project: string, Project ID of the project that contains the instance to be deleted. (required)
363 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700364 x__xgafv: string, V1 error format.
365 Allowed values
366 1 - v1 error format
367 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800368
369Returns:
370 An object of the form:
371
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700372 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800373 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
374 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -0700375 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800376 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700377 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800378 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
379 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
380 { # Database instance operation error.
381 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -0700382 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800383 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
384 },
385 ],
yoshi-code-bot312da312021-09-21 00:22:28 -0700386 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800387 },
388 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -0700389 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700390 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
391 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
392 &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.
393 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800394 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800395 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800396 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800397 &quot;A String&quot;,
398 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800399 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700400 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800401 &quot;offload&quot;: True or False, # Option for export offload.
402 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
403 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800404 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800405 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800406 &quot;schemaOnly&quot;: True or False, # Export only schemas.
407 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800408 &quot;A String&quot;,
409 ],
410 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700411 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800412 },
413 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
414 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
415 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -0700416 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800417 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700418 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800419 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800420 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800421 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
422 &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.
423 &quot;A String&quot;,
424 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700425 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
426 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
427 &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.
428 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800429 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
430 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700431 &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. If **fileType** is **CSV**, one database must be specified.
432 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800433 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -0700434 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
435 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800436 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700437 &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**.
438 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800439 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700440 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800441 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -0700442 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800443 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800444 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
445 &quot;targetLink&quot;: &quot;A String&quot;,
446 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
447 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
448}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700449</div>
450
451<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700452 <code class="details" id="demoteMaster">demoteMaster(project, instance, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700453 <pre>Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700454
455Args:
456 project: string, ID of the project that contains the instance. (required)
457 instance: string, Cloud SQL instance name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700458 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 The object takes the form of:
460
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700461{ # Database demote primary instance request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800462 &quot;demoteMasterContext&quot;: { # Database instance demote primary instance context. # Contains details about the demoteMaster operation.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700463 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#demoteMasterContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800464 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as on-premises primary instance in the replication setup.
465 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700466 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#demoteMasterConfiguration**.
467 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800468 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
469 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
470 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing 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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700471 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#demoteMasterMysqlReplicaConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800472 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
473 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800474 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700476 &quot;skipReplicationSetup&quot;: True or False, # Flag to skip replication setup on the instance.
yoshi-code-bot312da312021-09-21 00:22:28 -0700477 &quot;verifyGtidConsistency&quot;: True or False, # Verify GTID consistency for demote operation. Default value: **True**. Setting this flag to false enables you to bypass 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800478 },
479}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700480
Dan O'Mearadd494642020-05-01 07:42:23 -0700481 x__xgafv: string, V1 error format.
482 Allowed values
483 1 - v1 error format
484 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485
486Returns:
487 An object of the form:
488
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700489 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800490 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
491 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -0700492 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800493 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700494 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800495 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
496 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
497 { # Database instance operation error.
498 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -0700499 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800500 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
501 },
502 ],
yoshi-code-bot312da312021-09-21 00:22:28 -0700503 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800504 },
505 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -0700506 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700507 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
508 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
509 &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.
510 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800511 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800512 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800513 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800514 &quot;A String&quot;,
515 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800516 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700517 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800518 &quot;offload&quot;: True or False, # Option for export offload.
519 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
520 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800521 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800522 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800523 &quot;schemaOnly&quot;: True or False, # Export only schemas.
524 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800525 &quot;A String&quot;,
526 ],
527 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700528 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800529 },
530 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
531 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
532 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -0700533 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800534 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700535 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800536 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800537 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800538 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
539 &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.
540 &quot;A String&quot;,
541 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700542 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
543 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
544 &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.
545 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800546 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
547 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700548 &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. If **fileType** is **CSV**, one database must be specified.
549 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800550 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -0700551 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
552 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800553 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700554 &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**.
555 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800556 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700557 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800558 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -0700559 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800560 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800561 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
562 &quot;targetLink&quot;: &quot;A String&quot;,
563 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
564 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
565}</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800566</div>
567
568<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700569 <code class="details" id="export">export(project, instance, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700570 <pre>Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
Craig Citroe633be12015-03-02 13:40:36 -0800571
572Args:
573 project: string, Project ID of the project that contains the instance to be exported. (required)
574 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700575 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -0800576 The object takes the form of:
577
578{ # Database instance export request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800579 &quot;exportContext&quot;: { # Database instance export context. # Contains details about the export operation.
yoshi-code-bot312da312021-09-21 00:22:28 -0700580 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700581 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
582 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
583 &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.
584 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800585 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
586 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800587 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800588 &quot;A String&quot;,
589 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800590 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700591 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800592 &quot;offload&quot;: True or False, # Option for export offload.
593 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
594 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800595 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800596 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800597 &quot;schemaOnly&quot;: True or False, # Export only schemas.
598 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800599 &quot;A String&quot;,
600 ],
Craig Citroe633be12015-03-02 13:40:36 -0800601 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700602 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800603 },
604}
Craig Citroe633be12015-03-02 13:40:36 -0800605
Dan O'Mearadd494642020-05-01 07:42:23 -0700606 x__xgafv: string, V1 error format.
607 Allowed values
608 1 - v1 error format
609 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800610
611Returns:
612 An object of the form:
613
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700614 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800615 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
616 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -0700617 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800618 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700619 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800620 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
621 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
622 { # Database instance operation error.
623 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -0700624 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800625 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
626 },
627 ],
yoshi-code-bot312da312021-09-21 00:22:28 -0700628 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800629 },
630 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -0700631 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700632 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
633 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
634 &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.
635 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800636 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800637 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800638 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800639 &quot;A String&quot;,
640 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800641 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700642 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800643 &quot;offload&quot;: True or False, # Option for export offload.
644 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
645 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800646 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800647 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800648 &quot;schemaOnly&quot;: True or False, # Export only schemas.
649 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800650 &quot;A String&quot;,
651 ],
652 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700653 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800654 },
655 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
656 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
657 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -0700658 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800659 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700660 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800661 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800662 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800663 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
664 &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.
665 &quot;A String&quot;,
666 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700667 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
668 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
669 &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.
670 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800671 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
672 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700673 &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. If **fileType** is **CSV**, one database must be specified.
674 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800675 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -0700676 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
677 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800678 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700679 &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**.
680 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800681 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700682 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800683 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -0700684 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800685 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800686 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
687 &quot;targetLink&quot;: &quot;A String&quot;,
688 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
689 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
690}</pre>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800691</div>
692
693<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700694 <code class="details" id="failover">failover(project, instance, body=None, x__xgafv=None)</code>
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700695 <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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800696
697Args:
698 project: string, ID of the project that contains the read replica. (required)
699 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700700 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800701 The object takes the form of:
702
703{ # Instance failover request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800704 &quot;failoverContext&quot;: { # Database instance failover context. # Failover Context.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700705 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#failoverContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800706 &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.
707 },
708}
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800709
Dan O'Mearadd494642020-05-01 07:42:23 -0700710 x__xgafv: string, V1 error format.
711 Allowed values
712 1 - v1 error format
713 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800714
715Returns:
716 An object of the form:
717
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700718 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800719 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
720 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -0700721 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800722 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700723 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800724 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
725 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
726 { # Database instance operation error.
727 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -0700728 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800729 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
730 },
731 ],
yoshi-code-bot312da312021-09-21 00:22:28 -0700732 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800733 },
734 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -0700735 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700736 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
737 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
738 &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.
739 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800740 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800741 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800742 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800743 &quot;A String&quot;,
744 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800745 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700746 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800747 &quot;offload&quot;: True or False, # Option for export offload.
748 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
749 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800750 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800751 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800752 &quot;schemaOnly&quot;: True or False, # Export only schemas.
753 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800754 &quot;A String&quot;,
755 ],
756 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700757 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800758 },
759 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
760 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
761 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -0700762 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800763 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700764 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800765 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800766 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800767 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
768 &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.
769 &quot;A String&quot;,
770 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700771 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
772 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
773 &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.
774 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800775 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
776 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700777 &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. If **fileType** is **CSV**, one database must be specified.
778 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800779 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -0700780 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
781 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800782 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700783 &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**.
784 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800785 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700786 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800787 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -0700788 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800789 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800790 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
791 &quot;targetLink&quot;: &quot;A String&quot;,
792 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
793 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
794}</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800795</div>
796
797<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700798 <code class="details" id="get">get(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -0800799 <pre>Retrieves a resource containing information about a Cloud SQL instance.
800
801Args:
802 project: string, Project ID of the project that contains the instance. (required)
803 instance: string, Database instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700804 x__xgafv: string, V1 error format.
805 Allowed values
806 1 - v1 error format
807 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800808
809Returns:
810 An object of the form:
811
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700812 { # A Cloud SQL instance resource.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700813 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800814 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
yoshi-code-bot312da312021-09-21 00:22:28 -0700815 &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**.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700816 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800817 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The databaseInstalledVersion stores the current fully resolved database version running on the instance including minor version such as MYSQL_5_6_50
yoshi-code-bota41c7b92021-11-02 00:26:17 -0700818 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The **databaseVersion** field cannot be changed after instance creation.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700819 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -0700820 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800821 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
822 },
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700823 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -0700824 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionStatus**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800825 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
826 },
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700827 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700828 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800829 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700830 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800831 },
832 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800833 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800834 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
835 { # Database instance IP Mapping.
836 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
yoshi-code-bot312da312021-09-21 00:22:28 -0700837 &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.
838 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800839 },
840 ],
841 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700842 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#instance**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800843 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
844 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
845 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
846 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
847 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
848 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
849 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
850 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
851 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700852 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#onPremisesConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800853 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700854 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
855 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
856 &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.
857 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
858 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800859 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
860 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700861 &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
862 &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:
863 &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
yoshi-code-bot64143a02021-04-27 05:08:04 -0700864 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800865 &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.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700866 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be: * **us-central** (**FIRST_GEN** instances only) * **us-central1** (**SECOND_GEN** instances only) * **asia-east1** or **europe-west1**. Defaults to **us-central** or **us-central1** depending on the instance type. The region cannot be changed after instance creation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800867 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700868 &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.
869 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#replicaConfiguration**.
yoshi-code-bot312da312021-09-21 00:22:28 -0700870 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800871 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800872 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800873 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800874 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
875 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700876 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#mysqlReplicaConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800877 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
878 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
879 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
880 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
881 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800882 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800883 },
884 &quot;replicaNames&quot;: [ # The replicas of the instance.
885 &quot;A String&quot;,
886 ],
887 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700888 &quot;satisfiesPzs&quot;: True or False, # The status indicating if instance satisfiesPzs. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800889 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
890 &quot;canDefer&quot;: True or False,
891 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700892 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800893 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
894 },
895 &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. Reserved for future use.
896 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
897 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
898 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
899 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
900 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
yoshi-code-bot312da312021-09-21 00:22:28 -0700901 &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**.
902 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800903 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
yoshi-code-bot312da312021-09-21 00:22:28 -0700904 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#sslCert**.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800905 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800906 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
907 },
yoshi-code-bot50e1b7a2021-06-03 00:48:27 -0700908 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property is read-only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800909 &quot;settings&quot;: { # Database instance settings. # The user settings.
yoshi-code-bot312da312021-09-21 00:22:28 -0700910 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800911 &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.
912 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
913 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800914 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800915 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
916 &quot;A String&quot;,
917 ],
yoshi-code-bot312da312021-09-21 00:22:28 -0700918 &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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800919 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
920 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
921 &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.
922 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800923 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800924 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
925 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
yoshi-code-bot312da312021-09-21 00:22:28 -0700926 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800927 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
yoshi-code-bot1a4514d2021-07-13 00:20:24 -0700928 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # (Postgres only) Whether point in time recovery is enabled.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800929 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700930 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - **HH:MM**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800931 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800932 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800933 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
934 &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.
935 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
yoshi-code-bot312da312021-09-21 00:22:28 -0700936 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: **PD_SSD** (default) or **PD_HDD**. Not used for First Generation instances.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800937 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
938 { # Database flags for Cloud SQL instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -0700939 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700940 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn&#x27;t take a value.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800941 },
942 ],
943 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not.
944 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
945 { # Deny Maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
946 &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 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
947 &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
948 &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
949 },
950 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800951 &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.
952 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
yoshi-code-bota36e3b12021-07-27 00:20:26 -0700953 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700954 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more 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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800955 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
956 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
957 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700958 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800959 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip CloudSQL 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])?.`
yoshi-code-bot312da312021-09-21 00:22:28 -0700960 &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: **192.168.100.0/24**).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800961 { # An entry for an Access Control list.
yoshi-code-bot312da312021-09-21 00:22:28 -0700962 &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**.
963 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#aclEntry**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800964 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
965 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
966 },
967 ],
968 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
yoshi-code-bot312da312021-09-21 00:22:28 -0700969 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800970 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP are enforced or not.
971 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700972 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#settings**.
973 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800974 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -0700975 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#locationPreference**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800976 &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.). Reserved for future use.
977 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.).
978 },
979 &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.
980 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
981 &quot;hour&quot;: 42, # hour of day - 0 to 23.
yoshi-code-bot312da312021-09-21 00:22:28 -0700982 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#maintenanceWindow**.
983 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: **canary** (Earlier) or **stable** (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800984 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -0800985 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy # The local user password validation policy of the instance.
986 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
987 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
988 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
989 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed.
990 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
991 },
yoshi-code-bot312da312021-09-21 00:22:28 -0700992 &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.
993 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800994 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700995 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
996 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
997 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
998 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800999 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
1000 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001001 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example **db-custom-1-3840**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001002 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
1003 &quot;a_key&quot;: &quot;A String&quot;,
1004 },
1005 },
yoshi-code-bota41c7b92021-11-02 00:26:17 -07001006 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001007 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
1008 &quot;A String&quot;,
1009 ],
1010}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08001011</div>
1012
1013<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001014 <code class="details" id="import_">import_(project, instance, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001015 <pre>Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
Craig Citroe633be12015-03-02 13:40:36 -08001016
1017Args:
1018 project: string, Project ID of the project that contains the instance. (required)
1019 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001020 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08001021 The object takes the form of:
1022
1023{ # Database instance import request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001024 &quot;importContext&quot;: { # Database instance import context. # Contains details about the import operation.
1025 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1026 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07001027 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001028 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001029 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001030 },
Craig Citroe633be12015-03-02 13:40:36 -08001031 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001032 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1033 &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.
1034 &quot;A String&quot;,
1035 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001036 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1037 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1038 &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.
1039 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001040 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1041 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001042 &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. If **fileType** is **CSV**, one database must be specified.
1043 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001044 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07001045 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
1046 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001047 },
1048}
Craig Citroe633be12015-03-02 13:40:36 -08001049
Dan O'Mearadd494642020-05-01 07:42:23 -07001050 x__xgafv: string, V1 error format.
1051 Allowed values
1052 1 - v1 error format
1053 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08001054
1055Returns:
1056 An object of the form:
1057
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001058 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001059 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
1060 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07001061 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001062 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001063 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001064 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
1065 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1066 { # Database instance operation error.
1067 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07001068 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001069 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
1070 },
1071 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07001072 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001073 },
1074 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07001075 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001076 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1077 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1078 &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.
1079 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001080 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001081 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001082 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001083 &quot;A String&quot;,
1084 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001085 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001086 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001087 &quot;offload&quot;: True or False, # Option for export offload.
1088 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1089 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001090 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001091 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001092 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1093 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001094 &quot;A String&quot;,
1095 ],
1096 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001097 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001098 },
1099 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
1100 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1101 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07001102 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001103 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001104 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001105 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001106 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001107 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1108 &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.
1109 &quot;A String&quot;,
1110 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001111 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1112 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1113 &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.
1114 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001115 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1116 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001117 &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. If **fileType** is **CSV**, one database must be specified.
1118 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001119 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07001120 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
1121 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001122 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001123 &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**.
1124 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001125 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001126 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001127 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07001128 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001129 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001130 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
1131 &quot;targetLink&quot;: &quot;A String&quot;,
1132 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1133 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1134}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08001135</div>
1136
1137<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001138 <code class="details" id="insert">insert(project, body=None, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08001139 <pre>Creates a new Cloud SQL instance.
1140
1141Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001142 project: string, Project ID of the project to which the newly created Cloud SQL instances should belong. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001143 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08001144 The object takes the form of:
1145
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001146{ # A Cloud SQL instance resource.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001147 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001148 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
yoshi-code-bot312da312021-09-21 00:22:28 -07001149 &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**.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001150 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001151 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The databaseInstalledVersion stores the current fully resolved database version running on the instance including minor version such as MYSQL_5_6_50
yoshi-code-bota41c7b92021-11-02 00:26:17 -07001152 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The **databaseVersion** field cannot be changed after instance creation.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001153 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001154 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionConfiguration**.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001155 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
1156 },
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001157 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001158 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionStatus**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001159 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
1160 },
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001161 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001162 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001163 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001164 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001165 },
1166 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001167 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001168 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
1169 { # Database instance IP Mapping.
1170 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
yoshi-code-bot312da312021-09-21 00:22:28 -07001171 &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.
1172 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001173 },
1174 ],
1175 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001176 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#instance**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001177 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
1178 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001179 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001180 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
1181 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
1182 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
1183 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
1184 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
1185 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001186 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#onPremisesConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001187 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001188 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
1189 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
1190 &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.
1191 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
1192 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001193 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
1194 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001195 &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
1196 &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:
1197 &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
yoshi-code-bot64143a02021-04-27 05:08:04 -07001198 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001199 &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.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001200 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be: * **us-central** (**FIRST_GEN** instances only) * **us-central1** (**SECOND_GEN** instances only) * **asia-east1** or **europe-west1**. Defaults to **us-central** or **us-central1** depending on the instance type. The region cannot be changed after instance creation.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001201 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001202 &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.
1203 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#replicaConfiguration**.
yoshi-code-bot312da312021-09-21 00:22:28 -07001204 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001205 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001206 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
1207 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001208 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
1209 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001210 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#mysqlReplicaConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001211 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
1212 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
1213 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001214 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
1215 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001216 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001217 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001218 &quot;replicaNames&quot;: [ # The replicas of the instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001219 &quot;A String&quot;,
1220 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001221 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001222 &quot;satisfiesPzs&quot;: True or False, # The status indicating if instance satisfiesPzs. Reserved for future use.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001223 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001224 &quot;canDefer&quot;: True or False,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001225 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -07001226 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001227 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
1228 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001229 &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. Reserved for future use.
1230 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1231 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
1232 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
1233 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
1234 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
yoshi-code-bot312da312021-09-21 00:22:28 -07001235 &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**.
1236 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001237 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001238 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#sslCert**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001239 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1240 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
1241 },
yoshi-code-bot50e1b7a2021-06-03 00:48:27 -07001242 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property is read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001243 &quot;settings&quot;: { # Database instance settings. # The user settings.
yoshi-code-bot312da312021-09-21 00:22:28 -07001244 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001245 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001246 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001247 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001248 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001249 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001250 &quot;A String&quot;,
1251 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07001252 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001253 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
1254 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
1255 &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.
1256 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
1257 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001258 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001259 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
yoshi-code-bot312da312021-09-21 00:22:28 -07001260 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001261 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
yoshi-code-bot1a4514d2021-07-13 00:20:24 -07001262 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # (Postgres only) Whether point in time recovery is enabled.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001263 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001264 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - **HH:MM**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001265 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
1266 },
1267 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
1268 &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.
1269 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
yoshi-code-bot312da312021-09-21 00:22:28 -07001270 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: **PD_SSD** (default) or **PD_HDD**. Not used for First Generation instances.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001271 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
1272 { # Database flags for Cloud SQL instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001273 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001274 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn&#x27;t take a value.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001275 },
1276 ],
1277 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not.
1278 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
1279 { # Deny Maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
1280 &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 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
1281 &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
1282 &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
1283 },
1284 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001285 &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.
1286 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001287 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001288 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more 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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001289 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
1290 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
1291 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001292 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001293 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip CloudSQL 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])?.`
yoshi-code-bot312da312021-09-21 00:22:28 -07001294 &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: **192.168.100.0/24**).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001295 { # An entry for an Access Control list.
yoshi-code-bot312da312021-09-21 00:22:28 -07001296 &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**.
1297 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#aclEntry**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001298 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
1299 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
1300 },
1301 ],
1302 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
yoshi-code-bot312da312021-09-21 00:22:28 -07001303 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001304 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP are enforced or not.
1305 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001306 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#settings**.
1307 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001308 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001309 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#locationPreference**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001310 &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.). Reserved for future use.
1311 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001312 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001313 &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.
1314 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
1315 &quot;hour&quot;: 42, # hour of day - 0 to 23.
yoshi-code-bot312da312021-09-21 00:22:28 -07001316 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#maintenanceWindow**.
1317 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: **canary** (Earlier) or **stable** (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001318 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001319 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy # The local user password validation policy of the instance.
1320 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
1321 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
1322 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
1323 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed.
1324 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
1325 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001326 &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.
1327 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001328 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001329 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
1330 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
1331 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
1332 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001333 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001334 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001335 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example **db-custom-1-3840**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001336 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
1337 &quot;a_key&quot;: &quot;A String&quot;,
1338 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001339 },
yoshi-code-bota41c7b92021-11-02 00:26:17 -07001340 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001341 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
1342 &quot;A String&quot;,
1343 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001344}
Craig Citroe633be12015-03-02 13:40:36 -08001345
Dan O'Mearadd494642020-05-01 07:42:23 -07001346 x__xgafv: string, V1 error format.
1347 Allowed values
1348 1 - v1 error format
1349 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08001350
1351Returns:
1352 An object of the form:
1353
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001354 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001355 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
1356 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07001357 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001358 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001359 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001360 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
1361 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1362 { # Database instance operation error.
1363 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07001364 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001365 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
1366 },
1367 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07001368 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001369 },
1370 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07001371 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001372 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1373 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1374 &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.
1375 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001376 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001377 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001378 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001379 &quot;A String&quot;,
1380 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001381 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001382 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001383 &quot;offload&quot;: True or False, # Option for export offload.
1384 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1385 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001386 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001387 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001388 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1389 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001390 &quot;A String&quot;,
1391 ],
1392 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001393 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001394 },
1395 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
1396 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1397 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07001398 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001399 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001400 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001401 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001402 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001403 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1404 &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.
1405 &quot;A String&quot;,
1406 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001407 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1408 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1409 &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.
1410 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001411 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1412 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001413 &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. If **fileType** is **CSV**, one database must be specified.
1414 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001415 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07001416 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
1417 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001418 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001419 &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**.
1420 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001421 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001422 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001423 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07001424 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001425 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001426 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
1427 &quot;targetLink&quot;: &quot;A String&quot;,
1428 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1429 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1430}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08001431</div>
1432
1433<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001434 <code class="details" id="list">list(project, filter=None, maxResults=None, pageToken=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -07001435 <pre>Lists instances under a given project.
Craig Citroe633be12015-03-02 13:40:36 -08001436
1437Args:
1438 project: string, Project ID of the project for which to list Cloud SQL instances. (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001439 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001440 maxResults: integer, The maximum number of results to return per response.
1441 pageToken: string, A previously-returned page token representing part of the larger set of results to view.
Dan O'Mearadd494642020-05-01 07:42:23 -07001442 x__xgafv: string, V1 error format.
1443 Allowed values
1444 1 - v1 error format
1445 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08001446
1447Returns:
1448 An object of the form:
1449
1450 { # Database instances list response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001451 &quot;items&quot;: [ # List of database instance resources.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001452 { # A Cloud SQL instance resource.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001453 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001454 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
yoshi-code-bot312da312021-09-21 00:22:28 -07001455 &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**.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001456 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001457 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The databaseInstalledVersion stores the current fully resolved database version running on the instance including minor version such as MYSQL_5_6_50
yoshi-code-bota41c7b92021-11-02 00:26:17 -07001458 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The **databaseVersion** field cannot be changed after instance creation.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001459 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001460 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001461 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001462 },
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001463 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001464 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionStatus**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001465 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
1466 },
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001467 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001468 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001469 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001470 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001471 },
1472 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001473 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001474 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
1475 { # Database instance IP Mapping.
1476 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
yoshi-code-bot312da312021-09-21 00:22:28 -07001477 &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.
1478 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001479 },
1480 ],
1481 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001482 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#instance**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001483 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
1484 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
1485 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
1486 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
1487 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
1488 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
1489 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
1490 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
1491 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001492 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#onPremisesConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001493 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001494 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
1495 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
1496 &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.
1497 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
1498 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001499 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
1500 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001501 &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
1502 &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:
1503 &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
yoshi-code-bot64143a02021-04-27 05:08:04 -07001504 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001505 &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.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001506 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be: * **us-central** (**FIRST_GEN** instances only) * **us-central1** (**SECOND_GEN** instances only) * **asia-east1** or **europe-west1**. Defaults to **us-central** or **us-central1** depending on the instance type. The region cannot be changed after instance creation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001507 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001508 &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.
1509 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#replicaConfiguration**.
yoshi-code-bot312da312021-09-21 00:22:28 -07001510 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001511 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001512 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001513 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001514 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
1515 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001516 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#mysqlReplicaConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001517 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
1518 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
1519 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
1520 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
1521 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001522 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001523 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001524 &quot;replicaNames&quot;: [ # The replicas of the instance.
1525 &quot;A String&quot;,
1526 ],
1527 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001528 &quot;satisfiesPzs&quot;: True or False, # The status indicating if instance satisfiesPzs. Reserved for future use.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001529 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
1530 &quot;canDefer&quot;: True or False,
1531 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -07001532 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001533 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
1534 },
1535 &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. Reserved for future use.
1536 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1537 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
1538 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
1539 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
1540 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
yoshi-code-bot312da312021-09-21 00:22:28 -07001541 &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**.
1542 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001543 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001544 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#sslCert**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001545 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1546 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
1547 },
yoshi-code-bot50e1b7a2021-06-03 00:48:27 -07001548 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property is read-only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001549 &quot;settings&quot;: { # Database instance settings. # The user settings.
yoshi-code-bot312da312021-09-21 00:22:28 -07001550 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001551 &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.
1552 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
1553 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
1554 },
1555 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
1556 &quot;A String&quot;,
1557 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07001558 &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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001559 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
1560 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
1561 &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.
1562 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
1563 },
1564 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
1565 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
yoshi-code-bot312da312021-09-21 00:22:28 -07001566 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001567 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
yoshi-code-bot1a4514d2021-07-13 00:20:24 -07001568 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # (Postgres only) Whether point in time recovery is enabled.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001569 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001570 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - **HH:MM**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001571 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
1572 },
1573 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
1574 &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.
1575 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
yoshi-code-bot312da312021-09-21 00:22:28 -07001576 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: **PD_SSD** (default) or **PD_HDD**. Not used for First Generation instances.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001577 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
1578 { # Database flags for Cloud SQL instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001579 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001580 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn&#x27;t take a value.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001581 },
1582 ],
1583 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not.
1584 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
1585 { # Deny Maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
1586 &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 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
1587 &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
1588 &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
1589 },
1590 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001591 &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.
1592 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001593 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001594 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more 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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001595 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
1596 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
1597 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001598 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001599 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip CloudSQL 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])?.`
yoshi-code-bot312da312021-09-21 00:22:28 -07001600 &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: **192.168.100.0/24**).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001601 { # An entry for an Access Control list.
yoshi-code-bot312da312021-09-21 00:22:28 -07001602 &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**.
1603 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#aclEntry**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001604 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
1605 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
1606 },
1607 ],
1608 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
yoshi-code-bot312da312021-09-21 00:22:28 -07001609 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001610 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP are enforced or not.
1611 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001612 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#settings**.
1613 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001614 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001615 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#locationPreference**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001616 &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.). Reserved for future use.
1617 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.).
1618 },
1619 &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.
1620 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
1621 &quot;hour&quot;: 42, # hour of day - 0 to 23.
yoshi-code-bot312da312021-09-21 00:22:28 -07001622 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#maintenanceWindow**.
1623 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: **canary** (Earlier) or **stable** (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001624 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001625 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy # The local user password validation policy of the instance.
1626 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
1627 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
1628 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
1629 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed.
1630 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
1631 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001632 &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.
1633 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001634 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001635 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
1636 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
1637 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
1638 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001639 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
1640 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001641 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example **db-custom-1-3840**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001642 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
1643 &quot;a_key&quot;: &quot;A String&quot;,
1644 },
1645 },
yoshi-code-bota41c7b92021-11-02 00:26:17 -07001646 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001647 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
1648 &quot;A String&quot;,
1649 ],
1650 },
1651 ],
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001652 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#instancesList**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001653 &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.
1654 &quot;warnings&quot;: [ # List of warnings that occurred while handling the request.
1655 { # An Admin API warning message.
1656 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
1657 &quot;message&quot;: &quot;A String&quot;, # The warning message.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001658 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001659 },
1660 ],
1661}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001662</div>
1663
1664<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001665 <code class="details" id="listServerCas">listServerCas(project, instance, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001666 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001667
1668Args:
1669 project: string, Project ID of the project that contains the instance. (required)
1670 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001671 x__xgafv: string, V1 error format.
1672 Allowed values
1673 1 - v1 error format
1674 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001675
1676Returns:
1677 An object of the form:
1678
1679 { # Instances ListServerCas response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001680 &quot;activeVersion&quot;: &quot;A String&quot;,
1681 &quot;certs&quot;: [ # List of server CA certificates for the instance.
1682 { # SslCerts Resource
1683 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
1684 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
1685 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
yoshi-code-bot312da312021-09-21 00:22:28 -07001686 &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**.
1687 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001688 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001689 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#sslCert**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001690 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1691 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
1692 },
1693 ],
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001694 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#instancesListServerCas**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001695}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08001696</div>
1697
1698<div class="method">
1699 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1700 <pre>Retrieves the next page of results.
1701
1702Args:
1703 previous_request: The request for the previous page. (required)
1704 previous_response: The response from the request for the previous page. (required)
1705
1706Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001707 A request object that you can call &#x27;execute()&#x27; on to request the next
Craig Citroe633be12015-03-02 13:40:36 -08001708 page. Returns None if there are no more items in the collection.
1709 </pre>
1710</div>
1711
1712<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001713 <code class="details" id="patch">patch(project, instance, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001714 <pre>Updates settings of a Cloud SQL instance. This method supports patch semantics.
Craig Citroe633be12015-03-02 13:40:36 -08001715
1716Args:
1717 project: string, Project ID of the project that contains the instance. (required)
1718 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001719 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08001720 The object takes the form of:
1721
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001722{ # A Cloud SQL instance resource.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001723 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001724 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
yoshi-code-bot312da312021-09-21 00:22:28 -07001725 &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**.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001726 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001727 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The databaseInstalledVersion stores the current fully resolved database version running on the instance including minor version such as MYSQL_5_6_50
yoshi-code-bota41c7b92021-11-02 00:26:17 -07001728 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The **databaseVersion** field cannot be changed after instance creation.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001729 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001730 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionConfiguration**.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001731 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
1732 },
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001733 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001734 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionStatus**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001735 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
1736 },
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001737 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001738 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001739 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001740 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001741 },
1742 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001743 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001744 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
1745 { # Database instance IP Mapping.
1746 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
yoshi-code-bot312da312021-09-21 00:22:28 -07001747 &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.
1748 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001749 },
1750 ],
1751 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001752 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#instance**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001753 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
1754 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001755 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001756 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
1757 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
1758 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
1759 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
1760 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
1761 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001762 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#onPremisesConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001763 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001764 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
1765 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
1766 &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.
1767 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
1768 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001769 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
1770 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001771 &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
1772 &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:
1773 &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
yoshi-code-bot64143a02021-04-27 05:08:04 -07001774 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001775 &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.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001776 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be: * **us-central** (**FIRST_GEN** instances only) * **us-central1** (**SECOND_GEN** instances only) * **asia-east1** or **europe-west1**. Defaults to **us-central** or **us-central1** depending on the instance type. The region cannot be changed after instance creation.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001777 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001778 &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.
1779 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#replicaConfiguration**.
yoshi-code-bot312da312021-09-21 00:22:28 -07001780 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001781 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001782 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
1783 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001784 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
1785 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001786 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#mysqlReplicaConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001787 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
1788 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
1789 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001790 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
1791 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001792 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001793 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001794 &quot;replicaNames&quot;: [ # The replicas of the instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001795 &quot;A String&quot;,
1796 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001797 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001798 &quot;satisfiesPzs&quot;: True or False, # The status indicating if instance satisfiesPzs. Reserved for future use.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001799 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001800 &quot;canDefer&quot;: True or False,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001801 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -07001802 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001803 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
1804 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001805 &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. Reserved for future use.
1806 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1807 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
1808 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
1809 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
1810 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
yoshi-code-bot312da312021-09-21 00:22:28 -07001811 &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**.
1812 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001813 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07001814 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#sslCert**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001815 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1816 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
1817 },
yoshi-code-bot50e1b7a2021-06-03 00:48:27 -07001818 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property is read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001819 &quot;settings&quot;: { # Database instance settings. # The user settings.
yoshi-code-bot312da312021-09-21 00:22:28 -07001820 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001821 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001822 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001823 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001824 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001825 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001826 &quot;A String&quot;,
1827 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07001828 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001829 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
1830 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
1831 &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.
1832 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
1833 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001834 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001835 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
yoshi-code-bot312da312021-09-21 00:22:28 -07001836 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001837 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
yoshi-code-bot1a4514d2021-07-13 00:20:24 -07001838 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # (Postgres only) Whether point in time recovery is enabled.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001839 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001840 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - **HH:MM**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001841 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
1842 },
1843 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
1844 &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.
1845 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
yoshi-code-bot312da312021-09-21 00:22:28 -07001846 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: **PD_SSD** (default) or **PD_HDD**. Not used for First Generation instances.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001847 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
1848 { # Database flags for Cloud SQL instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001849 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001850 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn&#x27;t take a value.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001851 },
1852 ],
1853 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not.
1854 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
1855 { # Deny Maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
1856 &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 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
1857 &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
1858 &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
1859 },
1860 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001861 &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.
1862 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07001863 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001864 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more 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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001865 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
1866 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
1867 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001868 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001869 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip CloudSQL 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])?.`
yoshi-code-bot312da312021-09-21 00:22:28 -07001870 &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: **192.168.100.0/24**).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001871 { # An entry for an Access Control list.
yoshi-code-bot312da312021-09-21 00:22:28 -07001872 &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**.
1873 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#aclEntry**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001874 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
1875 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
1876 },
1877 ],
1878 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
yoshi-code-bot312da312021-09-21 00:22:28 -07001879 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001880 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP are enforced or not.
1881 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001882 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#settings**.
1883 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001884 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001885 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#locationPreference**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001886 &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.). Reserved for future use.
1887 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001888 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001889 &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.
1890 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
1891 &quot;hour&quot;: 42, # hour of day - 0 to 23.
yoshi-code-bot312da312021-09-21 00:22:28 -07001892 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#maintenanceWindow**.
1893 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: **canary** (Earlier) or **stable** (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001894 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001895 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy # The local user password validation policy of the instance.
1896 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
1897 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
1898 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
1899 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed.
1900 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
1901 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001902 &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.
1903 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001904 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001905 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
1906 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
1907 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
1908 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001909 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001910 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001911 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example **db-custom-1-3840**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001912 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
1913 &quot;a_key&quot;: &quot;A String&quot;,
1914 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001915 },
yoshi-code-bota41c7b92021-11-02 00:26:17 -07001916 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001917 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
1918 &quot;A String&quot;,
1919 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001920}
Craig Citroe633be12015-03-02 13:40:36 -08001921
Dan O'Mearadd494642020-05-01 07:42:23 -07001922 x__xgafv: string, V1 error format.
1923 Allowed values
1924 1 - v1 error format
1925 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08001926
1927Returns:
1928 An object of the form:
1929
yoshi-code-bota8b35b92021-03-31 13:33:30 -07001930 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001931 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
1932 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07001933 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001934 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001935 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001936 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
1937 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1938 { # Database instance operation error.
1939 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07001940 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001941 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
1942 },
1943 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07001944 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001945 },
1946 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07001947 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001948 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1949 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1950 &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.
1951 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001952 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001953 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001954 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001955 &quot;A String&quot;,
1956 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001957 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001958 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001959 &quot;offload&quot;: True or False, # Option for export offload.
1960 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1961 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001962 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001963 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001964 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1965 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001966 &quot;A String&quot;,
1967 ],
1968 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001969 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001970 },
1971 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
1972 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1973 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07001974 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001975 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07001976 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001977 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001978 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001979 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1980 &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.
1981 &quot;A String&quot;,
1982 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001983 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
1984 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
1985 &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.
1986 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001987 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1988 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001989 &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. If **fileType** is **CSV**, one database must be specified.
1990 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001991 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07001992 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
1993 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001994 },
yoshi-code-bot312da312021-09-21 00:22:28 -07001995 &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**.
1996 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001997 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07001998 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001999 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07002000 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002001 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002002 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
2003 &quot;targetLink&quot;: &quot;A String&quot;,
2004 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2005 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2006}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08002007</div>
2008
2009<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002010 <code class="details" id="promoteReplica">promoteReplica(project, instance, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002011 <pre>Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart.
Craig Citroe633be12015-03-02 13:40:36 -08002012
2013Args:
2014 project: string, ID of the project that contains the read replica. (required)
2015 instance: string, Cloud SQL read replica instance name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002016 x__xgafv: string, V1 error format.
2017 Allowed values
2018 1 - v1 error format
2019 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002020
2021Returns:
2022 An object of the form:
2023
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002024 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002025 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2026 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07002027 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002028 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002029 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002030 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2031 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2032 { # Database instance operation error.
2033 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07002034 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002035 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2036 },
2037 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07002038 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002039 },
2040 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07002041 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002042 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2043 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2044 &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.
2045 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002046 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002047 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002048 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002049 &quot;A String&quot;,
2050 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002051 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002052 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002053 &quot;offload&quot;: True or False, # Option for export offload.
2054 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2055 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002056 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002057 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002058 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2059 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002060 &quot;A String&quot;,
2061 ],
2062 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002063 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002064 },
2065 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2066 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2067 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07002068 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002069 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002070 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002071 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002072 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002073 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2074 &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.
2075 &quot;A String&quot;,
2076 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002077 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2078 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2079 &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.
2080 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002081 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2082 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002083 &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. If **fileType** is **CSV**, one database must be specified.
2084 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002085 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07002086 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
2087 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002088 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002089 &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**.
2090 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002091 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002092 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002093 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07002094 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002095 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002096 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
2097 &quot;targetLink&quot;: &quot;A String&quot;,
2098 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2099 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2100}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08002101</div>
2102
2103<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002104 <code class="details" id="resetSslConfig">resetSslConfig(project, instance, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002105 <pre>Deletes all client certificates and generates a new server SSL certificate for the instance.
Craig Citroe633be12015-03-02 13:40:36 -08002106
2107Args:
2108 project: string, Project ID of the project that contains the instance. (required)
2109 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002110 x__xgafv: string, V1 error format.
2111 Allowed values
2112 1 - v1 error format
2113 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002114
2115Returns:
2116 An object of the form:
2117
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002118 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002119 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2120 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07002121 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002122 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002123 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002124 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2125 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2126 { # Database instance operation error.
2127 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07002128 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002129 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2130 },
2131 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07002132 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002133 },
2134 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07002135 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002136 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2137 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2138 &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.
2139 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002140 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002141 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002142 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002143 &quot;A String&quot;,
2144 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002145 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002146 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002147 &quot;offload&quot;: True or False, # Option for export offload.
2148 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2149 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002150 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002151 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002152 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2153 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002154 &quot;A String&quot;,
2155 ],
2156 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002157 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002158 },
2159 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2160 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2161 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07002162 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002163 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002164 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002165 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002166 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002167 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2168 &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.
2169 &quot;A String&quot;,
2170 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002171 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2172 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2173 &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.
2174 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002175 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2176 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002177 &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. If **fileType** is **CSV**, one database must be specified.
2178 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002179 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07002180 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
2181 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002182 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002183 &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**.
2184 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002185 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002186 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002187 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07002188 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002189 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002190 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
2191 &quot;targetLink&quot;: &quot;A String&quot;,
2192 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2193 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2194}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08002195</div>
2196
2197<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002198 <code class="details" id="restart">restart(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08002199 <pre>Restarts a Cloud SQL instance.
2200
2201Args:
2202 project: string, Project ID of the project that contains the instance to be restarted. (required)
2203 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002204 x__xgafv: string, V1 error format.
2205 Allowed values
2206 1 - v1 error format
2207 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002208
2209Returns:
2210 An object of the form:
2211
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002212 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002213 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2214 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07002215 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002216 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002217 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002218 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2219 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2220 { # Database instance operation error.
2221 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07002222 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002223 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2224 },
2225 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07002226 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002227 },
2228 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07002229 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002230 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2231 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2232 &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.
2233 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002234 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002235 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002236 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002237 &quot;A String&quot;,
2238 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002239 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002240 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002241 &quot;offload&quot;: True or False, # Option for export offload.
2242 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2243 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002244 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002245 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002246 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2247 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002248 &quot;A String&quot;,
2249 ],
2250 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002251 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002252 },
2253 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2254 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2255 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07002256 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002257 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002258 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002259 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002260 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002261 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2262 &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.
2263 &quot;A String&quot;,
2264 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002265 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2266 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2267 &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.
2268 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002269 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2270 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002271 &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. If **fileType** is **CSV**, one database must be specified.
2272 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002273 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07002274 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
2275 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002276 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002277 &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**.
2278 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002279 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002280 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002281 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07002282 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002283 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002284 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
2285 &quot;targetLink&quot;: &quot;A String&quot;,
2286 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2287 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2288}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08002289</div>
2290
2291<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002292 <code class="details" id="restoreBackup">restoreBackup(project, instance, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002293 <pre>Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.
Craig Citroe633be12015-03-02 13:40:36 -08002294
2295Args:
2296 project: string, Project ID of the project that contains the instance. (required)
2297 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002298 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08002299 The object takes the form of:
2300
2301{ # Database instance restore backup request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002302 &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.
2303 &quot;backupRunId&quot;: &quot;A String&quot;, # The ID of the backup run to restore from.
2304 &quot;instanceId&quot;: &quot;A String&quot;, # The ID of the instance that the backup was taken from.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002305 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#restoreBackupContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002306 &quot;project&quot;: &quot;A String&quot;, # The full project ID of the source instance.
2307 },
2308}
Craig Citroe633be12015-03-02 13:40:36 -08002309
Dan O'Mearadd494642020-05-01 07:42:23 -07002310 x__xgafv: string, V1 error format.
2311 Allowed values
2312 1 - v1 error format
2313 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002314
2315Returns:
2316 An object of the form:
2317
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002318 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002319 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2320 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07002321 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002322 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002323 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002324 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2325 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2326 { # Database instance operation error.
2327 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07002328 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002329 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2330 },
2331 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07002332 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002333 },
2334 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07002335 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002336 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2337 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2338 &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.
2339 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002340 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002341 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002342 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002343 &quot;A String&quot;,
2344 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002345 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002346 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002347 &quot;offload&quot;: True or False, # Option for export offload.
2348 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2349 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002350 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002351 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002352 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2353 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002354 &quot;A String&quot;,
2355 ],
2356 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002357 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002358 },
2359 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2360 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2361 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07002362 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002363 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002364 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002365 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002366 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002367 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2368 &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.
2369 &quot;A String&quot;,
2370 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002371 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2372 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2373 &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.
2374 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002375 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2376 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002377 &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. If **fileType** is **CSV**, one database must be specified.
2378 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002379 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07002380 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
2381 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002382 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002383 &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**.
2384 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002385 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002386 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002387 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07002388 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002389 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002390 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
2391 &quot;targetLink&quot;: &quot;A String&quot;,
2392 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2393 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2394}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002395</div>
2396
2397<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002398 <code class="details" id="rotateServerCa">rotateServerCa(project, instance, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002399 <pre>Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002400
2401Args:
2402 project: string, Project ID of the project that contains the instance. (required)
2403 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002404 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002405 The object takes the form of:
2406
2407{ # Rotate Server CA request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002408 &quot;rotateServerCaContext&quot;: { # Instance rotate server CA context. # Contains details about the rotate server CA operation.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002409 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#rotateServerCaContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002410 &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.
2411 },
2412}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002413
Dan O'Mearadd494642020-05-01 07:42:23 -07002414 x__xgafv: string, V1 error format.
2415 Allowed values
2416 1 - v1 error format
2417 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002418
2419Returns:
2420 An object of the form:
2421
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002422 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002423 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2424 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07002425 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002426 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002427 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002428 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2429 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2430 { # Database instance operation error.
2431 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07002432 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002433 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2434 },
2435 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07002436 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002437 },
2438 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07002439 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002440 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2441 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2442 &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.
2443 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002444 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002445 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002446 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002447 &quot;A String&quot;,
2448 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002449 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002450 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002451 &quot;offload&quot;: True or False, # Option for export offload.
2452 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2453 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002454 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002455 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002456 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2457 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002458 &quot;A String&quot;,
2459 ],
2460 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002461 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002462 },
2463 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2464 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2465 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07002466 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002467 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002468 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002469 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002470 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002471 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2472 &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.
2473 &quot;A String&quot;,
2474 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002475 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2476 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2477 &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.
2478 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002479 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2480 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002481 &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. If **fileType** is **CSV**, one database must be specified.
2482 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002483 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07002484 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
2485 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002486 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002487 &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**.
2488 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002489 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002490 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002491 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07002492 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002493 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002494 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
2495 &quot;targetLink&quot;: &quot;A String&quot;,
2496 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2497 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2498}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08002499</div>
2500
2501<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002502 <code class="details" id="startReplica">startReplica(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08002503 <pre>Starts the replication in the read replica instance.
2504
2505Args:
2506 project: string, ID of the project that contains the read replica. (required)
2507 instance: string, Cloud SQL read replica instance name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002508 x__xgafv: string, V1 error format.
2509 Allowed values
2510 1 - v1 error format
2511 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002512
2513Returns:
2514 An object of the form:
2515
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002516 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002517 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2518 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07002519 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002520 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002521 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002522 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2523 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2524 { # Database instance operation error.
2525 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07002526 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002527 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2528 },
2529 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07002530 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002531 },
2532 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07002533 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002534 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2535 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2536 &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.
2537 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002538 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002539 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002540 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002541 &quot;A String&quot;,
2542 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002543 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002544 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002545 &quot;offload&quot;: True or False, # Option for export offload.
2546 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2547 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002548 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002549 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002550 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2551 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002552 &quot;A String&quot;,
2553 ],
2554 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002555 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002556 },
2557 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2558 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2559 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07002560 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002561 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002562 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002563 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002564 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002565 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2566 &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.
2567 &quot;A String&quot;,
2568 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002569 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2570 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2571 &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.
2572 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002573 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2574 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002575 &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. If **fileType** is **CSV**, one database must be specified.
2576 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002577 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07002578 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
2579 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002580 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002581 &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**.
2582 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002583 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002584 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002585 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07002586 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002587 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002588 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
2589 &quot;targetLink&quot;: &quot;A String&quot;,
2590 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2591 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2592}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08002593</div>
2594
2595<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002596 <code class="details" id="stopReplica">stopReplica(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08002597 <pre>Stops the replication in the read replica instance.
2598
2599Args:
2600 project: string, ID of the project that contains the read replica. (required)
2601 instance: string, Cloud SQL read replica instance name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002602 x__xgafv: string, V1 error format.
2603 Allowed values
2604 1 - v1 error format
2605 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002606
2607Returns:
2608 An object of the form:
2609
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002610 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002611 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2612 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07002613 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002614 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002615 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002616 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2617 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2618 { # Database instance operation error.
2619 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07002620 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002621 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2622 },
2623 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07002624 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002625 },
2626 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07002627 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002628 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2629 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2630 &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.
2631 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002632 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002633 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002634 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002635 &quot;A String&quot;,
2636 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002637 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002638 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002639 &quot;offload&quot;: True or False, # Option for export offload.
2640 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2641 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002642 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002643 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002644 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2645 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002646 &quot;A String&quot;,
2647 ],
2648 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002649 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002650 },
2651 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2652 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2653 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07002654 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002655 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002656 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002657 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002658 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002659 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2660 &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.
2661 &quot;A String&quot;,
2662 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002663 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2664 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2665 &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.
2666 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002667 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2668 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002669 &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. If **fileType** is **CSV**, one database must be specified.
2670 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002671 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07002672 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
2673 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002674 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002675 &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**.
2676 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002677 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002678 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002679 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07002680 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002681 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002682 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
2683 &quot;targetLink&quot;: &quot;A String&quot;,
2684 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2685 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2686}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08002687</div>
2688
2689<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002690 <code class="details" id="truncateLog">truncateLog(project, instance, body=None, x__xgafv=None)</code>
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002691 <pre>Truncate MySQL general and slow query log tables MySQL only.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002692
2693Args:
2694 project: string, Project ID of the Cloud SQL project. (required)
2695 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002696 body: object, The request body.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002697 The object takes the form of:
2698
2699{ # Instance truncate log request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002700 &quot;truncateLogContext&quot;: { # Database Instance truncate log context. # Contains details about the truncate log operation.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002701 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#truncateLogContext**.
2702 &quot;logType&quot;: &quot;A String&quot;, # The type of log to truncate. Valid values are **MYSQL_GENERAL_TABLE** and **MYSQL_SLOW_TABLE**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002703 },
2704}
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002705
Dan O'Mearadd494642020-05-01 07:42:23 -07002706 x__xgafv: string, V1 error format.
2707 Allowed values
2708 1 - v1 error format
2709 2 - v2 error format
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002710
2711Returns:
2712 An object of the form:
2713
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002714 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002715 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
2716 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07002717 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002718 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002719 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002720 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
2721 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2722 { # Database instance operation error.
2723 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07002724 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002725 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
2726 },
2727 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07002728 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002729 },
2730 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07002731 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002732 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2733 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2734 &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.
2735 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002736 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002737 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002738 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002739 &quot;A String&quot;,
2740 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002741 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002742 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002743 &quot;offload&quot;: True or False, # Option for export offload.
2744 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2745 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002746 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002747 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002748 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2749 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002750 &quot;A String&quot;,
2751 ],
2752 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002753 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002754 },
2755 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
2756 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2757 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07002758 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002759 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002760 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002761 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002762 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002763 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2764 &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.
2765 &quot;A String&quot;,
2766 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002767 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
2768 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
2769 &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.
2770 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002771 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2772 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002773 &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. If **fileType** is **CSV**, one database must be specified.
2774 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002775 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07002776 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
2777 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002778 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002779 &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**.
2780 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002781 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002782 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002783 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07002784 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002785 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002786 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
2787 &quot;targetLink&quot;: &quot;A String&quot;,
2788 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2789 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2790}</pre>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002791</div>
2792
2793<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002794 <code class="details" id="update">update(project, instance, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002795 <pre>Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.
Craig Citroe633be12015-03-02 13:40:36 -08002796
2797Args:
2798 project: string, Project ID of the project that contains the instance. (required)
2799 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002800 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08002801 The object takes the form of:
2802
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002803{ # A Cloud SQL instance resource.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002804 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002805 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
yoshi-code-bot312da312021-09-21 00:22:28 -07002806 &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**.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002807 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002808 &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The databaseInstalledVersion stores the current fully resolved database version running on the instance including minor version such as MYSQL_5_6_50
yoshi-code-bota41c7b92021-11-02 00:26:17 -07002809 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The **databaseVersion** field cannot be changed after instance creation.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07002810 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07002811 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionConfiguration**.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002812 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
2813 },
yoshi-code-bota36e3b12021-07-27 00:20:26 -07002814 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07002815 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#diskEncryptionStatus**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002816 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
2817 },
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002818 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07002819 &quot;failoverReplica&quot;: { # The name and status of the failover replica.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002820 &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.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07002821 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002822 },
2823 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002824 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002825 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
2826 { # Database instance IP Mapping.
2827 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
yoshi-code-bot312da312021-09-21 00:22:28 -07002828 &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.
2829 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002830 },
2831 ],
2832 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002833 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#instance**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002834 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as primary in the replication setup.
2835 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002836 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002837 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
2838 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
2839 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
2840 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
2841 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
2842 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002843 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#onPremisesConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002844 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002845 &quot;sourceInstance&quot;: { # Reference to another Cloud SQL instance. # The reference to Cloud SQL instance if the source is Cloud SQL.
2846 &quot;name&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance being referenced. This does not include the project ID.
2847 &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.
2848 &quot;region&quot;: &quot;A String&quot;, # The region of the Cloud SQL instance being referenced.
2849 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002850 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
2851 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002852 &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
2853 &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:
2854 &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
yoshi-code-bot64143a02021-04-27 05:08:04 -07002855 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002856 &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.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002857 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be: * **us-central** (**FIRST_GEN** instances only) * **us-central1** (**SECOND_GEN** instances only) * **asia-east1** or **europe-west1**. Defaults to **us-central** or **us-central1** depending on the instance type. The region cannot be changed after instance creation.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002858 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002859 &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.
2860 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#replicaConfiguration**.
yoshi-code-bot312da312021-09-21 00:22:28 -07002861 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002862 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002863 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s x509 certificate.
2864 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the replica&#x27;s private key. The corresponsing public key is encoded in the client&#x27;s certificate.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002865 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
2866 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002867 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#mysqlReplicaConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002868 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
2869 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
2870 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002871 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
2872 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002873 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002874 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002875 &quot;replicaNames&quot;: [ # The replicas of the instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002876 &quot;A String&quot;,
2877 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002878 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002879 &quot;satisfiesPzs&quot;: True or False, # The status indicating if instance satisfiesPzs. Reserved for future use.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002880 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002881 &quot;canDefer&quot;: True or False,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002882 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
yoshi-code-bot1a4514d2021-07-13 00:20:24 -07002883 &quot;scheduleDeadlineTime&quot;: &quot;A String&quot;, # Maintenance cannot be rescheduled to start beyond this deadline.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002884 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
2885 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002886 &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. Reserved for future use.
2887 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
2888 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
2889 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
2890 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
2891 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
yoshi-code-bot312da312021-09-21 00:22:28 -07002892 &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**.
2893 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002894 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
yoshi-code-bot312da312021-09-21 00:22:28 -07002895 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#sslCert**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002896 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
2897 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
2898 },
yoshi-code-bot50e1b7a2021-06-03 00:48:27 -07002899 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property is read-only.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002900 &quot;settings&quot;: { # Database instance settings. # The user settings.
yoshi-code-bot312da312021-09-21 00:22:28 -07002901 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002902 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002903 &quot;domain&quot;: &quot;A String&quot;, # The name of the domain (e.g., mydomain.com).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002904 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#activeDirectoryConfig.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002905 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002906 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002907 &quot;A String&quot;,
2908 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07002909 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002910 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
2911 &quot;backupRetentionSettings&quot;: { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings.
2912 &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.
2913 &quot;retentionUnit&quot;: &quot;A String&quot;, # The unit that &#x27;retained_backups&#x27; represents.
2914 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002915 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002916 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
yoshi-code-bot312da312021-09-21 00:22:28 -07002917 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupConfiguration**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002918 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
yoshi-code-bot1a4514d2021-07-13 00:20:24 -07002919 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # (Postgres only) Whether point in time recovery is enabled.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002920 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002921 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24 hour format - **HH:MM**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002922 &quot;transactionLogRetentionDays&quot;: 42, # The number of days of transaction logs we retain for point in time restore, from 1-7.
2923 },
2924 &quot;collation&quot;: &quot;A String&quot;, # The name of server Instance collation.
2925 &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.
2926 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB.
yoshi-code-bot312da312021-09-21 00:22:28 -07002927 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: **PD_SSD** (default) or **PD_HDD**. Not used for First Generation instances.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002928 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
2929 { # Database flags for Cloud SQL instances.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07002930 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002931 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn&#x27;t take a value.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002932 },
2933 ],
2934 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not.
2935 &quot;denyMaintenancePeriods&quot;: [ # Deny maintenance periods
2936 { # Deny Maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
2937 &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 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
2938 &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
2939 &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
2940 },
2941 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002942 &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.
2943 &quot;queryInsightsEnabled&quot;: True or False, # Whether Query Insights feature is enabled.
yoshi-code-bota36e3b12021-07-27 00:20:26 -07002944 &quot;queryPlansPerMinute&quot;: 42, # Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002945 &quot;queryStringLength&quot;: 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more 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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002946 &quot;recordApplicationTags&quot;: True or False, # Whether Query Insights will record application tags from query when enabled.
2947 &quot;recordClientAddress&quot;: True or False, # Whether Query Insights will record client address when enabled.
2948 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002949 &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.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002950 &quot;allocatedIpRange&quot;: &quot;A String&quot;, # The name of the allocated ip range for the private ip CloudSQL 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])?.`
yoshi-code-bot312da312021-09-21 00:22:28 -07002951 &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: **192.168.100.0/24**).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002952 { # An entry for an Access Control list.
yoshi-code-bot312da312021-09-21 00:22:28 -07002953 &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**.
2954 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#aclEntry**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002955 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
2956 &quot;value&quot;: &quot;A String&quot;, # The allowlisted value for the access control list.
2957 },
2958 ],
2959 &quot;ipv4Enabled&quot;: True or False, # Whether the instance is assigned a public IP address or not.
yoshi-code-bot312da312021-09-21 00:22:28 -07002960 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002961 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP are enforced or not.
2962 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002963 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#settings**.
2964 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002965 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002966 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#locationPreference**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002967 &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.). Reserved for future use.
2968 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002969 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002970 &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.
2971 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
2972 &quot;hour&quot;: 42, # hour of day - 0 to 23.
yoshi-code-bot312da312021-09-21 00:22:28 -07002973 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#maintenanceWindow**.
2974 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: **canary** (Earlier) or **stable** (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002975 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08002976 &quot;passwordValidationPolicy&quot;: { # Database instance local user password validation policy # The local user password validation policy of the instance.
2977 &quot;complexity&quot;: &quot;A String&quot;, # The complexity of the password.
2978 &quot;disallowUsernameSubstring&quot;: True or False, # Disallow username as a part of the password.
2979 &quot;minLength&quot;: 42, # Minimum number of characters allowed.
2980 &quot;passwordChangeInterval&quot;: &quot;A String&quot;, # Minimum interval after which the password can be changed.
2981 &quot;reuseInterval&quot;: 42, # Number of previous passwords that cannot be reused.
2982 },
yoshi-code-bot312da312021-09-21 00:22:28 -07002983 &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.
2984 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002985 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002986 &quot;sqlServerAuditConfig&quot;: { # SQL Server specific audit configuration. # SQL Server specific audit configuration.
2987 &quot;bucket&quot;: &quot;A String&quot;, # The name of the destination bucket (e.g., gs://mybucket).
2988 &quot;kind&quot;: &quot;A String&quot;, # This is always sql#sqlServerAuditConfig
2989 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002990 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is true.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002991 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07002992 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example **db-custom-1-3840**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002993 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a single key value pair.
2994 &quot;a_key&quot;: &quot;A String&quot;,
2995 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002996 },
yoshi-code-bota41c7b92021-11-02 00:26:17 -07002997 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002998 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
2999 &quot;A String&quot;,
3000 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003001}
Craig Citroe633be12015-03-02 13:40:36 -08003002
Dan O'Mearadd494642020-05-01 07:42:23 -07003003 x__xgafv: string, V1 error format.
3004 Allowed values
3005 1 - v1 error format
3006 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08003007
3008Returns:
3009 An object of the form:
3010
yoshi-code-bota8b35b92021-03-31 13:33:30 -07003011 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003012 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
3013 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
yoshi-code-bot312da312021-09-21 00:22:28 -07003014 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#backupContext**.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003015 },
yoshi-code-bot312da312021-09-21 00:22:28 -07003016 &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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003017 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
3018 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
3019 { # Database instance operation error.
3020 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
yoshi-code-bot312da312021-09-21 00:22:28 -07003021 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationError**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003022 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
3023 },
3024 ],
yoshi-code-bot312da312021-09-21 00:22:28 -07003025 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operationErrors**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003026 },
3027 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-bot312da312021-09-21 00:22:28 -07003028 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07003029 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
3030 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
3031 &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.
3032 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003033 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003034 },
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003035 &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:** You must specify one database to be exported. 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**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003036 &quot;A String&quot;,
3037 ],
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003038 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07003039 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#exportContext**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003040 &quot;offload&quot;: True or False, # Option for export offload.
3041 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
3042 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003043 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003044 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003045 &quot;schemaOnly&quot;: True or False, # Export only schemas.
3046 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003047 &quot;A String&quot;,
3048 ],
3049 },
yoshi-code-bot312da312021-09-21 00:22:28 -07003050 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003051 },
3052 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
3053 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
3054 &quot;encryptionOptions&quot;: {
yoshi-code-bot312da312021-09-21 00:22:28 -07003055 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003056 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
yoshi-code-bot1c9dcfd2021-10-12 00:20:31 -07003057 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003058 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003059 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003060 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
3061 &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.
3062 &quot;A String&quot;,
3063 ],
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07003064 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
3065 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
3066 &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.
3067 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003068 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
3069 },
yoshi-code-bot312da312021-09-21 00:22:28 -07003070 &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. If **fileType** is **CSV**, one database must be specified.
3071 &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. * **BAK**: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003072 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
yoshi-code-bot312da312021-09-21 00:22:28 -07003073 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#importContext**.
3074 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003075 },
yoshi-code-bot312da312021-09-21 00:22:28 -07003076 &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**.
3077 &quot;kind&quot;: &quot;A String&quot;, # This is always **sql#operation**.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003078 &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.
yoshi-code-bot312da312021-09-21 00:22:28 -07003079 &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**
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003080 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
yoshi-code-bot312da312021-09-21 00:22:28 -07003081 &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**.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08003082 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003083 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
3084 &quot;targetLink&quot;: &quot;A String&quot;,
3085 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
3086 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
3087}</pre>
Craig Citroe633be12015-03-02 13:40:36 -08003088</div>
3089
3090</body></html>