blob: b33f7530230766abf3bf4d69e033811f0d069eea [file] [log] [blame]
Craig Citroe633be12015-03-02 13:40:36 -08001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="sqladmin_v1beta4.html">Cloud SQL Admin API</a> . <a href="sqladmin_v1beta4.databases.html">databases</a></h1>
Craig Citroe633be12015-03-02 13:40:36 -080076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#delete">delete(project, instance, database, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070082<p class="firstline">Deletes a database from a Cloud SQL instance.</p>
Craig Citroe633be12015-03-02 13:40:36 -080083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#get">get(project, instance, database, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Retrieves a resource containing information about a database inside a Cloud SQL instance.</p>
Craig Citroe633be12015-03-02 13:40:36 -080086<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#insert">insert(project, instance, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Inserts a resource containing information about a database inside a Cloud SQL instance.</p>
Craig Citroe633be12015-03-02 13:40:36 -080089<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#list">list(project, instance, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080091<p class="firstline">Lists databases in the specified Cloud SQL instance.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(project, instance, database, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.</p>
Craig Citroe633be12015-03-02 13:40:36 -080095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#update">update(project, instance, database, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Updates a resource containing information about a database inside a Cloud SQL instance.</p>
Craig Citroe633be12015-03-02 13:40:36 -080098<h3>Method Details</h3>
99<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102</div>
103
104<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code class="details" id="delete">delete(project, instance, database, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700106 <pre>Deletes a database from a Cloud SQL instance.
Craig Citroe633be12015-03-02 13:40:36 -0800107
108Args:
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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 x__xgafv: string, V1 error format.
113 Allowed values
114 1 - v1 error format
115 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800116
117Returns:
118 An object of the form:
119
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700120 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800121 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
122 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
123 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#backupContext*.
124 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800125 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
126 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be 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;kind&quot;: &quot;A String&quot;, # This is always *sql#operationError*.
131 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
132 },
133 ],
134 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operationErrors*.
135 },
136 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800137 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800138 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800139 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700140 &quot;databases&quot;: [ # Databases to be exported. *MySQL instances:* If *fileType* is *SQL* and no database is specified, all databases are exported, except for the *mysql* system database. If *fileType* is *CSV*, you can specify one database, either by using this property or by using the *csvExportOptions.selectQuery* property, which takes precedence over this property. *PostgreSQL instances:* You must specify one database to be exported. If *fileType* is *CSV*, this database must match the one specified in the *csvExportOptions.selectQuery* property. *SQL Server instances:* You must specify one database to be exported, and the *fileType* must be *BAK*.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800141 &quot;A String&quot;,
142 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800143 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. *BAK*: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800144 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#exportContext*.
145 &quot;offload&quot;: True or False, # Option for export offload.
146 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
147 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800148 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to *1*, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to *2*, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than *1*, --set-gtid-purged is set to OFF.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800149 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800150 &quot;schemaOnly&quot;: True or False, # Export only schemas.
151 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800152 &quot;A String&quot;,
153 ],
154 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800155 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form *gs://bucketName/fileName*. If the file already exists, the request succeeds, but the operation fails. If *fileType* is *SQL* and the filename ends with .gz, the contents are compressed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800156 },
157 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
158 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
159 &quot;encryptionOptions&quot;: {
160 &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.
161 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
162 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form *gs://bucketName/fileName*. The instance must have write permissions to the bucket and read access to the file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800163 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800164 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800165 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
166 &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.
167 &quot;A String&quot;,
168 ],
169 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
170 },
171 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If *fileType* is *SQL*, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If *fileType* is *CSV*, one database must be specified.
172 &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.
173 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
174 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#importContext*.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800175 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form *gs://bucketName/fileName*. Compressed gzip files (.gz) are supported when *fileType* is *SQL*. The instance must have write permissions to the bucket and read access to the file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800176 },
177 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
178 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operation*.
179 &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.
180 &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*
181 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
182 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
183 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *SQL_OPERATION_STATUS_UNSPECIFIED*
184 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
185 &quot;targetLink&quot;: &quot;A String&quot;,
186 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
187 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
188}</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800189</div>
190
191<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700192 <code class="details" id="get">get(project, instance, database, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700193 <pre>Retrieves a resource containing information about a database inside a Cloud SQL instance.
Craig Citroe633be12015-03-02 13:40:36 -0800194
195Args:
196 project: string, Project ID of the project that contains the instance. (required)
197 instance: string, Database instance ID. This does not include the project ID. (required)
198 database: string, Name of the database in the instance. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800203
204Returns:
205 An object of the form:
206
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 { # Represents a SQL database on the Cloud SQL instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800208 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
209 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
210 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
211 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
212 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#database*.
213 &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.
214 &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.
215 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
216 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
217 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
218 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
219 },
220}</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800221</div>
222
223<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700224 <code class="details" id="insert">insert(project, instance, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700225 <pre>Inserts a resource containing information about a database inside a Cloud SQL instance.
Craig Citroe633be12015-03-02 13:40:36 -0800226
227Args:
228 project: string, Project ID of the project that contains the instance. (required)
229 instance: string, Database instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700230 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -0800231 The object takes the form of:
232
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233{ # Represents a SQL database on the Cloud SQL instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800234 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
235 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
236 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
237 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
238 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#database*.
239 &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.
240 &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.
241 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
242 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
243 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
244 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
245 },
246}
Craig Citroe633be12015-03-02 13:40:36 -0800247
Dan O'Mearadd494642020-05-01 07:42:23 -0700248 x__xgafv: string, V1 error format.
249 Allowed values
250 1 - v1 error format
251 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800252
253Returns:
254 An object of the form:
255
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700256 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800257 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
258 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
259 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#backupContext*.
260 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800261 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
262 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
263 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
264 { # Database instance operation error.
265 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
266 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operationError*.
267 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
268 },
269 ],
270 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operationErrors*.
271 },
272 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800273 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800274 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800275 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700276 &quot;databases&quot;: [ # Databases to be exported. *MySQL instances:* If *fileType* is *SQL* and no database is specified, all databases are exported, except for the *mysql* system database. If *fileType* is *CSV*, you can specify one database, either by using this property or by using the *csvExportOptions.selectQuery* property, which takes precedence over this property. *PostgreSQL instances:* You must specify one database to be exported. If *fileType* is *CSV*, this database must match the one specified in the *csvExportOptions.selectQuery* property. *SQL Server instances:* You must specify one database to be exported, and the *fileType* must be *BAK*.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800277 &quot;A String&quot;,
278 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800279 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. *BAK*: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800280 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#exportContext*.
281 &quot;offload&quot;: True or False, # Option for export offload.
282 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
283 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800284 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to *1*, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to *2*, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than *1*, --set-gtid-purged is set to OFF.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800285 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800286 &quot;schemaOnly&quot;: True or False, # Export only schemas.
287 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800288 &quot;A String&quot;,
289 ],
290 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800291 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form *gs://bucketName/fileName*. If the file already exists, the request succeeds, but the operation fails. If *fileType* is *SQL* and the filename ends with .gz, the contents are compressed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800292 },
293 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
294 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
295 &quot;encryptionOptions&quot;: {
296 &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.
297 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
298 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form *gs://bucketName/fileName*. The instance must have write permissions to the bucket and read access to the file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800299 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800300 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800301 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
302 &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.
303 &quot;A String&quot;,
304 ],
305 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
306 },
307 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If *fileType* is *SQL*, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If *fileType* is *CSV*, one database must be specified.
308 &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.
309 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
310 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#importContext*.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800311 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form *gs://bucketName/fileName*. Compressed gzip files (.gz) are supported when *fileType* is *SQL*. The instance must have write permissions to the bucket and read access to the file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800312 },
313 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
314 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operation*.
315 &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.
316 &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*
317 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
318 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
319 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *SQL_OPERATION_STATUS_UNSPECIFIED*
320 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
321 &quot;targetLink&quot;: &quot;A String&quot;,
322 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
323 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
324}</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800325</div>
326
327<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700328 <code class="details" id="list">list(project, instance, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -0800329 <pre>Lists databases in the specified Cloud SQL instance.
330
331Args:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700332 project: string, Project ID of the project that contains the instance. (required)
Craig Citroe633be12015-03-02 13:40:36 -0800333 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700334 x__xgafv: string, V1 error format.
335 Allowed values
336 1 - v1 error format
337 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800338
339Returns:
340 An object of the form:
341
342 { # Database list response.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800343 &quot;items&quot;: [ # List of database resources in the instance.
344 { # Represents a SQL database on the Cloud SQL instance.
345 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
346 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
347 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
348 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
349 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#database*.
350 &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.
351 &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.
352 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
353 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
354 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
355 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
356 },
357 },
358 ],
359 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#databasesList*.
360}</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800361</div>
362
363<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700364 <code class="details" id="patch">patch(project, instance, database, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700365 <pre>Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
Craig Citroe633be12015-03-02 13:40:36 -0800366
367Args:
368 project: string, Project ID of the project that contains the instance. (required)
369 instance: string, Database instance ID. This does not include the project ID. (required)
370 database: string, Name of the database to be updated in the instance. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700371 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -0800372 The object takes the form of:
373
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374{ # Represents a SQL database on the Cloud SQL instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800375 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
376 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
377 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
378 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
379 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#database*.
380 &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.
381 &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.
382 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
383 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
384 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
385 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
386 },
387}
Craig Citroe633be12015-03-02 13:40:36 -0800388
Dan O'Mearadd494642020-05-01 07:42:23 -0700389 x__xgafv: string, V1 error format.
390 Allowed values
391 1 - v1 error format
392 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800393
394Returns:
395 An object of the form:
396
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700397 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800398 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
399 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
400 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#backupContext*.
401 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800402 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
403 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
404 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
405 { # Database instance operation error.
406 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
407 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operationError*.
408 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
409 },
410 ],
411 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operationErrors*.
412 },
413 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800414 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800415 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800416 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700417 &quot;databases&quot;: [ # Databases to be exported. *MySQL instances:* If *fileType* is *SQL* and no database is specified, all databases are exported, except for the *mysql* system database. If *fileType* is *CSV*, you can specify one database, either by using this property or by using the *csvExportOptions.selectQuery* property, which takes precedence over this property. *PostgreSQL instances:* You must specify one database to be exported. If *fileType* is *CSV*, this database must match the one specified in the *csvExportOptions.selectQuery* property. *SQL Server instances:* You must specify one database to be exported, and the *fileType* must be *BAK*.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800418 &quot;A String&quot;,
419 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800420 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. *BAK*: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800421 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#exportContext*.
422 &quot;offload&quot;: True or False, # Option for export offload.
423 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
424 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800425 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to *1*, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to *2*, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than *1*, --set-gtid-purged is set to OFF.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800426 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800427 &quot;schemaOnly&quot;: True or False, # Export only schemas.
428 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800429 &quot;A String&quot;,
430 ],
431 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800432 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form *gs://bucketName/fileName*. If the file already exists, the request succeeds, but the operation fails. If *fileType* is *SQL* and the filename ends with .gz, the contents are compressed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800433 },
434 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
435 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
436 &quot;encryptionOptions&quot;: {
437 &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.
438 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
439 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form *gs://bucketName/fileName*. The instance must have write permissions to the bucket and read access to the file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800440 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800441 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800442 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
443 &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.
444 &quot;A String&quot;,
445 ],
446 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
447 },
448 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If *fileType* is *SQL*, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If *fileType* is *CSV*, one database must be specified.
449 &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.
450 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
451 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#importContext*.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800452 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form *gs://bucketName/fileName*. Compressed gzip files (.gz) are supported when *fileType* is *SQL*. The instance must have write permissions to the bucket and read access to the file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800453 },
454 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
455 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operation*.
456 &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.
457 &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*
458 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
459 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
460 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *SQL_OPERATION_STATUS_UNSPECIFIED*
461 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
462 &quot;targetLink&quot;: &quot;A String&quot;,
463 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
464 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
465}</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800466</div>
467
468<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700469 <code class="details" id="update">update(project, instance, database, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700470 <pre>Updates a resource containing information about a database inside a Cloud SQL instance.
Craig Citroe633be12015-03-02 13:40:36 -0800471
472Args:
473 project: string, Project ID of the project that contains the instance. (required)
474 instance: string, Database instance ID. This does not include the project ID. (required)
475 database: string, Name of the database to be updated in the instance. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700476 body: object, The request body.
Craig Citroe633be12015-03-02 13:40:36 -0800477 The object takes the form of:
478
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700479{ # Represents a SQL database on the Cloud SQL instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800480 &quot;charset&quot;: &quot;A String&quot;, # The Cloud SQL charset value.
481 &quot;collation&quot;: &quot;A String&quot;, # The Cloud SQL collation value.
482 &quot;etag&quot;: &quot;A String&quot;, # This field is deprecated and will be removed from a future version of the API.
483 &quot;instance&quot;: &quot;A String&quot;, # The name of the Cloud SQL instance. This does not include the project ID.
484 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#database*.
485 &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.
486 &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.
487 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
488 &quot;sqlserverDatabaseDetails&quot;: { # Represents a Sql Server database on the Cloud SQL instance.
489 &quot;compatibilityLevel&quot;: 42, # The version of SQL Server with which the database is to be made compatible
490 &quot;recoveryModel&quot;: &quot;A String&quot;, # The recovery model of a SQL Server database
491 },
492}
Craig Citroe633be12015-03-02 13:40:36 -0800493
Dan O'Mearadd494642020-05-01 07:42:23 -0700494 x__xgafv: string, V1 error format.
495 Allowed values
496 1 - v1 error format
497 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800498
499Returns:
500 An object of the form:
501
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700502 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800503 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
504 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
505 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#backupContext*.
506 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800507 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
508 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
509 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
510 { # Database instance operation error.
511 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
512 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operationError*.
513 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
514 },
515 ],
516 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operationErrors*.
517 },
518 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800519 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800520 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800521 },
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700522 &quot;databases&quot;: [ # Databases to be exported. *MySQL instances:* If *fileType* is *SQL* and no database is specified, all databases are exported, except for the *mysql* system database. If *fileType* is *CSV*, you can specify one database, either by using this property or by using the *csvExportOptions.selectQuery* property, which takes precedence over this property. *PostgreSQL instances:* You must specify one database to be exported. If *fileType* is *CSV*, this database must match the one specified in the *csvExportOptions.selectQuery* property. *SQL Server instances:* You must specify one database to be exported, and the *fileType* must be *BAK*.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800523 &quot;A String&quot;,
524 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800525 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. *BAK*: The file contains backup data for a SQL Server instance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800526 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#exportContext*.
527 &quot;offload&quot;: True or False, # Option for export offload.
528 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
529 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800530 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication. If set to *1*, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to *2*, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than *1*, --set-gtid-purged is set to OFF.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800531 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800532 &quot;schemaOnly&quot;: True or False, # Export only schemas.
533 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800534 &quot;A String&quot;,
535 ],
536 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800537 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form *gs://bucketName/fileName*. If the file already exists, the request succeeds, but the operation fails. If *fileType* is *SQL* and the filename ends with .gz, the contents are compressed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800538 },
539 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
540 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
541 &quot;encryptionOptions&quot;: {
542 &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.
543 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
544 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form *gs://bucketName/fileName*. The instance must have write permissions to the bucket and read access to the file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800545 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800546 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800547 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
548 &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.
549 &quot;A String&quot;,
550 ],
551 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
552 },
553 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If *fileType* is *SQL*, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If *fileType* is *CSV*, one database must be specified.
554 &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.
555 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
556 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#importContext*.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800557 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form *gs://bucketName/fileName*. Compressed gzip files (.gz) are supported when *fileType* is *SQL*. The instance must have write permissions to the bucket and read access to the file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800558 },
559 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
560 &quot;kind&quot;: &quot;A String&quot;, # This is always *sql#operation*.
561 &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.
562 &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*
563 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
564 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
565 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *SQL_OPERATION_STATUS_UNSPECIFIED*
566 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
567 &quot;targetLink&quot;: &quot;A String&quot;,
568 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
569 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
570}</pre>
Craig Citroe633be12015-03-02 13:40:36 -0800571</div>
572
573</body></html>