blob: bb4d2807277851dd826ef35ec2d18d8c6b723666 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="sql_v1beta4.html">Cloud SQL Admin API</a> . <a href="sql_v1beta4.databases.html">databases</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(project, instance, database, x__xgafv=None)</a></code></p>
79<p class="firstline">Deletes a database from a Cloud SQL instance.</p>
80<p class="toc_element">
81 <code><a href="#get">get(project, instance, database, x__xgafv=None)</a></code></p>
82<p class="firstline">Retrieves a resource containing information about a database inside a Cloud</p>
83<p class="toc_element">
84 <code><a href="#insert">insert(project, instance, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Inserts a resource containing information about a database inside a Cloud</p>
86<p class="toc_element">
87 <code><a href="#list">list(project, instance, x__xgafv=None)</a></code></p>
88<p class="firstline">Lists databases in the specified Cloud SQL instance.</p>
89<p class="toc_element">
90 <code><a href="#patch">patch(project, instance, database, body=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Partially updates a resource containing information about a database inside</p>
92<p class="toc_element">
93 <code><a href="#update">update(project, instance, database, body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Updates a resource containing information about a database inside a Cloud</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="delete">delete(project, instance, database, x__xgafv=None)</code>
98 <pre>Deletes a database from a Cloud SQL instance.
99
100Args:
101 project: string, Project ID of the project that contains the instance. (required)
102 instance: string, Database instance ID. This does not include the project ID. (required)
103 database: string, Name of the database to be deleted in the instance. (required)
104 x__xgafv: string, V1 error format.
105 Allowed values
106 1 - v1 error format
107 2 - v2 error format
108
109Returns:
110 An object of the form:
111
112 { # An Operation resource.&amp;nbsp;For successful operations that return an
113 # Operation resource, only the fields relevant to the operation are populated
114 # in the resource.
115 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
116 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
117 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
118 &quot;targetLink&quot;: &quot;A String&quot;,
119 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
120 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
121 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
122 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
123 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
124 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
125 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
126 # populated.
127 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
128 { # Database instance operation error.
129 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
130 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
131 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
132 },
133 ],
134 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
135 },
136 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
137 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
138 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
139 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
140 # of the database table are loaded with CSV data.
141 &quot;A String&quot;,
142 ],
143 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
144 },
145 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
146 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
147 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
148 # specify a database, and is overridden by any database specification in the
149 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
150 # must be specified.
151 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
152 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
153 &quot;encryptionOptions&quot;: {
154 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
155 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
156 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
157 # write permissions to the bucket and read access to the file.
158 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
159 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
160 # write permissions to the bucket and read access to the file.
161 },
162 },
163 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
164 # &lt;code&gt;gs:
165 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
166 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
167 # // write permissions to the bucket and read access to the file.
168 &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
169 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
170 },
171 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
172 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
173 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
174 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
175 # identifier to retrieve the Operations resource that has information about
176 # the operation.
177 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
178 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
179 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
180 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
181 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
182 # either by using this property or by using the
183 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
184 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
185 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
186 # this database must match the one specified in the
187 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
188 &quot;A String&quot;,
189 ],
190 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
191 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
192 # you specify tables, specify one and only one database. For PostgreSQL
193 # instances, you can specify only one table.
194 &quot;A String&quot;,
195 ],
196 &quot;schemaOnly&quot;: True or False, # Export only schemas.
197 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
198 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
199 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
200 # a CHANGE MASTER TO statement with the binary log coordinates.
201 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
202 # a SQL comment, and has no effect.
203 # All other values are ignored.
204 },
205 },
206 &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
207 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
208 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
209 # stored. The URI is in the form &lt;code&gt;gs:
210 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
211 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
212 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
213 # // compressed.
214 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
215 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
216 },
217 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
218 },
219 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
220 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
221 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
222 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
223 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
224 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
225 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
226 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
227 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
228 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
229 }</pre>
230</div>
231
232<div class="method">
233 <code class="details" id="get">get(project, instance, database, x__xgafv=None)</code>
234 <pre>Retrieves a resource containing information about a database inside a Cloud
235SQL instance.
236
237Args:
238 project: string, Project ID of the project that contains the instance. (required)
239 instance: string, Database instance ID. This does not include the project ID. (required)
240 database: string, Name of the database in the instance. (required)
241 x__xgafv: string, V1 error format.
242 Allowed values
243 1 - v1 error format
244 2 - v2 error format
245
246Returns:
247 An object of the form:
248
249 { # Represents a SQL database on the Cloud SQL instance.
250 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
251 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
252 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
253 },
254 &quot;charset&quot;: &quot;A String&quot;, # The MySQL charset value.
255 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#database&lt;/code&gt;.
256 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
257 # API.
258 &quot;collation&quot;: &quot;A String&quot;, # The MySQL collation value.
259 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
260 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include
261 # the project ID or instance name.
262 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL database. The Google
263 # apps domain is prefixed if applicable.
264 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
265 }</pre>
266</div>
267
268<div class="method">
269 <code class="details" id="insert">insert(project, instance, body=None, x__xgafv=None)</code>
270 <pre>Inserts a resource containing information about a database inside a Cloud
271SQL instance.
272
273Args:
274 project: string, Project ID of the project that contains the instance. (required)
275 instance: string, Database instance ID. This does not include the project ID. (required)
276 body: object, The request body.
277 The object takes the form of:
278
279{ # Represents a SQL database on the Cloud SQL instance.
280 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
281 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
282 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
283 },
284 &quot;charset&quot;: &quot;A String&quot;, # The MySQL charset value.
285 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#database&lt;/code&gt;.
286 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
287 # API.
288 &quot;collation&quot;: &quot;A String&quot;, # The MySQL collation value.
289 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
290 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include
291 # the project ID or instance name.
292 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL database. The Google
293 # apps domain is prefixed if applicable.
294 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
295}
296
297 x__xgafv: string, V1 error format.
298 Allowed values
299 1 - v1 error format
300 2 - v2 error format
301
302Returns:
303 An object of the form:
304
305 { # An Operation resource.&amp;nbsp;For successful operations that return an
306 # Operation resource, only the fields relevant to the operation are populated
307 # in the resource.
308 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
309 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
310 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
311 &quot;targetLink&quot;: &quot;A String&quot;,
312 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
313 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
314 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
315 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
316 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
317 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
318 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
319 # populated.
320 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
321 { # Database instance operation error.
322 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
323 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
324 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
325 },
326 ],
327 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
328 },
329 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
330 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
331 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
332 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
333 # of the database table are loaded with CSV data.
334 &quot;A String&quot;,
335 ],
336 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
337 },
338 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
339 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
340 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
341 # specify a database, and is overridden by any database specification in the
342 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
343 # must be specified.
344 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
345 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
346 &quot;encryptionOptions&quot;: {
347 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
348 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
349 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
350 # write permissions to the bucket and read access to the file.
351 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
352 # form &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 },
355 },
356 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
357 # &lt;code&gt;gs:
358 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
359 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
360 # // write permissions to the bucket and read access to the file.
361 &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
362 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
363 },
364 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
365 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
366 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
367 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
368 # identifier to retrieve the Operations resource that has information about
369 # the operation.
370 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
371 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
372 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
373 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
374 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
375 # either by using this property or by using the
376 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
377 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
378 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
379 # this database must match the one specified in the
380 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
381 &quot;A String&quot;,
382 ],
383 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
384 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
385 # you specify tables, specify one and only one database. For PostgreSQL
386 # instances, you can specify only one table.
387 &quot;A String&quot;,
388 ],
389 &quot;schemaOnly&quot;: True or False, # Export only schemas.
390 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
391 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
392 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
393 # a CHANGE MASTER TO statement with the binary log coordinates.
394 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
395 # a SQL comment, and has no effect.
396 # All other values are ignored.
397 },
398 },
399 &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
400 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
401 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
402 # stored. The URI is in the form &lt;code&gt;gs:
403 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
404 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
405 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
406 # // compressed.
407 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
408 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
409 },
410 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
411 },
412 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
413 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
414 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
415 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
416 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
417 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
418 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
419 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
420 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
421 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
422 }</pre>
423</div>
424
425<div class="method">
426 <code class="details" id="list">list(project, instance, x__xgafv=None)</code>
427 <pre>Lists databases in the specified Cloud SQL instance.
428
429Args:
430 project: string, Project ID of the project that contains the instance. (required)
431 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
432 x__xgafv: string, V1 error format.
433 Allowed values
434 1 - v1 error format
435 2 - v2 error format
436
437Returns:
438 An object of the form:
439
440 { # Database list response.
441 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#databasesList&lt;/code&gt;.
442 &quot;items&quot;: [ # List of database resources in the instance.
443 { # Represents a SQL database on the Cloud SQL instance.
444 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
445 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
446 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
447 },
448 &quot;charset&quot;: &quot;A String&quot;, # The MySQL charset value.
449 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#database&lt;/code&gt;.
450 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
451 # API.
452 &quot;collation&quot;: &quot;A String&quot;, # The MySQL collation value.
453 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
454 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include
455 # the project ID or instance name.
456 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL database. The Google
457 # apps domain is prefixed if applicable.
458 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
459 },
460 ],
461 }</pre>
462</div>
463
464<div class="method">
465 <code class="details" id="patch">patch(project, instance, database, body=None, x__xgafv=None)</code>
466 <pre>Partially updates a resource containing information about a database inside
467a Cloud SQL instance. This method supports patch semantics.
468
469Args:
470 project: string, Project ID of the project that contains the instance. (required)
471 instance: string, Database instance ID. This does not include the project ID. (required)
472 database: string, Name of the database to be updated in the instance. (required)
473 body: object, The request body.
474 The object takes the form of:
475
476{ # Represents a SQL database on the Cloud SQL instance.
477 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
478 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
479 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
480 },
481 &quot;charset&quot;: &quot;A String&quot;, # The MySQL charset value.
482 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#database&lt;/code&gt;.
483 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
484 # API.
485 &quot;collation&quot;: &quot;A String&quot;, # The MySQL collation value.
486 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
487 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include
488 # the project ID or instance name.
489 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL database. The Google
490 # apps domain is prefixed if applicable.
491 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
492}
493
494 x__xgafv: string, V1 error format.
495 Allowed values
496 1 - v1 error format
497 2 - v2 error format
498
499Returns:
500 An object of the form:
501
502 { # An Operation resource.&amp;nbsp;For successful operations that return an
503 # Operation resource, only the fields relevant to the operation are populated
504 # in the resource.
505 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
506 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
507 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
508 &quot;targetLink&quot;: &quot;A String&quot;,
509 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
510 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
511 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
512 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
513 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
514 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
515 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
516 # populated.
517 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
518 { # Database instance operation error.
519 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
520 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
521 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
522 },
523 ],
524 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
525 },
526 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
527 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
528 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
529 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
530 # of the database table are loaded with CSV data.
531 &quot;A String&quot;,
532 ],
533 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
534 },
535 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
536 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
537 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
538 # specify a database, and is overridden by any database specification in the
539 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
540 # must be specified.
541 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
542 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
543 &quot;encryptionOptions&quot;: {
544 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
545 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
546 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
547 # write permissions to the bucket and read access to the file.
548 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
549 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
550 # write permissions to the bucket and read access to the file.
551 },
552 },
553 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
554 # &lt;code&gt;gs:
555 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
556 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
557 # // write permissions to the bucket and read access to the file.
558 &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
559 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
560 },
561 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
562 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
563 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
564 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
565 # identifier to retrieve the Operations resource that has information about
566 # the operation.
567 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
568 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
569 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
570 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
571 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
572 # either by using this property or by using the
573 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
574 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
575 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
576 # this database must match the one specified in the
577 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
578 &quot;A String&quot;,
579 ],
580 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
581 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
582 # you specify tables, specify one and only one database. For PostgreSQL
583 # instances, you can specify only one table.
584 &quot;A String&quot;,
585 ],
586 &quot;schemaOnly&quot;: True or False, # Export only schemas.
587 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
588 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
589 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
590 # a CHANGE MASTER TO statement with the binary log coordinates.
591 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
592 # a SQL comment, and has no effect.
593 # All other values are ignored.
594 },
595 },
596 &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
597 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
598 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
599 # stored. The URI is in the form &lt;code&gt;gs:
600 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
601 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
602 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
603 # // compressed.
604 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
605 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
606 },
607 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
608 },
609 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
610 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
611 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
612 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
613 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
614 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
615 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
616 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
617 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
618 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
619 }</pre>
620</div>
621
622<div class="method">
623 <code class="details" id="update">update(project, instance, database, body=None, x__xgafv=None)</code>
624 <pre>Updates a resource containing information about a database inside a Cloud
625SQL instance.
626
627Args:
628 project: string, Project ID of the project that contains the instance. (required)
629 instance: string, Database instance ID. This does not include the project ID. (required)
630 database: string, Name of the database to be updated in the instance. (required)
631 body: object, The request body.
632 The object takes the form of:
633
634{ # Represents a SQL database on the Cloud SQL instance.
635 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
636 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
637 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
638 },
639 &quot;charset&quot;: &quot;A String&quot;, # The MySQL charset value.
640 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#database&lt;/code&gt;.
641 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the
642 # API.
643 &quot;collation&quot;: &quot;A String&quot;, # The MySQL collation value.
644 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
645 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include
646 # the project ID or instance name.
647 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL database. The Google
648 # apps domain is prefixed if applicable.
649 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
650}
651
652 x__xgafv: string, V1 error format.
653 Allowed values
654 1 - v1 error format
655 2 - v2 error format
656
657Returns:
658 An object of the form:
659
660 { # An Operation resource.&amp;nbsp;For successful operations that return an
661 # Operation resource, only the fields relevant to the operation are populated
662 # in the resource.
663 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
664 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
665 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
666 &quot;targetLink&quot;: &quot;A String&quot;,
667 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
668 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
669 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
670 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
671 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
672 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
673 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
674 # populated.
675 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
676 { # Database instance operation error.
677 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
678 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
679 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
680 },
681 ],
682 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
683 },
684 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
685 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
686 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
687 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
688 # of the database table are loaded with CSV data.
689 &quot;A String&quot;,
690 ],
691 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
692 },
693 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
694 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
695 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
696 # specify a database, and is overridden by any database specification in the
697 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
698 # must be specified.
699 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
700 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
701 &quot;encryptionOptions&quot;: {
702 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
703 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
704 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
705 # write permissions to the bucket and read access to the file.
706 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
707 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
708 # write permissions to the bucket and read access to the file.
709 },
710 },
711 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
712 # &lt;code&gt;gs:
713 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
714 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
715 # // write permissions to the bucket and read access to the file.
716 &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
717 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
718 },
719 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
720 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
721 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
722 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
723 # identifier to retrieve the Operations resource that has information about
724 # the operation.
725 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
726 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
727 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
728 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
729 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
730 # either by using this property or by using the
731 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
732 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
733 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
734 # this database must match the one specified in the
735 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
736 &quot;A String&quot;,
737 ],
738 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
739 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
740 # you specify tables, specify one and only one database. For PostgreSQL
741 # instances, you can specify only one table.
742 &quot;A String&quot;,
743 ],
744 &quot;schemaOnly&quot;: True or False, # Export only schemas.
745 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
746 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
747 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
748 # a CHANGE MASTER TO statement with the binary log coordinates.
749 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
750 # a SQL comment, and has no effect.
751 # All other values are ignored.
752 },
753 },
754 &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
755 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
756 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
757 # stored. The URI is in the form &lt;code&gt;gs:
758 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
759 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
760 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
761 # // compressed.
762 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
763 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
764 },
765 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
766 },
767 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
768 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
769 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
770 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
771 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
772 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
773 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
774 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
775 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
776 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
777 }</pre>
778</div>
779
780</body></html>