| 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"> | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 84 |   <code><a href="#startExternalSync">startExternalSync(project, instance, skipVerification=None, 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"> | 
| Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 87 |   <code><a href="#verifyExternalSyncSettings">verifyExternalSyncSettings(project, instance, syncMode=None, verifyConnectionOnly=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. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 106 |   "reschedule": { # Required. The type of the reschedule the user wants. | 
 | 107 |     "rescheduleType": "A String", # Required. The type of the reschedule. | 
 | 108 |     "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*. | 
 | 109 |   }, | 
 | 110 | } | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 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 |  | 
| yoshi-code-bot | a8b35b9 | 2021-03-31 13:33:30 -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. | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 121 |   "backupContext": { # Backup context. # The context for backup operation, if applicable. | 
 | 122 |     "backupId": "A String", # The identifier of the backup. | 
 | 123 |     "kind": "A String", # This is always *sql#backupContext*. | 
 | 124 |   }, | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 125 |   "endTime": "A String", # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 126 |   "error": { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated. | 
 | 127 |     "errors": [ # The list of errors encountered while processing this operation. | 
 | 128 |       { # Database instance operation error. | 
 | 129 |         "code": "A String", # Identifies the specific error that occurred. | 
 | 130 |         "kind": "A String", # This is always *sql#operationError*. | 
 | 131 |         "message": "A String", # Additional information about the error encountered. | 
 | 132 |       }, | 
 | 133 |     ], | 
 | 134 |     "kind": "A String", # This is always *sql#operationErrors*. | 
 | 135 |   }, | 
 | 136 |   "exportContext": { # Database instance export context. # The context for export operation, if applicable. | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 137 |     "csvExportOptions": { # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 138 |       "selectQuery": "A String", # The select query used to extract the data. | 
| Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame] | 139 |     }, | 
| yoshi-code-bot | a8b35b9 | 2021-03-31 13:33:30 -0700 | [diff] [blame] | 140 |     "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. *SQL Server instances:* You must specify one database to be exported, and the *fileType* must be *BAK*. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 141 |       "A String", | 
 | 142 |     ], | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 143 |     "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. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 144 |     "kind": "A String", # This is always *sql#exportContext*. | 
 | 145 |     "offload": True or False, # Option for export offload. | 
 | 146 |     "sqlExportOptions": { # Options for exporting data as SQL statements. | 
 | 147 |       "mysqlExportOptions": { # Options for exporting from MySQL. | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 148 |         "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. | 
| Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame] | 149 |       }, | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 150 |       "schemaOnly": True or False, # Export only schemas. | 
 | 151 |       "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. | 
| Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame] | 152 |         "A String", | 
 | 153 |       ], | 
 | 154 |     }, | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 155 |     "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. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 156 |   }, | 
 | 157 |   "importContext": { # Database instance import context. # The context for import operation, if applicable. | 
 | 158 |     "bakImportOptions": { # Import parameters specific to SQL Server .BAK files | 
 | 159 |       "encryptionOptions": { | 
 | 160 |         "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. | 
 | 161 |         "pvkPassword": "A String", # Password that encrypts the private key | 
 | 162 |         "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. | 
| Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 163 |       }, | 
| Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 164 |     }, | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 165 |     "csvImportOptions": { # Options for importing data as CSV. | 
 | 166 |       "columns": [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data. | 
 | 167 |         "A String", | 
 | 168 |       ], | 
 | 169 |       "table": "A String", # The table to which CSV data is imported. | 
 | 170 |     }, | 
 | 171 |     "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. | 
 | 172 |     "fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. | 
 | 173 |     "importUser": "A String", # The PostgreSQL user for this import operation. PostgreSQL instances only. | 
 | 174 |     "kind": "A String", # This is always *sql#importContext*. | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 175 |     "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. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 176 |   }, | 
 | 177 |   "insertTime": "A String", # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 178 |   "kind": "A String", # This is always *sql#operation*. | 
 | 179 |   "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. | 
 | 180 |   "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* | 
 | 181 |   "selfLink": "A String", # The URI of this resource. | 
 | 182 |   "startTime": "A String", # The time this operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 183 |   "status": "A String", # The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *SQL_OPERATION_STATUS_UNSPECIFIED* | 
 | 184 |   "targetId": "A String", # Name of the database instance related to this operation. | 
 | 185 |   "targetLink": "A String", | 
 | 186 |   "targetProject": "A String", # The project ID of the target instance related to this operation. | 
 | 187 |   "user": "A String", # The email address of the user who initiated this operation. | 
 | 188 | }</pre> | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 189 | </div> | 
 | 190 |  | 
 | 191 | <div class="method"> | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 192 |     <code class="details" id="startExternalSync">startExternalSync(project, instance, skipVerification=None, syncMode=None, x__xgafv=None)</code> | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 193 |   <pre>Start External primary instance migration. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 194 |  | 
 | 195 | Args: | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 196 |   project: string, ID of the project that contains the instance. (required) | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 197 |   instance: string, Cloud SQL instance ID. This does not include the project ID. (required) | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 198 |   skipVerification: boolean, Whether to skip the verification step (VESS). | 
 | 199 |   syncMode: string, External sync mode. | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 200 |     Allowed values | 
 | 201 |       EXTERNAL_SYNC_MODE_UNSPECIFIED - Unknown external sync mode, will be defaulted to ONLINE mode | 
 | 202 |       ONLINE - Online external sync will set up replication after initial data external sync | 
 | 203 |       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] | 204 |   x__xgafv: string, V1 error format. | 
 | 205 |     Allowed values | 
 | 206 |       1 - v1 error format | 
 | 207 |       2 - v2 error format | 
 | 208 |  | 
 | 209 | Returns: | 
 | 210 |   An object of the form: | 
 | 211 |  | 
