blob: 6d3ed1c7969206d4e4a67ce579bc4a0c6976ded7 [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>
79<p class="firstline">Add a new trusted Certificate Authority (CA) version for the specified</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>
82<p class="firstline">Creates a Cloud SQL instance as a clone of the source instance. Using this</p>
Craig Citroe633be12015-03-02 13:40:36 -080083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#delete">delete(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080085<p class="firstline">Deletes a Cloud SQL instance.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#demoteMaster">demoteMaster(project, instance, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Demotes the stand-alone instance to be a Cloud SQL read replica for an</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#export">export(project, instance, body=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL</p>
Craig Citroe633be12015-03-02 13:40:36 -080092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#failover">failover(project, instance, body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Failover the instance to its failover replica instance. Using this</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#get">get(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080097<p class="firstline">Retrieves a resource containing information about a Cloud SQL instance.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#import_">import_(project, instance, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Imports data into a Cloud SQL instance from a SQL dump or CSV file in</p>
Craig Citroe633be12015-03-02 13:40:36 -0800101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#insert">insert(project, body=None, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800103<p class="firstline">Creates a new Cloud SQL instance.</p>
104<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700105 <code><a href="#list">list(project, pageToken=None, maxResults=None, filter=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700106<p class="firstline">Lists instances under a given project.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#listServerCas">listServerCas(project, instance, x__xgafv=None)</a></code></p>
109<p class="firstline">Lists all of the trusted Certificate Authorities (CAs) for the specified</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Craig Citroe633be12015-03-02 13:40:36 -0800111 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
112<p class="firstline">Retrieves the next page of results.</p>
113<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code><a href="#patch">patch(project, instance, body=None, x__xgafv=None)</a></code></p>
115<p class="firstline">Updates settings of a Cloud SQL instance.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800116<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 <code><a href="#promoteReplica">promoteReplica(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800118<p class="firstline">Promotes the read replica instance to be a stand-alone Cloud SQL instance.</p>
119<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code><a href="#resetSslConfig">resetSslConfig(project, instance, x__xgafv=None)</a></code></p>
121<p class="firstline">Deletes all client certificates and generates a new server SSL certificate</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="#restart">restart(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800124<p class="firstline">Restarts a Cloud SQL instance.</p>
125<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 <code><a href="#restoreBackup">restoreBackup(project, instance, body=None, x__xgafv=None)</a></code></p>
127<p class="firstline">Restores a backup of a Cloud SQL instance. Using this operation might cause</p>
Craig Citroe633be12015-03-02 13:40:36 -0800128<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700129 <code><a href="#rotateServerCa">rotateServerCa(project, instance, body=None, x__xgafv=None)</a></code></p>
130<p class="firstline">Rotates the server certificate to one signed by the Certificate Authority</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700132 <code><a href="#startReplica">startReplica(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800133<p class="firstline">Starts the replication in the read replica instance.</p>
134<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 <code><a href="#stopReplica">stopReplica(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -0800136<p class="firstline">Stops 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="#truncateLog">truncateLog(project, instance, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800139<p class="firstline">Truncate MySQL general and slow query log tables</p>
140<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700141 <code><a href="#update">update(project, instance, body=None, x__xgafv=None)</a></code></p>
142<p class="firstline">Updates settings of a Cloud SQL instance. Using this operation might cause</p>
Craig Citroe633be12015-03-02 13:40:36 -0800143<h3>Method Details</h3>
144<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700145 <code class="details" id="addServerCa">addServerCa(project, instance, x__xgafv=None)</code>
146 <pre>Add a new trusted Certificate Authority (CA) version for the specified
147instance. Required to prepare for a certificate rotation. If a CA version
148was previously added but never used in a certificate rotation, this
149operation replaces that version. There cannot be more than one CA version
150waiting to be rotated in.
Craig Citroe633be12015-03-02 13:40:36 -0800151
152Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700153 project: string, Project ID of the project that contains the instance. (required)
154 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700155 x__xgafv: string, V1 error format.
156 Allowed values
157 1 - v1 error format
158 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800159
160Returns:
161 An object of the form:
162
Dan O'Mearadd494642020-05-01 07:42:23 -0700163 { # An Operation resource.&amp;nbsp;For successful operations that return an
164 # Operation resource, only the fields relevant to the operation are populated
165 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;targetLink&quot;: &quot;A String&quot;,
167 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
168 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
169 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
170 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
171 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
172 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
173 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
174 # populated.
175 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
176 { # Database instance operation error.
177 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
178 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
179 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700180 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 ],
182 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
183 },
184 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
185 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -0700187 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
188 # specify a database, and is overridden by any database specification in the
189 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
190 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
192 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
193 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700194 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
196 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
197 # write permissions to the bucket and read access to the file.
198 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
199 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
200 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 },
202 },
203 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700204 # &lt;code&gt;gs:
205 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
206 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
207 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
209 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700210 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
211 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
212 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
213 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
214 # of the database table are loaded with CSV data.
215 &quot;A String&quot;,
216 ],
217 },
Craig Citroe633be12015-03-02 13:40:36 -0800218 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
220 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
221 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
222 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -0700223 # identifier to retrieve the Operations resource that has information about
224 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700226 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
227 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
228 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
229 # stored. The URI is in the form &lt;code&gt;gs:
230 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
231 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
232 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
233 # // compressed.
234 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
235 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
236 },
237 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -0700239 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
240 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
241 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
242 # either by using this property or by using the
243 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
244 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
245 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
246 # this database must match the one specified in the
247 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -0800249 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
251 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -0700252 # you specify tables, specify one and only one database. For PostgreSQL
253 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -0800255 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700256 &quot;schemaOnly&quot;: True or False, # Export only schemas.
257 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
258 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -0700259 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
260 # a CHANGE MASTER TO statement with the binary log coordinates.
261 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
262 # a SQL comment, and has no effect.
263 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700265 },
266 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700268 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
269 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
270 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
271 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
272 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
273 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
274 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
275 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
276 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
277 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
278 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
279 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280 }</pre>
281</div>
282
283<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700284 <code class="details" id="clone">clone(project, instance, body=None, x__xgafv=None)</code>
285 <pre>Creates a Cloud SQL instance as a clone of the source instance. Using this
286operation might cause your instance to restart.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700287
288Args:
289 project: string, Project ID of the source as well as the clone Cloud SQL instance. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700290 instance: string, The ID of the Cloud SQL instance to be cloned (source). This does not
291include the project ID. (required)
292 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700293 The object takes the form of:
294
295{ # Database instance clone request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;cloneContext&quot;: { # Database instance clone context. # Contains details about the clone operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;pointInTime&quot;: &quot;A String&quot;, # Reserved for future use.
298 &quot;destinationInstanceName&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance to be created as a clone.
299 &quot;pitrTimestampMs&quot;: &quot;A String&quot;, # Reserved for future use.
300 &quot;binLogCoordinates&quot;: { # Binary log coordinates. # Binary log coordinates, if specified, identify the position up to which the
Dan O'Mearadd494642020-05-01 07:42:23 -0700301 # source instance should be cloned. If not specified, the source instance is
302 # cloned up to the most recent binary log coordinates.
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 &quot;binLogFileName&quot;: &quot;A String&quot;, # Name of the binary log file for a Cloud SQL instance.
304 &quot;binLogPosition&quot;: &quot;A String&quot;, # Position (offset) within the binary log file.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700305 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#binLogCoordinates&lt;/code&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700307 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#cloneContext&lt;/code&gt;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700308 },
309 }
310
Dan O'Mearadd494642020-05-01 07:42:23 -0700311 x__xgafv: string, V1 error format.
312 Allowed values
313 1 - v1 error format
314 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700315
316Returns:
317 An object of the form:
318
Dan O'Mearadd494642020-05-01 07:42:23 -0700319 { # An Operation resource.&amp;nbsp;For successful operations that return an
320 # Operation resource, only the fields relevant to the operation are populated
321 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 &quot;targetLink&quot;: &quot;A String&quot;,
323 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
324 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
325 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
326 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
327 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
328 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
329 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
330 # populated.
331 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
332 { # Database instance operation error.
333 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
334 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
335 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700336 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 ],
338 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
339 },
340 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
341 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -0700343 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
344 # specify a database, and is overridden by any database specification in the
345 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
346 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
348 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
349 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700350 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
352 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
353 # write permissions to the bucket and read access to the file.
354 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
355 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
356 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 },
358 },
359 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700360 # &lt;code&gt;gs:
361 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
362 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
363 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
365 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700366 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
367 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
368 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
369 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
370 # of the database table are loaded with CSV data.
371 &quot;A String&quot;,
372 ],
373 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
376 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
377 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
378 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -0700379 # identifier to retrieve the Operations resource that has information about
380 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700381 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700382 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
383 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
384 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
385 # stored. The URI is in the form &lt;code&gt;gs:
386 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
387 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
388 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
389 # // compressed.
390 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
391 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
392 },
393 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700394 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -0700395 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
396 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
397 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
398 # either by using this property or by using the
399 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
400 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
401 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
402 # this database must match the one specified in the
403 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700405 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
407 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -0700408 # you specify tables, specify one and only one database. For PostgreSQL
409 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700412 &quot;schemaOnly&quot;: True or False, # Export only schemas.
413 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
414 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -0700415 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
416 # a CHANGE MASTER TO statement with the binary log coordinates.
417 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
418 # a SQL comment, and has no effect.
419 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700420 },
Craig Citroe633be12015-03-02 13:40:36 -0800421 },
422 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700424 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
425 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
426 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
427 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
428 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
429 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
430 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
431 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
432 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
433 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
434 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
435 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -0800436 }</pre>
437</div>
438
439<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700440 <code class="details" id="delete">delete(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -0800441 <pre>Deletes a Cloud SQL instance.
442
443Args:
444 project: string, Project ID of the project that contains the instance to be deleted. (required)
445 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700446 x__xgafv: string, V1 error format.
447 Allowed values
448 1 - v1 error format
449 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800450
451Returns:
452 An object of the form:
453
Dan O'Mearadd494642020-05-01 07:42:23 -0700454 { # An Operation resource.&amp;nbsp;For successful operations that return an
455 # Operation resource, only the fields relevant to the operation are populated
456 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700457 &quot;targetLink&quot;: &quot;A String&quot;,
458 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
459 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
460 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
461 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
462 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
463 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
464 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
465 # populated.
466 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
467 { # Database instance operation error.
468 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
469 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
470 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700471 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 ],
473 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
474 },
475 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
476 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700477 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -0700478 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
479 # specify a database, and is overridden by any database specification in the
480 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
481 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700482 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
483 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
484 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700485 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
487 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
488 # write permissions to the bucket and read access to the file.
489 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
490 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
491 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 },
493 },
494 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700495 # &lt;code&gt;gs:
496 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
497 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
498 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700499 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
500 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700501 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
502 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
503 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
504 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
505 # of the database table are loaded with CSV data.
506 &quot;A String&quot;,
507 ],
508 },
Craig Citroe633be12015-03-02 13:40:36 -0800509 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700510 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
511 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
512 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
513 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -0700514 # identifier to retrieve the Operations resource that has information about
515 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700517 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
518 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
519 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
520 # stored. The URI is in the form &lt;code&gt;gs:
521 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
522 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
523 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
524 # // compressed.
525 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
526 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
527 },
528 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700529 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -0700530 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
531 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
532 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
533 # either by using this property or by using the
534 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
535 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
536 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
537 # this database must match the one specified in the
538 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700539 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -0800540 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700541 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
542 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -0700543 # you specify tables, specify one and only one database. For PostgreSQL
544 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -0800546 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 &quot;schemaOnly&quot;: True or False, # Export only schemas.
548 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
549 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -0700550 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
551 # a CHANGE MASTER TO statement with the binary log coordinates.
552 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
553 # a SQL comment, and has no effect.
554 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700555 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700556 },
557 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700559 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
560 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
561 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
562 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
563 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
564 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
565 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
566 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
567 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
568 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
569 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
570 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700571 }</pre>
572</div>
573
574<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700575 <code class="details" id="demoteMaster">demoteMaster(project, instance, body=None, x__xgafv=None)</code>
576 <pre>Demotes the stand-alone instance to be a Cloud SQL read replica for an
577external database server.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700578
579Args:
580 project: string, ID of the project that contains the instance. (required)
581 instance: string, Cloud SQL instance name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700582 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700583 The object takes the form of:
584
585{ # Database demote master request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 &quot;demoteMasterContext&quot;: { # Database instance demote master context. # Contains details about the demoteMaster operation.
587 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the on-premises master. # Configuration specific to read-replicas replicating from the on-premises
588 # master.
Bu Sun Kim65020912020-05-20 12:08:20 -0700589 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises
590 # master. Replication configuration information such as the username,
591 # password, certificates, and keys are not stored in the instance metadata.
592 # The configuration information is used only to set up the replication
593 # connection and is stored by MySQL in a file named &lt;code&gt;master.info&lt;/code&gt;
594 # in the data directory.
595 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#demoteMasterMysqlReplicaConfiguration&lt;/code&gt;.
596 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
597 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
598 # is encoded in the client&#x27;s certificate. The format of the slave&#x27;s private
599 # key can be either PKCS #1 or PKCS #8.
600 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
601 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
602 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
603 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700604 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#demoteMasterConfiguration&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700605 },
606 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#demoteMasterContext&lt;/code&gt;.
607 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as on-premises master in the
Dan O'Mearadd494642020-05-01 07:42:23 -0700608 # replication setup.
Bu Sun Kim65020912020-05-20 12:08:20 -0700609 &quot;verifyGtidConsistency&quot;: True or False, # Verify GTID consistency for demote operation. Default value:
Dan O'Mearadd494642020-05-01 07:42:23 -0700610 # &lt;code&gt;True&lt;/code&gt;. Second Generation instances only. Setting this flag to
611 # false enables you to bypass GTID consistency check between on-premises
612 # master and Cloud SQL instance during the demotion operation but also
613 # exposes you to the risk of future replication failures. Change the value
614 # only if you know the reason for the GTID divergence and are confident that
615 # doing so will not cause any replication issues.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700616 },
617 }
618
Dan O'Mearadd494642020-05-01 07:42:23 -0700619 x__xgafv: string, V1 error format.
620 Allowed values
621 1 - v1 error format
622 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700623
624Returns:
625 An object of the form:
626
Dan O'Mearadd494642020-05-01 07:42:23 -0700627 { # An Operation resource.&amp;nbsp;For successful operations that return an
628 # Operation resource, only the fields relevant to the operation are populated
629 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &quot;targetLink&quot;: &quot;A String&quot;,
631 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
632 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
633 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
634 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
635 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
636 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
637 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
638 # populated.
639 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
640 { # Database instance operation error.
641 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
642 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
643 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700644 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 ],
646 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
647 },
648 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
649 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -0700651 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
652 # specify a database, and is overridden by any database specification in the
653 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
654 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700655 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
656 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
657 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700658 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
660 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
661 # write permissions to the bucket and read access to the file.
662 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
663 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
664 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700665 },
666 },
667 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700668 # &lt;code&gt;gs:
669 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
670 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
671 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
673 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700674 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
675 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
676 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
677 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
678 # of the database table are loaded with CSV data.
679 &quot;A String&quot;,
680 ],
681 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700682 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700683 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
684 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
685 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
686 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -0700687 # identifier to retrieve the Operations resource that has information about
688 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700689 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700690 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
691 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
692 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
693 # stored. The URI is in the form &lt;code&gt;gs:
694 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
695 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
696 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
697 # // compressed.
698 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
699 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
700 },
701 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -0700703 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
704 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
705 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
706 # either by using this property or by using the
707 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
708 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
709 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
710 # this database must match the one specified in the
711 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700712 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700713 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
715 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -0700716 # you specify tables, specify one and only one database. For PostgreSQL
717 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700718 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700719 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700720 &quot;schemaOnly&quot;: True or False, # Export only schemas.
721 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
722 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -0700723 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
724 # a CHANGE MASTER TO statement with the binary log coordinates.
725 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
726 # a SQL comment, and has no effect.
727 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700728 },
Craig Citroe633be12015-03-02 13:40:36 -0800729 },
730 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700731 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700732 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
733 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
734 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
735 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
736 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
737 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
738 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
739 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
740 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
741 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
742 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
743 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -0800744 }</pre>
745</div>
746
747<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700748 <code class="details" id="export">export(project, instance, body=None, x__xgafv=None)</code>
749 <pre>Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL
750dump or CSV file.
Craig Citroe633be12015-03-02 13:40:36 -0800751
752Args:
753 project: string, Project ID of the project that contains the instance to be exported. (required)
754 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700755 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -0800756 The object takes the form of:
757
758{ # Database instance export request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700759 &quot;exportContext&quot;: { # Database instance export context. # Contains details about the export operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700760 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
761 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
762 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
763 # stored. The URI is in the form &lt;code&gt;gs:
764 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
765 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
766 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
767 # // compressed.
768 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
769 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
770 },
771 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -0700773 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
774 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
775 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
776 # either by using this property or by using the
777 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
778 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
779 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
780 # this database must match the one specified in the
781 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700782 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -0800783 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
785 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -0700786 # you specify tables, specify one and only one database. For PostgreSQL
787 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -0800789 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700790 &quot;schemaOnly&quot;: True or False, # Export only schemas.
791 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
792 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -0700793 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
794 # a CHANGE MASTER TO statement with the binary log coordinates.
795 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
796 # a SQL comment, and has no effect.
797 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700798 },
Craig Citroe633be12015-03-02 13:40:36 -0800799 },
800 },
801 }
802
Dan O'Mearadd494642020-05-01 07:42:23 -0700803 x__xgafv: string, V1 error format.
804 Allowed values
805 1 - v1 error format
806 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800807
808Returns:
809 An object of the form:
810
Dan O'Mearadd494642020-05-01 07:42:23 -0700811 { # An Operation resource.&amp;nbsp;For successful operations that return an
812 # Operation resource, only the fields relevant to the operation are populated
813 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700814 &quot;targetLink&quot;: &quot;A String&quot;,
815 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
816 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
817 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
818 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
819 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
820 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
821 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
822 # populated.
823 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
824 { # Database instance operation error.
825 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
826 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
827 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700828 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700829 ],
830 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
831 },
832 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
833 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -0700835 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
836 # specify a database, and is overridden by any database specification in the
837 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
838 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700839 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
840 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
841 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700842 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -0700843 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
844 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
845 # write permissions to the bucket and read access to the file.
846 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
847 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
848 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700849 },
850 },
851 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700852 # &lt;code&gt;gs:
853 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
854 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
855 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700856 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
857 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700858 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
859 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
860 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
861 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
862 # of the database table are loaded with CSV data.
863 &quot;A String&quot;,
864 ],
865 },
Craig Citroe633be12015-03-02 13:40:36 -0800866 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700867 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
868 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
869 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
870 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -0700871 # identifier to retrieve the Operations resource that has information about
872 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700873 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700874 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
875 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
876 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
877 # stored. The URI is in the form &lt;code&gt;gs:
878 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
879 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
880 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
881 # // compressed.
882 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
883 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
884 },
885 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700886 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -0700887 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
888 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
889 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
890 # either by using this property or by using the
891 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
892 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
893 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
894 # this database must match the one specified in the
895 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700896 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -0800897 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700898 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
899 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -0700900 # you specify tables, specify one and only one database. For PostgreSQL
901 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700902 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -0800903 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;schemaOnly&quot;: True or False, # Export only schemas.
905 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
906 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -0700907 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
908 # a CHANGE MASTER TO statement with the binary log coordinates.
909 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
910 # a SQL comment, and has no effect.
911 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700912 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800913 },
914 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700915 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700916 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
917 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
918 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
919 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
920 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
921 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
922 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
923 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
924 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
925 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
926 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
927 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800928 }</pre>
929</div>
930
931<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700932 <code class="details" id="failover">failover(project, instance, body=None, x__xgafv=None)</code>
933 <pre>Failover the instance to its failover replica instance. Using this
934operation might cause your instance to restart.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800935
936Args:
937 project: string, ID of the project that contains the read replica. (required)
938 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700939 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800940 The object takes the form of:
941
942{ # Instance failover request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 &quot;failoverContext&quot;: { # Database instance failover context. # Failover Context.
944 &quot;settingsVersion&quot;: &quot;A String&quot;, # The current settings version of this instance. Request will be rejected if
945 # this version doesn&#x27;t match the current settings version.
946 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#failoverContext&lt;/code&gt;.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800947 },
948 }
949
Dan O'Mearadd494642020-05-01 07:42:23 -0700950 x__xgafv: string, V1 error format.
951 Allowed values
952 1 - v1 error format
953 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800954
955Returns:
956 An object of the form:
957
Dan O'Mearadd494642020-05-01 07:42:23 -0700958 { # An Operation resource.&amp;nbsp;For successful operations that return an
959 # Operation resource, only the fields relevant to the operation are populated
960 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700961 &quot;targetLink&quot;: &quot;A String&quot;,
962 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
963 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
964 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
965 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
966 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
967 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
968 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
969 # populated.
970 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
971 { # Database instance operation error.
972 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
973 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
974 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700975 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700976 ],
977 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
978 },
979 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
980 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700981 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -0700982 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
983 # specify a database, and is overridden by any database specification in the
984 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
985 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700986 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
987 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
988 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700989 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -0700990 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
991 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
992 # write permissions to the bucket and read access to the file.
993 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
994 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
995 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700996 },
997 },
998 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700999 # &lt;code&gt;gs:
1000 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
1001 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
1002 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001003 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
1004 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001005 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
1006 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1007 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1008 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
1009 # of the database table are loaded with CSV data.
1010 &quot;A String&quot;,
1011 ],
1012 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001013 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001014 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
1015 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
1016 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
1017 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07001018 # identifier to retrieve the Operations resource that has information about
1019 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001020 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001021 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
1022 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
1023 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
1024 # stored. The URI is in the form &lt;code&gt;gs:
1025 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
1026 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
1027 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
1028 # // compressed.
1029 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
1030 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
1031 },
1032 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001033 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07001034 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
1035 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
1036 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
1037 # either by using this property or by using the
1038 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
1039 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
1040 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
1041 # this database must match the one specified in the
1042 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07001043 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001044 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001045 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1046 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07001047 # you specify tables, specify one and only one database. For PostgreSQL
1048 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07001049 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001050 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001051 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1052 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
1053 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07001054 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
1055 # a CHANGE MASTER TO statement with the binary log coordinates.
1056 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
1057 # a SQL comment, and has no effect.
1058 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001059 },
Craig Citroe633be12015-03-02 13:40:36 -08001060 },
1061 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001062 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001063 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
1064 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1065 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1066 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
1067 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1068 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1069 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
1070 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1071 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1072 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1073 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1074 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08001075 }</pre>
1076</div>
1077
1078<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001079 <code class="details" id="get">get(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08001080 <pre>Retrieves a resource containing information about a Cloud SQL instance.
1081
1082Args:
1083 project: string, Project ID of the project that contains the instance. (required)
1084 instance: string, Database instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001085 x__xgafv: string, V1 error format.
1086 Allowed values
1087 1 - v1 error format
1088 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08001089
1090Returns:
1091 An object of the form:
1092
1093 { # A Cloud SQL instance resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001094 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
1095 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
1096 # is encoded in the client&#x27;s certificate.
1097 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
1098 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
1099 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
1100 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
1101 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
1102 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#onPremisesConfiguration&lt;/code&gt;.
1103 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
1104 },
1105 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google
1106 # apps domain is prefixed if applicable.
1107 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property
1108 # is applicable only to Second Generation instances.
1109 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The &lt;code&gt;databaseVersion&lt;/code&gt;
1110 # field can not be changed after instance creation. MySQL Second Generation
1111 # instances: &lt;code&gt;MYSQL_5_7&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_6&lt;/code&gt;.
1112 # PostgreSQL instances: &lt;code&gt;POSTGRES_9_6&lt;/code&gt; (default) or
1113 # &lt;code&gt;POSTGRES_11 Beta&lt;/code&gt; MySQL First Generation
1114 # instances: &lt;code&gt;MYSQL_5_6&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_5&lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001115 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
1116 &quot;A String&quot;,
1117 ],
1118 &quot;settings&quot;: { # Database instance settings. # The user settings.
Bu Sun Kim65020912020-05-20 12:08:20 -07001119 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either &lt;code&gt;PER_USE&lt;/code&gt;
1120 # or &lt;code&gt;PACKAGE&lt;/code&gt;. Only &lt;code&gt;PER_USE&lt;/code&gt; is supported for Second
1121 # Generation instances.
1122 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is
1123 # true. Not used for First Generation instances.
1124 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased.
1125 # The default value is 0, which specifies that there is no limit. Not used
1126 # for First Generation instances.
1127 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. First Generation
1128 # instances only.
1129 &quot;A String&quot;,
1130 ],
1131 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example
1132 # &lt;code&gt;db-n1-standard-1&lt;/code&gt; (MySQL instances) or
1133 # &lt;code&gt;db-custom-1-3840&lt;/code&gt; (PostgreSQL instances). For MySQL instances,
1134 # this property determines whether the instance is First or Second
1135 # Generation. For more information, see &lt;a
1136 # href=&quot;/sql/docs/db_path/instance-settings&quot;&gt;Instance Settings&lt;/a&gt;.
1137 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB. Not used
1138 # for First Generation instances.
1139 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: &lt;code&gt;PD_SSD&lt;/code&gt; (default) or
1140 # &lt;code&gt;PD_HDD&lt;/code&gt;. Not used for First Generation instances.
1141 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
1142 # replication is enabled or not.
1143 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
1144 # database flags for crash-safe replication are enabled. This property is
1145 # only applicable to First Generation instances.
1146 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001147 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
1148 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
1149 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Reserved for future use.
1150 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24
1151 # hour format - &lt;code&gt;HH:MM&lt;/code&gt;.
1152 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#backupConfiguration&lt;/code&gt;.
1153 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001154 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is
1155 # disabled, binarylog must be disabled as well.
Bu Sun Kim65020912020-05-20 12:08:20 -07001156 },
1157 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a
1158 # single key value pair.
1159 &quot;a_key&quot;: &quot;A String&quot;,
1160 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001161 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either
1162 # &lt;code&gt;ASYNCHRONOUS&lt;/code&gt; or &lt;code&gt;SYNCHRONOUS&lt;/code&gt;. This property is
1163 # only applicable to First Generation instances.
1164 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#settings&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001165 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance should # The location preference settings. This allows the instance to be located as
1166 # near as possible to either an App Engine app or Compute Engine zone for
1167 # better performance. App Engine co-location is only applicable to First
1168 # Generation instances.
1169 # preferably be located, either in a specific Compute Engine zone, or
1170 # co-located with an App Engine application. Note that if the preferred
1171 # location is not available, the instance will be located as close as possible
1172 # within the region. Only one location may be specified.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001173 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#locationPreference&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001174 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (e.g. us-central1-a, us-central1-b,
1175 # etc.).
1176 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The AppEngine application to follow, it must be in the same region as the
1177 # Cloud SQL instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001178 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001179 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is
Dan O'Mearadd494642020-05-01 07:42:23 -07001180 # applicable only when the instance state is &lt;code&gt;RUNNABLE&lt;/code&gt;. Valid
1181 # values: &lt;br&gt;&lt;code&gt;ALWAYS&lt;/code&gt;: The instance is on, and remains so even in
1182 # the absence of connection requests. &lt;br&gt;&lt;code&gt;NEVER&lt;/code&gt;: The instance is
1183 # off; it is not activated, even if a connection request arrives.
1184 # &lt;br&gt;&lt;code&gt;ON_DEMAND&lt;/code&gt;: First Generation instances only. The instance
1185 # responds to incoming requests, and turns itself off when not in use.
1186 # Instances with &lt;code&gt;PER_USE&lt;/code&gt; pricing turn off after 15 minutes of
1187 # inactivity. Instances with &lt;code&gt;PER_PACKAGE&lt;/code&gt; pricing turn off after
1188 # 12 hours of inactivity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001189 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
1190 { # Database flags for Cloud SQL instances.
1191 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so
1192 # include both server options and system variables for MySQL. Flags should be
1193 # specified with underscores, not hyphens. For more information, see &lt;a
1194 # href=&quot;/sql/docs/mysql/flags&quot;&gt;Configuring Database Flags&lt;/a&gt; in the Cloud
1195 # SQL documentation.
1196 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans should be set to &lt;code&gt;on&lt;/code&gt; for true
1197 # and &lt;code&gt;off&lt;/code&gt; for false. This field must be omitted if the flag
1198 # doesn&#x27;t take a value.
1199 },
1200 ],
1201 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update
1202 # method to make sure concurrent updates are handled properly. During update,
1203 # use the most recent settingsVersion value for this instance and do not try
1204 # to update this value.
1205 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type (PostgreSQL and MySQL instances only). Potential values:
1206 # &lt;br&gt;&lt;code&gt;ZONAL&lt;/code&gt;: The instance serves data from only one zone.
1207 # Outages in that zone affect data accessibility. &lt;br&gt;&lt;code&gt;REGIONAL&lt;/code&gt;:
1208 # The instance can serve data from more than one zone in a region (it is
1209 # highly available). &lt;br&gt;For more information, see &lt;a
1210 # href=&quot;https://cloud.google.com/sql/docs/postgres/high-availability&quot;&gt;Overview
1211 # of the High Availability Configuration&lt;/a&gt;.
1212 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the
1213 # instance IP and manage which external networks can connect to the instance.
1214 # The IPv4 address cannot be disabled for Second Generation instances.
1215 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is
1216 # accessible for private IP. For example,
1217 # &lt;code&gt;/projects/myProject/global/networks/default&lt;/code&gt;. This setting can
1218 # be updated, but it cannot be removed after it is set.
1219 &quot;ipv4Enabled&quot;: True or False, # Whether the instance should be assigned an IP address or not.
1220 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance
1221 # using the IP. In &lt;a
1222 # href=&quot;http://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation&quot;&gt;CIDR
1223 # notation&lt;/a&gt;, also known as &#x27;slash&#x27; notation (e.g.
1224 # &lt;code&gt;192.168.100.0/24&lt;/code&gt;).
1225 { # An entry for an Access Control list.
1226 &quot;value&quot;: &quot;A String&quot;, # The whitelisted value for the access control list.
1227 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in &lt;a
1228 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1229 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1230 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
1231 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#aclEntry&lt;/code&gt;.
1232 },
1233 ],
1234 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP should be enforced or not.
1235 },
1236 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a v2 Cloud SQL instance should # The maintenance window for this instance. This specifies when the instance
1237 # can be restarted for maintenance purposes. Not used for First Generation
1238 # instances.
1239 # preferably be restarted for system maintenance purposes.
1240 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: &lt;code&gt;canary&lt;/code&gt; (Earlier) or
1241 # &lt;code&gt;stable&lt;/code&gt; (Later). &lt;br /&gt;&lt;a
1242 # href=&quot;/sql/docs/db_path/instance-settings#maintenance-timing-2ndgen&quot;&gt;
1243 # Learn more&lt;/a&gt;.
1244 &quot;hour&quot;: 42, # hour of day - 0 to 23.
1245 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
1246 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#maintenanceWindow&lt;/code&gt;.
1247 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001248 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001249 &quot;replicaNames&quot;: [ # The replicas of the instance.
1250 &quot;A String&quot;,
1251 ],
1252 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
1253 # Applies only to Second Generation instances.
1254 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionConfiguration&lt;/code&gt;.
1255 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
1256 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001257 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
1258 # API. Use the &lt;code&gt;settings.settingsVersion&lt;/code&gt; field instead.
1259 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001260 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
1261 &quot;canDefer&quot;: True or False,
1262 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
1263 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
1264 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001265 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001266 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in &lt;a
1267 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1268 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001269 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
1270 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
1271 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
1272 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#sslCert&lt;/code&gt;.
1273 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
1274 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in &lt;a
1275 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1276 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;
1277 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
1278 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001279 },
1280 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
1281 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
1282 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as master in the replication setup.
1283 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type. This can be one of the following.
1284 # &lt;br&gt;&lt;code&gt;CLOUD_SQL_INSTANCE&lt;/code&gt;: A Cloud SQL instance that is not
1285 # replicating from a master. &lt;br&gt;&lt;code&gt;ON_PREMISES_INSTANCE&lt;/code&gt;: An
1286 # instance running on the
1287 # customer&#x27;s premises. &lt;br&gt;&lt;code&gt;READ_REPLICA_INSTANCE&lt;/code&gt;: A Cloud SQL
1288 # instance configured as a read-replica.
1289 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This
1290 # value could be different from the zone that was specified when the instance
1291 # was created if the instance has failed over to its secondary zone.
1292 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been
1293 # deprecated. Users should use the
1294 # &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud
1295 # Monitoring API instead. Please see &lt;a
1296 # href=&quot;https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ&quot;&gt;this
1297 # announcement&lt;/a&gt; for details.
1298 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the master. # Configuration specific to failover replicas and read replicas.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001299 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises
1300 # master. Replication configuration information such as the username,
1301 # password, certificates, and keys are not stored in the instance metadata.
1302 # The configuration information is used only to set up the replication
1303 # connection and is stored by MySQL in a file named &lt;code&gt;master.info&lt;/code&gt;
1304 # in the data directory.
1305 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
1306 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the master&#x27;s Common Name value in the certificate
1307 # that it sends during the SSL handshake.
1308 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
1309 # is encoded in the client&#x27;s certificate.
1310 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
1311 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
1312 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the slave
1313 # instance is to be created. The URI is in the form gs:
1314 # //bucketName/fileName. Compressed gzip files (.gz) are also supported.
1315 # // Dumps should have the binlog co-ordinates from which replication should
1316 # // begin. This can be accomplished by setting --master-data to 1 when using
1317 # // mysqldump.
1318 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
1319 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
1320 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
1321 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
1322 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#mysqlReplicaConfiguration&lt;/code&gt;.
1323 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001324 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to
Dan O'Mearadd494642020-05-01 07:42:23 -07001325 # &lt;code&gt;true&lt;/code&gt; the replica will be designated as a failover replica. In
1326 # case the master instance fails, the replica instance will be promoted as
1327 # the new master instance. &lt;p&gt;Only one replica can be specified as failover
1328 # target, and the replica has to be in different zone with the master
1329 # instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001330 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#replicaConfiguration&lt;/code&gt;.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001331 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001332 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
1333 &quot;failoverReplica&quot;: { # The name and status of the failover replica. This property is applicable
1334 # only to Second Generation instances.
1335 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates
1336 # that the failover replica is out of sync. The master can only failover to
1337 # the failover replica when the status is true.
1338 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a
1339 # failover replica is created for the instance. The name
1340 # doesn&#x27;t include the project ID. This property is applicable only to
1341 # Second Generation instances.
1342 },
1343 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
1344 { # Database instance IP Mapping.
1345 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in &lt;a
1346 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1347 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;. This field is only available when
1348 # the IP is scheduled to be retired.
1349 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A &lt;code&gt;PRIMARY&lt;/code&gt; address is a public
1350 # address that can accept incoming connections. A &lt;code&gt;PRIVATE&lt;/code&gt;
1351 # address is a private address that can accept incoming connections. An
1352 # &lt;code&gt;OUTGOING&lt;/code&gt; address is the source address of connections
1353 # originating from the instance, if supported.
1354 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
1355 },
1356 ],
1357 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. This property is applicable only
1358 # to First Generation instances.
1359 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1360 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
1361 # Applies only to Second Generation instances.
1362 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
1363 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionStatus&lt;/code&gt;.
1364 },
1365 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#instance&lt;/code&gt;.
1366 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be &lt;code&gt;us-central&lt;/code&gt;
1367 # (&lt;code&gt;FIRST_GEN&lt;/code&gt; instances only), &lt;code&gt;us-central1&lt;/code&gt;
1368 # (&lt;code&gt;SECOND_GEN&lt;/code&gt; instances only), &lt;code&gt;asia-east1&lt;/code&gt; or
1369 # &lt;code&gt;europe-west1&lt;/code&gt;. Defaults to &lt;code&gt;us-central&lt;/code&gt; or
1370 # &lt;code&gt;us-central1&lt;/code&gt; depending on the instance type (First Generation
1371 # or Second Generation). The region can not be changed after instance
1372 # creation.
1373 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance. This can be one of the
1374 # following. &lt;br&gt;&lt;code&gt;RUNNABLE&lt;/code&gt;: The instance is running, or is ready
1375 # to run when accessed. &lt;br&gt;&lt;code&gt;SUSPENDED&lt;/code&gt;: The instance is not
1376 # available, for example due to problems with billing.
1377 # &lt;br&gt;&lt;code&gt;PENDING_CREATE&lt;/code&gt;: The instance is being created.
1378 # &lt;br&gt;&lt;code&gt;MAINTENANCE&lt;/code&gt;: The instance is down for maintenance.
1379 # &lt;br&gt;&lt;code&gt;FAILED&lt;/code&gt;: The instance creation failed.
1380 # &lt;br&gt;&lt;code&gt;UNKNOWN_STATE&lt;/code&gt;: The state of the instance is unknown.
1381 &quot;backendType&quot;: &quot;A String&quot;, # &lt;code&gt;FIRST_GEN&lt;/code&gt;: First Generation instance. MySQL only. &lt;br
1382 # /&gt;&lt;code&gt;SECOND_GEN&lt;/code&gt;: Second Generation instance or PostgreSQL
1383 # instance. &lt;br /&gt;&lt;code&gt;EXTERNAL&lt;/code&gt;: A database server that is not
1384 # managed by Google. &lt;br&gt;This property is read-only; use the
1385 # &lt;code&gt;tier&lt;/code&gt; property in the &lt;code&gt;settings&lt;/code&gt; object to determine
1386 # the database type and Second or First Generation.
Craig Citroe633be12015-03-02 13:40:36 -08001387 }</pre>
1388</div>
1389
1390<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001391 <code class="details" id="import_">import_(project, instance, body=None, x__xgafv=None)</code>
1392 <pre>Imports data into a Cloud SQL instance from a SQL dump or CSV file in
1393Cloud Storage.
Craig Citroe633be12015-03-02 13:40:36 -08001394
1395Args:
1396 project: string, Project ID of the project that contains the instance. (required)
1397 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001398 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08001399 The object takes the form of:
1400
1401{ # Database instance import request.
Bu Sun Kim65020912020-05-20 12:08:20 -07001402 &quot;importContext&quot;: { # Database instance import context. # Contains details about the import operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001403 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07001404 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
1405 # specify a database, and is overridden by any database specification in the
1406 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
1407 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001408 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
1409 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1410 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001411 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07001412 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
1413 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
1414 # write permissions to the bucket and read access to the file.
1415 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
1416 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
1417 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001418 },
1419 },
1420 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07001421 # &lt;code&gt;gs:
1422 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
1423 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
1424 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001425 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
1426 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001427 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
1428 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1429 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1430 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
1431 # of the database table are loaded with CSV data.
1432 &quot;A String&quot;,
1433 ],
1434 },
Craig Citroe633be12015-03-02 13:40:36 -08001435 },
1436 }
1437
Dan O'Mearadd494642020-05-01 07:42:23 -07001438 x__xgafv: string, V1 error format.
1439 Allowed values
1440 1 - v1 error format
1441 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08001442
1443Returns:
1444 An object of the form:
1445
Dan O'Mearadd494642020-05-01 07:42:23 -07001446 { # An Operation resource.&amp;nbsp;For successful operations that return an
1447 # Operation resource, only the fields relevant to the operation are populated
1448 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001449 &quot;targetLink&quot;: &quot;A String&quot;,
1450 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
1451 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
1452 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
1453 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
1454 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
1455 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
1456 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
1457 # populated.
1458 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1459 { # Database instance operation error.
1460 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
1461 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
1462 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07001463 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001464 ],
1465 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
1466 },
1467 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
1468 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07001470 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
1471 # specify a database, and is overridden by any database specification in the
1472 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
1473 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001474 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
1475 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1476 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001477 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
1479 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
1480 # write permissions to the bucket and read access to the file.
1481 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
1482 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
1483 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001484 },
1485 },
1486 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07001487 # &lt;code&gt;gs:
1488 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
1489 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
1490 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001491 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
1492 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001493 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
1494 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1495 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1496 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
1497 # of the database table are loaded with CSV data.
1498 &quot;A String&quot;,
1499 ],
1500 },
Craig Citroe633be12015-03-02 13:40:36 -08001501 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001502 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
1503 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
1504 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
1505 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07001506 # identifier to retrieve the Operations resource that has information about
1507 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001508 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001509 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
1510 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
1511 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
1512 # stored. The URI is in the form &lt;code&gt;gs:
1513 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
1514 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
1515 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
1516 # // compressed.
1517 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
1518 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
1519 },
1520 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001521 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07001522 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
1523 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
1524 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
1525 # either by using this property or by using the
1526 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
1527 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
1528 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
1529 # this database must match the one specified in the
1530 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07001531 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08001532 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001533 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1534 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07001535 # you specify tables, specify one and only one database. For PostgreSQL
1536 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07001537 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08001538 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001539 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1540 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
1541 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07001542 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
1543 # a CHANGE MASTER TO statement with the binary log coordinates.
1544 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
1545 # a SQL comment, and has no effect.
1546 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001547 },
Craig Citroe633be12015-03-02 13:40:36 -08001548 },
1549 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001550 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001551 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
1552 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1553 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1554 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
1555 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1556 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1557 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
1558 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1559 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1560 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1561 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1562 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08001563 }</pre>
1564</div>
1565
1566<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001567 <code class="details" id="insert">insert(project, body=None, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08001568 <pre>Creates a new Cloud SQL instance.
1569
1570Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001571 project: string, Project ID of the project to which the newly created Cloud SQL instances
1572should belong. (required)
1573 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08001574 The object takes the form of:
1575
1576{ # A Cloud SQL instance resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001577 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
1578 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
1579 # is encoded in the client&#x27;s certificate.
1580 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
1581 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
1582 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
1583 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
1584 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
1585 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#onPremisesConfiguration&lt;/code&gt;.
1586 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
1587 },
1588 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google
1589 # apps domain is prefixed if applicable.
1590 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property
1591 # is applicable only to Second Generation instances.
1592 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The &lt;code&gt;databaseVersion&lt;/code&gt;
1593 # field can not be changed after instance creation. MySQL Second Generation
1594 # instances: &lt;code&gt;MYSQL_5_7&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_6&lt;/code&gt;.
1595 # PostgreSQL instances: &lt;code&gt;POSTGRES_9_6&lt;/code&gt; (default) or
1596 # &lt;code&gt;POSTGRES_11 Beta&lt;/code&gt; MySQL First Generation
1597 # instances: &lt;code&gt;MYSQL_5_6&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_5&lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001598 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
1599 &quot;A String&quot;,
1600 ],
1601 &quot;settings&quot;: { # Database instance settings. # The user settings.
Bu Sun Kim65020912020-05-20 12:08:20 -07001602 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either &lt;code&gt;PER_USE&lt;/code&gt;
1603 # or &lt;code&gt;PACKAGE&lt;/code&gt;. Only &lt;code&gt;PER_USE&lt;/code&gt; is supported for Second
1604 # Generation instances.
1605 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is
1606 # true. Not used for First Generation instances.
1607 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased.
1608 # The default value is 0, which specifies that there is no limit. Not used
1609 # for First Generation instances.
1610 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. First Generation
1611 # instances only.
1612 &quot;A String&quot;,
1613 ],
1614 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example
1615 # &lt;code&gt;db-n1-standard-1&lt;/code&gt; (MySQL instances) or
1616 # &lt;code&gt;db-custom-1-3840&lt;/code&gt; (PostgreSQL instances). For MySQL instances,
1617 # this property determines whether the instance is First or Second
1618 # Generation. For more information, see &lt;a
1619 # href=&quot;/sql/docs/db_path/instance-settings&quot;&gt;Instance Settings&lt;/a&gt;.
1620 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB. Not used
1621 # for First Generation instances.
1622 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: &lt;code&gt;PD_SSD&lt;/code&gt; (default) or
1623 # &lt;code&gt;PD_HDD&lt;/code&gt;. Not used for First Generation instances.
1624 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
1625 # replication is enabled or not.
1626 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
1627 # database flags for crash-safe replication are enabled. This property is
1628 # only applicable to First Generation instances.
1629 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001630 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
1631 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
1632 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Reserved for future use.
1633 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24
1634 # hour format - &lt;code&gt;HH:MM&lt;/code&gt;.
1635 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#backupConfiguration&lt;/code&gt;.
1636 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001637 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is
1638 # disabled, binarylog must be disabled as well.
Bu Sun Kim65020912020-05-20 12:08:20 -07001639 },
1640 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a
1641 # single key value pair.
1642 &quot;a_key&quot;: &quot;A String&quot;,
1643 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001644 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either
1645 # &lt;code&gt;ASYNCHRONOUS&lt;/code&gt; or &lt;code&gt;SYNCHRONOUS&lt;/code&gt;. This property is
1646 # only applicable to First Generation instances.
1647 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#settings&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001648 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance should # The location preference settings. This allows the instance to be located as
1649 # near as possible to either an App Engine app or Compute Engine zone for
1650 # better performance. App Engine co-location is only applicable to First
1651 # Generation instances.
1652 # preferably be located, either in a specific Compute Engine zone, or
1653 # co-located with an App Engine application. Note that if the preferred
1654 # location is not available, the instance will be located as close as possible
1655 # within the region. Only one location may be specified.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001656 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#locationPreference&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001657 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (e.g. us-central1-a, us-central1-b,
1658 # etc.).
1659 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The AppEngine application to follow, it must be in the same region as the
1660 # Cloud SQL instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001661 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001662 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is
Dan O'Mearadd494642020-05-01 07:42:23 -07001663 # applicable only when the instance state is &lt;code&gt;RUNNABLE&lt;/code&gt;. Valid
1664 # values: &lt;br&gt;&lt;code&gt;ALWAYS&lt;/code&gt;: The instance is on, and remains so even in
1665 # the absence of connection requests. &lt;br&gt;&lt;code&gt;NEVER&lt;/code&gt;: The instance is
1666 # off; it is not activated, even if a connection request arrives.
1667 # &lt;br&gt;&lt;code&gt;ON_DEMAND&lt;/code&gt;: First Generation instances only. The instance
1668 # responds to incoming requests, and turns itself off when not in use.
1669 # Instances with &lt;code&gt;PER_USE&lt;/code&gt; pricing turn off after 15 minutes of
1670 # inactivity. Instances with &lt;code&gt;PER_PACKAGE&lt;/code&gt; pricing turn off after
1671 # 12 hours of inactivity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001672 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
1673 { # Database flags for Cloud SQL instances.
1674 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so
1675 # include both server options and system variables for MySQL. Flags should be
1676 # specified with underscores, not hyphens. For more information, see &lt;a
1677 # href=&quot;/sql/docs/mysql/flags&quot;&gt;Configuring Database Flags&lt;/a&gt; in the Cloud
1678 # SQL documentation.
1679 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans should be set to &lt;code&gt;on&lt;/code&gt; for true
1680 # and &lt;code&gt;off&lt;/code&gt; for false. This field must be omitted if the flag
1681 # doesn&#x27;t take a value.
1682 },
1683 ],
1684 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update
1685 # method to make sure concurrent updates are handled properly. During update,
1686 # use the most recent settingsVersion value for this instance and do not try
1687 # to update this value.
1688 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type (PostgreSQL and MySQL instances only). Potential values:
1689 # &lt;br&gt;&lt;code&gt;ZONAL&lt;/code&gt;: The instance serves data from only one zone.
1690 # Outages in that zone affect data accessibility. &lt;br&gt;&lt;code&gt;REGIONAL&lt;/code&gt;:
1691 # The instance can serve data from more than one zone in a region (it is
1692 # highly available). &lt;br&gt;For more information, see &lt;a
1693 # href=&quot;https://cloud.google.com/sql/docs/postgres/high-availability&quot;&gt;Overview
1694 # of the High Availability Configuration&lt;/a&gt;.
1695 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the
1696 # instance IP and manage which external networks can connect to the instance.
1697 # The IPv4 address cannot be disabled for Second Generation instances.
1698 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is
1699 # accessible for private IP. For example,
1700 # &lt;code&gt;/projects/myProject/global/networks/default&lt;/code&gt;. This setting can
1701 # be updated, but it cannot be removed after it is set.
1702 &quot;ipv4Enabled&quot;: True or False, # Whether the instance should be assigned an IP address or not.
1703 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance
1704 # using the IP. In &lt;a
1705 # href=&quot;http://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation&quot;&gt;CIDR
1706 # notation&lt;/a&gt;, also known as &#x27;slash&#x27; notation (e.g.
1707 # &lt;code&gt;192.168.100.0/24&lt;/code&gt;).
1708 { # An entry for an Access Control list.
1709 &quot;value&quot;: &quot;A String&quot;, # The whitelisted value for the access control list.
1710 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in &lt;a
1711 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1712 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1713 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
1714 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#aclEntry&lt;/code&gt;.
1715 },
1716 ],
1717 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP should be enforced or not.
1718 },
1719 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a v2 Cloud SQL instance should # The maintenance window for this instance. This specifies when the instance
1720 # can be restarted for maintenance purposes. Not used for First Generation
1721 # instances.
1722 # preferably be restarted for system maintenance purposes.
1723 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: &lt;code&gt;canary&lt;/code&gt; (Earlier) or
1724 # &lt;code&gt;stable&lt;/code&gt; (Later). &lt;br /&gt;&lt;a
1725 # href=&quot;/sql/docs/db_path/instance-settings#maintenance-timing-2ndgen&quot;&gt;
1726 # Learn more&lt;/a&gt;.
1727 &quot;hour&quot;: 42, # hour of day - 0 to 23.
1728 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
1729 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#maintenanceWindow&lt;/code&gt;.
1730 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001731 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001732 &quot;replicaNames&quot;: [ # The replicas of the instance.
1733 &quot;A String&quot;,
1734 ],
1735 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
1736 # Applies only to Second Generation instances.
1737 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionConfiguration&lt;/code&gt;.
1738 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
1739 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001740 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
1741 # API. Use the &lt;code&gt;settings.settingsVersion&lt;/code&gt; field instead.
1742 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001743 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
1744 &quot;canDefer&quot;: True or False,
1745 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
1746 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
1747 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001748 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001749 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in &lt;a
1750 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1751 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001752 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
1753 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
1754 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
1755 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#sslCert&lt;/code&gt;.
1756 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
1757 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in &lt;a
1758 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1759 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;
1760 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
1761 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001762 },
1763 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
1764 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
1765 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as master in the replication setup.
1766 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type. This can be one of the following.
1767 # &lt;br&gt;&lt;code&gt;CLOUD_SQL_INSTANCE&lt;/code&gt;: A Cloud SQL instance that is not
1768 # replicating from a master. &lt;br&gt;&lt;code&gt;ON_PREMISES_INSTANCE&lt;/code&gt;: An
1769 # instance running on the
1770 # customer&#x27;s premises. &lt;br&gt;&lt;code&gt;READ_REPLICA_INSTANCE&lt;/code&gt;: A Cloud SQL
1771 # instance configured as a read-replica.
1772 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This
1773 # value could be different from the zone that was specified when the instance
1774 # was created if the instance has failed over to its secondary zone.
1775 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been
1776 # deprecated. Users should use the
1777 # &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud
1778 # Monitoring API instead. Please see &lt;a
1779 # href=&quot;https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ&quot;&gt;this
1780 # announcement&lt;/a&gt; for details.
1781 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the master. # Configuration specific to failover replicas and read replicas.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001782 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises
1783 # master. Replication configuration information such as the username,
1784 # password, certificates, and keys are not stored in the instance metadata.
1785 # The configuration information is used only to set up the replication
1786 # connection and is stored by MySQL in a file named &lt;code&gt;master.info&lt;/code&gt;
1787 # in the data directory.
1788 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
1789 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the master&#x27;s Common Name value in the certificate
1790 # that it sends during the SSL handshake.
1791 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
1792 # is encoded in the client&#x27;s certificate.
1793 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
1794 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
1795 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the slave
1796 # instance is to be created. The URI is in the form gs:
1797 # //bucketName/fileName. Compressed gzip files (.gz) are also supported.
1798 # // Dumps should have the binlog co-ordinates from which replication should
1799 # // begin. This can be accomplished by setting --master-data to 1 when using
1800 # // mysqldump.
1801 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
1802 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
1803 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
1804 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
1805 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#mysqlReplicaConfiguration&lt;/code&gt;.
1806 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001807 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to
Dan O'Mearadd494642020-05-01 07:42:23 -07001808 # &lt;code&gt;true&lt;/code&gt; the replica will be designated as a failover replica. In
1809 # case the master instance fails, the replica instance will be promoted as
1810 # the new master instance. &lt;p&gt;Only one replica can be specified as failover
1811 # target, and the replica has to be in different zone with the master
1812 # instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001813 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#replicaConfiguration&lt;/code&gt;.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001814 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001815 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
1816 &quot;failoverReplica&quot;: { # The name and status of the failover replica. This property is applicable
1817 # only to Second Generation instances.
1818 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates
1819 # that the failover replica is out of sync. The master can only failover to
1820 # the failover replica when the status is true.
1821 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a
1822 # failover replica is created for the instance. The name
1823 # doesn&#x27;t include the project ID. This property is applicable only to
1824 # Second Generation instances.
1825 },
1826 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
1827 { # Database instance IP Mapping.
1828 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in &lt;a
1829 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1830 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;. This field is only available when
1831 # the IP is scheduled to be retired.
1832 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A &lt;code&gt;PRIMARY&lt;/code&gt; address is a public
1833 # address that can accept incoming connections. A &lt;code&gt;PRIVATE&lt;/code&gt;
1834 # address is a private address that can accept incoming connections. An
1835 # &lt;code&gt;OUTGOING&lt;/code&gt; address is the source address of connections
1836 # originating from the instance, if supported.
1837 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
1838 },
1839 ],
1840 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. This property is applicable only
1841 # to First Generation instances.
1842 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
1843 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
1844 # Applies only to Second Generation instances.
1845 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
1846 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionStatus&lt;/code&gt;.
1847 },
1848 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#instance&lt;/code&gt;.
1849 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be &lt;code&gt;us-central&lt;/code&gt;
1850 # (&lt;code&gt;FIRST_GEN&lt;/code&gt; instances only), &lt;code&gt;us-central1&lt;/code&gt;
1851 # (&lt;code&gt;SECOND_GEN&lt;/code&gt; instances only), &lt;code&gt;asia-east1&lt;/code&gt; or
1852 # &lt;code&gt;europe-west1&lt;/code&gt;. Defaults to &lt;code&gt;us-central&lt;/code&gt; or
1853 # &lt;code&gt;us-central1&lt;/code&gt; depending on the instance type (First Generation
1854 # or Second Generation). The region can not be changed after instance
1855 # creation.
1856 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance. This can be one of the
1857 # following. &lt;br&gt;&lt;code&gt;RUNNABLE&lt;/code&gt;: The instance is running, or is ready
1858 # to run when accessed. &lt;br&gt;&lt;code&gt;SUSPENDED&lt;/code&gt;: The instance is not
1859 # available, for example due to problems with billing.
1860 # &lt;br&gt;&lt;code&gt;PENDING_CREATE&lt;/code&gt;: The instance is being created.
1861 # &lt;br&gt;&lt;code&gt;MAINTENANCE&lt;/code&gt;: The instance is down for maintenance.
1862 # &lt;br&gt;&lt;code&gt;FAILED&lt;/code&gt;: The instance creation failed.
1863 # &lt;br&gt;&lt;code&gt;UNKNOWN_STATE&lt;/code&gt;: The state of the instance is unknown.
1864 &quot;backendType&quot;: &quot;A String&quot;, # &lt;code&gt;FIRST_GEN&lt;/code&gt;: First Generation instance. MySQL only. &lt;br
1865 # /&gt;&lt;code&gt;SECOND_GEN&lt;/code&gt;: Second Generation instance or PostgreSQL
1866 # instance. &lt;br /&gt;&lt;code&gt;EXTERNAL&lt;/code&gt;: A database server that is not
1867 # managed by Google. &lt;br&gt;This property is read-only; use the
1868 # &lt;code&gt;tier&lt;/code&gt; property in the &lt;code&gt;settings&lt;/code&gt; object to determine
1869 # the database type and Second or First Generation.
Craig Citroe633be12015-03-02 13:40:36 -08001870 }
1871
Dan O'Mearadd494642020-05-01 07:42:23 -07001872 x__xgafv: string, V1 error format.
1873 Allowed values
1874 1 - v1 error format
1875 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08001876
1877Returns:
1878 An object of the form:
1879
Dan O'Mearadd494642020-05-01 07:42:23 -07001880 { # An Operation resource.&amp;nbsp;For successful operations that return an
1881 # Operation resource, only the fields relevant to the operation are populated
1882 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001883 &quot;targetLink&quot;: &quot;A String&quot;,
1884 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
1885 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
1886 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
1887 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
1888 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
1889 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
1890 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
1891 # populated.
1892 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
1893 { # Database instance operation error.
1894 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
1895 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
1896 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07001897 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001898 ],
1899 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
1900 },
1901 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
1902 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07001903 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07001904 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
1905 # specify a database, and is overridden by any database specification in the
1906 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
1907 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001908 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
1909 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
1910 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001911 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07001912 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
1913 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
1914 # write permissions to the bucket and read access to the file.
1915 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
1916 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
1917 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001918 },
1919 },
1920 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07001921 # &lt;code&gt;gs:
1922 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
1923 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
1924 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001925 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
1926 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001927 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
1928 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
1929 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
1930 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
1931 # of the database table are loaded with CSV data.
1932 &quot;A String&quot;,
1933 ],
1934 },
Craig Citroe633be12015-03-02 13:40:36 -08001935 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001936 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
1937 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
1938 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
1939 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07001940 # identifier to retrieve the Operations resource that has information about
1941 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001942 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001943 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
1944 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
1945 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
1946 # stored. The URI is in the form &lt;code&gt;gs:
1947 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
1948 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
1949 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
1950 # // compressed.
1951 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
1952 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
1953 },
1954 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07001955 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07001956 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
1957 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
1958 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
1959 # either by using this property or by using the
1960 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
1961 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
1962 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
1963 # this database must match the one specified in the
1964 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07001965 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08001966 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001967 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
1968 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07001969 # you specify tables, specify one and only one database. For PostgreSQL
1970 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07001971 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08001972 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001973 &quot;schemaOnly&quot;: True or False, # Export only schemas.
1974 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
1975 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07001976 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
1977 # a CHANGE MASTER TO statement with the binary log coordinates.
1978 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
1979 # a SQL comment, and has no effect.
1980 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001981 },
Craig Citroe633be12015-03-02 13:40:36 -08001982 },
1983 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001984 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001985 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
1986 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1987 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1988 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
1989 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1990 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1991 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
1992 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
1993 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
1994 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
1995 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
1996 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08001997 }</pre>
1998</div>
1999
2000<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002001 <code class="details" id="list">list(project, pageToken=None, maxResults=None, filter=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -07002002 <pre>Lists instances under a given project.
Craig Citroe633be12015-03-02 13:40:36 -08002003
2004Args:
2005 project: string, Project ID of the project for which to list Cloud SQL instances. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002006 pageToken: string, A previously-returned page token representing part of the larger set of
2007results to view.
2008 maxResults: integer, The maximum number of results to return per response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002009 filter: string, A filter expression that filters resources listed in the response.
2010The expression is in the form of field:value. For example,
2011&#x27;instanceType:CLOUD_SQL_INSTANCE&#x27;. Fields can be nested as needed as per
2012their JSON representation, such as &#x27;settings.userLabels.auto_start:true&#x27;.
2013
2014Multiple filter queries are space-separated. For example.
2015&#x27;state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE&#x27;. By default, each
2016expression is an AND expression. However, you can include AND and OR
2017expressions explicitly.
Dan O'Mearadd494642020-05-01 07:42:23 -07002018 x__xgafv: string, V1 error format.
2019 Allowed values
2020 1 - v1 error format
2021 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002022
2023Returns:
2024 An object of the form:
2025
2026 { # Database instances list response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002027 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#instancesList&lt;/code&gt;.
2028 &quot;items&quot;: [ # List of database instance resources.
Craig Citroe633be12015-03-02 13:40:36 -08002029 { # A Cloud SQL instance resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002030 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
2031 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
2032 # is encoded in the client&#x27;s certificate.
2033 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
2034 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
2035 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
2036 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
2037 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
2038 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#onPremisesConfiguration&lt;/code&gt;.
2039 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
2040 },
2041 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google
2042 # apps domain is prefixed if applicable.
2043 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property
2044 # is applicable only to Second Generation instances.
2045 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The &lt;code&gt;databaseVersion&lt;/code&gt;
2046 # field can not be changed after instance creation. MySQL Second Generation
2047 # instances: &lt;code&gt;MYSQL_5_7&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_6&lt;/code&gt;.
2048 # PostgreSQL instances: &lt;code&gt;POSTGRES_9_6&lt;/code&gt; (default) or
2049 # &lt;code&gt;POSTGRES_11 Beta&lt;/code&gt; MySQL First Generation
2050 # instances: &lt;code&gt;MYSQL_5_6&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_5&lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002051 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
2052 &quot;A String&quot;,
2053 ],
2054 &quot;settings&quot;: { # Database instance settings. # The user settings.
Bu Sun Kim65020912020-05-20 12:08:20 -07002055 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either &lt;code&gt;PER_USE&lt;/code&gt;
2056 # or &lt;code&gt;PACKAGE&lt;/code&gt;. Only &lt;code&gt;PER_USE&lt;/code&gt; is supported for Second
2057 # Generation instances.
2058 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is
2059 # true. Not used for First Generation instances.
2060 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased.
2061 # The default value is 0, which specifies that there is no limit. Not used
2062 # for First Generation instances.
2063 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. First Generation
2064 # instances only.
2065 &quot;A String&quot;,
2066 ],
2067 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example
2068 # &lt;code&gt;db-n1-standard-1&lt;/code&gt; (MySQL instances) or
2069 # &lt;code&gt;db-custom-1-3840&lt;/code&gt; (PostgreSQL instances). For MySQL instances,
2070 # this property determines whether the instance is First or Second
2071 # Generation. For more information, see &lt;a
2072 # href=&quot;/sql/docs/db_path/instance-settings&quot;&gt;Instance Settings&lt;/a&gt;.
2073 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB. Not used
2074 # for First Generation instances.
2075 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: &lt;code&gt;PD_SSD&lt;/code&gt; (default) or
2076 # &lt;code&gt;PD_HDD&lt;/code&gt;. Not used for First Generation instances.
2077 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
2078 # replication is enabled or not.
2079 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
2080 # database flags for crash-safe replication are enabled. This property is
2081 # only applicable to First Generation instances.
2082 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002083 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
2084 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
2085 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Reserved for future use.
2086 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24
2087 # hour format - &lt;code&gt;HH:MM&lt;/code&gt;.
2088 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#backupConfiguration&lt;/code&gt;.
2089 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002090 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is
2091 # disabled, binarylog must be disabled as well.
Bu Sun Kim65020912020-05-20 12:08:20 -07002092 },
2093 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a
2094 # single key value pair.
2095 &quot;a_key&quot;: &quot;A String&quot;,
2096 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002097 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either
2098 # &lt;code&gt;ASYNCHRONOUS&lt;/code&gt; or &lt;code&gt;SYNCHRONOUS&lt;/code&gt;. This property is
2099 # only applicable to First Generation instances.
2100 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#settings&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002101 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance should # The location preference settings. This allows the instance to be located as
2102 # near as possible to either an App Engine app or Compute Engine zone for
2103 # better performance. App Engine co-location is only applicable to First
2104 # Generation instances.
2105 # preferably be located, either in a specific Compute Engine zone, or
2106 # co-located with an App Engine application. Note that if the preferred
2107 # location is not available, the instance will be located as close as possible
2108 # within the region. Only one location may be specified.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002109 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#locationPreference&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002110 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (e.g. us-central1-a, us-central1-b,
2111 # etc.).
2112 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The AppEngine application to follow, it must be in the same region as the
2113 # Cloud SQL instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002114 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002115 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is
Dan O'Mearadd494642020-05-01 07:42:23 -07002116 # applicable only when the instance state is &lt;code&gt;RUNNABLE&lt;/code&gt;. Valid
2117 # values: &lt;br&gt;&lt;code&gt;ALWAYS&lt;/code&gt;: The instance is on, and remains so even in
2118 # the absence of connection requests. &lt;br&gt;&lt;code&gt;NEVER&lt;/code&gt;: The instance is
2119 # off; it is not activated, even if a connection request arrives.
2120 # &lt;br&gt;&lt;code&gt;ON_DEMAND&lt;/code&gt;: First Generation instances only. The instance
2121 # responds to incoming requests, and turns itself off when not in use.
2122 # Instances with &lt;code&gt;PER_USE&lt;/code&gt; pricing turn off after 15 minutes of
2123 # inactivity. Instances with &lt;code&gt;PER_PACKAGE&lt;/code&gt; pricing turn off after
2124 # 12 hours of inactivity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002125 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
2126 { # Database flags for Cloud SQL instances.
2127 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so
2128 # include both server options and system variables for MySQL. Flags should be
2129 # specified with underscores, not hyphens. For more information, see &lt;a
2130 # href=&quot;/sql/docs/mysql/flags&quot;&gt;Configuring Database Flags&lt;/a&gt; in the Cloud
2131 # SQL documentation.
2132 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans should be set to &lt;code&gt;on&lt;/code&gt; for true
2133 # and &lt;code&gt;off&lt;/code&gt; for false. This field must be omitted if the flag
2134 # doesn&#x27;t take a value.
2135 },
2136 ],
2137 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update
2138 # method to make sure concurrent updates are handled properly. During update,
2139 # use the most recent settingsVersion value for this instance and do not try
2140 # to update this value.
2141 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type (PostgreSQL and MySQL instances only). Potential values:
2142 # &lt;br&gt;&lt;code&gt;ZONAL&lt;/code&gt;: The instance serves data from only one zone.
2143 # Outages in that zone affect data accessibility. &lt;br&gt;&lt;code&gt;REGIONAL&lt;/code&gt;:
2144 # The instance can serve data from more than one zone in a region (it is
2145 # highly available). &lt;br&gt;For more information, see &lt;a
2146 # href=&quot;https://cloud.google.com/sql/docs/postgres/high-availability&quot;&gt;Overview
2147 # of the High Availability Configuration&lt;/a&gt;.
2148 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the
2149 # instance IP and manage which external networks can connect to the instance.
2150 # The IPv4 address cannot be disabled for Second Generation instances.
2151 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is
2152 # accessible for private IP. For example,
2153 # &lt;code&gt;/projects/myProject/global/networks/default&lt;/code&gt;. This setting can
2154 # be updated, but it cannot be removed after it is set.
2155 &quot;ipv4Enabled&quot;: True or False, # Whether the instance should be assigned an IP address or not.
2156 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance
2157 # using the IP. In &lt;a
2158 # href=&quot;http://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation&quot;&gt;CIDR
2159 # notation&lt;/a&gt;, also known as &#x27;slash&#x27; notation (e.g.
2160 # &lt;code&gt;192.168.100.0/24&lt;/code&gt;).
2161 { # An entry for an Access Control list.
2162 &quot;value&quot;: &quot;A String&quot;, # The whitelisted value for the access control list.
2163 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in &lt;a
2164 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2165 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
2166 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
2167 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#aclEntry&lt;/code&gt;.
2168 },
2169 ],
2170 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP should be enforced or not.
2171 },
2172 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a v2 Cloud SQL instance should # The maintenance window for this instance. This specifies when the instance
2173 # can be restarted for maintenance purposes. Not used for First Generation
2174 # instances.
2175 # preferably be restarted for system maintenance purposes.
2176 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: &lt;code&gt;canary&lt;/code&gt; (Earlier) or
2177 # &lt;code&gt;stable&lt;/code&gt; (Later). &lt;br /&gt;&lt;a
2178 # href=&quot;/sql/docs/db_path/instance-settings#maintenance-timing-2ndgen&quot;&gt;
2179 # Learn more&lt;/a&gt;.
2180 &quot;hour&quot;: 42, # hour of day - 0 to 23.
2181 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
2182 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#maintenanceWindow&lt;/code&gt;.
2183 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002184 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002185 &quot;replicaNames&quot;: [ # The replicas of the instance.
2186 &quot;A String&quot;,
2187 ],
2188 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
2189 # Applies only to Second Generation instances.
2190 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionConfiguration&lt;/code&gt;.
2191 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
2192 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002193 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
2194 # API. Use the &lt;code&gt;settings.settingsVersion&lt;/code&gt; field instead.
2195 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
Bu Sun Kim65020912020-05-20 12:08:20 -07002196 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
2197 &quot;canDefer&quot;: True or False,
2198 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
2199 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
2200 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002201 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002202 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in &lt;a
2203 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2204 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002205 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
2206 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
2207 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
2208 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#sslCert&lt;/code&gt;.
2209 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
2210 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in &lt;a
2211 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2212 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;
2213 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
2214 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002215 },
2216 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
2217 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
2218 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as master in the replication setup.
2219 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type. This can be one of the following.
2220 # &lt;br&gt;&lt;code&gt;CLOUD_SQL_INSTANCE&lt;/code&gt;: A Cloud SQL instance that is not
2221 # replicating from a master. &lt;br&gt;&lt;code&gt;ON_PREMISES_INSTANCE&lt;/code&gt;: An
2222 # instance running on the
2223 # customer&#x27;s premises. &lt;br&gt;&lt;code&gt;READ_REPLICA_INSTANCE&lt;/code&gt;: A Cloud SQL
2224 # instance configured as a read-replica.
2225 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This
2226 # value could be different from the zone that was specified when the instance
2227 # was created if the instance has failed over to its secondary zone.
2228 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been
2229 # deprecated. Users should use the
2230 # &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud
2231 # Monitoring API instead. Please see &lt;a
2232 # href=&quot;https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ&quot;&gt;this
2233 # announcement&lt;/a&gt; for details.
2234 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the master. # Configuration specific to failover replicas and read replicas.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002235 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises
2236 # master. Replication configuration information such as the username,
2237 # password, certificates, and keys are not stored in the instance metadata.
2238 # The configuration information is used only to set up the replication
2239 # connection and is stored by MySQL in a file named &lt;code&gt;master.info&lt;/code&gt;
2240 # in the data directory.
2241 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
2242 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the master&#x27;s Common Name value in the certificate
2243 # that it sends during the SSL handshake.
2244 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
2245 # is encoded in the client&#x27;s certificate.
2246 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
2247 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
2248 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the slave
2249 # instance is to be created. The URI is in the form gs:
2250 # //bucketName/fileName. Compressed gzip files (.gz) are also supported.
2251 # // Dumps should have the binlog co-ordinates from which replication should
2252 # // begin. This can be accomplished by setting --master-data to 1 when using
2253 # // mysqldump.
2254 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
2255 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
2256 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
2257 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
2258 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#mysqlReplicaConfiguration&lt;/code&gt;.
2259 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002260 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to
Dan O'Mearadd494642020-05-01 07:42:23 -07002261 # &lt;code&gt;true&lt;/code&gt; the replica will be designated as a failover replica. In
2262 # case the master instance fails, the replica instance will be promoted as
2263 # the new master instance. &lt;p&gt;Only one replica can be specified as failover
2264 # target, and the replica has to be in different zone with the master
2265 # instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002266 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#replicaConfiguration&lt;/code&gt;.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00002267 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002268 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
2269 &quot;failoverReplica&quot;: { # The name and status of the failover replica. This property is applicable
2270 # only to Second Generation instances.
2271 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates
2272 # that the failover replica is out of sync. The master can only failover to
2273 # the failover replica when the status is true.
2274 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a
2275 # failover replica is created for the instance. The name
2276 # doesn&#x27;t include the project ID. This property is applicable only to
2277 # Second Generation instances.
2278 },
2279 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
2280 { # Database instance IP Mapping.
2281 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in &lt;a
2282 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2283 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;. This field is only available when
2284 # the IP is scheduled to be retired.
2285 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A &lt;code&gt;PRIMARY&lt;/code&gt; address is a public
2286 # address that can accept incoming connections. A &lt;code&gt;PRIVATE&lt;/code&gt;
2287 # address is a private address that can accept incoming connections. An
2288 # &lt;code&gt;OUTGOING&lt;/code&gt; address is the source address of connections
2289 # originating from the instance, if supported.
2290 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
2291 },
2292 ],
2293 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. This property is applicable only
2294 # to First Generation instances.
2295 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
2296 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
2297 # Applies only to Second Generation instances.
2298 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
2299 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionStatus&lt;/code&gt;.
2300 },
2301 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#instance&lt;/code&gt;.
2302 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be &lt;code&gt;us-central&lt;/code&gt;
2303 # (&lt;code&gt;FIRST_GEN&lt;/code&gt; instances only), &lt;code&gt;us-central1&lt;/code&gt;
2304 # (&lt;code&gt;SECOND_GEN&lt;/code&gt; instances only), &lt;code&gt;asia-east1&lt;/code&gt; or
2305 # &lt;code&gt;europe-west1&lt;/code&gt;. Defaults to &lt;code&gt;us-central&lt;/code&gt; or
2306 # &lt;code&gt;us-central1&lt;/code&gt; depending on the instance type (First Generation
2307 # or Second Generation). The region can not be changed after instance
2308 # creation.
2309 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance. This can be one of the
2310 # following. &lt;br&gt;&lt;code&gt;RUNNABLE&lt;/code&gt;: The instance is running, or is ready
2311 # to run when accessed. &lt;br&gt;&lt;code&gt;SUSPENDED&lt;/code&gt;: The instance is not
2312 # available, for example due to problems with billing.
2313 # &lt;br&gt;&lt;code&gt;PENDING_CREATE&lt;/code&gt;: The instance is being created.
2314 # &lt;br&gt;&lt;code&gt;MAINTENANCE&lt;/code&gt;: The instance is down for maintenance.
2315 # &lt;br&gt;&lt;code&gt;FAILED&lt;/code&gt;: The instance creation failed.
2316 # &lt;br&gt;&lt;code&gt;UNKNOWN_STATE&lt;/code&gt;: The state of the instance is unknown.
2317 &quot;backendType&quot;: &quot;A String&quot;, # &lt;code&gt;FIRST_GEN&lt;/code&gt;: First Generation instance. MySQL only. &lt;br
2318 # /&gt;&lt;code&gt;SECOND_GEN&lt;/code&gt;: Second Generation instance or PostgreSQL
2319 # instance. &lt;br /&gt;&lt;code&gt;EXTERNAL&lt;/code&gt;: A database server that is not
2320 # managed by Google. &lt;br&gt;This property is read-only; use the
2321 # &lt;code&gt;tier&lt;/code&gt; property in the &lt;code&gt;settings&lt;/code&gt; object to determine
2322 # the database type and Second or First Generation.
Craig Citroe633be12015-03-02 13:40:36 -08002323 },
2324 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002325 &quot;warnings&quot;: [ # List of warnings that occurred while handling the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002326 { # An Admin API warning message.
Bu Sun Kim65020912020-05-20 12:08:20 -07002327 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
2328 &quot;message&quot;: &quot;A String&quot;, # The warning message.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002329 },
2330 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002331 &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token, used to page through large result sets. Provide
2332 # this value in a subsequent request to return the next page of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002333 }</pre>
2334</div>
2335
2336<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002337 <code class="details" id="listServerCas">listServerCas(project, instance, x__xgafv=None)</code>
2338 <pre>Lists all of the trusted Certificate Authorities (CAs) for the specified
2339instance. There can be up to three CAs listed: the CA that was used to sign
2340the certificate that is currently in use, a CA that has been added but not
2341yet used to sign a certificate, and a CA used to sign a certificate that
2342has previously rotated out.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002343
2344Args:
2345 project: string, Project ID of the project that contains the instance. (required)
2346 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002347 x__xgafv: string, V1 error format.
2348 Allowed values
2349 1 - v1 error format
2350 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002351
2352Returns:
2353 An object of the form:
2354
2355 { # Instances ListServerCas response.
Bu Sun Kim65020912020-05-20 12:08:20 -07002356 &quot;certs&quot;: [ # List of server CA certificates for the instance.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002357 { # SslCerts Resource
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002358 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in &lt;a
2359 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2360 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002361 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
2362 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
2363 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
2364 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#sslCert&lt;/code&gt;.
2365 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
2366 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in &lt;a
2367 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
Dan O'Mearadd494642020-05-01 07:42:23 -07002368 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002369 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
2370 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002371 },
2372 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002373 &quot;activeVersion&quot;: &quot;A String&quot;,
2374 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#instancesListServerCas&lt;/code&gt;.
Craig Citroe633be12015-03-02 13:40:36 -08002375 }</pre>
2376</div>
2377
2378<div class="method">
2379 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2380 <pre>Retrieves the next page of results.
2381
2382Args:
2383 previous_request: The request for the previous page. (required)
2384 previous_response: The response from the request for the previous page. (required)
2385
2386Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002387 A request object that you can call &#x27;execute()&#x27; on to request the next
Craig Citroe633be12015-03-02 13:40:36 -08002388 page. Returns None if there are no more items in the collection.
2389 </pre>
2390</div>
2391
2392<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002393 <code class="details" id="patch">patch(project, instance, body=None, x__xgafv=None)</code>
2394 <pre>Updates settings of a Cloud SQL instance.
2395This method supports patch semantics.
Craig Citroe633be12015-03-02 13:40:36 -08002396
2397Args:
2398 project: string, Project ID of the project that contains the instance. (required)
2399 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002400 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08002401 The object takes the form of:
2402
2403{ # A Cloud SQL instance resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002404 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
2405 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
2406 # is encoded in the client&#x27;s certificate.
2407 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
2408 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
2409 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
2410 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
2411 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
2412 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#onPremisesConfiguration&lt;/code&gt;.
2413 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
2414 },
2415 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google
2416 # apps domain is prefixed if applicable.
2417 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property
2418 # is applicable only to Second Generation instances.
2419 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The &lt;code&gt;databaseVersion&lt;/code&gt;
2420 # field can not be changed after instance creation. MySQL Second Generation
2421 # instances: &lt;code&gt;MYSQL_5_7&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_6&lt;/code&gt;.
2422 # PostgreSQL instances: &lt;code&gt;POSTGRES_9_6&lt;/code&gt; (default) or
2423 # &lt;code&gt;POSTGRES_11 Beta&lt;/code&gt; MySQL First Generation
2424 # instances: &lt;code&gt;MYSQL_5_6&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_5&lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002425 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
2426 &quot;A String&quot;,
2427 ],
2428 &quot;settings&quot;: { # Database instance settings. # The user settings.
Bu Sun Kim65020912020-05-20 12:08:20 -07002429 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either &lt;code&gt;PER_USE&lt;/code&gt;
2430 # or &lt;code&gt;PACKAGE&lt;/code&gt;. Only &lt;code&gt;PER_USE&lt;/code&gt; is supported for Second
2431 # Generation instances.
2432 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is
2433 # true. Not used for First Generation instances.
2434 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased.
2435 # The default value is 0, which specifies that there is no limit. Not used
2436 # for First Generation instances.
2437 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. First Generation
2438 # instances only.
2439 &quot;A String&quot;,
2440 ],
2441 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example
2442 # &lt;code&gt;db-n1-standard-1&lt;/code&gt; (MySQL instances) or
2443 # &lt;code&gt;db-custom-1-3840&lt;/code&gt; (PostgreSQL instances). For MySQL instances,
2444 # this property determines whether the instance is First or Second
2445 # Generation. For more information, see &lt;a
2446 # href=&quot;/sql/docs/db_path/instance-settings&quot;&gt;Instance Settings&lt;/a&gt;.
2447 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB. Not used
2448 # for First Generation instances.
2449 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: &lt;code&gt;PD_SSD&lt;/code&gt; (default) or
2450 # &lt;code&gt;PD_HDD&lt;/code&gt;. Not used for First Generation instances.
2451 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
2452 # replication is enabled or not.
2453 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
2454 # database flags for crash-safe replication are enabled. This property is
2455 # only applicable to First Generation instances.
2456 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002457 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
2458 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
2459 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Reserved for future use.
2460 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24
2461 # hour format - &lt;code&gt;HH:MM&lt;/code&gt;.
2462 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#backupConfiguration&lt;/code&gt;.
2463 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002464 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is
2465 # disabled, binarylog must be disabled as well.
Bu Sun Kim65020912020-05-20 12:08:20 -07002466 },
2467 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a
2468 # single key value pair.
2469 &quot;a_key&quot;: &quot;A String&quot;,
2470 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002471 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either
2472 # &lt;code&gt;ASYNCHRONOUS&lt;/code&gt; or &lt;code&gt;SYNCHRONOUS&lt;/code&gt;. This property is
2473 # only applicable to First Generation instances.
2474 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#settings&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002475 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance should # The location preference settings. This allows the instance to be located as
2476 # near as possible to either an App Engine app or Compute Engine zone for
2477 # better performance. App Engine co-location is only applicable to First
2478 # Generation instances.
2479 # preferably be located, either in a specific Compute Engine zone, or
2480 # co-located with an App Engine application. Note that if the preferred
2481 # location is not available, the instance will be located as close as possible
2482 # within the region. Only one location may be specified.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002483 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#locationPreference&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002484 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (e.g. us-central1-a, us-central1-b,
2485 # etc.).
2486 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The AppEngine application to follow, it must be in the same region as the
2487 # Cloud SQL instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002488 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002489 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is
Dan O'Mearadd494642020-05-01 07:42:23 -07002490 # applicable only when the instance state is &lt;code&gt;RUNNABLE&lt;/code&gt;. Valid
2491 # values: &lt;br&gt;&lt;code&gt;ALWAYS&lt;/code&gt;: The instance is on, and remains so even in
2492 # the absence of connection requests. &lt;br&gt;&lt;code&gt;NEVER&lt;/code&gt;: The instance is
2493 # off; it is not activated, even if a connection request arrives.
2494 # &lt;br&gt;&lt;code&gt;ON_DEMAND&lt;/code&gt;: First Generation instances only. The instance
2495 # responds to incoming requests, and turns itself off when not in use.
2496 # Instances with &lt;code&gt;PER_USE&lt;/code&gt; pricing turn off after 15 minutes of
2497 # inactivity. Instances with &lt;code&gt;PER_PACKAGE&lt;/code&gt; pricing turn off after
2498 # 12 hours of inactivity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002499 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
2500 { # Database flags for Cloud SQL instances.
2501 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so
2502 # include both server options and system variables for MySQL. Flags should be
2503 # specified with underscores, not hyphens. For more information, see &lt;a
2504 # href=&quot;/sql/docs/mysql/flags&quot;&gt;Configuring Database Flags&lt;/a&gt; in the Cloud
2505 # SQL documentation.
2506 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans should be set to &lt;code&gt;on&lt;/code&gt; for true
2507 # and &lt;code&gt;off&lt;/code&gt; for false. This field must be omitted if the flag
2508 # doesn&#x27;t take a value.
2509 },
2510 ],
2511 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update
2512 # method to make sure concurrent updates are handled properly. During update,
2513 # use the most recent settingsVersion value for this instance and do not try
2514 # to update this value.
2515 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type (PostgreSQL and MySQL instances only). Potential values:
2516 # &lt;br&gt;&lt;code&gt;ZONAL&lt;/code&gt;: The instance serves data from only one zone.
2517 # Outages in that zone affect data accessibility. &lt;br&gt;&lt;code&gt;REGIONAL&lt;/code&gt;:
2518 # The instance can serve data from more than one zone in a region (it is
2519 # highly available). &lt;br&gt;For more information, see &lt;a
2520 # href=&quot;https://cloud.google.com/sql/docs/postgres/high-availability&quot;&gt;Overview
2521 # of the High Availability Configuration&lt;/a&gt;.
2522 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the
2523 # instance IP and manage which external networks can connect to the instance.
2524 # The IPv4 address cannot be disabled for Second Generation instances.
2525 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is
2526 # accessible for private IP. For example,
2527 # &lt;code&gt;/projects/myProject/global/networks/default&lt;/code&gt;. This setting can
2528 # be updated, but it cannot be removed after it is set.
2529 &quot;ipv4Enabled&quot;: True or False, # Whether the instance should be assigned an IP address or not.
2530 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance
2531 # using the IP. In &lt;a
2532 # href=&quot;http://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation&quot;&gt;CIDR
2533 # notation&lt;/a&gt;, also known as &#x27;slash&#x27; notation (e.g.
2534 # &lt;code&gt;192.168.100.0/24&lt;/code&gt;).
2535 { # An entry for an Access Control list.
2536 &quot;value&quot;: &quot;A String&quot;, # The whitelisted value for the access control list.
2537 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in &lt;a
2538 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2539 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
2540 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
2541 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#aclEntry&lt;/code&gt;.
2542 },
2543 ],
2544 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP should be enforced or not.
2545 },
2546 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a v2 Cloud SQL instance should # The maintenance window for this instance. This specifies when the instance
2547 # can be restarted for maintenance purposes. Not used for First Generation
2548 # instances.
2549 # preferably be restarted for system maintenance purposes.
2550 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: &lt;code&gt;canary&lt;/code&gt; (Earlier) or
2551 # &lt;code&gt;stable&lt;/code&gt; (Later). &lt;br /&gt;&lt;a
2552 # href=&quot;/sql/docs/db_path/instance-settings#maintenance-timing-2ndgen&quot;&gt;
2553 # Learn more&lt;/a&gt;.
2554 &quot;hour&quot;: 42, # hour of day - 0 to 23.
2555 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
2556 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#maintenanceWindow&lt;/code&gt;.
2557 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002558 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002559 &quot;replicaNames&quot;: [ # The replicas of the instance.
2560 &quot;A String&quot;,
2561 ],
2562 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
2563 # Applies only to Second Generation instances.
2564 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionConfiguration&lt;/code&gt;.
2565 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
2566 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002567 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
2568 # API. Use the &lt;code&gt;settings.settingsVersion&lt;/code&gt; field instead.
2569 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
Bu Sun Kim65020912020-05-20 12:08:20 -07002570 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
2571 &quot;canDefer&quot;: True or False,
2572 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
2573 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
2574 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002575 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002576 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in &lt;a
2577 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2578 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002579 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
2580 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
2581 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
2582 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#sslCert&lt;/code&gt;.
2583 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
2584 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in &lt;a
2585 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2586 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;
2587 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
2588 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002589 },
2590 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
2591 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
2592 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as master in the replication setup.
2593 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type. This can be one of the following.
2594 # &lt;br&gt;&lt;code&gt;CLOUD_SQL_INSTANCE&lt;/code&gt;: A Cloud SQL instance that is not
2595 # replicating from a master. &lt;br&gt;&lt;code&gt;ON_PREMISES_INSTANCE&lt;/code&gt;: An
2596 # instance running on the
2597 # customer&#x27;s premises. &lt;br&gt;&lt;code&gt;READ_REPLICA_INSTANCE&lt;/code&gt;: A Cloud SQL
2598 # instance configured as a read-replica.
2599 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This
2600 # value could be different from the zone that was specified when the instance
2601 # was created if the instance has failed over to its secondary zone.
2602 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been
2603 # deprecated. Users should use the
2604 # &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud
2605 # Monitoring API instead. Please see &lt;a
2606 # href=&quot;https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ&quot;&gt;this
2607 # announcement&lt;/a&gt; for details.
2608 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the master. # Configuration specific to failover replicas and read replicas.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002609 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises
2610 # master. Replication configuration information such as the username,
2611 # password, certificates, and keys are not stored in the instance metadata.
2612 # The configuration information is used only to set up the replication
2613 # connection and is stored by MySQL in a file named &lt;code&gt;master.info&lt;/code&gt;
2614 # in the data directory.
2615 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
2616 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the master&#x27;s Common Name value in the certificate
2617 # that it sends during the SSL handshake.
2618 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
2619 # is encoded in the client&#x27;s certificate.
2620 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
2621 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
2622 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the slave
2623 # instance is to be created. The URI is in the form gs:
2624 # //bucketName/fileName. Compressed gzip files (.gz) are also supported.
2625 # // Dumps should have the binlog co-ordinates from which replication should
2626 # // begin. This can be accomplished by setting --master-data to 1 when using
2627 # // mysqldump.
2628 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
2629 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
2630 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
2631 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
2632 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#mysqlReplicaConfiguration&lt;/code&gt;.
2633 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002634 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to
Dan O'Mearadd494642020-05-01 07:42:23 -07002635 # &lt;code&gt;true&lt;/code&gt; the replica will be designated as a failover replica. In
2636 # case the master instance fails, the replica instance will be promoted as
2637 # the new master instance. &lt;p&gt;Only one replica can be specified as failover
2638 # target, and the replica has to be in different zone with the master
2639 # instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07002640 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#replicaConfiguration&lt;/code&gt;.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00002641 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002642 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
2643 &quot;failoverReplica&quot;: { # The name and status of the failover replica. This property is applicable
2644 # only to Second Generation instances.
2645 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates
2646 # that the failover replica is out of sync. The master can only failover to
2647 # the failover replica when the status is true.
2648 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a
2649 # failover replica is created for the instance. The name
2650 # doesn&#x27;t include the project ID. This property is applicable only to
2651 # Second Generation instances.
2652 },
2653 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
2654 { # Database instance IP Mapping.
2655 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in &lt;a
2656 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2657 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;. This field is only available when
2658 # the IP is scheduled to be retired.
2659 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A &lt;code&gt;PRIMARY&lt;/code&gt; address is a public
2660 # address that can accept incoming connections. A &lt;code&gt;PRIVATE&lt;/code&gt;
2661 # address is a private address that can accept incoming connections. An
2662 # &lt;code&gt;OUTGOING&lt;/code&gt; address is the source address of connections
2663 # originating from the instance, if supported.
2664 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
2665 },
2666 ],
2667 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. This property is applicable only
2668 # to First Generation instances.
2669 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
2670 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
2671 # Applies only to Second Generation instances.
2672 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
2673 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionStatus&lt;/code&gt;.
2674 },
2675 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#instance&lt;/code&gt;.
2676 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be &lt;code&gt;us-central&lt;/code&gt;
2677 # (&lt;code&gt;FIRST_GEN&lt;/code&gt; instances only), &lt;code&gt;us-central1&lt;/code&gt;
2678 # (&lt;code&gt;SECOND_GEN&lt;/code&gt; instances only), &lt;code&gt;asia-east1&lt;/code&gt; or
2679 # &lt;code&gt;europe-west1&lt;/code&gt;. Defaults to &lt;code&gt;us-central&lt;/code&gt; or
2680 # &lt;code&gt;us-central1&lt;/code&gt; depending on the instance type (First Generation
2681 # or Second Generation). The region can not be changed after instance
2682 # creation.
2683 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance. This can be one of the
2684 # following. &lt;br&gt;&lt;code&gt;RUNNABLE&lt;/code&gt;: The instance is running, or is ready
2685 # to run when accessed. &lt;br&gt;&lt;code&gt;SUSPENDED&lt;/code&gt;: The instance is not
2686 # available, for example due to problems with billing.
2687 # &lt;br&gt;&lt;code&gt;PENDING_CREATE&lt;/code&gt;: The instance is being created.
2688 # &lt;br&gt;&lt;code&gt;MAINTENANCE&lt;/code&gt;: The instance is down for maintenance.
2689 # &lt;br&gt;&lt;code&gt;FAILED&lt;/code&gt;: The instance creation failed.
2690 # &lt;br&gt;&lt;code&gt;UNKNOWN_STATE&lt;/code&gt;: The state of the instance is unknown.
2691 &quot;backendType&quot;: &quot;A String&quot;, # &lt;code&gt;FIRST_GEN&lt;/code&gt;: First Generation instance. MySQL only. &lt;br
2692 # /&gt;&lt;code&gt;SECOND_GEN&lt;/code&gt;: Second Generation instance or PostgreSQL
2693 # instance. &lt;br /&gt;&lt;code&gt;EXTERNAL&lt;/code&gt;: A database server that is not
2694 # managed by Google. &lt;br&gt;This property is read-only; use the
2695 # &lt;code&gt;tier&lt;/code&gt; property in the &lt;code&gt;settings&lt;/code&gt; object to determine
2696 # the database type and Second or First Generation.
Craig Citroe633be12015-03-02 13:40:36 -08002697 }
2698
Dan O'Mearadd494642020-05-01 07:42:23 -07002699 x__xgafv: string, V1 error format.
2700 Allowed values
2701 1 - v1 error format
2702 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002703
2704Returns:
2705 An object of the form:
2706
Dan O'Mearadd494642020-05-01 07:42:23 -07002707 { # An Operation resource.&amp;nbsp;For successful operations that return an
2708 # Operation resource, only the fields relevant to the operation are populated
2709 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002710 &quot;targetLink&quot;: &quot;A String&quot;,
2711 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
2712 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
2713 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
2714 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
2715 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
2716 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
2717 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
2718 # populated.
2719 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2720 { # Database instance operation error.
2721 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
2722 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
2723 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07002724 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002725 ],
2726 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
2727 },
2728 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
2729 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07002730 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07002731 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
2732 # specify a database, and is overridden by any database specification in the
2733 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
2734 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002735 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
2736 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2737 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002738 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07002739 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
2740 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
2741 # write permissions to the bucket and read access to the file.
2742 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
2743 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
2744 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002745 },
2746 },
2747 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07002748 # &lt;code&gt;gs:
2749 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
2750 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
2751 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002752 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
2753 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002754 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
2755 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2756 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2757 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
2758 # of the database table are loaded with CSV data.
2759 &quot;A String&quot;,
2760 ],
2761 },
Craig Citroe633be12015-03-02 13:40:36 -08002762 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002763 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
2764 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
2765 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
2766 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07002767 # identifier to retrieve the Operations resource that has information about
2768 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07002769 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002770 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
2771 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
2772 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
2773 # stored. The URI is in the form &lt;code&gt;gs:
2774 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
2775 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
2776 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
2777 # // compressed.
2778 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
2779 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
2780 },
2781 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002782 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07002783 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
2784 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
2785 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
2786 # either by using this property or by using the
2787 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
2788 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
2789 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
2790 # this database must match the one specified in the
2791 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07002792 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08002793 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002794 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2795 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07002796 # you specify tables, specify one and only one database. For PostgreSQL
2797 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07002798 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08002799 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002800 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2801 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
2802 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07002803 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
2804 # a CHANGE MASTER TO statement with the binary log coordinates.
2805 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
2806 # a SQL comment, and has no effect.
2807 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002808 },
Craig Citroe633be12015-03-02 13:40:36 -08002809 },
2810 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002811 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002812 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
2813 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2814 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
2815 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
2816 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2817 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
2818 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
2819 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2820 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
2821 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2822 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2823 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08002824 }</pre>
2825</div>
2826
2827<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002828 <code class="details" id="promoteReplica">promoteReplica(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08002829 <pre>Promotes the read replica instance to be a stand-alone Cloud SQL instance.
Dan O'Mearadd494642020-05-01 07:42:23 -07002830Using this operation might cause your instance to restart.
Craig Citroe633be12015-03-02 13:40:36 -08002831
2832Args:
2833 project: string, ID of the project that contains the read replica. (required)
2834 instance: string, Cloud SQL read replica instance name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002835 x__xgafv: string, V1 error format.
2836 Allowed values
2837 1 - v1 error format
2838 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002839
2840Returns:
2841 An object of the form:
2842
Dan O'Mearadd494642020-05-01 07:42:23 -07002843 { # An Operation resource.&amp;nbsp;For successful operations that return an
2844 # Operation resource, only the fields relevant to the operation are populated
2845 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002846 &quot;targetLink&quot;: &quot;A String&quot;,
2847 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
2848 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
2849 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
2850 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
2851 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
2852 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
2853 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
2854 # populated.
2855 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2856 { # Database instance operation error.
2857 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
2858 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
2859 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07002860 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002861 ],
2862 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
2863 },
2864 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
2865 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07002866 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07002867 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
2868 # specify a database, and is overridden by any database specification in the
2869 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
2870 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07002871 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
2872 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
2873 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002874 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07002875 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
2876 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
2877 # write permissions to the bucket and read access to the file.
2878 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
2879 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
2880 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002881 },
2882 },
2883 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07002884 # &lt;code&gt;gs:
2885 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
2886 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
2887 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002888 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
2889 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002890 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
2891 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
2892 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
2893 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
2894 # of the database table are loaded with CSV data.
2895 &quot;A String&quot;,
2896 ],
2897 },
Craig Citroe633be12015-03-02 13:40:36 -08002898 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002899 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
2900 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
2901 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
2902 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07002903 # identifier to retrieve the Operations resource that has information about
2904 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07002905 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002906 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
2907 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
2908 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
2909 # stored. The URI is in the form &lt;code&gt;gs:
2910 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
2911 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
2912 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
2913 # // compressed.
2914 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
2915 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
2916 },
2917 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07002918 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07002919 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
2920 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
2921 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
2922 # either by using this property or by using the
2923 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
2924 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
2925 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
2926 # this database must match the one specified in the
2927 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07002928 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08002929 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002930 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
2931 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07002932 # you specify tables, specify one and only one database. For PostgreSQL
2933 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07002934 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08002935 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002936 &quot;schemaOnly&quot;: True or False, # Export only schemas.
2937 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
2938 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07002939 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
2940 # a CHANGE MASTER TO statement with the binary log coordinates.
2941 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
2942 # a SQL comment, and has no effect.
2943 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002944 },
Craig Citroe633be12015-03-02 13:40:36 -08002945 },
2946 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002947 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002948 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
2949 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2950 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
2951 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
2952 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2953 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
2954 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
2955 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
2956 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
2957 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
2958 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
2959 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08002960 }</pre>
2961</div>
2962
2963<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002964 <code class="details" id="resetSslConfig">resetSslConfig(project, instance, x__xgafv=None)</code>
2965 <pre>Deletes all client certificates and generates a new server SSL certificate
2966for the instance.
Craig Citroe633be12015-03-02 13:40:36 -08002967
2968Args:
2969 project: string, Project ID of the project that contains the instance. (required)
2970 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002971 x__xgafv: string, V1 error format.
2972 Allowed values
2973 1 - v1 error format
2974 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08002975
2976Returns:
2977 An object of the form:
2978
Dan O'Mearadd494642020-05-01 07:42:23 -07002979 { # An Operation resource.&amp;nbsp;For successful operations that return an
2980 # Operation resource, only the fields relevant to the operation are populated
2981 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002982 &quot;targetLink&quot;: &quot;A String&quot;,
2983 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
2984 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
2985 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
2986 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
2987 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
2988 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
2989 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
2990 # populated.
2991 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
2992 { # Database instance operation error.
2993 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
2994 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
2995 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07002996 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002997 ],
2998 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
2999 },
3000 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
3001 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07003002 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07003003 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
3004 # specify a database, and is overridden by any database specification in the
3005 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
3006 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003007 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
3008 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
3009 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003010 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07003011 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
3012 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3013 # write permissions to the bucket and read access to the file.
3014 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
3015 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3016 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003017 },
3018 },
3019 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07003020 # &lt;code&gt;gs:
3021 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
3022 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
3023 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003024 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3025 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003026 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
3027 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
3028 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
3029 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
3030 # of the database table are loaded with CSV data.
3031 &quot;A String&quot;,
3032 ],
3033 },
Craig Citroe633be12015-03-02 13:40:36 -08003034 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003035 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
3036 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
3037 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
3038 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07003039 # identifier to retrieve the Operations resource that has information about
3040 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003041 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003042 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3043 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
3044 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
3045 # stored. The URI is in the form &lt;code&gt;gs:
3046 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
3047 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
3048 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
3049 # // compressed.
3050 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
3051 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
3052 },
3053 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07003054 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07003055 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
3056 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
3057 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
3058 # either by using this property or by using the
3059 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
3060 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
3061 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
3062 # this database must match the one specified in the
3063 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07003064 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003065 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003066 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
3067 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07003068 # you specify tables, specify one and only one database. For PostgreSQL
3069 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07003070 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003071 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003072 &quot;schemaOnly&quot;: True or False, # Export only schemas.
3073 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
3074 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07003075 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
3076 # a CHANGE MASTER TO statement with the binary log coordinates.
3077 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
3078 # a SQL comment, and has no effect.
3079 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003080 },
Craig Citroe633be12015-03-02 13:40:36 -08003081 },
3082 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003083 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003084 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
3085 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3086 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3087 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
3088 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3089 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3090 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
3091 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3092 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3093 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
3094 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
3095 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08003096 }</pre>
3097</div>
3098
3099<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003100 <code class="details" id="restart">restart(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08003101 <pre>Restarts a Cloud SQL instance.
3102
3103Args:
3104 project: string, Project ID of the project that contains the instance to be restarted. (required)
3105 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003106 x__xgafv: string, V1 error format.
3107 Allowed values
3108 1 - v1 error format
3109 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08003110
3111Returns:
3112 An object of the form:
3113
Dan O'Mearadd494642020-05-01 07:42:23 -07003114 { # An Operation resource.&amp;nbsp;For successful operations that return an
3115 # Operation resource, only the fields relevant to the operation are populated
3116 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003117 &quot;targetLink&quot;: &quot;A String&quot;,
3118 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
3119 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
3120 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
3121 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
3122 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
3123 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
3124 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
3125 # populated.
3126 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
3127 { # Database instance operation error.
3128 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
3129 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
3130 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07003131 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003132 ],
3133 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
3134 },
3135 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
3136 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07003137 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07003138 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
3139 # specify a database, and is overridden by any database specification in the
3140 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
3141 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003142 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
3143 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
3144 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003145 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07003146 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
3147 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3148 # write permissions to the bucket and read access to the file.
3149 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
3150 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3151 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003152 },
3153 },
3154 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07003155 # &lt;code&gt;gs:
3156 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
3157 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
3158 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003159 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3160 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003161 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
3162 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
3163 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
3164 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
3165 # of the database table are loaded with CSV data.
3166 &quot;A String&quot;,
3167 ],
3168 },
Craig Citroe633be12015-03-02 13:40:36 -08003169 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003170 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
3171 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
3172 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
3173 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07003174 # identifier to retrieve the Operations resource that has information about
3175 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003176 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003177 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3178 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
3179 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
3180 # stored. The URI is in the form &lt;code&gt;gs:
3181 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
3182 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
3183 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
3184 # // compressed.
3185 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
3186 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
3187 },
3188 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07003189 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07003190 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
3191 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
3192 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
3193 # either by using this property or by using the
3194 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
3195 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
3196 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
3197 # this database must match the one specified in the
3198 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07003199 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003200 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003201 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
3202 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07003203 # you specify tables, specify one and only one database. For PostgreSQL
3204 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07003205 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003206 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003207 &quot;schemaOnly&quot;: True or False, # Export only schemas.
3208 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
3209 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07003210 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
3211 # a CHANGE MASTER TO statement with the binary log coordinates.
3212 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
3213 # a SQL comment, and has no effect.
3214 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003215 },
Craig Citroe633be12015-03-02 13:40:36 -08003216 },
3217 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003218 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003219 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
3220 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3221 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3222 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
3223 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3224 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3225 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
3226 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3227 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3228 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
3229 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
3230 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08003231 }</pre>
3232</div>
3233
3234<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003235 <code class="details" id="restoreBackup">restoreBackup(project, instance, body=None, x__xgafv=None)</code>
3236 <pre>Restores a backup of a Cloud SQL instance. Using this operation might cause
3237your instance to restart.
Craig Citroe633be12015-03-02 13:40:36 -08003238
3239Args:
3240 project: string, Project ID of the project that contains the instance. (required)
3241 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003242 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08003243 The object takes the form of:
3244
3245{ # Database instance restore backup request.
Bu Sun Kim65020912020-05-20 12:08:20 -07003246 &quot;restoreBackupContext&quot;: { # Database instance restore from backup context. # Parameters required to perform the restore backup operation.
Dan O'Mearadd494642020-05-01 07:42:23 -07003247 # Backup context contains source instance id and project id.
Bu Sun Kim65020912020-05-20 12:08:20 -07003248 &quot;project&quot;: &quot;A String&quot;, # The full project ID of the source instance.
3249 &quot;backupRunId&quot;: &quot;A String&quot;, # The ID of the backup run to restore from.
3250 &quot;instanceId&quot;: &quot;A String&quot;, # The ID of the instance that the backup was taken from.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003251 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#restoreBackupContext&lt;/code&gt;.
Craig Citroe633be12015-03-02 13:40:36 -08003252 },
3253 }
3254
Dan O'Mearadd494642020-05-01 07:42:23 -07003255 x__xgafv: string, V1 error format.
3256 Allowed values
3257 1 - v1 error format
3258 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08003259
3260Returns:
3261 An object of the form:
3262
Dan O'Mearadd494642020-05-01 07:42:23 -07003263 { # An Operation resource.&amp;nbsp;For successful operations that return an
3264 # Operation resource, only the fields relevant to the operation are populated
3265 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003266 &quot;targetLink&quot;: &quot;A String&quot;,
3267 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
3268 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
3269 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
3270 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
3271 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
3272 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
3273 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
3274 # populated.
3275 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
3276 { # Database instance operation error.
3277 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
3278 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
3279 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07003280 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003281 ],
3282 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
3283 },
3284 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
3285 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07003286 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07003287 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
3288 # specify a database, and is overridden by any database specification in the
3289 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
3290 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003291 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
3292 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
3293 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003294 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07003295 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
3296 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3297 # write permissions to the bucket and read access to the file.
3298 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
3299 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3300 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003301 },
3302 },
3303 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07003304 # &lt;code&gt;gs:
3305 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
3306 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
3307 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003308 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3309 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003310 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
3311 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
3312 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
3313 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
3314 # of the database table are loaded with CSV data.
3315 &quot;A String&quot;,
3316 ],
3317 },
Craig Citroe633be12015-03-02 13:40:36 -08003318 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003319 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
3320 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
3321 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
3322 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07003323 # identifier to retrieve the Operations resource that has information about
3324 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003325 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003326 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3327 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
3328 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
3329 # stored. The URI is in the form &lt;code&gt;gs:
3330 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
3331 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
3332 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
3333 # // compressed.
3334 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
3335 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
3336 },
3337 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07003338 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07003339 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
3340 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
3341 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
3342 # either by using this property or by using the
3343 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
3344 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
3345 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
3346 # this database must match the one specified in the
3347 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07003348 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003349 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003350 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
3351 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07003352 # you specify tables, specify one and only one database. For PostgreSQL
3353 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07003354 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003355 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003356 &quot;schemaOnly&quot;: True or False, # Export only schemas.
3357 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
3358 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07003359 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
3360 # a CHANGE MASTER TO statement with the binary log coordinates.
3361 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
3362 # a SQL comment, and has no effect.
3363 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003364 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003365 },
3366 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003367 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003368 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
3369 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3370 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3371 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
3372 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3373 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3374 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
3375 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3376 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3377 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
3378 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
3379 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003380 }</pre>
3381</div>
3382
3383<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003384 <code class="details" id="rotateServerCa">rotateServerCa(project, instance, body=None, x__xgafv=None)</code>
3385 <pre>Rotates the server certificate to one signed by the Certificate Authority
3386(CA) version previously added with the addServerCA method.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003387
3388Args:
3389 project: string, Project ID of the project that contains the instance. (required)
3390 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003391 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003392 The object takes the form of:
3393
3394{ # Rotate Server CA request.
Bu Sun Kim65020912020-05-20 12:08:20 -07003395 &quot;rotateServerCaContext&quot;: { # Instance rotate server CA context. # Contains details about the rotate server CA operation.
3396 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#rotateServerCaContext&lt;/code&gt;.
3397 &quot;nextVersion&quot;: &quot;A String&quot;, # The fingerprint of the next version to be rotated to. If left unspecified,
Dan O'Mearadd494642020-05-01 07:42:23 -07003398 # will be rotated to the most recently added server CA version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003399 },
3400 }
3401
Dan O'Mearadd494642020-05-01 07:42:23 -07003402 x__xgafv: string, V1 error format.
3403 Allowed values
3404 1 - v1 error format
3405 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003406
3407Returns:
3408 An object of the form:
3409
Dan O'Mearadd494642020-05-01 07:42:23 -07003410 { # An Operation resource.&amp;nbsp;For successful operations that return an
3411 # Operation resource, only the fields relevant to the operation are populated
3412 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003413 &quot;targetLink&quot;: &quot;A String&quot;,
3414 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
3415 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
3416 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
3417 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
3418 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
3419 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
3420 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
3421 # populated.
3422 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
3423 { # Database instance operation error.
3424 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
3425 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
3426 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07003427 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003428 ],
3429 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
3430 },
3431 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
3432 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07003433 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07003434 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
3435 # specify a database, and is overridden by any database specification in the
3436 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
3437 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003438 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
3439 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
3440 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003441 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07003442 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
3443 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3444 # write permissions to the bucket and read access to the file.
3445 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
3446 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3447 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003448 },
3449 },
3450 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07003451 # &lt;code&gt;gs:
3452 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
3453 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
3454 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003455 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3456 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003457 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
3458 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
3459 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
3460 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
3461 # of the database table are loaded with CSV data.
3462 &quot;A String&quot;,
3463 ],
3464 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003465 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003466 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
3467 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
3468 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
3469 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07003470 # identifier to retrieve the Operations resource that has information about
3471 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003472 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003473 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3474 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
3475 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
3476 # stored. The URI is in the form &lt;code&gt;gs:
3477 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
3478 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
3479 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
3480 # // compressed.
3481 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
3482 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
3483 },
3484 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07003485 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07003486 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
3487 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
3488 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
3489 # either by using this property or by using the
3490 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
3491 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
3492 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
3493 # this database must match the one specified in the
3494 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07003495 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003496 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003497 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
3498 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07003499 # you specify tables, specify one and only one database. For PostgreSQL
3500 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07003501 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003502 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003503 &quot;schemaOnly&quot;: True or False, # Export only schemas.
3504 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
3505 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07003506 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
3507 # a CHANGE MASTER TO statement with the binary log coordinates.
3508 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
3509 # a SQL comment, and has no effect.
3510 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003511 },
Craig Citroe633be12015-03-02 13:40:36 -08003512 },
3513 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003514 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003515 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
3516 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3517 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3518 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
3519 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3520 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3521 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
3522 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3523 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3524 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
3525 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
3526 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08003527 }</pre>
3528</div>
3529
3530<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003531 <code class="details" id="startReplica">startReplica(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08003532 <pre>Starts the replication in the read replica instance.
3533
3534Args:
3535 project: string, ID of the project that contains the read replica. (required)
3536 instance: string, Cloud SQL read replica instance name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003537 x__xgafv: string, V1 error format.
3538 Allowed values
3539 1 - v1 error format
3540 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08003541
3542Returns:
3543 An object of the form:
3544
Dan O'Mearadd494642020-05-01 07:42:23 -07003545 { # An Operation resource.&amp;nbsp;For successful operations that return an
3546 # Operation resource, only the fields relevant to the operation are populated
3547 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003548 &quot;targetLink&quot;: &quot;A String&quot;,
3549 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
3550 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
3551 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
3552 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
3553 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
3554 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
3555 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
3556 # populated.
3557 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
3558 { # Database instance operation error.
3559 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
3560 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
3561 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07003562 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003563 ],
3564 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
3565 },
3566 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
3567 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07003568 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07003569 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
3570 # specify a database, and is overridden by any database specification in the
3571 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
3572 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003573 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
3574 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
3575 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003576 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07003577 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
3578 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3579 # write permissions to the bucket and read access to the file.
3580 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
3581 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3582 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003583 },
3584 },
3585 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07003586 # &lt;code&gt;gs:
3587 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
3588 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
3589 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003590 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3591 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003592 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
3593 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
3594 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
3595 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
3596 # of the database table are loaded with CSV data.
3597 &quot;A String&quot;,
3598 ],
3599 },
Craig Citroe633be12015-03-02 13:40:36 -08003600 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003601 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
3602 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
3603 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
3604 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07003605 # identifier to retrieve the Operations resource that has information about
3606 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003607 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003608 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3609 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
3610 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
3611 # stored. The URI is in the form &lt;code&gt;gs:
3612 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
3613 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
3614 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
3615 # // compressed.
3616 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
3617 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
3618 },
3619 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07003620 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07003621 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
3622 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
3623 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
3624 # either by using this property or by using the
3625 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
3626 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
3627 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
3628 # this database must match the one specified in the
3629 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07003630 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003631 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003632 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
3633 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07003634 # you specify tables, specify one and only one database. For PostgreSQL
3635 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07003636 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003637 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003638 &quot;schemaOnly&quot;: True or False, # Export only schemas.
3639 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
3640 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07003641 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
3642 # a CHANGE MASTER TO statement with the binary log coordinates.
3643 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
3644 # a SQL comment, and has no effect.
3645 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003646 },
Craig Citroe633be12015-03-02 13:40:36 -08003647 },
3648 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003649 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003650 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
3651 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3652 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3653 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
3654 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3655 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3656 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
3657 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3658 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3659 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
3660 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
3661 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08003662 }</pre>
3663</div>
3664
3665<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003666 <code class="details" id="stopReplica">stopReplica(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -08003667 <pre>Stops the replication in the read replica instance.
3668
3669Args:
3670 project: string, ID of the project that contains the read replica. (required)
3671 instance: string, Cloud SQL read replica instance name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003672 x__xgafv: string, V1 error format.
3673 Allowed values
3674 1 - v1 error format
3675 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08003676
3677Returns:
3678 An object of the form:
3679
Dan O'Mearadd494642020-05-01 07:42:23 -07003680 { # An Operation resource.&amp;nbsp;For successful operations that return an
3681 # Operation resource, only the fields relevant to the operation are populated
3682 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003683 &quot;targetLink&quot;: &quot;A String&quot;,
3684 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
3685 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
3686 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
3687 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
3688 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
3689 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
3690 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
3691 # populated.
3692 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
3693 { # Database instance operation error.
3694 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
3695 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
3696 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07003697 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003698 ],
3699 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
3700 },
3701 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
3702 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07003703 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07003704 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
3705 # specify a database, and is overridden by any database specification in the
3706 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
3707 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003708 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
3709 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
3710 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003711 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07003712 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
3713 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3714 # write permissions to the bucket and read access to the file.
3715 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
3716 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3717 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003718 },
3719 },
3720 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07003721 # &lt;code&gt;gs:
3722 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
3723 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
3724 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003725 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3726 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003727 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
3728 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
3729 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
3730 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
3731 # of the database table are loaded with CSV data.
3732 &quot;A String&quot;,
3733 ],
3734 },
Craig Citroe633be12015-03-02 13:40:36 -08003735 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003736 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
3737 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
3738 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
3739 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07003740 # identifier to retrieve the Operations resource that has information about
3741 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003742 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003743 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3744 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
3745 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
3746 # stored. The URI is in the form &lt;code&gt;gs:
3747 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
3748 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
3749 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
3750 # // compressed.
3751 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
3752 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
3753 },
3754 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07003755 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07003756 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
3757 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
3758 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
3759 # either by using this property or by using the
3760 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
3761 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
3762 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
3763 # this database must match the one specified in the
3764 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07003765 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003766 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003767 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
3768 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07003769 # you specify tables, specify one and only one database. For PostgreSQL
3770 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07003771 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08003772 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003773 &quot;schemaOnly&quot;: True or False, # Export only schemas.
3774 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
3775 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07003776 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
3777 # a CHANGE MASTER TO statement with the binary log coordinates.
3778 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
3779 # a SQL comment, and has no effect.
3780 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003781 },
Craig Citroe633be12015-03-02 13:40:36 -08003782 },
3783 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003784 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003785 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
3786 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3787 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3788 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
3789 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3790 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3791 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
3792 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3793 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3794 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
3795 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
3796 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08003797 }</pre>
3798</div>
3799
3800<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003801 <code class="details" id="truncateLog">truncateLog(project, instance, body=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003802 <pre>Truncate MySQL general and slow query log tables
3803
3804Args:
3805 project: string, Project ID of the Cloud SQL project. (required)
3806 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003807 body: object, The request body.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003808 The object takes the form of:
3809
3810{ # Instance truncate log request.
Bu Sun Kim65020912020-05-20 12:08:20 -07003811 &quot;truncateLogContext&quot;: { # Database Instance truncate log context. # Contains details about the truncate log operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003812 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#truncateLogContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07003813 &quot;logType&quot;: &quot;A String&quot;, # The type of log to truncate. Valid values are
Dan O'Mearadd494642020-05-01 07:42:23 -07003814 # &lt;code&gt;MYSQL_GENERAL_TABLE&lt;/code&gt; and &lt;code&gt;MYSQL_SLOW_TABLE&lt;/code&gt;.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003815 },
3816 }
3817
Dan O'Mearadd494642020-05-01 07:42:23 -07003818 x__xgafv: string, V1 error format.
3819 Allowed values
3820 1 - v1 error format
3821 2 - v2 error format
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003822
3823Returns:
3824 An object of the form:
3825
Dan O'Mearadd494642020-05-01 07:42:23 -07003826 { # An Operation resource.&amp;nbsp;For successful operations that return an
3827 # Operation resource, only the fields relevant to the operation are populated
3828 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003829 &quot;targetLink&quot;: &quot;A String&quot;,
3830 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
3831 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
3832 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
3833 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
3834 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
3835 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
3836 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
3837 # populated.
3838 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
3839 { # Database instance operation error.
3840 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
3841 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
3842 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07003843 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003844 ],
3845 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
3846 },
3847 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
3848 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07003849 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07003850 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
3851 # specify a database, and is overridden by any database specification in the
3852 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
3853 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003854 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
3855 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
3856 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003857 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07003858 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
3859 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3860 # write permissions to the bucket and read access to the file.
3861 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
3862 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
3863 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003864 },
3865 },
3866 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07003867 # &lt;code&gt;gs:
3868 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
3869 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
3870 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003871 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3872 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003873 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
3874 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
3875 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
3876 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
3877 # of the database table are loaded with CSV data.
3878 &quot;A String&quot;,
3879 ],
3880 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003881 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003882 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
3883 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
3884 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
3885 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07003886 # identifier to retrieve the Operations resource that has information about
3887 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003888 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003889 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
3890 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
3891 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
3892 # stored. The URI is in the form &lt;code&gt;gs:
3893 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
3894 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
3895 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
3896 # // compressed.
3897 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
3898 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
3899 },
3900 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07003901 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07003902 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
3903 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
3904 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
3905 # either by using this property or by using the
3906 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
3907 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
3908 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
3909 # this database must match the one specified in the
3910 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07003911 &quot;A String&quot;,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003912 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003913 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
3914 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07003915 # you specify tables, specify one and only one database. For PostgreSQL
3916 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07003917 &quot;A String&quot;,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003918 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003919 &quot;schemaOnly&quot;: True or False, # Export only schemas.
3920 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
3921 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07003922 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
3923 # a CHANGE MASTER TO statement with the binary log coordinates.
3924 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
3925 # a SQL comment, and has no effect.
3926 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003927 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003928 },
3929 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003930 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003931 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
3932 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3933 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3934 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
3935 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3936 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3937 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
3938 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
3939 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
3940 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
3941 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
3942 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003943 }</pre>
3944</div>
3945
3946<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003947 <code class="details" id="update">update(project, instance, body=None, x__xgafv=None)</code>
3948 <pre>Updates settings of a Cloud SQL instance. Using this operation might cause
3949your instance to restart.
Craig Citroe633be12015-03-02 13:40:36 -08003950
3951Args:
3952 project: string, Project ID of the project that contains the instance. (required)
3953 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003954 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -08003955 The object takes the form of:
3956
3957{ # A Cloud SQL instance resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003958 &quot;onPremisesConfiguration&quot;: { # On-premises instance configuration. # Configuration specific to on-premises instances.
3959 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
3960 # is encoded in the client&#x27;s certificate.
3961 &quot;dumpFilePath&quot;: &quot;A String&quot;, # The dump file to create the Cloud SQL replica.
3962 &quot;hostPort&quot;: &quot;A String&quot;, # The host and port of the on-premises instance in host:port format
3963 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
3964 &quot;username&quot;: &quot;A String&quot;, # The username for connecting to on-premises instance.
3965 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
3966 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#onPremisesConfiguration&lt;/code&gt;.
3967 &quot;password&quot;: &quot;A String&quot;, # The password for connecting to on-premises instance.
3968 },
3969 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL instance. The Google
3970 # apps domain is prefixed if applicable.
3971 &quot;serviceAccountEmailAddress&quot;: &quot;A String&quot;, # The service account email address assigned to the instance. This property
3972 # is applicable only to Second Generation instances.
3973 &quot;databaseVersion&quot;: &quot;A String&quot;, # The database engine type and version. The &lt;code&gt;databaseVersion&lt;/code&gt;
3974 # field can not be changed after instance creation. MySQL Second Generation
3975 # instances: &lt;code&gt;MYSQL_5_7&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_6&lt;/code&gt;.
3976 # PostgreSQL instances: &lt;code&gt;POSTGRES_9_6&lt;/code&gt; (default) or
3977 # &lt;code&gt;POSTGRES_11 Beta&lt;/code&gt; MySQL First Generation
3978 # instances: &lt;code&gt;MYSQL_5_6&lt;/code&gt; (default) or &lt;code&gt;MYSQL_5_5&lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07003979 &quot;suspensionReason&quot;: [ # If the instance state is SUSPENDED, the reason for the suspension.
3980 &quot;A String&quot;,
3981 ],
3982 &quot;settings&quot;: { # Database instance settings. # The user settings.
Bu Sun Kim65020912020-05-20 12:08:20 -07003983 &quot;pricingPlan&quot;: &quot;A String&quot;, # The pricing plan for this instance. This can be either &lt;code&gt;PER_USE&lt;/code&gt;
3984 # or &lt;code&gt;PACKAGE&lt;/code&gt;. Only &lt;code&gt;PER_USE&lt;/code&gt; is supported for Second
3985 # Generation instances.
3986 &quot;storageAutoResize&quot;: True or False, # Configuration to increase storage size automatically. The default value is
3987 # true. Not used for First Generation instances.
3988 &quot;storageAutoResizeLimit&quot;: &quot;A String&quot;, # The maximum size to which storage capacity can be automatically increased.
3989 # The default value is 0, which specifies that there is no limit. Not used
3990 # for First Generation instances.
3991 &quot;authorizedGaeApplications&quot;: [ # The App Engine app IDs that can access this instance. First Generation
3992 # instances only.
3993 &quot;A String&quot;,
3994 ],
3995 &quot;tier&quot;: &quot;A String&quot;, # The tier (or machine type) for this instance, for example
3996 # &lt;code&gt;db-n1-standard-1&lt;/code&gt; (MySQL instances) or
3997 # &lt;code&gt;db-custom-1-3840&lt;/code&gt; (PostgreSQL instances). For MySQL instances,
3998 # this property determines whether the instance is First or Second
3999 # Generation. For more information, see &lt;a
4000 # href=&quot;/sql/docs/db_path/instance-settings&quot;&gt;Instance Settings&lt;/a&gt;.
4001 &quot;dataDiskSizeGb&quot;: &quot;A String&quot;, # The size of data disk, in GB. The data disk size minimum is 10GB. Not used
4002 # for First Generation instances.
4003 &quot;dataDiskType&quot;: &quot;A String&quot;, # The type of data disk: &lt;code&gt;PD_SSD&lt;/code&gt; (default) or
4004 # &lt;code&gt;PD_HDD&lt;/code&gt;. Not used for First Generation instances.
4005 &quot;databaseReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
4006 # replication is enabled or not.
4007 &quot;crashSafeReplicationEnabled&quot;: True or False, # Configuration specific to read replica instances. Indicates whether
4008 # database flags for crash-safe replication are enabled. This property is
4009 # only applicable to First Generation instances.
4010 &quot;backupConfiguration&quot;: { # Database instance backup configuration. # The daily backup configuration for the instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07004011 &quot;replicationLogArchivingEnabled&quot;: True or False, # Reserved for future use.
4012 &quot;location&quot;: &quot;A String&quot;, # Location of the backup
4013 &quot;pointInTimeRecoveryEnabled&quot;: True or False, # Reserved for future use.
4014 &quot;startTime&quot;: &quot;A String&quot;, # Start time for the daily backup configuration in UTC timezone in the 24
4015 # hour format - &lt;code&gt;HH:MM&lt;/code&gt;.
4016 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#backupConfiguration&lt;/code&gt;.
4017 &quot;enabled&quot;: True or False, # Whether this configuration is enabled.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004018 &quot;binaryLogEnabled&quot;: True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is
4019 # disabled, binarylog must be disabled as well.
Bu Sun Kim65020912020-05-20 12:08:20 -07004020 },
4021 &quot;userLabels&quot;: { # User-provided labels, represented as a dictionary where each label is a
4022 # single key value pair.
4023 &quot;a_key&quot;: &quot;A String&quot;,
4024 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004025 &quot;replicationType&quot;: &quot;A String&quot;, # The type of replication this instance uses. This can be either
4026 # &lt;code&gt;ASYNCHRONOUS&lt;/code&gt; or &lt;code&gt;SYNCHRONOUS&lt;/code&gt;. This property is
4027 # only applicable to First Generation instances.
4028 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#settings&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07004029 &quot;locationPreference&quot;: { # Preferred location. This specifies where a Cloud SQL instance should # The location preference settings. This allows the instance to be located as
4030 # near as possible to either an App Engine app or Compute Engine zone for
4031 # better performance. App Engine co-location is only applicable to First
4032 # Generation instances.
4033 # preferably be located, either in a specific Compute Engine zone, or
4034 # co-located with an App Engine application. Note that if the preferred
4035 # location is not available, the instance will be located as close as possible
4036 # within the region. Only one location may be specified.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004037 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#locationPreference&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07004038 &quot;zone&quot;: &quot;A String&quot;, # The preferred Compute Engine zone (e.g. us-central1-a, us-central1-b,
4039 # etc.).
4040 &quot;followGaeApplication&quot;: &quot;A String&quot;, # The AppEngine application to follow, it must be in the same region as the
4041 # Cloud SQL instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07004042 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004043 &quot;activationPolicy&quot;: &quot;A String&quot;, # The activation policy specifies when the instance is activated; it is
Dan O'Mearadd494642020-05-01 07:42:23 -07004044 # applicable only when the instance state is &lt;code&gt;RUNNABLE&lt;/code&gt;. Valid
4045 # values: &lt;br&gt;&lt;code&gt;ALWAYS&lt;/code&gt;: The instance is on, and remains so even in
4046 # the absence of connection requests. &lt;br&gt;&lt;code&gt;NEVER&lt;/code&gt;: The instance is
4047 # off; it is not activated, even if a connection request arrives.
4048 # &lt;br&gt;&lt;code&gt;ON_DEMAND&lt;/code&gt;: First Generation instances only. The instance
4049 # responds to incoming requests, and turns itself off when not in use.
4050 # Instances with &lt;code&gt;PER_USE&lt;/code&gt; pricing turn off after 15 minutes of
4051 # inactivity. Instances with &lt;code&gt;PER_PACKAGE&lt;/code&gt; pricing turn off after
4052 # 12 hours of inactivity.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004053 &quot;databaseFlags&quot;: [ # The database flags passed to the instance at startup.
4054 { # Database flags for Cloud SQL instances.
4055 &quot;name&quot;: &quot;A String&quot;, # The name of the flag. These flags are passed at instance startup, so
4056 # include both server options and system variables for MySQL. Flags should be
4057 # specified with underscores, not hyphens. For more information, see &lt;a
4058 # href=&quot;/sql/docs/mysql/flags&quot;&gt;Configuring Database Flags&lt;/a&gt; in the Cloud
4059 # SQL documentation.
4060 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. Booleans should be set to &lt;code&gt;on&lt;/code&gt; for true
4061 # and &lt;code&gt;off&lt;/code&gt; for false. This field must be omitted if the flag
4062 # doesn&#x27;t take a value.
4063 },
4064 ],
4065 &quot;settingsVersion&quot;: &quot;A String&quot;, # The version of instance settings. This is a required field for update
4066 # method to make sure concurrent updates are handled properly. During update,
4067 # use the most recent settingsVersion value for this instance and do not try
4068 # to update this value.
4069 &quot;availabilityType&quot;: &quot;A String&quot;, # Availability type (PostgreSQL and MySQL instances only). Potential values:
4070 # &lt;br&gt;&lt;code&gt;ZONAL&lt;/code&gt;: The instance serves data from only one zone.
4071 # Outages in that zone affect data accessibility. &lt;br&gt;&lt;code&gt;REGIONAL&lt;/code&gt;:
4072 # The instance can serve data from more than one zone in a region (it is
4073 # highly available). &lt;br&gt;For more information, see &lt;a
4074 # href=&quot;https://cloud.google.com/sql/docs/postgres/high-availability&quot;&gt;Overview
4075 # of the High Availability Configuration&lt;/a&gt;.
4076 &quot;ipConfiguration&quot;: { # IP Management configuration. # The settings for IP Management. This allows to enable or disable the
4077 # instance IP and manage which external networks can connect to the instance.
4078 # The IPv4 address cannot be disabled for Second Generation instances.
4079 &quot;privateNetwork&quot;: &quot;A String&quot;, # The resource link for the VPC network from which the Cloud SQL instance is
4080 # accessible for private IP. For example,
4081 # &lt;code&gt;/projects/myProject/global/networks/default&lt;/code&gt;. This setting can
4082 # be updated, but it cannot be removed after it is set.
4083 &quot;ipv4Enabled&quot;: True or False, # Whether the instance should be assigned an IP address or not.
4084 &quot;authorizedNetworks&quot;: [ # The list of external networks that are allowed to connect to the instance
4085 # using the IP. In &lt;a
4086 # href=&quot;http://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation&quot;&gt;CIDR
4087 # notation&lt;/a&gt;, also known as &#x27;slash&#x27; notation (e.g.
4088 # &lt;code&gt;192.168.100.0/24&lt;/code&gt;).
4089 { # An entry for an Access Control list.
4090 &quot;value&quot;: &quot;A String&quot;, # The whitelisted value for the access control list.
4091 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when this access control entry expires in &lt;a
4092 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
4093 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
4094 &quot;name&quot;: &quot;A String&quot;, # Optional. A label to identify this entry.
4095 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#aclEntry&lt;/code&gt;.
4096 },
4097 ],
4098 &quot;requireSsl&quot;: True or False, # Whether SSL connections over IP should be enforced or not.
4099 },
4100 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when a v2 Cloud SQL instance should # The maintenance window for this instance. This specifies when the instance
4101 # can be restarted for maintenance purposes. Not used for First Generation
4102 # instances.
4103 # preferably be restarted for system maintenance purposes.
4104 &quot;updateTrack&quot;: &quot;A String&quot;, # Maintenance timing setting: &lt;code&gt;canary&lt;/code&gt; (Earlier) or
4105 # &lt;code&gt;stable&lt;/code&gt; (Later). &lt;br /&gt;&lt;a
4106 # href=&quot;/sql/docs/db_path/instance-settings#maintenance-timing-2ndgen&quot;&gt;
4107 # Learn more&lt;/a&gt;.
4108 &quot;hour&quot;: 42, # hour of day - 0 to 23.
4109 &quot;day&quot;: 42, # day of week (1-7), starting on Monday.
4110 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#maintenanceWindow&lt;/code&gt;.
4111 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07004112 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004113 &quot;replicaNames&quot;: [ # The replicas of the instance.
4114 &quot;A String&quot;,
4115 ],
4116 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance.
4117 # Applies only to Second Generation instances.
4118 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionConfiguration&lt;/code&gt;.
4119 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
4120 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004121 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
4122 # API. Use the &lt;code&gt;settings.settingsVersion&lt;/code&gt; field instead.
4123 &quot;rootPassword&quot;: &quot;A String&quot;, # Initial root password. Use only on creation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004124 &quot;scheduledMaintenance&quot;: { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance.
4125 &quot;canDefer&quot;: True or False,
4126 &quot;startTime&quot;: &quot;A String&quot;, # The start time of any upcoming scheduled maintenance for this instance.
4127 &quot;canReschedule&quot;: True or False, # If the scheduled maintenance can be rescheduled.
4128 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004129 &quot;serverCaCert&quot;: { # SslCerts Resource # SSL configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004130 &quot;expirationTime&quot;: &quot;A String&quot;, # The time when the certificate expires in &lt;a
4131 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
4132 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07004133 &quot;sha1Fingerprint&quot;: &quot;A String&quot;, # Sha1 Fingerprint.
4134 &quot;certSerialNumber&quot;: &quot;A String&quot;, # Serial number, as extracted from the certificate.
4135 &quot;cert&quot;: &quot;A String&quot;, # PEM representation.
4136 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#sslCert&lt;/code&gt;.
4137 &quot;commonName&quot;: &quot;A String&quot;, # User supplied name. Constrained to [a-zA-Z.-_ ]+.
4138 &quot;createTime&quot;: &quot;A String&quot;, # The time when the certificate was created in &lt;a
4139 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
4140 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;
4141 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
4142 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004143 },
4144 &quot;maxDiskSize&quot;: &quot;A String&quot;, # The maximum disk size of the instance in bytes.
4145 &quot;name&quot;: &quot;A String&quot;, # Name of the Cloud SQL instance. This does not include the project ID.
4146 &quot;masterInstanceName&quot;: &quot;A String&quot;, # The name of the instance which will act as master in the replication setup.
4147 &quot;instanceType&quot;: &quot;A String&quot;, # The instance type. This can be one of the following.
4148 # &lt;br&gt;&lt;code&gt;CLOUD_SQL_INSTANCE&lt;/code&gt;: A Cloud SQL instance that is not
4149 # replicating from a master. &lt;br&gt;&lt;code&gt;ON_PREMISES_INSTANCE&lt;/code&gt;: An
4150 # instance running on the
4151 # customer&#x27;s premises. &lt;br&gt;&lt;code&gt;READ_REPLICA_INSTANCE&lt;/code&gt;: A Cloud SQL
4152 # instance configured as a read-replica.
4153 &quot;gceZone&quot;: &quot;A String&quot;, # The Compute Engine zone that the instance is currently serving from. This
4154 # value could be different from the zone that was specified when the instance
4155 # was created if the instance has failed over to its secondary zone.
4156 &quot;currentDiskSize&quot;: &quot;A String&quot;, # The current disk usage of the instance in bytes. This property has been
4157 # deprecated. Users should use the
4158 # &quot;cloudsql.googleapis.com/database/disk/bytes_used&quot; metric in Cloud
4159 # Monitoring API instead. Please see &lt;a
4160 # href=&quot;https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ&quot;&gt;this
4161 # announcement&lt;/a&gt; for details.
4162 &quot;replicaConfiguration&quot;: { # Read-replica configuration for connecting to the master. # Configuration specific to failover replicas and read replicas.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004163 &quot;mysqlReplicaConfiguration&quot;: { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises
4164 # master. Replication configuration information such as the username,
4165 # password, certificates, and keys are not stored in the instance metadata.
4166 # The configuration information is used only to set up the replication
4167 # connection and is stored by MySQL in a file named &lt;code&gt;master.info&lt;/code&gt;
4168 # in the data directory.
4169 &quot;password&quot;: &quot;A String&quot;, # The password for the replication connection.
4170 &quot;verifyServerCertificate&quot;: True or False, # Whether or not to check the master&#x27;s Common Name value in the certificate
4171 # that it sends during the SSL handshake.
4172 &quot;clientKey&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s private key. The corresponsing public key
4173 # is encoded in the client&#x27;s certificate.
4174 &quot;sslCipher&quot;: &quot;A String&quot;, # A list of permissible ciphers to use for SSL encryption.
4175 &quot;masterHeartbeatPeriod&quot;: &quot;A String&quot;, # Interval in milliseconds between replication heartbeats.
4176 &quot;dumpFilePath&quot;: &quot;A String&quot;, # Path to a SQL dump file in Google Cloud Storage from which the slave
4177 # instance is to be created. The URI is in the form gs:
4178 # //bucketName/fileName. Compressed gzip files (.gz) are also supported.
4179 # // Dumps should have the binlog co-ordinates from which replication should
4180 # // begin. This can be accomplished by setting --master-data to 1 when using
4181 # // mysqldump.
4182 &quot;connectRetryInterval&quot;: 42, # Seconds to wait between connect retries. MySQL&#x27;s default is 60 seconds.
4183 &quot;clientCertificate&quot;: &quot;A String&quot;, # PEM representation of the slave&#x27;s x509 certificate.
4184 &quot;username&quot;: &quot;A String&quot;, # The username for the replication connection.
4185 &quot;caCertificate&quot;: &quot;A String&quot;, # PEM representation of the trusted CA&#x27;s x509 certificate.
4186 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#mysqlReplicaConfiguration&lt;/code&gt;.
4187 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004188 &quot;failoverTarget&quot;: True or False, # Specifies if the replica is the failover target. If the field is set to
Dan O'Mearadd494642020-05-01 07:42:23 -07004189 # &lt;code&gt;true&lt;/code&gt; the replica will be designated as a failover replica. In
4190 # case the master instance fails, the replica instance will be promoted as
4191 # the new master instance. &lt;p&gt;Only one replica can be specified as failover
4192 # target, and the replica has to be in different zone with the master
4193 # instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07004194 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#replicaConfiguration&lt;/code&gt;.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00004195 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004196 &quot;connectionName&quot;: &quot;A String&quot;, # Connection name of the Cloud SQL instance used in connection strings.
4197 &quot;failoverReplica&quot;: { # The name and status of the failover replica. This property is applicable
4198 # only to Second Generation instances.
4199 &quot;available&quot;: True or False, # The availability status of the failover replica. A false status indicates
4200 # that the failover replica is out of sync. The master can only failover to
4201 # the failover replica when the status is true.
4202 &quot;name&quot;: &quot;A String&quot;, # The name of the failover replica. If specified at instance creation, a
4203 # failover replica is created for the instance. The name
4204 # doesn&#x27;t include the project ID. This property is applicable only to
4205 # Second Generation instances.
4206 },
4207 &quot;ipAddresses&quot;: [ # The assigned IP addresses for the instance.
4208 { # Database instance IP Mapping.
4209 &quot;timeToRetire&quot;: &quot;A String&quot;, # The due time for this IP to be retired in &lt;a
4210 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
4211 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;. This field is only available when
4212 # the IP is scheduled to be retired.
4213 &quot;type&quot;: &quot;A String&quot;, # The type of this IP address. A &lt;code&gt;PRIMARY&lt;/code&gt; address is a public
4214 # address that can accept incoming connections. A &lt;code&gt;PRIVATE&lt;/code&gt;
4215 # address is a private address that can accept incoming connections. An
4216 # &lt;code&gt;OUTGOING&lt;/code&gt; address is the source address of connections
4217 # originating from the instance, if supported.
4218 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address assigned.
4219 },
4220 ],
4221 &quot;ipv6Address&quot;: &quot;A String&quot;, # The IPv6 address assigned to the instance. This property is applicable only
4222 # to First Generation instances.
4223 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
4224 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Disk encryption status specific to an instance.
4225 # Applies only to Second Generation instances.
4226 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
4227 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionStatus&lt;/code&gt;.
4228 },
4229 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#instance&lt;/code&gt;.
4230 &quot;region&quot;: &quot;A String&quot;, # The geographical region. Can be &lt;code&gt;us-central&lt;/code&gt;
4231 # (&lt;code&gt;FIRST_GEN&lt;/code&gt; instances only), &lt;code&gt;us-central1&lt;/code&gt;
4232 # (&lt;code&gt;SECOND_GEN&lt;/code&gt; instances only), &lt;code&gt;asia-east1&lt;/code&gt; or
4233 # &lt;code&gt;europe-west1&lt;/code&gt;. Defaults to &lt;code&gt;us-central&lt;/code&gt; or
4234 # &lt;code&gt;us-central1&lt;/code&gt; depending on the instance type (First Generation
4235 # or Second Generation). The region can not be changed after instance
4236 # creation.
4237 &quot;state&quot;: &quot;A String&quot;, # The current serving state of the Cloud SQL instance. This can be one of the
4238 # following. &lt;br&gt;&lt;code&gt;RUNNABLE&lt;/code&gt;: The instance is running, or is ready
4239 # to run when accessed. &lt;br&gt;&lt;code&gt;SUSPENDED&lt;/code&gt;: The instance is not
4240 # available, for example due to problems with billing.
4241 # &lt;br&gt;&lt;code&gt;PENDING_CREATE&lt;/code&gt;: The instance is being created.
4242 # &lt;br&gt;&lt;code&gt;MAINTENANCE&lt;/code&gt;: The instance is down for maintenance.
4243 # &lt;br&gt;&lt;code&gt;FAILED&lt;/code&gt;: The instance creation failed.
4244 # &lt;br&gt;&lt;code&gt;UNKNOWN_STATE&lt;/code&gt;: The state of the instance is unknown.
4245 &quot;backendType&quot;: &quot;A String&quot;, # &lt;code&gt;FIRST_GEN&lt;/code&gt;: First Generation instance. MySQL only. &lt;br
4246 # /&gt;&lt;code&gt;SECOND_GEN&lt;/code&gt;: Second Generation instance or PostgreSQL
4247 # instance. &lt;br /&gt;&lt;code&gt;EXTERNAL&lt;/code&gt;: A database server that is not
4248 # managed by Google. &lt;br&gt;This property is read-only; use the
4249 # &lt;code&gt;tier&lt;/code&gt; property in the &lt;code&gt;settings&lt;/code&gt; object to determine
4250 # the database type and Second or First Generation.
Craig Citroe633be12015-03-02 13:40:36 -08004251 }
4252
Dan O'Mearadd494642020-05-01 07:42:23 -07004253 x__xgafv: string, V1 error format.
4254 Allowed values
4255 1 - v1 error format
4256 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -08004257
4258Returns:
4259 An object of the form:
4260
Dan O'Mearadd494642020-05-01 07:42:23 -07004261 { # An Operation resource.&amp;nbsp;For successful operations that return an
4262 # Operation resource, only the fields relevant to the operation are populated
4263 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07004264 &quot;targetLink&quot;: &quot;A String&quot;,
4265 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
4266 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
4267 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
4268 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
4269 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
4270 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
4271 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
4272 # populated.
4273 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
4274 { # Database instance operation error.
4275 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
4276 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
4277 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -07004278 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004279 ],
4280 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
4281 },
4282 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
4283 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -07004284 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -07004285 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
4286 # specify a database, and is overridden by any database specification in the
4287 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
4288 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07004289 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
4290 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
4291 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004292 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -07004293 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
4294 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
4295 # write permissions to the bucket and read access to the file.
4296 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
4297 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
4298 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07004299 },
4300 },
4301 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -07004302 # &lt;code&gt;gs:
4303 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
4304 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
4305 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07004306 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
4307 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004308 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
4309 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
4310 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
4311 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
4312 # of the database table are loaded with CSV data.
4313 &quot;A String&quot;,
4314 ],
4315 },
Craig Citroe633be12015-03-02 13:40:36 -08004316 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004317 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
4318 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
4319 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
4320 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -07004321 # identifier to retrieve the Operations resource that has information about
4322 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004323 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004324 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
4325 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
4326 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
4327 # stored. The URI is in the form &lt;code&gt;gs:
4328 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
4329 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
4330 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
4331 # // compressed.
4332 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
4333 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
4334 },
4335 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -07004336 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -07004337 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
4338 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
4339 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
4340 # either by using this property or by using the
4341 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
4342 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
4343 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
4344 # this database must match the one specified in the
4345 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -07004346 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08004347 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004348 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
4349 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -07004350 # you specify tables, specify one and only one database. For PostgreSQL
4351 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -07004352 &quot;A String&quot;,
Craig Citroe633be12015-03-02 13:40:36 -08004353 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004354 &quot;schemaOnly&quot;: True or False, # Export only schemas.
4355 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
4356 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -07004357 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
4358 # a CHANGE MASTER TO statement with the binary log coordinates.
4359 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
4360 # a SQL comment, and has no effect.
4361 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004362 },
Craig Citroe633be12015-03-02 13:40:36 -08004363 },
4364 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004365 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004366 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
4367 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
4368 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
4369 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
4370 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
4371 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
4372 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
4373 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
4374 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
4375 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
4376 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
4377 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -08004378 }</pre>
4379</div>
4380
4381</body></html>