Debian Codegraph @

docs/dyn/sqladmin_v1.databases.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="sqladmin_v1.html">Cloud SQL Admin API</a> . <a href="sqladmin_v1.databases.html">databases</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#delete">delete(project, instance, database, x__xgafv=None)</a></code></p>
82 <p class="firstline">Deletes a database from a Cloud SQL instance.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(project, instance, database, x__xgafv=None)</a></code></p>
85 <p class="firstline">Retrieves a resource containing information about a database inside a Cloud SQL instance.</p>
86 <p class="toc_element">
87 <code><a href="#insert">insert(project, instance, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(project, instance, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists databases in the specified Cloud SQL instance.</p>
92 <p class="toc_element">
93 <code><a href="#patch">patch(project, instance, database, body=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.</p>
95 <p class="toc_element">
96 <code><a href="#update">update(project, instance, database, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a resource containing information about a database inside a Cloud SQL instance.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="delete">delete(project, instance, database, x__xgafv=None)</code>
106 <pre>Deletes a database from a Cloud SQL instance.
107
108 Args:
109 project: string, Project ID of the project that contains the instance. (required)
110 instance: string, Database instance ID. This does not include the project ID. (required)
111 database: string, Name of the database to be deleted in the instance. (required)
112 x__xgafv: string, V1 error format.
113 Allowed values
114 1 - v1 error format
115 2 - v2 error format
116
117 Returns:
118 An object of the form:
119
120 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
121 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
122 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
123 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
124 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
125 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
126 },
127 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
128 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
129 &quot;message&quot;: &quot;A String&quot;, # The warning message.
130 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
131 },
132 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
133 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
134 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
135 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
136 },
137 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
138 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
139 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
140 { # Database instance operation error.
141 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
142 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
143 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
144 },
145 ],
146 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
147 },
148 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
149 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
150 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
151 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
152 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
153 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
154 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
155 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
156 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
157 },
158 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
159 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
160 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
161 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
162 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
163 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
164 },
165 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
166 &quot;A String&quot;,
167 ],
168 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
169 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
170 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
171 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
172 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
173 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
174 },
175 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
176 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
177 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
178 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
179 },
180 &quot;schemaOnly&quot;: True or False, # Export only schemas.
181 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
182 &quot;A String&quot;,
183 ],
184 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
185 },
186 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
187 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
188 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
189 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
190 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
191 },
192 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
193 },
194 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
195 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
196 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
197 &quot;encryptionOptions&quot;: {
198 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
199 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
200 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
201 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
202 },
203 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
204 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
205 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
206 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
207 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
208 },
209 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
210 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
211 &quot;A String&quot;,
212 ],
213 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
214 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
215 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
216 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
217 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
218 },
219 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
220 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
221 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
222 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
223 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
224 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
225 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
226 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
227 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
228 },
229 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
230 },
231 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
232 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
233 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
234 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
235 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
236 },
237 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
238 },
239 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
240 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
241 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
242 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
243 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
244 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
245 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
246 { # Structured PreCheckResponse containing message, type, and required actions.
247 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
248 &quot;A String&quot;,
249 ],
250 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
251 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
252 },
253 ],
254 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
255 },
256 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
257 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
258 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
259 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
260 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
261 },
262 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
263 &quot;targetLink&quot;: &quot;A String&quot;,
264 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
265 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
266 }</pre>
267 </div>
268
269 <div class="method">
270 <code class="details" id="get">get(project, instance, database, x__xgafv=None)</code>
271 <pre>Retrieves a resource containing information about a database inside a Cloud SQL instance.
272
273 Args:
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 database: string, Name of the database in the instance. (required)
277 x__xgafv: string, V1 error format.
278 Allowed values
279 1 - v1 error format
280 2 - v2 error format
281
282 Returns:
283 An object of the form:
284
285 { # Represents a SQL database on the Cloud SQL instance.
286 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
287 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
288 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
289 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
290 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#database`.
291 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include 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 apps domain is prefixed if applicable.
293 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
294 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
295 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
296 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
297 },
298 }</pre>
299 </div>
300
301 <div class="method">
302 <code class="details" id="insert">insert(project, instance, body=None, x__xgafv=None)</code>
303 <pre>Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can&#x27;t modify the default character set and collation.
304
305 Args:
306 project: string, Project ID of the project that contains the instance. (required)
307 instance: string, Database instance ID. This does not include the project ID. (required)
308 body: object, The request body.
309 The object takes the form of:
310
311 { # Represents a SQL database on the Cloud SQL instance.
312 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
313 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
314 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
315 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
316 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#database`.
317 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
318 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
319 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
320 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
321 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
322 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
323 },
324 }
325
326 x__xgafv: string, V1 error format.
327 Allowed values
328 1 - v1 error format
329 2 - v2 error format
330
331 Returns:
332 An object of the form:
333
334 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
335 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
336 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
337 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
338 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
339 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
340 },
341 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
342 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
343 &quot;message&quot;: &quot;A String&quot;, # The warning message.
344 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
345 },
346 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
347 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
348 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
349 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
350 },
351 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
352 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
353 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
354 { # Database instance operation error.
355 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
356 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
357 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
358 },
359 ],
360 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
361 },
362 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
363 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
364 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
365 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
366 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
367 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
368 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
369 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
370 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
371 },
372 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
373 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
374 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
375 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
376 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
377 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
378 },
379 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
380 &quot;A String&quot;,
381 ],
382 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
383 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
384 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
385 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
386 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
387 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
388 },
389 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
390 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
391 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
392 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
393 },
394 &quot;schemaOnly&quot;: True or False, # Export only schemas.
395 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
396 &quot;A String&quot;,
397 ],
398 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
399 },
400 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
401 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
402 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
403 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
404 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
405 },
406 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
407 },
408 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
409 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
410 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
411 &quot;encryptionOptions&quot;: {
412 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
413 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
414 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
415 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
416 },
417 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
418 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
419 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
420 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
421 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
422 },
423 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
424 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
425 &quot;A String&quot;,
426 ],
427 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
428 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
429 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
430 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
431 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
432 },
433 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
434 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
435 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
436 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
437 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
438 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
439 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
440 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
441 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
442 },
443 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
444 },
445 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
446 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
447 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
448 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
449 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
450 },
451 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
452 },
453 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
454 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
455 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
456 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
457 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
458 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
459 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
460 { # Structured PreCheckResponse containing message, type, and required actions.
461 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
462 &quot;A String&quot;,
463 ],
464 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
465 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
466 },
467 ],
468 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
469 },
470 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
471 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
472 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
473 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
474 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
475 },
476 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
477 &quot;targetLink&quot;: &quot;A String&quot;,
478 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
479 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
480 }</pre>
481 </div>
482
483 <div class="method">
484 <code class="details" id="list">list(project, instance, x__xgafv=None)</code>
485 <pre>Lists databases in the specified Cloud SQL instance.
486
487 Args:
488 project: string, Project ID of the project that contains the instance. (required)
489 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
490 x__xgafv: string, V1 error format.
491 Allowed values
492 1 - v1 error format
493 2 - v2 error format
494
495 Returns:
496 An object of the form:
497
498 { # Database list response.
499 &quot;items&quot;: [ # List of database resources in the instance.
500 { # Represents a SQL database on the Cloud SQL instance.
501 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
502 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
503 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
504 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
505 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#database`.
506 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
507 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
508 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
509 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
510 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
511 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
512 },
513 },
514 ],
515 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#databasesList`.
516 }</pre>
517 </div>
518
519 <div class="method">
520 <code class="details" id="patch">patch(project, instance, database, body=None, x__xgafv=None)</code>
521 <pre>Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
522
523 Args:
524 project: string, Project ID of the project that contains the instance. (required)
525 instance: string, Database instance ID. This does not include the project ID. (required)
526 database: string, Name of the database to be updated in the instance. (required)
527 body: object, The request body.
528 The object takes the form of:
529
530 { # Represents a SQL database on the Cloud SQL instance.
531 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
532 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
533 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
534 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
535 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#database`.
536 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
537 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
538 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
539 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
540 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
541 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
542 },
543 }
544
545 x__xgafv: string, V1 error format.
546 Allowed values
547 1 - v1 error format
548 2 - v2 error format
549
550 Returns:
551 An object of the form:
552
553 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
554 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
555 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
556 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
557 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
558 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
559 },
560 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
561 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
562 &quot;message&quot;: &quot;A String&quot;, # The warning message.
563 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
564 },
565 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
566 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
567 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
568 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
569 },
570 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
571 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
572 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
573 { # Database instance operation error.
574 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
575 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
576 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
577 },
578 ],
579 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
580 },
581 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
582 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
583 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
584 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
585 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
586 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
587 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
588 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
589 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
590 },
591 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
592 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
593 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
594 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
595 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
596 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
597 },
598 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
599 &quot;A String&quot;,
600 ],
601 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
602 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
603 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
604 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
605 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
606 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
607 },
608 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
609 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
610 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
611 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
612 },
613 &quot;schemaOnly&quot;: True or False, # Export only schemas.
614 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
615 &quot;A String&quot;,
616 ],
617 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
618 },
619 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
620 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
621 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
622 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
623 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
624 },
625 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
626 },
627 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
628 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
629 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
630 &quot;encryptionOptions&quot;: {
631 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
632 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
633 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
634 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
635 },
636 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
637 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
638 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
639 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
640 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
641 },
642 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
643 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
644 &quot;A String&quot;,
645 ],
646 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
647 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
648 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
649 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
650 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
651 },
652 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
653 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
654 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
655 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
656 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
657 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
658 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
659 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
660 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
661 },
662 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
663 },
664 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
665 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
666 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
667 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
668 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
669 },
670 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
671 },
672 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
673 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
674 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
675 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
676 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
677 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
678 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
679 { # Structured PreCheckResponse containing message, type, and required actions.
680 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
681 &quot;A String&quot;,
682 ],
683 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
684 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
685 },
686 ],
687 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
688 },
689 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
690 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
691 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
692 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
693 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
694 },
695 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
696 &quot;targetLink&quot;: &quot;A String&quot;,
697 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
698 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
699 }</pre>
700 </div>
701
702 <div class="method">
703 <code class="details" id="update">update(project, instance, database, body=None, x__xgafv=None)</code>
704 <pre>Updates a resource containing information about a database inside a Cloud SQL instance.
705
706 Args:
707 project: string, Project ID of the project that contains the instance. (required)
708 instance: string, Database instance ID. This does not include the project ID. (required)
709 database: string, Name of the database to be updated in the instance. (required)
710 body: object, The request body.
711 The object takes the form of:
712
713 { # Represents a SQL database on the Cloud SQL instance.
714 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
715 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
716 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
717 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
718 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#database`.
719 &quot;name&quot;: &quot;A String&quot;, # The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
720 &quot;project&quot;: &quot;A String&quot;, # The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
721 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
722 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
723 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
724 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
725 },
726 }
727
728 x__xgafv: string, V1 error format.
729 Allowed values
730 1 - v1 error format
731 2 - v2 error format
732
733 Returns:
734 An object of the form:
735
736 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
737 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
738 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for SSRS setup.
739 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for SSRS setup.
740 &quot;serviceLogin&quot;: &quot;A String&quot;, # The username to be used as the service login to connect to the report database for SSRS setup.
741 &quot;setupLogin&quot;: &quot;A String&quot;, # The username to be used as the setup login to connect to the database server for SSRS setup.
742 },
743 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
744 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
745 &quot;message&quot;: &quot;A String&quot;, # The warning message.
746 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
747 },
748 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
749 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
750 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
751 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
752 },
753 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
754 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
755 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
756 { # Database instance operation error.
757 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
758 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
759 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
760 },
761 ],
762 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
763 },
764 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
765 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
766 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
767 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
768 &quot;differentialBase&quot;: True or False, # Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
769 &quot;exportLogEndTime&quot;: &quot;A String&quot;, # Optional. The end timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs until current time will be included. Only applied to Cloud SQL for SQL Server.
770 &quot;exportLogStartTime&quot;: &quot;A String&quot;, # Optional. The begin timestamp when transaction log will be included in the export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs from the beginning of retention period will be included. Only applied to Cloud SQL for SQL Server.
771 &quot;stripeCount&quot;: 42, # Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
772 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
773 },
774 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
775 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
776 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
777 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
778 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
779 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
780 },
781 &quot;databases&quot;: [ # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. `PostgreSQL instances:` If you don&#x27;t specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
782 &quot;A String&quot;,
783 ],
784 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
785 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
786 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
787 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
788 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
789 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to `1`, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than `1`, --set-gtid-purged is set to OFF.
790 },
791 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
792 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
793 &quot;clean&quot;: True or False, # Optional. Use this option to include DROP &lt;object&gt; SQL statements. Use these statements to delete database objects before running the import operation.
794 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
795 },
796 &quot;schemaOnly&quot;: True or False, # Export only schemas.
797 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
798 &quot;A String&quot;,
799 ],
800 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
801 },
802 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
803 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have write access to the bucket. Applicable only for SQL Server instances.
804 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
805 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
806 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have write access to the location. Applicable only for SQL Server instances.
807 },
808 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
809 },
810 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
811 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
812 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF
813 &quot;encryptionOptions&quot;: {
814 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
815 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
816 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
817 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file.
818 },
819 &quot;noRecovery&quot;: True or False, # Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.
820 &quot;recoveryOnly&quot;: True or False, # Whether or not the backup importing request will just bring database online without downloading Bak content only one of &quot;no_recovery&quot; and &quot;recovery_only&quot; can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
821 &quot;stopAt&quot;: &quot;A String&quot;, # Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.
822 &quot;stopAtMark&quot;: &quot;A String&quot;, # Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
823 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
824 },
825 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
826 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
827 &quot;A String&quot;,
828 ],
829 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
830 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
831 &quot;linesTerminatedBy&quot;: &quot;A String&quot;, # This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
832 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
833 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
834 },
835 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
836 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
837 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
838 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
839 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
840 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
841 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
842 &quot;clean&quot;: True or False, # Optional. The --clean flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
843 &quot;ifExists&quot;: True or False, # Optional. The --if-exists flag for the pg_restore utility. This flag applies only if you enabled Cloud SQL to import files in parallel.
844 },
845 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
846 },
847 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server TDE certificates
848 &quot;certificatePath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate public key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
849 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
850 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
851 &quot;privateKeyPath&quot;: &quot;A String&quot;, # Required. Path to the TDE certificate private key in the form gs://bucketName/fileName. The instance must have read access to the file. Applicable only for SQL Server instances.
852 },
853 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
854 },
855 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
856 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
857 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
858 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
859 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
860 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
861 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
862 { # Structured PreCheckResponse containing message, type, and required actions.
863 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
864 &quot;A String&quot;,
865 ],
866 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
867 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
868 },
869 ],
870 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
871 },
872 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
873 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
874 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
875 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
876 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
877 },
878 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
879 &quot;targetLink&quot;: &quot;A String&quot;,
880 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
881 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
882 }</pre>
883 </div>
884
885 </body></html>