| yoshi-code-bot | a8b35b9 | 2021-03-31 13:33:30 -0700 | [diff] [blame] | 212 |     { # An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 213 |   "backupContext": { # Backup context. # The context for backup operation, if applicable. | 
 | 214 |     "backupId": "A String", # The identifier of the backup. | 
 | 215 |     "kind": "A String", # This is always *sql#backupContext*. | 
 | 216 |   }, | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 217 |   "endTime": "A String", # The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 218 |   "error": { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be populated. | 
 | 219 |     "errors": [ # The list of errors encountered while processing this operation. | 
 | 220 |       { # Database instance operation error. | 
 | 221 |         "code": "A String", # Identifies the specific error that occurred. | 
 | 222 |         "kind": "A String", # This is always *sql#operationError*. | 
 | 223 |         "message": "A String", # Additional information about the error encountered. | 
 | 224 |       }, | 
 | 225 |     ], | 
 | 226 |     "kind": "A String", # This is always *sql#operationErrors*. | 
 | 227 |   }, | 
 | 228 |   "exportContext": { # Database instance export context. # The context for export operation, if applicable. | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 229 |     "csvExportOptions": { # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 230 |       "selectQuery": "A String", # The select query used to extract the data. | 
| Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame] | 231 |     }, | 
| yoshi-code-bot | a8b35b9 | 2021-03-31 13:33:30 -0700 | [diff] [blame] | 232 |     "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. *SQL Server instances:* You must specify one database to be exported, and the *fileType* must be *BAK*. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 233 |       "A String", | 
 | 234 |     ], | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 235 |     "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. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 236 |     "kind": "A String", # This is always *sql#exportContext*. | 
 | 237 |     "offload": True or False, # Option for export offload. | 
 | 238 |     "sqlExportOptions": { # Options for exporting data as SQL statements. | 
 | 239 |       "mysqlExportOptions": { # Options for exporting from MySQL. | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 240 |         "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. | 
| Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame] | 241 |       }, | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 242 |       "schemaOnly": True or False, # Export only schemas. | 
 | 243 |       "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. | 
| Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame] | 244 |         "A String", | 
 | 245 |       ], | 
 | 246 |     }, | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 247 |     "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. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 248 |   }, | 
 | 249 |   "importContext": { # Database instance import context. # The context for import operation, if applicable. | 
 | 250 |     "bakImportOptions": { # Import parameters specific to SQL Server .BAK files | 
 | 251 |       "encryptionOptions": { | 
 | 252 |         "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. | 
 | 253 |         "pvkPassword": "A String", # Password that encrypts the private key | 
 | 254 |         "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. | 
| Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 255 |       }, | 
| Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 256 |     }, | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 257 |     "csvImportOptions": { # Options for importing data as CSV. | 
 | 258 |       "columns": [ # The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data. | 
 | 259 |         "A String", | 
 | 260 |       ], | 
 | 261 |       "table": "A String", # The table to which CSV data is imported. | 
 | 262 |     }, | 
 | 263 |     "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. | 
 | 264 |     "fileType": "A String", # The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. | 
 | 265 |     "importUser": "A String", # The PostgreSQL user for this import operation. PostgreSQL instances only. | 
 | 266 |     "kind": "A String", # This is always *sql#importContext*. | 
| yoshi-code-bot | b6dc1b9 | 2021-03-02 11:49:08 -0800 | [diff] [blame] | 267 |     "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. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 268 |   }, | 
 | 269 |   "insertTime": "A String", # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 270 |   "kind": "A String", # This is always *sql#operation*. | 
 | 271 |   "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. | 
 | 272 |   "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* | 
 | 273 |   "selfLink": "A String", # The URI of this resource. | 
 | 274 |   "startTime": "A String", # The time this operation actually started in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*. | 
 | 275 |   "status": "A String", # The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *SQL_OPERATION_STATUS_UNSPECIFIED* | 
 | 276 |   "targetId": "A String", # Name of the database instance related to this operation. | 
 | 277 |   "targetLink": "A String", | 
 | 278 |   "targetProject": "A String", # The project ID of the target instance related to this operation. | 
 | 279 |   "user": "A String", # The email address of the user who initiated this operation. | 
 | 280 | }</pre> | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 281 | </div> | 
 | 282 |  | 
 | 283 | <div class="method"> | 
| Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 284 |     <code class="details" id="verifyExternalSyncSettings">verifyExternalSyncSettings(project, instance, syncMode=None, verifyConnectionOnly=None, x__xgafv=None)</code> | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 285 |   <pre>Verify External primary instance external sync settings. | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 286 |  | 
 | 287 | Args: | 
 | 288 |   project: string, Project ID of the project that contains the instance. (required) | 
 | 289 |   instance: string, Cloud SQL instance ID. This does not include the project ID. (required) | 
| Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 290 |   syncMode: string, External sync mode | 
| Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 291 |     Allowed values | 
 | 292 |       EXTERNAL_SYNC_MODE_UNSPECIFIED - Unknown external sync mode, will be defaulted to ONLINE mode | 
 | 293 |       ONLINE - Online external sync will set up replication after initial data external sync | 
 | 294 |       OFFLINE - Offline external sync only dumps and loads a one-time snapshot of the primary instance's data | 
| Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 295 |   verifyConnectionOnly: boolean, Flag to enable verifying connection only | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 296 |   x__xgafv: string, V1 error format. | 
 | 297 |     Allowed values | 
 | 298 |       1 - v1 error format | 
 | 299 |       2 - v2 error format | 
 | 300 |  | 
 | 301 | Returns: | 
 | 302 |   An object of the form: | 
 | 303 |  | 
 | 304 |     { # Instance verify external sync settings response. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 305 |   "errors": [ # List of migration violations. | 
| yoshi-code-bot | a8b35b9 | 2021-03-31 13:33:30 -0700 | [diff] [blame] | 306 |     { # External primary instance migration setting error/warning. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 307 |       "detail": "A String", # Additional information about the error encountered. | 
| yoshi-code-bot | a8b35b9 | 2021-03-31 13:33:30 -0700 | [diff] [blame] | 308 |       "kind": "A String", # Can be *sql#externalSyncSettingError* or *sql#externalSyncSettingWarning*. | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 309 |       "type": "A String", # Identifies the specific error that occurred. | 
 | 310 |     }, | 
 | 311 |   ], | 
 | 312 |   "kind": "A String", # This is always *sql#migrationSettingErrorList*. | 
| yoshi-code-bot | a8b35b9 | 2021-03-31 13:33:30 -0700 | [diff] [blame] | 313 |   "warnings": [ # List of migration warnings. | 
 | 314 |     { # External primary instance migration setting error/warning. | 
 | 315 |       "detail": "A String", # Additional information about the error encountered. | 
 | 316 |       "kind": "A String", # Can be *sql#externalSyncSettingError* or *sql#externalSyncSettingWarning*. | 
 | 317 |       "type": "A String", # Identifies the specific error that occurred. | 
 | 318 |     }, | 
 | 319 |   ], | 
| Yoshi Automation Bot | cc94ec8 | 2021-01-15 07:10:04 -0800 | [diff] [blame] | 320 | }</pre> | 
| Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 321 | </div> | 
 | 322 |  | 
 | 323 | </body></html> |