You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/sqladmin_v1beta4.backupRuns.html
+23-15Lines changed: 23 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,11 @@ <h3>Method Details</h3>
114
114
Returns:
115
115
An object of the form:
116
116
117
-
{ # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
117
+
{ # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. Next field: 18
118
+
"backupContext": { # Backup context. # The context for backup operation, if applicable.
119
+
"backupId": "A String", # The identifier of the backup.
120
+
"kind": "A String", # This is always *sql#backupContext*.
121
+
},
118
122
"endTime": "A String", # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
119
123
"error": { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
120
124
"errors": [ # The list of errors encountered while processing this operation.
@@ -127,25 +131,25 @@ <h3>Method Details</h3>
127
131
"kind": "A String", # This is always *sql#operationErrors*.
128
132
},
129
133
"exportContext": { # Database instance export context. # The context for export operation, if applicable.
130
-
"csvExportOptions": { # Options for exporting data as CSV.
134
+
"csvExportOptions": { # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
131
135
"selectQuery": "A String", # The select query used to extract the data.
132
136
},
133
137
"databases": [ # Databases to be exported. *MySQL instances:* If *fileType* is *SQL* and no database is specified, all databases are exported, except for the *mysql* system database. If *fileType* is *CSV*, you can specify one database, either by using this property or by using the *csvExportOptions.selectQuery* property, which takes precedence over this property. *PostgreSQL instances:* You must specify one database to be exported. If *fileType* is *CSV*, this database must match the one specified in the *csvExportOptions.selectQuery* property.
134
138
"A String",
135
139
],
136
-
"fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data.
140
+
"fileType": "A String", # 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.
137
141
"kind": "A String", # This is always *sql#exportContext*.
138
142
"offload": True or False, # Option for export offload.
139
143
"sqlExportOptions": { # Options for exporting data as SQL statements.
140
144
"mysqlExportOptions": { # Options for exporting from MySQL.
141
-
"masterData": 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. If set to *2*, the CHANGE MASTER TO statement is written as a SQL comment, and has no effect. All other values are ignored.
145
+
"masterData": 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.
142
146
},
143
147
"schemaOnly": True or False, # Export only schemas.
144
148
"tables": [ # 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.
145
149
"A String",
146
150
],
147
151
},
148
-
"uri": "A String", # 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 requests // succeeds, but the operation fails. If *fileType* is // *SQL* and the filename ends with .gz, the contents are // compressed.
152
+
"uri": "A String", # 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.
149
153
},
150
154
"importContext": { # Database instance import context. # The context for import operation, if applicable.
151
155
"bakImportOptions": { # Import parameters specific to SQL Server .BAK files
@@ -165,7 +169,7 @@ <h3>Method Details</h3>
165
169
"fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data.
166
170
"importUser": "A String", # The PostgreSQL user for this import operation. PostgreSQL instances only.
167
171
"kind": "A String", # This is always *sql#importContext*.
168
-
"uri": "A String", # 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.
172
+
"uri": "A String", # 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.
169
173
},
170
174
"insertTime": "A String", # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
171
175
"kind": "A String", # This is always *sql#operation*.
@@ -222,7 +226,7 @@ <h3>Method Details</h3>
222
226
"selfLink": "A String", # The URI of this resource.
223
227
"startTime": "A String", # The time the backup operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
224
228
"status": "A String", # The status of this run.
225
-
"type": "A String", # The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
229
+
"type": "A String", # The type of this run; can be either "AUTOMATED" or "ON_DEMAND". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.
226
230
"windowStartTime": "A String", # The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
227
231
}</pre>
228
232
</div>
@@ -262,7 +266,7 @@ <h3>Method Details</h3>
262
266
"selfLink": "A String", # The URI of this resource.
263
267
"startTime": "A String", # The time the backup operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
264
268
"status": "A String", # The status of this run.
265
-
"type": "A String", # The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
269
+
"type": "A String", # The type of this run; can be either "AUTOMATED" or "ON_DEMAND". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.
266
270
"windowStartTime": "A String", # The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
267
271
}
268
272
@@ -274,7 +278,11 @@ <h3>Method Details</h3>
274
278
Returns:
275
279
An object of the form:
276
280
277
-
{ # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
281
+
{ # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. Next field: 18
282
+
"backupContext": { # Backup context. # The context for backup operation, if applicable.
283
+
"backupId": "A String", # The identifier of the backup.
284
+
"kind": "A String", # This is always *sql#backupContext*.
285
+
},
278
286
"endTime": "A String", # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
279
287
"error": { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated.
280
288
"errors": [ # The list of errors encountered while processing this operation.
@@ -287,25 +295,25 @@ <h3>Method Details</h3>
287
295
"kind": "A String", # This is always *sql#operationErrors*.
288
296
},
289
297
"exportContext": { # Database instance export context. # The context for export operation, if applicable.
290
-
"csvExportOptions": { # Options for exporting data as CSV.
298
+
"csvExportOptions": { # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
291
299
"selectQuery": "A String", # The select query used to extract the data.
292
300
},
293
301
"databases": [ # Databases to be exported. *MySQL instances:* If *fileType* is *SQL* and no database is specified, all databases are exported, except for the *mysql* system database. If *fileType* is *CSV*, you can specify one database, either by using this property or by using the *csvExportOptions.selectQuery* property, which takes precedence over this property. *PostgreSQL instances:* You must specify one database to be exported. If *fileType* is *CSV*, this database must match the one specified in the *csvExportOptions.selectQuery* property.
294
302
"A String",
295
303
],
296
-
"fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data.
304
+
"fileType": "A String", # 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.
297
305
"kind": "A String", # This is always *sql#exportContext*.
298
306
"offload": True or False, # Option for export offload.
299
307
"sqlExportOptions": { # Options for exporting data as SQL statements.
300
308
"mysqlExportOptions": { # Options for exporting from MySQL.
301
-
"masterData": 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. If set to *2*, the CHANGE MASTER TO statement is written as a SQL comment, and has no effect. All other values are ignored.
309
+
"masterData": 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.
302
310
},
303
311
"schemaOnly": True or False, # Export only schemas.
304
312
"tables": [ # 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.
305
313
"A String",
306
314
],
307
315
},
308
-
"uri": "A String", # 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 requests // succeeds, but the operation fails. If *fileType* is // *SQL* and the filename ends with .gz, the contents are // compressed.
316
+
"uri": "A String", # 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.
309
317
},
310
318
"importContext": { # Database instance import context. # The context for import operation, if applicable.
311
319
"bakImportOptions": { # Import parameters specific to SQL Server .BAK files
@@ -325,7 +333,7 @@ <h3>Method Details</h3>
325
333
"fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data.
326
334
"importUser": "A String", # The PostgreSQL user for this import operation. PostgreSQL instances only.
327
335
"kind": "A String", # This is always *sql#importContext*.
328
-
"uri": "A String", # 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.
336
+
"uri": "A String", # 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.
329
337
},
330
338
"insertTime": "A String", # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
331
339
"kind": "A String", # This is always *sql#operation*.
@@ -385,7 +393,7 @@ <h3>Method Details</h3>
385
393
"selfLink": "A String", # The URI of this resource.
386
394
"startTime": "A String", # The time the backup operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
387
395
"status": "A String", # The status of this run.
388
-
"type": "A String", # The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
396
+
"type": "A String", # The type of this run; can be either "AUTOMATED" or "ON_DEMAND". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.
389
397
"windowStartTime": "A String", # The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.
0 commit comments