blob: db1df1b553abef435801def85d0eccaf48cd50d7 [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.backupRuns.html">backupRuns</a></h1>
Craig Citroe633be12015-03-02 13:40:36 -080076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#delete">delete(project, instance, id, x__xgafv=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -070079<p class="firstline">Deletes the backup taken by a backup run.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#get">get(project, instance, id, x__xgafv=None)</a></code></p>
Craig Citroe633be12015-03-02 13:40:36 -080082<p class="firstline">Retrieves a resource containing information about a backup run.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#insert">insert(project, instance, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Creates a new backup run on demand. This method is applicable only to</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070086<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070087 <code><a href="#list">list(project, instance, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070088<p class="firstline">Lists all backup runs associated with a given instance and configuration in</p>
Craig Citroe633be12015-03-02 13:40:36 -080089<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<h3>Method Details</h3>
93<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070094 <code class="details" id="delete">delete(project, instance, id, x__xgafv=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -070095 <pre>Deletes the backup taken by a backup run.
96
97Args:
98 project: string, Project ID of the project that contains the instance. (required)
99 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700100 id: string, The ID of the Backup Run to delete. To find a Backup Run ID, use the &lt;a
Bu Sun Kim65020912020-05-20 12:08:20 -0700101href=&quot;/sql/docs/db_path/admin-api/rest/v1beta4/backupRuns/list&quot;&gt;list&lt;/a&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -0700102method. (required)
103 x__xgafv: string, V1 error format.
104 Allowed values
105 1 - v1 error format
106 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700107
108Returns:
109 An object of the form:
110
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 { # An Operation resource.&amp;nbsp;For successful operations that return an
112 # Operation resource, only the fields relevant to the operation are populated
113 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700114 &quot;targetLink&quot;: &quot;A String&quot;,
115 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
116 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
117 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
118 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
119 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
120 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
121 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
122 # populated.
123 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
124 { # Database instance operation error.
125 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
126 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
127 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700128 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 ],
130 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
131 },
132 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
133 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -0700135 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
136 # specify a database, and is overridden by any database specification in the
137 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
138 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700139 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
140 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
141 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700142 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
144 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
145 # write permissions to the bucket and read access to the file.
146 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
147 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
148 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 },
150 },
151 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700152 # &lt;code&gt;gs:
153 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
154 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
155 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
157 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700158 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
159 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
160 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
161 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
162 # of the database table are loaded with CSV data.
163 &quot;A String&quot;,
164 ],
165 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700166 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
168 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
169 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
170 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -0700171 # identifier to retrieve the Operations resource that has information about
172 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700174 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
175 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
176 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
177 # stored. The URI is in the form &lt;code&gt;gs:
178 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
179 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
180 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
181 # // compressed.
182 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
183 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
184 },
185 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -0700187 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
188 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
189 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
190 # either by using this property or by using the
191 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
192 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
193 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
194 # this database must match the one specified in the
195 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700197 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
199 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -0700200 # you specify tables, specify one and only one database. For PostgreSQL
201 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700203 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 &quot;schemaOnly&quot;: True or False, # Export only schemas.
205 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
206 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -0700207 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
208 # a CHANGE MASTER TO statement with the binary log coordinates.
209 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
210 # a SQL comment, and has no effect.
211 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700212 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700213 },
214 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700216 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
217 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
218 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
219 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
220 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
221 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
222 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
223 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
224 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
225 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
226 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
227 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700228 }</pre>
229</div>
230
231<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700232 <code class="details" id="get">get(project, instance, id, x__xgafv=None)</code>
Craig Citroe633be12015-03-02 13:40:36 -0800233 <pre>Retrieves a resource containing information about a backup run.
234
235Args:
236 project: string, Project ID of the project that contains the instance. (required)
237 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
238 id: string, The ID of this Backup Run. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700239 x__xgafv: string, V1 error format.
240 Allowed values
241 1 - v1 error format
242 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800243
244Returns:
245 An object of the form:
246
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700247 { # A BackupRun resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;enqueuedTime&quot;: &quot;A String&quot;, # The time the run was enqueued in UTC timezone in &lt;a
249 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
Dan O'Mearadd494642020-05-01 07:42:23 -0700250 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;id&quot;: &quot;A String&quot;, # The identifier for this backup run. Unique only for a specific Cloud SQL
252 # instance.
253 &quot;endTime&quot;: &quot;A String&quot;, # The time the backup operation completed in UTC timezone in &lt;a
254 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
Dan O'Mearadd494642020-05-01 07:42:23 -0700255 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700256 &quot;location&quot;: &quot;A String&quot;, # Location of the backups.
257 &quot;startTime&quot;: &quot;A String&quot;, # The time the backup operation actually started in UTC timezone in &lt;a
258 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
259 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
260 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
261 &quot;type&quot;: &quot;A String&quot;, # The type of this run; can be either &quot;AUTOMATED&quot; or &quot;ON_DEMAND&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700262 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 &quot;windowStartTime&quot;: &quot;A String&quot;, # The start time of the backup window during which this the backup was
264 # attempted in &lt;a href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt;
265 # format, for example &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Encryption status specific to a backup.
267 # Applies only to Second Generation instances.
268 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
269 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionStatus&lt;/code&gt;.
270 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700271 &quot;description&quot;: &quot;A String&quot;, # The description of this run, only applicable to on-demand backups.
272 &quot;error&quot;: { # Database instance operation error. # Information about why the backup operation failed. This is only present if
273 # the run has the FAILED status.
274 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
275 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
276 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
277 },
278 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#backupRun&lt;/code&gt;.
279 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Encryption configuration specific to a backup.
280 # Applies only to Second Generation instances.
281 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionConfiguration&lt;/code&gt;.
282 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
283 },
284 &quot;status&quot;: &quot;A String&quot;, # The status of this run.
285 }</pre>
286</div>
287
288<div class="method">
289 <code class="details" id="insert">insert(project, instance, body=None, x__xgafv=None)</code>
290 <pre>Creates a new backup run on demand. This method is applicable only to
291Second Generation instances.
292
293Args:
294 project: string, Project ID of the project that contains the instance. (required)
295 instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
296 body: object, The request body.
297 The object takes the form of:
298
299{ # A BackupRun resource.
300 &quot;enqueuedTime&quot;: &quot;A String&quot;, # The time the run was enqueued in UTC timezone in &lt;a
301 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
302 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
303 &quot;id&quot;: &quot;A String&quot;, # The identifier for this backup run. Unique only for a specific Cloud SQL
304 # instance.
305 &quot;endTime&quot;: &quot;A String&quot;, # The time the backup operation completed in UTC timezone in &lt;a
306 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
307 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
308 &quot;location&quot;: &quot;A String&quot;, # Location of the backups.
309 &quot;startTime&quot;: &quot;A String&quot;, # The time the backup operation actually started in UTC timezone in &lt;a
310 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
311 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
312 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
313 &quot;type&quot;: &quot;A String&quot;, # The type of this run; can be either &quot;AUTOMATED&quot; or &quot;ON_DEMAND&quot;.
314 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
315 &quot;windowStartTime&quot;: &quot;A String&quot;, # The start time of the backup window during which this the backup was
316 # attempted in &lt;a href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt;
317 # format, for example &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
318 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Encryption status specific to a backup.
319 # Applies only to Second Generation instances.
320 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
321 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionStatus&lt;/code&gt;.
322 },
323 &quot;description&quot;: &quot;A String&quot;, # The description of this run, only applicable to on-demand backups.
324 &quot;error&quot;: { # Database instance operation error. # Information about why the backup operation failed. This is only present if
325 # the run has the FAILED status.
326 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
327 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
328 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
329 },
330 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#backupRun&lt;/code&gt;.
331 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Encryption configuration specific to a backup.
332 # Applies only to Second Generation instances.
333 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionConfiguration&lt;/code&gt;.
334 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
335 },
336 &quot;status&quot;: &quot;A String&quot;, # The status of this run.
337}
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700338
Dan O'Mearadd494642020-05-01 07:42:23 -0700339 x__xgafv: string, V1 error format.
340 Allowed values
341 1 - v1 error format
342 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700343
344Returns:
345 An object of the form:
346
Dan O'Mearadd494642020-05-01 07:42:23 -0700347 { # An Operation resource.&amp;nbsp;For successful operations that return an
348 # Operation resource, only the fields relevant to the operation are populated
349 # in the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700350 &quot;targetLink&quot;: &quot;A String&quot;,
351 &quot;operationType&quot;: &quot;A String&quot;, # The type of the operation. Valid values are &lt;code&gt;CREATE&lt;/code&gt;,
352 # &lt;code&gt;DELETE&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt;, &lt;code&gt;RESTART&lt;/code&gt;,
353 # &lt;code&gt;IMPORT&lt;/code&gt;, &lt;code&gt;EXPORT&lt;/code&gt;, &lt;code&gt;BACKUP_VOLUME&lt;/code&gt;,
354 # &lt;code&gt;RESTORE_VOLUME&lt;/code&gt;, &lt;code&gt;CREATE_USER&lt;/code&gt;,
355 # &lt;code&gt;DELETE_USER&lt;/code&gt;, &lt;code&gt;CREATE_DATABASE&lt;/code&gt;,
356 # &lt;code&gt;DELETE_DATABASE&lt;/code&gt; .
357 &quot;error&quot;: { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be
358 # populated.
359 &quot;errors&quot;: [ # The list of errors encountered while processing this operation.
360 { # Database instance operation error.
361 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
362 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
363 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
Dan O'Mearadd494642020-05-01 07:42:23 -0700364 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 ],
366 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationErrors&lt;/code&gt;.
367 },
368 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operation&lt;/code&gt;.
369 &quot;importContext&quot;: { # Database instance import context. # The context for import operation, if applicable.
Bu Sun Kim65020912020-05-20 12:08:20 -0700370 &quot;database&quot;: &quot;A String&quot;, # The target database for the import. If &lt;code&gt;fileType&lt;/code&gt; is
Dan O'Mearadd494642020-05-01 07:42:23 -0700371 # &lt;code&gt;SQL&lt;/code&gt;, this field is required only if the import file does not
372 # specify a database, and is overridden by any database specification in the
373 # import file. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, one database
374 # must be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 &quot;importUser&quot;: &quot;A String&quot;, # The PostgreSQL user for this import operation. PostgreSQL instances only.
376 &quot;bakImportOptions&quot;: { # Import parameters specific to SQL Server .BAK files
377 &quot;encryptionOptions&quot;: {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700378 &quot;pvkPassword&quot;: &quot;A String&quot;, # Password that encrypts the private key
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;certPath&quot;: &quot;A String&quot;, # Path to the Certificate (.cer) in Cloud Storage, in the form
380 # &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
381 # write permissions to the bucket and read access to the file.
382 &quot;pvkPath&quot;: &quot;A String&quot;, # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
383 # form &lt;code&gt;gs://bucketName/fileName&lt;/code&gt;. The instance must have
384 # write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 },
386 },
387 &quot;uri&quot;: &quot;A String&quot;, # Path to the import file in Cloud Storage, in the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700388 # &lt;code&gt;gs:
389 # //bucketName/fileName&lt;/code&gt;. Compressed gzip files (.gz) are supported
390 # // when &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt;. The instance must have
391 # // write permissions to the bucket and read access to the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700392 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
393 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700394 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#importContext&lt;/code&gt;.
395 &quot;csvImportOptions&quot;: { # Options for importing data as CSV.
396 &quot;table&quot;: &quot;A String&quot;, # The table to which CSV data is imported.
397 &quot;columns&quot;: [ # The columns to which CSV data is imported. If not specified, all columns
398 # of the database table are loaded with CSV data.
399 &quot;A String&quot;,
400 ],
401 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700402 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 &quot;status&quot;: &quot;A String&quot;, # The status of an operation. Valid values are &lt;code&gt;PENDING&lt;/code&gt;,
404 # &lt;code&gt;RUNNING&lt;/code&gt;, &lt;code&gt;DONE&lt;/code&gt;,
405 # &lt;code&gt;SQL_OPERATION_STATUS_UNSPECIFIED&lt;/code&gt;.
406 &quot;name&quot;: &quot;A String&quot;, # An identifier that uniquely identifies the operation. You can use this
Dan O'Mearadd494642020-05-01 07:42:23 -0700407 # identifier to retrieve the Operations resource that has information about
408 # the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 &quot;exportContext&quot;: { # Database instance export context. # The context for export operation, if applicable.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700410 &quot;fileType&quot;: &quot;A String&quot;, # The file type for the specified uri. &lt;br&gt;&lt;code&gt;SQL&lt;/code&gt;: The file
411 # contains SQL statements. &lt;br&gt;&lt;code&gt;CSV&lt;/code&gt;: The file contains CSV data.
412 &quot;uri&quot;: &quot;A String&quot;, # The path to the file in Google Cloud Storage where the export will be
413 # stored. The URI is in the form &lt;code&gt;gs:
414 # //bucketName/fileName&lt;/code&gt;. If the file already exists, the requests
415 # // succeeds, but the operation fails. If &lt;code&gt;fileType&lt;/code&gt; is
416 # // &lt;code&gt;SQL&lt;/code&gt; and the filename ends with .gz, the contents are
417 # // compressed.
418 &quot;csvExportOptions&quot;: { # Options for exporting data as CSV.
419 &quot;selectQuery&quot;: &quot;A String&quot;, # The select query used to extract the data.
420 },
421 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#exportContext&lt;/code&gt;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 &quot;databases&quot;: [ # Databases to be exported. &lt;br /&gt; &lt;b&gt;MySQL instances:&lt;/b&gt; If
Dan O'Mearadd494642020-05-01 07:42:23 -0700423 # &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;SQL&lt;/code&gt; and no database is specified, all
424 # databases are exported, except for the &lt;code&gt;mysql&lt;/code&gt; system database.
425 # If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;, you can specify one database,
426 # either by using this property or by using the
427 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property, which takes precedence
428 # over this property. &lt;br /&gt; &lt;b&gt;PostgreSQL instances:&lt;/b&gt; You must specify
429 # one database to be exported. If &lt;code&gt;fileType&lt;/code&gt; is &lt;code&gt;CSV&lt;/code&gt;,
430 # this database must match the one specified in the
431 # &lt;code&gt;csvExportOptions.selectQuery&lt;/code&gt; property.
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700433 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 &quot;sqlExportOptions&quot;: { # Options for exporting data as SQL statements.
435 &quot;tables&quot;: [ # Tables to export, or that were exported, from the specified database. If
Dan O'Mearadd494642020-05-01 07:42:23 -0700436 # you specify tables, specify one and only one database. For PostgreSQL
437 # instances, you can specify only one table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700438 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700439 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;schemaOnly&quot;: True or False, # Export only schemas.
441 &quot;mysqlExportOptions&quot;: { # Options for exporting from MySQL.
442 &quot;masterData&quot;: 42, # Option to include SQL statement required to set up replication.
Dan O'Mearadd494642020-05-01 07:42:23 -0700443 # If set to &lt;code&gt;1&lt;/code&gt;, the dump file includes
444 # a CHANGE MASTER TO statement with the binary log coordinates.
445 # If set to &lt;code&gt;2&lt;/code&gt;, the CHANGE MASTER TO statement is written as
446 # a SQL comment, and has no effect.
447 # All other values are ignored.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700448 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700449 },
450 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 &quot;targetId&quot;: &quot;A String&quot;, # Name of the database instance related to this operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700452 &quot;endTime&quot;: &quot;A String&quot;, # The time this operation finished in UTC timezone in &lt;a
453 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
454 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
455 &quot;startTime&quot;: &quot;A String&quot;, # The time this operation actually started in UTC timezone in &lt;a
456 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
457 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
458 &quot;insertTime&quot;: &quot;A String&quot;, # The time this operation was enqueued in UTC timezone in &lt;a
459 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
460 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
461 &quot;user&quot;: &quot;A String&quot;, # The email address of the user who initiated this operation.
462 &quot;targetProject&quot;: &quot;A String&quot;, # The project ID of the target instance related to this operation.
463 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
Craig Citroe633be12015-03-02 13:40:36 -0800464 }</pre>
465</div>
466
467<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700468 <code class="details" id="list">list(project, instance, maxResults=None, pageToken=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700469 <pre>Lists all backup runs associated with a given instance and configuration in
470the reverse chronological order of the backup initiation time.
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, Cloud SQL instance ID. This does not include the project ID. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700475 maxResults: integer, Maximum number of backup runs per response.
Dan O'Mearadd494642020-05-01 07:42:23 -0700476 pageToken: string, A previously-returned page token representing part of the larger set of
477results to view.
478 x__xgafv: string, V1 error format.
479 Allowed values
480 1 - v1 error format
481 2 - v2 error format
Craig Citroe633be12015-03-02 13:40:36 -0800482
483Returns:
484 An object of the form:
485
486 { # Backup run list results.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700487 &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token, used to page through large result sets. Provide
488 # this value in a subsequent request to return the next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#backupRunsList&lt;/code&gt;.
490 &quot;items&quot;: [ # A list of backup runs in reverse chronological order of the enqueued time.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700491 { # A BackupRun resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700492 &quot;enqueuedTime&quot;: &quot;A String&quot;, # The time the run was enqueued in UTC timezone in &lt;a
493 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
494 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
495 &quot;id&quot;: &quot;A String&quot;, # The identifier for this backup run. Unique only for a specific Cloud SQL
496 # instance.
497 &quot;endTime&quot;: &quot;A String&quot;, # The time the backup operation completed in UTC timezone in &lt;a
498 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
499 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
500 &quot;location&quot;: &quot;A String&quot;, # Location of the backups.
501 &quot;startTime&quot;: &quot;A String&quot;, # The time the backup operation actually started in UTC timezone in &lt;a
502 # href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt; format, for example
503 # &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
504 &quot;instance&quot;: &quot;A String&quot;, # Name of the database instance.
505 &quot;type&quot;: &quot;A String&quot;, # The type of this run; can be either &quot;AUTOMATED&quot; or &quot;ON_DEMAND&quot;.
506 &quot;selfLink&quot;: &quot;A String&quot;, # The URI of this resource.
507 &quot;windowStartTime&quot;: &quot;A String&quot;, # The start time of the backup window during which this the backup was
508 # attempted in &lt;a href=&quot;https://tools.ietf.org/html/rfc3339&quot;&gt;RFC 3339&lt;/a&gt;
509 # format, for example &lt;code&gt;2012-11-15T16:19:00.094Z&lt;/code&gt;.
510 &quot;diskEncryptionStatus&quot;: { # Disk encryption status for an instance. # Encryption status specific to a backup.
511 # Applies only to Second Generation instances.
512 &quot;kmsKeyVersionName&quot;: &quot;A String&quot;, # KMS key version used to encrypt the Cloud SQL instance resource
513 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionStatus&lt;/code&gt;.
Craig Citroe633be12015-03-02 13:40:36 -0800514 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700515 &quot;description&quot;: &quot;A String&quot;, # The description of this run, only applicable to on-demand backups.
516 &quot;error&quot;: { # Database instance operation error. # Information about why the backup operation failed. This is only present if
517 # the run has the FAILED status.
518 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#operationError&lt;/code&gt;.
519 &quot;code&quot;: &quot;A String&quot;, # Identifies the specific error that occurred.
520 &quot;message&quot;: &quot;A String&quot;, # Additional information about the error encountered.
521 },
522 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#backupRun&lt;/code&gt;.
523 &quot;diskEncryptionConfiguration&quot;: { # Disk encryption configuration for an instance. # Encryption configuration specific to a backup.
524 # Applies only to Second Generation instances.
525 &quot;kind&quot;: &quot;A String&quot;, # This is always &lt;code&gt;sql#diskEncryptionConfiguration&lt;/code&gt;.
526 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Resource name of KMS key for disk encryption
527 },
528 &quot;status&quot;: &quot;A String&quot;, # The status of this run.
529 },
Craig Citroe633be12015-03-02 13:40:36 -0800530 ],
Craig Citroe633be12015-03-02 13:40:36 -0800531 }</pre>
532</div>
533
534<div class="method">
535 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
536 <pre>Retrieves the next page of results.
537
538Args:
539 previous_request: The request for the previous page. (required)
540 previous_response: The response from the request for the previous page. (required)
541
542Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700543 A request object that you can call &#x27;execute()&#x27; on to request the next
Craig Citroe633be12015-03-02 13:40:36 -0800544 page. Returns None if there are no more items in the collection.
545 </pre>
546</div>
547
548</body></html>