Debian Codegraph @

docs/dyn/sqladmin_v1beta4.projects.instances.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_v1beta4.html">Cloud SQL Admin API</a> . <a href="sqladmin_v1beta4.projects.html">projects</a> . <a href="sqladmin_v1beta4.projects.instances.html">instances</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="#getDiskShrinkConfig">getDiskShrinkConfig(project, instance, x__xgafv=None)</a></code></p>
82 <p class="firstline">Get Disk Shrink Config for a given instance.</p>
83 <p class="toc_element">
84 <code><a href="#getLatestRecoveryTime">getLatestRecoveryTime(project, instance, sourceInstanceDeletionTime=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Get Latest Recovery Time for a given instance.</p>
86 <p class="toc_element">
87 <code><a href="#performDiskShrink">performDiskShrink(project, instance, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Perform Disk Shrink on primary instance.</p>
89 <p class="toc_element">
90 <code><a href="#rescheduleMaintenance">rescheduleMaintenance(project, instance, body=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Reschedules the maintenance on the given instance.</p>
92 <p class="toc_element">
93 <code><a href="#resetReplicaSize">resetReplicaSize(project, instance, body=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Reset Replica Size to primary instance disk size.</p>
95 <p class="toc_element">
96 <code><a href="#startExternalSync">startExternalSync(project, instance, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Start External primary instance migration.</p>
98 <p class="toc_element">
99 <code><a href="#verifyExternalSyncSettings">verifyExternalSyncSettings(project, instance, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Verify External primary instance external sync settings.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="getDiskShrinkConfig">getDiskShrinkConfig(project, instance, x__xgafv=None)</code>
109 <pre>Get Disk Shrink Config for a given instance.
110
111 Args:
112 project: string, Project ID of the project that contains the instance. (required)
113 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
114 x__xgafv: string, V1 error format.
115 Allowed values
116 1 - v1 error format
117 2 - v2 error format
118
119 Returns:
120 An object of the form:
121
122 { # Instance get disk shrink config response.
123 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#getDiskShrinkConfig`.
124 &quot;message&quot;: &quot;A String&quot;, # Additional message to customers.
125 &quot;minimalTargetSizeGb&quot;: &quot;A String&quot;, # The minimum size to which a disk can be shrunk in GigaBytes.
126 }</pre>
127 </div>
128
129 <div class="method">
130 <code class="details" id="getLatestRecoveryTime">getLatestRecoveryTime(project, instance, sourceInstanceDeletionTime=None, x__xgafv=None)</code>
131 <pre>Get Latest Recovery Time for a given instance.
132
133 Args:
134 project: string, Project ID of the project that contains the instance. (required)
135 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
136 sourceInstanceDeletionTime: string, The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
137 x__xgafv: string, V1 error format.
138 Allowed values
139 1 - v1 error format
140 2 - v2 error format
141
142 Returns:
143 An object of the form:
144
145 { # Instance get latest recovery time response.
146 &quot;earliestRecoveryTime&quot;: &quot;A String&quot;, # Timestamp, identifies the earliest recovery time of the source instance.
147 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#getLatestRecoveryTime`.
148 &quot;latestRecoveryTime&quot;: &quot;A String&quot;, # Timestamp, identifies the latest recovery time of the source instance.
149 }</pre>
150 </div>
151
152 <div class="method">
153 <code class="details" id="performDiskShrink">performDiskShrink(project, instance, body=None, x__xgafv=None)</code>
154 <pre>Perform Disk Shrink on primary instance.
155
156 Args:
157 project: string, Project ID of the project that contains the instance. (required)
158 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
159 body: object, The request body.
160 The object takes the form of:
161
162 { # Perform disk shrink context.
163 &quot;targetSizeGb&quot;: &quot;A String&quot;, # The target disk shrink size in GigaBytes.
164 }
165
166 x__xgafv: string, V1 error format.
167 Allowed values
168 1 - v1 error format
169 2 - v2 error format
170
171 Returns:
172 An object of the form:
173
174 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
175 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
176 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for the SSRS setup.
177 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for the SSRS setup.
178 &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.
179 &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.
180 },
181 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
182 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
183 &quot;message&quot;: &quot;A String&quot;, # The warning message.
184 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
185 },
186 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
187 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
188 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
189 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
190 },
191 &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`.
192 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
193 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
194 { # Database instance operation error.
195 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
196 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
197 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
198 },
199 ],
200 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
201 },
202 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
203 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
204 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
205 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
206 &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
207 &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.
208 &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.
209 &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.
210 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
211 },
212 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
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;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
218 },
219 &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`.
220 &quot;A String&quot;,
221 ],
222 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
223 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
224 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
225 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
226 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
227 &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.
228 },
229 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
230 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
231 &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.
232 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
233 },
234 &quot;schemaOnly&quot;: True or False, # Export only schemas.
235 &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.
236 &quot;A String&quot;,
237 ],
238 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
239 },
240 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
241 &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 location. Applicable only for SQL Server instances.
242 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
243 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
244 &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.
245 },
246 &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.
247 },
248 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
249 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
250 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF.
251 &quot;encryptionOptions&quot;: {
252 &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.
253 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
254 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
255 &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.
256 },
257 &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.
258 &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.
259 &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.
260 &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.
261 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
262 },
263 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
264 &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.
265 &quot;A String&quot;,
266 ],
267 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
268 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
269 &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.
270 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
271 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
272 },
273 &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.
274 &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.
275 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
276 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
277 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
278 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
279 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
280 &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.
281 &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.
282 },
283 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
284 },
285 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server .TDE files Import parameters specific to SQL Server TDE certificates
286 &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.
287 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
288 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
289 &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.
290 },
291 &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.
292 },
293 &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`.
294 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
295 &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.
296 &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`
297 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # The context for pre-check major version upgrade operation, if applicable. 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).
298 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
299 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
300 { # Structured PreCheckResponse containing message, type, and required actions.
301 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
302 &quot;A String&quot;,
303 ],
304 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
305 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
306 },
307 ],
308 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
309 },
310 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
311 &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`.
312 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
313 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
314 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
315 },
316 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
317 &quot;targetLink&quot;: &quot;A String&quot;,
318 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
319 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
320 }</pre>
321 </div>
322
323 <div class="method">
324 <code class="details" id="rescheduleMaintenance">rescheduleMaintenance(project, instance, body=None, x__xgafv=None)</code>
325 <pre>Reschedules the maintenance on the given instance.
326
327 Args:
328 project: string, ID of the project that contains the instance. (required)
329 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
330 body: object, The request body.
331 The object takes the form of:
332
333 { # Reschedule options for maintenance windows.
334 &quot;reschedule&quot;: { # Required. The type of the reschedule the user wants.
335 &quot;rescheduleType&quot;: &quot;A String&quot;, # Required. The type of the reschedule.
336 &quot;scheduleTime&quot;: &quot;A String&quot;, # Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
337 },
338 }
339
340 x__xgafv: string, V1 error format.
341 Allowed values
342 1 - v1 error format
343 2 - v2 error format
344
345 Returns:
346 An object of the form:
347
348 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
349 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
350 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for the SSRS setup.
351 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for the SSRS setup.
352 &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.
353 &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.
354 },
355 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
356 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
357 &quot;message&quot;: &quot;A String&quot;, # The warning message.
358 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
359 },
360 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
361 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
362 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
363 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
364 },
365 &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`.
366 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
367 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
368 { # Database instance operation error.
369 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
370 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
371 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
372 },
373 ],
374 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
375 },
376 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
377 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
378 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
379 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
380 &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
381 &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.
382 &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.
383 &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.
384 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
385 },
386 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
387 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
388 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
389 &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.
390 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
391 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
392 },
393 &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`.
394 &quot;A String&quot;,
395 ],
396 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
397 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
398 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
399 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
400 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
401 &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.
402 },
403 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
404 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
405 &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.
406 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
407 },
408 &quot;schemaOnly&quot;: True or False, # Export only schemas.
409 &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.
410 &quot;A String&quot;,
411 ],
412 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
413 },
414 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
415 &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 location. Applicable only for SQL Server instances.
416 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
417 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
418 &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.
419 },
420 &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.
421 },
422 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
423 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
424 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF.
425 &quot;encryptionOptions&quot;: {
426 &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.
427 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
428 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
429 &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.
430 },
431 &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.
432 &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.
433 &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.
434 &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.
435 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
436 },
437 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
438 &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.
439 &quot;A String&quot;,
440 ],
441 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
442 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
443 &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.
444 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
445 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
446 },
447 &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.
448 &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.
449 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
450 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
451 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
452 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
453 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
454 &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.
455 &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.
456 },
457 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
458 },
459 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server .TDE files Import parameters specific to SQL Server TDE certificates
460 &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.
461 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
462 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
463 &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.
464 },
465 &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.
466 },
467 &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`.
468 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
469 &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.
470 &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`
471 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # The context for pre-check major version upgrade operation, if applicable. 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).
472 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
473 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
474 { # Structured PreCheckResponse containing message, type, and required actions.
475 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
476 &quot;A String&quot;,
477 ],
478 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
479 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
480 },
481 ],
482 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
483 },
484 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
485 &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`.
486 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
487 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
488 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
489 },
490 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
491 &quot;targetLink&quot;: &quot;A String&quot;,
492 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
493 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
494 }</pre>
495 </div>
496
497 <div class="method">
498 <code class="details" id="resetReplicaSize">resetReplicaSize(project, instance, body=None, x__xgafv=None)</code>
499 <pre>Reset Replica Size to primary instance disk size.
500
501 Args:
502 project: string, ID of the project that contains the read replica. (required)
503 instance: string, Cloud SQL read replica instance name. (required)
504 body: object, The request body.
505 The object takes the form of:
506
507 { # Instance reset replica size request.
508 }
509
510 x__xgafv: string, V1 error format.
511 Allowed values
512 1 - v1 error format
513 2 - v2 error format
514
515 Returns:
516 An object of the form:
517
518 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
519 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
520 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for the SSRS setup.
521 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for the SSRS setup.
522 &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.
523 &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.
524 },
525 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
526 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
527 &quot;message&quot;: &quot;A String&quot;, # The warning message.
528 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
529 },
530 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
531 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
532 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
533 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
534 },
535 &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`.
536 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
537 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
538 { # Database instance operation error.
539 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
540 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
541 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
542 },
543 ],
544 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
545 },
546 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
547 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
548 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
549 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
550 &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
551 &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.
552 &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.
553 &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.
554 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
555 },
556 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
557 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
558 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
559 &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.
560 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
561 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
562 },
563 &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`.
564 &quot;A String&quot;,
565 ],
566 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
567 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
568 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
569 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
570 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
571 &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.
572 },
573 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
574 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
575 &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.
576 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
577 },
578 &quot;schemaOnly&quot;: True or False, # Export only schemas.
579 &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.
580 &quot;A String&quot;,
581 ],
582 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
583 },
584 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
585 &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 location. Applicable only for SQL Server instances.
586 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
587 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
588 &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.
589 },
590 &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.
591 },
592 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
593 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
594 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF.
595 &quot;encryptionOptions&quot;: {
596 &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.
597 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
598 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
599 &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.
600 },
601 &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.
602 &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.
603 &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.
604 &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.
605 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
606 },
607 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
608 &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.
609 &quot;A String&quot;,
610 ],
611 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
612 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
613 &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.
614 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
615 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
616 },
617 &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.
618 &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.
619 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
620 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
621 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
622 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
623 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
624 &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.
625 &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.
626 },
627 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
628 },
629 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server .TDE files Import parameters specific to SQL Server TDE certificates
630 &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.
631 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
632 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
633 &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.
634 },
635 &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.
636 },
637 &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`.
638 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
639 &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.
640 &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`
641 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # The context for pre-check major version upgrade operation, if applicable. 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).
642 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
643 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
644 { # Structured PreCheckResponse containing message, type, and required actions.
645 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
646 &quot;A String&quot;,
647 ],
648 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
649 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
650 },
651 ],
652 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
653 },
654 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
655 &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`.
656 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
657 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
658 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
659 },
660 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
661 &quot;targetLink&quot;: &quot;A String&quot;,
662 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
663 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
664 }</pre>
665 </div>
666
667 <div class="method">
668 <code class="details" id="startExternalSync">startExternalSync(project, instance, body=None, x__xgafv=None)</code>
669 <pre>Start External primary instance migration.
670
671 Args:
672 project: string, ID of the project that contains the instance. (required)
673 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
674 body: object, The request body.
675 The object takes the form of:
676
677 {
678 &quot;migrationType&quot;: &quot;A String&quot;, # Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
679 &quot;mysqlSyncConfig&quot;: { # MySQL-specific external server sync settings. # MySQL-specific settings for start external sync.
680 &quot;initialSyncFlags&quot;: [ # Flags to use for the initial dump.
681 { # Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
682 &quot;name&quot;: &quot;A String&quot;, # The name of the flag.
683 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. This field must be omitted if the flag doesn&#x27;t take a value.
684 },
685 ],
686 },
687 &quot;replicaOverwriteEnabled&quot;: True or False, # Optional. MySQL only. True if end-user has confirmed that this SES call will wipe replica databases overlapping with the proposed selected_objects. If this field is not set and there are both overlapping and additional databases proposed, an error will be returned.
688 &quot;skipVerification&quot;: True or False, # Whether to skip the verification step (VESS).
689 &quot;syncMode&quot;: &quot;A String&quot;, # External sync mode.
690 &quot;syncParallelLevel&quot;: &quot;A String&quot;, # Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
691 }
692
693 x__xgafv: string, V1 error format.
694 Allowed values
695 1 - v1 error format
696 2 - v2 error format
697
698 Returns:
699 An object of the form:
700
701 { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
702 &quot;acquireSsrsLeaseContext&quot;: { # Acquire SSRS lease context. # The context for acquire SSRS lease operation, if applicable.
703 &quot;duration&quot;: &quot;A String&quot;, # Lease duration needed for the SSRS setup.
704 &quot;reportDatabase&quot;: &quot;A String&quot;, # The report database to be used for the SSRS setup.
705 &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.
706 &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.
707 },
708 &quot;apiWarning&quot;: { # An Admin API warning message. # An Admin API warning message.
709 &quot;code&quot;: &quot;A String&quot;, # Code to uniquely identify the warning type.
710 &quot;message&quot;: &quot;A String&quot;, # The warning message.
711 &quot;region&quot;: &quot;A String&quot;, # The region name for REGION_UNREACHABLE warning.
712 },
713 &quot;backupContext&quot;: { # Backup context. # The context for backup operation, if applicable.
714 &quot;backupId&quot;: &quot;A String&quot;, # The identifier of the backup.
715 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#backupContext`.
716 &quot;name&quot;: &quot;A String&quot;, # The name of the backup. Format: projects/{project}/backups/{backup}
717 },
718 &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`.
719 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
720 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
721 { # Database instance operation error.
722 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
723 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationError`.
724 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
725 },
726 ],
727 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operationErrors`.
728 },
729 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
730 &quot;bakExportOptions&quot;: { # Options for exporting BAK files (SQL Server-only)
731 &quot;bakType&quot;: &quot;A String&quot;, # Type of this bak file will be export, FULL or DIFF, SQL Server only
732 &quot;copyOnly&quot;: True or False, # Deprecated: copy_only is deprecated. Use differential_base instead
733 &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
734 &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.
735 &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.
736 &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.
737 &quot;striped&quot;: True or False, # Whether or not the export should be striped.
738 },
739 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
740 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
741 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
742 &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.
743 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
744 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
745 },
746 &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`.
747 &quot;A String&quot;,
748 ],
749 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri.
750 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#exportContext`.
751 &quot;offload&quot;: True or False, # Whether to perform a serverless export.
752 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
753 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
754 &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.
755 },
756 &quot;parallel&quot;: True or False, # Optional. Whether or not the export should be parallel.
757 &quot;postgresExportOptions&quot;: { # Options for exporting from a Cloud SQL for PostgreSQL instance.
758 &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.
759 &quot;ifExists&quot;: True or False, # Optional. Option to include an IF EXISTS SQL statement with each DROP statement produced by clean.
760 },
761 &quot;schemaOnly&quot;: True or False, # Export only schemas.
762 &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.
763 &quot;A String&quot;,
764 ],
765 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel export.
766 },
767 &quot;tdeExportOptions&quot;: { # Optional. Export parameters specific to SQL Server TDE certificates
768 &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 location. Applicable only for SQL Server instances.
769 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
770 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
771 &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.
772 },
773 &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.
774 },
775 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
776 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
777 &quot;bakType&quot;: &quot;A String&quot;, # Type of the bak content, FULL or DIFF.
778 &quot;encryptionOptions&quot;: {
779 &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.
780 &quot;keepEncrypted&quot;: True or False, # Optional. Whether the imported file remains encrypted.
781 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
782 &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.
783 },
784 &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.
785 &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.
786 &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.
787 &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.
788 &quot;striped&quot;: True or False, # Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
789 },
790 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
791 &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.
792 &quot;A String&quot;,
793 ],
794 &quot;escapeCharacter&quot;: &quot;A String&quot;, # Specifies the character that should appear before a data character that needs to be escaped.
795 &quot;fieldsTerminatedBy&quot;: &quot;A String&quot;, # Specifies the character that separates columns within each row (line) of the file.
796 &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.
797 &quot;quoteCharacter&quot;: &quot;A String&quot;, # Specifies the quoting character to be used when a data value is quoted.
798 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
799 },
800 &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.
801 &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.
802 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
803 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#importContext`.
804 &quot;sqlImportOptions&quot;: { # Optional. Options for importing data from SQL statements.
805 &quot;parallel&quot;: True or False, # Optional. Whether or not the import should be parallel.
806 &quot;postgresImportOptions&quot;: { # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
807 &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.
808 &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.
809 },
810 &quot;threads&quot;: 42, # Optional. The number of threads to use for parallel import.
811 },
812 &quot;tdeImportOptions&quot;: { # Optional. Import parameters specific to SQL Server .TDE files Import parameters specific to SQL Server TDE certificates
813 &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.
814 &quot;name&quot;: &quot;A String&quot;, # Required. Certificate name. Applicable only for SQL Server instances.
815 &quot;privateKeyPassword&quot;: &quot;A String&quot;, # Required. Password that encrypts the private key.
816 &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.
817 },
818 &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.
819 },
820 &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`.
821 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#operation`.
822 &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.
823 &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`
824 &quot;preCheckMajorVersionUpgradeContext&quot;: { # Pre-check major version upgrade context. # The context for pre-check major version upgrade operation, if applicable. 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).
825 &quot;kind&quot;: &quot;A String&quot;, # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
826 &quot;preCheckResponse&quot;: [ # Output only. The responses from the precheck operation.
827 { # Structured PreCheckResponse containing message, type, and required actions.
828 &quot;actionsRequired&quot;: [ # The actions that the user needs to take. Use repeated for multiple actions.
829 &quot;A String&quot;,
830 ],
831 &quot;message&quot;: &quot;A String&quot;, # The message to be displayed to the user.
832 &quot;messageType&quot;: &quot;A String&quot;, # The type of message whether it is an info, warning, or error.
833 },
834 ],
835 &quot;targetDatabaseVersion&quot;: &quot;A String&quot;, # Required. The target database version to upgrade to.
836 },
837 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
838 &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`.
839 &quot;status&quot;: &quot;A String&quot;, # The status of an operation.
840 &quot;subOperationType&quot;: { # The sub operation type based on the operation type. # Optional. The sub operation based on the operation type.
841 &quot;maintenanceType&quot;: &quot;A String&quot;, # The type of maintenance to be performed on the instance.
842 },
843 &quot;targetId&quot;: &quot;A String&quot;, # Name of the resource on which this operation runs.
844 &quot;targetLink&quot;: &quot;A String&quot;,
845 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
846 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
847 }</pre>
848 </div>
849
850 <div class="method">
851 <code class="details" id="verifyExternalSyncSettings">verifyExternalSyncSettings(project, instance, body=None, x__xgafv=None)</code>
852 <pre>Verify External primary instance external sync settings.
853
854 Args:
855 project: string, Project ID of the project that contains the instance. (required)
856 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
857 body: object, The request body.
858 The object takes the form of:
859
860 {
861 &quot;migrationType&quot;: &quot;A String&quot;, # Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
862 &quot;mysqlSyncConfig&quot;: { # MySQL-specific external server sync settings. # Optional. MySQL-specific settings for start external sync.
863 &quot;initialSyncFlags&quot;: [ # Flags to use for the initial dump.
864 { # Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
865 &quot;name&quot;: &quot;A String&quot;, # The name of the flag.
866 &quot;value&quot;: &quot;A String&quot;, # The value of the flag. This field must be omitted if the flag doesn&#x27;t take a value.
867 },
868 ],
869 },
870 &quot;selectedObjects&quot;: [ # Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects.
871 { # The selected object that Cloud SQL migrates.
872 &quot;database&quot;: &quot;A String&quot;, # The name of the database that Cloud SQL migrates.
873 },
874 ],
875 &quot;syncMode&quot;: &quot;A String&quot;, # External sync mode
876 &quot;syncParallelLevel&quot;: &quot;A String&quot;, # Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.
877 &quot;verifyConnectionOnly&quot;: True or False, # Flag to enable verifying connection only
878 &quot;verifyReplicationOnly&quot;: True or False, # Optional. Flag to verify settings required by replication setup only
879 }
880
881 x__xgafv: string, V1 error format.
882 Allowed values
883 1 - v1 error format
884 2 - v2 error format
885
886 Returns:
887 An object of the form:
888
889 { # Instance verify external sync settings response.
890 &quot;errors&quot;: [ # List of migration violations.
891 { # External primary instance migration setting error/warning.
892 &quot;detail&quot;: &quot;A String&quot;, # Additional information about the error encountered.
893 &quot;kind&quot;: &quot;A String&quot;, # Can be `sql#externalSyncSettingError` or `sql#externalSyncSettingWarning`.
894 &quot;type&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
895 },
896 ],
897 &quot;kind&quot;: &quot;A String&quot;, # This is always `sql#migrationSettingErrorList`.
898 &quot;warnings&quot;: [ # List of migration warnings.
899 { # External primary instance migration setting error/warning.
900 &quot;detail&quot;: &quot;A String&quot;, # Additional information about the error encountered.
901 &quot;kind&quot;: &quot;A String&quot;, # Can be `sql#externalSyncSettingError` or `sql#externalSyncSettingWarning`.
902 &quot;type&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
903 },
904 ],
905 }</pre>
906 </div>
907
908 </body></html>