| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 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"> | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 78 |   <code><a href="#close">close()</a></code></p> | 
 | 79 | <p class="firstline">Close httplib2 connections.</p> | 
 | 80 | <p class="toc_element"> | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 81 |   <code><a href="#rescheduleMaintenance">rescheduleMaintenance(project, instance, body=None, x__xgafv=None)</a></code></p> | 
 | 82 | <p class="firstline">Reschedules the maintenance on the given instance.</p> | 
 | 83 | <p class="toc_element"> | 
 | 84 |   <code><a href="#startExternalSync">startExternalSync(project, instance, syncMode=None, x__xgafv=None)</a></code></p> | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 85 | <p class="firstline">Start External primary instance migration.</p> | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 86 | <p class="toc_element"> | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 87 |   <code><a href="#verifyExternalSyncSettings">verifyExternalSyncSettings(project, instance, verifyConnectionOnly=None, syncMode=None, x__xgafv=None)</a></code></p> | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 88 | <p class="firstline">Verify External primary instance external sync settings.</p> | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 89 | <h3>Method Details</h3> | 
 | 90 | <div class="method"> | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 91 |     <code class="details" id="close">close()</code> | 
 | 92 |   <pre>Close httplib2 connections.</pre> | 
 | 93 | </div> | 
 | 94 |  | 
 | 95 | <div class="method"> | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 96 |     <code class="details" id="rescheduleMaintenance">rescheduleMaintenance(project, instance, body=None, x__xgafv=None)</code> | 
 | 97 |   <pre>Reschedules the maintenance on the given instance. | 
 | 98 |  | 
 | 99 | Args: | 
 | 100 |   project: string, ID of the project that contains the instance. (required) | 
 | 101 |   instance: string, Cloud SQL instance ID. This does not include the project ID. (required) | 
 | 102 |   body: object, The request body. | 
 | 103 |     The object takes the form of: | 
 | 104 |  | 
 | 105 | { # Reschedule options for maintenance windows. | 
 | 106 |     "reschedule": { # Required. The type of the reschedule the user wants. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 107 |       "scheduleTime": "A String", # Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 108 |       "rescheduleType": "A String", # Required. The type of the reschedule. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 109 |     }, | 
 | 110 |   } | 
 | 111 |  | 
 | 112 |   x__xgafv: string, V1 error format. | 
 | 113 |     Allowed values | 
 | 114 |       1 - v1 error format | 
 | 115 |       2 - v2 error format | 
 | 116 |  | 
 | 117 | Returns: | 
 | 118 |   An object of the form: | 
 | 119 |  | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 120 |     { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. | 
 | 121 |     "kind": "A String", # This is always *sql#operation*. | 
 | 122 |     "name": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation. | 
 | 123 |     "endTime": "A String", # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 124 |     "error": { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 125 |       "errors": [ # The list of errors encountered while processing this operation. | 
 | 126 |         { # Database instance operation error. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 127 |           "code": "A String", # Identifies the specific error that occurred. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 128 |           "kind": "A String", # This is always *sql#operationError*. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 129 |           "message": "A String", # Additional information about the error encountered. | 
 | 130 |         }, | 
 | 131 |       ], | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 132 |       "kind": "A String", # This is always *sql#operationErrors*. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 133 |     }, | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 134 |     "status": "A String", # The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *SQL_OPERATION_STATUS_UNSPECIFIED* | 
 | 135 |     "selfLink": "A String", # The URI of this resource. | 
 | 136 |     "startTime": "A String", # The time this operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 137 |     "exportContext": { # Database instance export context. # The context for export operation, if applicable. | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 138 |       "csvExportOptions": { # Options for exporting data as CSV. | 
 | 139 |         "selectQuery": "A String", # The select query used to extract the data. | 
 | 140 |       }, | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 141 |       "fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. | 
 | 142 |       "kind": "A String", # This is always *sql#exportContext*. | 
 | 143 |       "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. | 
 | 144 |       "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. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 145 |         "A String", | 
 | 146 |       ], | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 147 |       "offload": True or False, # Option for export offload. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 148 |       "sqlExportOptions": { # Options for exporting data as SQL statements. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 149 |         "schemaOnly": True or False, # Export only schemas. | 
 | 150 |         "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. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 151 |           "A String", | 
 | 152 |         ], | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 153 |         "mysqlExportOptions": { # Options for exporting from MySQL. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 154 |           "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. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 155 |         }, | 
 | 156 |       }, | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 157 |     }, | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 158 |     "user": "A String", # The email address of the user who initiated this operation. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 159 |     "targetId": "A String", # Name of the database instance related to this operation. | 
 | 160 |     "insertTime": "A String", # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 161 |     "operationType": "A String", # 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* | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 162 |     "targetProject": "A String", # The project ID of the target instance related to this operation. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 163 |     "targetLink": "A String", | 
 | 164 |     "importContext": { # Database instance import context. # The context for import operation, if applicable. | 
 | 165 |       "fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. | 
 | 166 |       "kind": "A String", # This is always *sql#importContext*. | 
 | 167 |       "csvImportOptions": { # Options for importing data as CSV. | 
 | 168 |         "columns": [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data. | 
 | 169 |           "A String", | 
 | 170 |         ], | 
 | 171 |         "table": "A String", # The table to which CSV data is imported. | 
 | 172 |       }, | 
 | 173 |       "bakImportOptions": { # Import parameters specific to SQL Server .BAK files | 
 | 174 |         "encryptionOptions": { | 
 | 175 |           "pvkPath": "A String", # 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. | 
 | 176 |           "certPath": "A String", # 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. | 
 | 177 |           "pvkPassword": "A String", # Password that encrypts the private key | 
 | 178 |         }, | 
 | 179 |       }, | 
 | 180 |       "database": "A String", # The target database for the import. If *fileType* is *SQL*, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If *fileType* is *CSV*, one database must be specified. | 
 | 181 |       "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. | 
 | 182 |       "importUser": "A String", # The PostgreSQL user for this import operation. PostgreSQL instances only. | 
 | 183 |     }, | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 184 |   }</pre> | 
 | 185 | </div> | 
 | 186 |  | 
 | 187 | <div class="method"> | 
 | 188 |     <code class="details" id="startExternalSync">startExternalSync(project, instance, syncMode=None, x__xgafv=None)</code> | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 189 |   <pre>Start External primary instance migration. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 190 |  | 
 | 191 | Args: | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 192 |   project: string, ID of the project that contains the instance. (required) | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 193 |   instance: string, Cloud SQL instance ID. This does not include the project ID. (required) | 
 | 194 |   syncMode: string, External sync mode | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 195 |     Allowed values | 
 | 196 |       EXTERNAL_SYNC_MODE_UNSPECIFIED - Unknown external sync mode, will be defaulted to ONLINE mode | 
 | 197 |       ONLINE - Online external sync will set up replication after initial data external sync | 
 | 198 |       OFFLINE - Offline external sync only dumps and loads a one-time snapshot of the primary instance's data | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 199 |   x__xgafv: string, V1 error format. | 
 | 200 |     Allowed values | 
 | 201 |       1 - v1 error format | 
 | 202 |       2 - v2 error format | 
 | 203 |  | 
 | 204 | Returns: | 
 | 205 |   An object of the form: | 
 | 206 |  | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 207 |     { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. | 
 | 208 |     "kind": "A String", # This is always *sql#operation*. | 
 | 209 |     "name": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation. | 
 | 210 |     "endTime": "A String", # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 211 |     "error": { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 212 |       "errors": [ # The list of errors encountered while processing this operation. | 
 | 213 |         { # Database instance operation error. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 214 |           "code": "A String", # Identifies the specific error that occurred. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 215 |           "kind": "A String", # This is always *sql#operationError*. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 216 |           "message": "A String", # Additional information about the error encountered. | 
 | 217 |         }, | 
 | 218 |       ], | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 219 |       "kind": "A String", # This is always *sql#operationErrors*. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 220 |     }, | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 221 |     "status": "A String", # The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *SQL_OPERATION_STATUS_UNSPECIFIED* | 
 | 222 |     "selfLink": "A String", # The URI of this resource. | 
 | 223 |     "startTime": "A String", # The time this operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 224 |     "exportContext": { # Database instance export context. # The context for export operation, if applicable. | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 225 |       "csvExportOptions": { # Options for exporting data as CSV. | 
 | 226 |         "selectQuery": "A String", # The select query used to extract the data. | 
 | 227 |       }, | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 228 |       "fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. | 
 | 229 |       "kind": "A String", # This is always *sql#exportContext*. | 
 | 230 |       "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. | 
 | 231 |       "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. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 232 |         "A String", | 
 | 233 |       ], | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 234 |       "offload": True or False, # Option for export offload. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 235 |       "sqlExportOptions": { # Options for exporting data as SQL statements. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 236 |         "schemaOnly": True or False, # Export only schemas. | 
 | 237 |         "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. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 238 |           "A String", | 
 | 239 |         ], | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 240 |         "mysqlExportOptions": { # Options for exporting from MySQL. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 241 |           "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. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 242 |         }, | 
 | 243 |       }, | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 244 |     }, | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 245 |     "user": "A String", # The email address of the user who initiated this operation. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 246 |     "targetId": "A String", # Name of the database instance related to this operation. | 
 | 247 |     "insertTime": "A String", # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 248 |     "operationType": "A String", # 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* | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 249 |     "targetProject": "A String", # The project ID of the target instance related to this operation. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 250 |     "targetLink": "A String", | 
 | 251 |     "importContext": { # Database instance import context. # The context for import operation, if applicable. | 
 | 252 |       "fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. | 
 | 253 |       "kind": "A String", # This is always *sql#importContext*. | 
 | 254 |       "csvImportOptions": { # Options for importing data as CSV. | 
 | 255 |         "columns": [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data. | 
 | 256 |           "A String", | 
 | 257 |         ], | 
 | 258 |         "table": "A String", # The table to which CSV data is imported. | 
 | 259 |       }, | 
 | 260 |       "bakImportOptions": { # Import parameters specific to SQL Server .BAK files | 
 | 261 |         "encryptionOptions": { | 
 | 262 |           "pvkPath": "A String", # 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. | 
 | 263 |           "certPath": "A String", # 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. | 
 | 264 |           "pvkPassword": "A String", # Password that encrypts the private key | 
 | 265 |         }, | 
 | 266 |       }, | 
 | 267 |       "database": "A String", # The target database for the import. If *fileType* is *SQL*, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If *fileType* is *CSV*, one database must be specified. | 
 | 268 |       "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. | 
 | 269 |       "importUser": "A String", # The PostgreSQL user for this import operation. PostgreSQL instances only. | 
 | 270 |     }, | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 271 |   }</pre> | 
 | 272 | </div> | 
 | 273 |  | 
 | 274 | <div class="method"> | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 275 |     <code class="details" id="verifyExternalSyncSettings">verifyExternalSyncSettings(project, instance, verifyConnectionOnly=None, syncMode=None, x__xgafv=None)</code> | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 276 |   <pre>Verify External primary instance external sync settings. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 277 |  | 
 | 278 | Args: | 
 | 279 |   project: string, Project ID of the project that contains the instance. (required) | 
 | 280 |   instance: string, Cloud SQL instance ID. This does not include the project ID. (required) | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 281 |   verifyConnectionOnly: boolean, Flag to enable verifying connection only | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 282 |   syncMode: string, External sync mode | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 283 |     Allowed values | 
 | 284 |       EXTERNAL_SYNC_MODE_UNSPECIFIED - Unknown external sync mode, will be defaulted to ONLINE mode | 
 | 285 |       ONLINE - Online external sync will set up replication after initial data external sync | 
 | 286 |       OFFLINE - Offline external sync only dumps and loads a one-time snapshot of the primary instance's data | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 287 |   x__xgafv: string, V1 error format. | 
 | 288 |     Allowed values | 
 | 289 |       1 - v1 error format | 
 | 290 |       2 - v2 error format | 
 | 291 |  | 
 | 292 | Returns: | 
 | 293 |   An object of the form: | 
 | 294 |  | 
 | 295 |     { # Instance verify external sync settings response. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 296 |     "kind": "A String", # This is always *sql#migrationSettingErrorList*. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 297 |     "errors": [ # List of migration violations. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 298 |       { # External primary instance migration setting error. | 
 | 299 |         "kind": "A String", # This is always *sql#migrationSettingError*. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 300 |         "detail": "A String", # Additional information about the error encountered. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 301 |         "type": "A String", # Identifies the specific error that occurred. | 
 | 302 |       }, | 
 | 303 |     ], | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 304 |   }</pre> | 
 | 305 | </div> | 
 | 306 |  | 
 | 307 | </body></html> |