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="sql_v1beta4.html">Cloud SQL Admin API</a> . <a href="sql_v1beta4.sslCerts.html">sslCerts</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#createEphemeral">createEphemeral(project, instance, body=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Generates a short-lived X509 certificate containing the provided public key</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#delete">delete(project, instance, sha1Fingerprint, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Deletes the SSL certificate. For First Generation instances, the</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#get">get(project, instance, sha1Fingerprint, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Retrieves a particular SSL certificate. Does not include the private key</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#insert">insert(project, instance, body=None, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Creates an SSL certificate and returns it along with the private key and</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#list">list(project, instance, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Lists all of the current SSL certificates for the instance.</p> |
| 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
| 94 | <code class="details" id="createEphemeral">createEphemeral(project, instance, body=None, x__xgafv=None)</code> |
| 95 | <pre>Generates a short-lived X509 certificate containing the provided public key |
| 96 | and signed by a private key specific to the target instance. Users may use |
| 97 | the certificate to authenticate as themselves when connecting to the |
| 98 | database. |
| 99 | |
| 100 | Args: |
| 101 | project: string, Project ID of the Cloud SQL project. (required) |
| 102 | instance: string, Cloud SQL instance ID. This does not include the project ID. (required) |
| 103 | body: object, The request body. |
| 104 | The object takes the form of: |
| 105 | |
| 106 | { # SslCerts create ephemeral certificate request. |
| 107 | "public_key": "A String", # PEM encoded public key to include in the signed certificate. |
| 108 | } |
| 109 | |
| 110 | x__xgafv: string, V1 error format. |
| 111 | Allowed values |
| 112 | 1 - v1 error format |
| 113 | 2 - v2 error format |
| 114 | |
| 115 | Returns: |
| 116 | An object of the form: |
| 117 | |
| 118 | { # SslCerts Resource |
| 119 | "selfLink": "A String", # The URI of this resource. |
| 120 | "expirationTime": "A String", # The time when the certificate expires in <a |
| 121 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 122 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 123 | "sha1Fingerprint": "A String", # Sha1 Fingerprint. |
| 124 | "certSerialNumber": "A String", # Serial number, as extracted from the certificate. |
| 125 | "cert": "A String", # PEM representation. |
| 126 | "kind": "A String", # This is always <code>sql#sslCert</code>. |
| 127 | "commonName": "A String", # User supplied name. Constrained to [a-zA-Z.-_ ]+. |
| 128 | "createTime": "A String", # The time when the certificate was created in <a |
| 129 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 130 | # <code>2012-11-15T16:19:00.094Z</code> |
| 131 | "instance": "A String", # Name of the database instance. |
| 132 | }</pre> |
| 133 | </div> |
| 134 | |
| 135 | <div class="method"> |
| 136 | <code class="details" id="delete">delete(project, instance, sha1Fingerprint, x__xgafv=None)</code> |
| 137 | <pre>Deletes the SSL certificate. For First Generation instances, the |
| 138 | certificate remains valid until the instance is restarted. |
| 139 | |
| 140 | Args: |
| 141 | project: string, Project ID of the project that contains the instance. (required) |
| 142 | instance: string, Cloud SQL instance ID. This does not include the project ID. (required) |
| 143 | sha1Fingerprint: string, Sha1 FingerPrint. (required) |
| 144 | x__xgafv: string, V1 error format. |
| 145 | Allowed values |
| 146 | 1 - v1 error format |
| 147 | 2 - v2 error format |
| 148 | |
| 149 | Returns: |
| 150 | An object of the form: |
| 151 | |
| 152 | { # An Operation resource.&nbsp;For successful operations that return an |
| 153 | # Operation resource, only the fields relevant to the operation are populated |
| 154 | # in the resource. |
| 155 | "user": "A String", # The email address of the user who initiated this operation. |
| 156 | "targetProject": "A String", # The project ID of the target instance related to this operation. |
| 157 | "selfLink": "A String", # The URI of this resource. |
| 158 | "targetLink": "A String", |
| 159 | "operationType": "A String", # The type of the operation. Valid values are <code>CREATE</code>, |
| 160 | # <code>DELETE</code>, <code>UPDATE</code>, <code>RESTART</code>, |
| 161 | # <code>IMPORT</code>, <code>EXPORT</code>, <code>BACKUP_VOLUME</code>, |
| 162 | # <code>RESTORE_VOLUME</code>, <code>CREATE_USER</code>, |
| 163 | # <code>DELETE_USER</code>, <code>CREATE_DATABASE</code>, |
| 164 | # <code>DELETE_DATABASE</code> . |
| 165 | "error": { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be |
| 166 | # populated. |
| 167 | "errors": [ # The list of errors encountered while processing this operation. |
| 168 | { # Database instance operation error. |
| 169 | "code": "A String", # Identifies the specific error that occurred. |
| 170 | "message": "A String", # Additional information about the error encountered. |
| 171 | "kind": "A String", # This is always <code>sql#operationError</code>. |
| 172 | }, |
| 173 | ], |
| 174 | "kind": "A String", # This is always <code>sql#operationErrors</code>. |
| 175 | }, |
| 176 | "kind": "A String", # This is always <code>sql#operation</code>. |
| 177 | "importContext": { # Database instance import context. # The context for import operation, if applicable. |
| 178 | "csvImportOptions": { # Options for importing data as CSV. |
| 179 | "columns": [ # The columns to which CSV data is imported. If not specified, all columns |
| 180 | # of the database table are loaded with CSV data. |
| 181 | "A String", |
| 182 | ], |
| 183 | "table": "A String", # The table to which CSV data is imported. |
| 184 | }, |
| 185 | "kind": "A String", # This is always <code>sql#importContext</code>. |
| 186 | "database": "A String", # The target database for the import. If <code>fileType</code> is |
| 187 | # <code>SQL</code>, this field is required only if the import file does not |
| 188 | # specify a database, and is overridden by any database specification in the |
| 189 | # import file. If <code>fileType</code> is <code>CSV</code>, one database |
| 190 | # must be specified. |
| 191 | "importUser": "A String", # The PostgreSQL user for this import operation. PostgreSQL instances only. |
| 192 | "bakImportOptions": { # Import parameters specific to SQL Server .BAK files |
| 193 | "encryptionOptions": { |
| 194 | "pvkPassword": "A String", # Password that encrypts the private key |
| 195 | "certPath": "A String", # Path to the Certificate (.cer) in Cloud Storage, in the form |
| 196 | # <code>gs://bucketName/fileName</code>. The instance must have |
| 197 | # write permissions to the bucket and read access to the file. |
| 198 | "pvkPath": "A String", # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the |
| 199 | # form <code>gs://bucketName/fileName</code>. The instance must have |
| 200 | # write permissions to the bucket and read access to the file. |
| 201 | }, |
| 202 | }, |
| 203 | "uri": "A String", # Path to the import file in Cloud Storage, in the form |
| 204 | # <code>gs: |
| 205 | # //bucketName/fileName</code>. Compressed gzip files (.gz) are supported |
| 206 | # // when <code>fileType</code> is <code>SQL</code>. The instance must have |
| 207 | # // write permissions to the bucket and read access to the file. |
| 208 | "fileType": "A String", # The file type for the specified uri. <br><code>SQL</code>: The file |
| 209 | # contains SQL statements. <br><code>CSV</code>: The file contains CSV data. |
| 210 | }, |
| 211 | "status": "A String", # The status of an operation. Valid values are <code>PENDING</code>, |
| 212 | # <code>RUNNING</code>, <code>DONE</code>, |
| 213 | # <code>SQL_OPERATION_STATUS_UNSPECIFIED</code>. |
| 214 | "name": "A String", # An identifier that uniquely identifies the operation. You can use this |
| 215 | # identifier to retrieve the Operations resource that has information about |
| 216 | # the operation. |
| 217 | "exportContext": { # Database instance export context. # The context for export operation, if applicable. |
| 218 | "databases": [ # Databases to be exported. <br /> <b>MySQL instances:</b> If |
| 219 | # <code>fileType</code> is <code>SQL</code> and no database is specified, all |
| 220 | # databases are exported, except for the <code>mysql</code> system database. |
| 221 | # If <code>fileType</code> is <code>CSV</code>, you can specify one database, |
| 222 | # either by using this property or by using the |
| 223 | # <code>csvExportOptions.selectQuery</code> property, which takes precedence |
| 224 | # over this property. <br /> <b>PostgreSQL instances:</b> You must specify |
| 225 | # one database to be exported. If <code>fileType</code> is <code>CSV</code>, |
| 226 | # this database must match the one specified in the |
| 227 | # <code>csvExportOptions.selectQuery</code> property. |
| 228 | "A String", |
| 229 | ], |
| 230 | "sqlExportOptions": { # Options for exporting data as SQL statements. |
| 231 | "tables": [ # Tables to export, or that were exported, from the specified database. If |
| 232 | # you specify tables, specify one and only one database. For PostgreSQL |
| 233 | # instances, you can specify only one table. |
| 234 | "A String", |
| 235 | ], |
| 236 | "schemaOnly": True or False, # Export only schemas. |
| 237 | "mysqlExportOptions": { # Options for exporting from MySQL. |
| 238 | "masterData": 42, # Option to include SQL statement required to set up replication. |
| 239 | # If set to <code>1</code>, the dump file includes |
| 240 | # a CHANGE MASTER TO statement with the binary log coordinates. |
| 241 | # If set to <code>2</code>, the CHANGE MASTER TO statement is written as |
| 242 | # a SQL comment, and has no effect. |
| 243 | # All other values are ignored. |
| 244 | }, |
| 245 | }, |
| 246 | "fileType": "A String", # The file type for the specified uri. <br><code>SQL</code>: The file |
| 247 | # contains SQL statements. <br><code>CSV</code>: The file contains CSV data. |
| 248 | "uri": "A String", # The path to the file in Google Cloud Storage where the export will be |
| 249 | # stored. The URI is in the form <code>gs: |
| 250 | # //bucketName/fileName</code>. If the file already exists, the requests |
| 251 | # // succeeds, but the operation fails. If <code>fileType</code> is |
| 252 | # // <code>SQL</code> and the filename ends with .gz, the contents are |
| 253 | # // compressed. |
| 254 | "csvExportOptions": { # Options for exporting data as CSV. |
| 255 | "selectQuery": "A String", # The select query used to extract the data. |
| 256 | }, |
| 257 | "kind": "A String", # This is always <code>sql#exportContext</code>. |
| 258 | }, |
| 259 | "targetId": "A String", # Name of the database instance related to this operation. |
| 260 | "endTime": "A String", # The time this operation finished in UTC timezone in <a |
| 261 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 262 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 263 | "startTime": "A String", # The time this operation actually started in UTC timezone in <a |
| 264 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 265 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 266 | "insertTime": "A String", # The time this operation was enqueued in UTC timezone in <a |
| 267 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 268 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 269 | }</pre> |
| 270 | </div> |
| 271 | |
| 272 | <div class="method"> |
| 273 | <code class="details" id="get">get(project, instance, sha1Fingerprint, x__xgafv=None)</code> |
| 274 | <pre>Retrieves a particular SSL certificate. Does not include the private key |
| 275 | (required for usage). The private key must be saved from the response to |
| 276 | initial creation. |
| 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) |
| 281 | sha1Fingerprint: string, Sha1 FingerPrint. (required) |
| 282 | x__xgafv: string, V1 error format. |
| 283 | Allowed values |
| 284 | 1 - v1 error format |
| 285 | 2 - v2 error format |
| 286 | |
| 287 | Returns: |
| 288 | An object of the form: |
| 289 | |
| 290 | { # SslCerts Resource |
| 291 | "selfLink": "A String", # The URI of this resource. |
| 292 | "expirationTime": "A String", # The time when the certificate expires in <a |
| 293 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 294 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 295 | "sha1Fingerprint": "A String", # Sha1 Fingerprint. |
| 296 | "certSerialNumber": "A String", # Serial number, as extracted from the certificate. |
| 297 | "cert": "A String", # PEM representation. |
| 298 | "kind": "A String", # This is always <code>sql#sslCert</code>. |
| 299 | "commonName": "A String", # User supplied name. Constrained to [a-zA-Z.-_ ]+. |
| 300 | "createTime": "A String", # The time when the certificate was created in <a |
| 301 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 302 | # <code>2012-11-15T16:19:00.094Z</code> |
| 303 | "instance": "A String", # Name of the database instance. |
| 304 | }</pre> |
| 305 | </div> |
| 306 | |
| 307 | <div class="method"> |
| 308 | <code class="details" id="insert">insert(project, instance, body=None, x__xgafv=None)</code> |
| 309 | <pre>Creates an SSL certificate and returns it along with the private key and |
| 310 | server certificate authority. The new certificate will not be usable until |
| 311 | the instance is restarted. |
| 312 | |
| 313 | Args: |
| 314 | project: string, Project ID of the project that contains the instance. (required) |
| 315 | instance: string, Cloud SQL instance ID. This does not include the project ID. (required) |
| 316 | body: object, The request body. |
| 317 | The object takes the form of: |
| 318 | |
| 319 | { # SslCerts insert request. |
| 320 | "commonName": "A String", # User supplied name. Must be a distinct name from the other certificates |
| 321 | # for this instance. |
| 322 | } |
| 323 | |
| 324 | x__xgafv: string, V1 error format. |
| 325 | Allowed values |
| 326 | 1 - v1 error format |
| 327 | 2 - v2 error format |
| 328 | |
| 329 | Returns: |
| 330 | An object of the form: |
| 331 | |
| 332 | { # SslCert insert response. |
| 333 | "kind": "A String", # This is always <code>sql#sslCertsInsert</code>. |
| 334 | "serverCaCert": { # SslCerts Resource # The server Certificate Authority's certificate. If this is missing you can |
| 335 | # force a new one to be generated by calling resetSslConfig method on |
| 336 | # instances resource. |
| 337 | "selfLink": "A String", # The URI of this resource. |
| 338 | "expirationTime": "A String", # The time when the certificate expires in <a |
| 339 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 340 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 341 | "sha1Fingerprint": "A String", # Sha1 Fingerprint. |
| 342 | "certSerialNumber": "A String", # Serial number, as extracted from the certificate. |
| 343 | "cert": "A String", # PEM representation. |
| 344 | "kind": "A String", # This is always <code>sql#sslCert</code>. |
| 345 | "commonName": "A String", # User supplied name. Constrained to [a-zA-Z.-_ ]+. |
| 346 | "createTime": "A String", # The time when the certificate was created in <a |
| 347 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 348 | # <code>2012-11-15T16:19:00.094Z</code> |
| 349 | "instance": "A String", # Name of the database instance. |
| 350 | }, |
| 351 | "clientCert": { # SslCertDetail. # The new client certificate and private key. For First Generation |
| 352 | # instances, the new certificate does not take effect until the instance is |
| 353 | # restarted. |
| 354 | "certInfo": { # SslCerts Resource # The public information about the cert. |
| 355 | "selfLink": "A String", # The URI of this resource. |
| 356 | "expirationTime": "A String", # The time when the certificate expires in <a |
| 357 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 358 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 359 | "sha1Fingerprint": "A String", # Sha1 Fingerprint. |
| 360 | "certSerialNumber": "A String", # Serial number, as extracted from the certificate. |
| 361 | "cert": "A String", # PEM representation. |
| 362 | "kind": "A String", # This is always <code>sql#sslCert</code>. |
| 363 | "commonName": "A String", # User supplied name. Constrained to [a-zA-Z.-_ ]+. |
| 364 | "createTime": "A String", # The time when the certificate was created in <a |
| 365 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 366 | # <code>2012-11-15T16:19:00.094Z</code> |
| 367 | "instance": "A String", # Name of the database instance. |
| 368 | }, |
| 369 | "certPrivateKey": "A String", # The private key for the client cert, in pem format. Keep private in order |
| 370 | # to protect your security. |
| 371 | }, |
| 372 | "operation": { # An Operation resource.&nbsp;For successful operations that return an # The operation to track the ssl certs insert request. |
| 373 | # Operation resource, only the fields relevant to the operation are populated |
| 374 | # in the resource. |
| 375 | "user": "A String", # The email address of the user who initiated this operation. |
| 376 | "targetProject": "A String", # The project ID of the target instance related to this operation. |
| 377 | "selfLink": "A String", # The URI of this resource. |
| 378 | "targetLink": "A String", |
| 379 | "operationType": "A String", # The type of the operation. Valid values are <code>CREATE</code>, |
| 380 | # <code>DELETE</code>, <code>UPDATE</code>, <code>RESTART</code>, |
| 381 | # <code>IMPORT</code>, <code>EXPORT</code>, <code>BACKUP_VOLUME</code>, |
| 382 | # <code>RESTORE_VOLUME</code>, <code>CREATE_USER</code>, |
| 383 | # <code>DELETE_USER</code>, <code>CREATE_DATABASE</code>, |
| 384 | # <code>DELETE_DATABASE</code> . |
| 385 | "error": { # Database instance operation errors list wrapper. # If errors occurred during processing of this operation, this field will be |
| 386 | # populated. |
| 387 | "errors": [ # The list of errors encountered while processing this operation. |
| 388 | { # Database instance operation error. |
| 389 | "code": "A String", # Identifies the specific error that occurred. |
| 390 | "message": "A String", # Additional information about the error encountered. |
| 391 | "kind": "A String", # This is always <code>sql#operationError</code>. |
| 392 | }, |
| 393 | ], |
| 394 | "kind": "A String", # This is always <code>sql#operationErrors</code>. |
| 395 | }, |
| 396 | "kind": "A String", # This is always <code>sql#operation</code>. |
| 397 | "importContext": { # Database instance import context. # The context for import operation, if applicable. |
| 398 | "csvImportOptions": { # Options for importing data as CSV. |
| 399 | "columns": [ # The columns to which CSV data is imported. If not specified, all columns |
| 400 | # of the database table are loaded with CSV data. |
| 401 | "A String", |
| 402 | ], |
| 403 | "table": "A String", # The table to which CSV data is imported. |
| 404 | }, |
| 405 | "kind": "A String", # This is always <code>sql#importContext</code>. |
| 406 | "database": "A String", # The target database for the import. If <code>fileType</code> is |
| 407 | # <code>SQL</code>, this field is required only if the import file does not |
| 408 | # specify a database, and is overridden by any database specification in the |
| 409 | # import file. If <code>fileType</code> is <code>CSV</code>, one database |
| 410 | # must be specified. |
| 411 | "importUser": "A String", # The PostgreSQL user for this import operation. PostgreSQL instances only. |
| 412 | "bakImportOptions": { # Import parameters specific to SQL Server .BAK files |
| 413 | "encryptionOptions": { |
| 414 | "pvkPassword": "A String", # Password that encrypts the private key |
| 415 | "certPath": "A String", # Path to the Certificate (.cer) in Cloud Storage, in the form |
| 416 | # <code>gs://bucketName/fileName</code>. The instance must have |
| 417 | # write permissions to the bucket and read access to the file. |
| 418 | "pvkPath": "A String", # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the |
| 419 | # form <code>gs://bucketName/fileName</code>. The instance must have |
| 420 | # write permissions to the bucket and read access to the file. |
| 421 | }, |
| 422 | }, |
| 423 | "uri": "A String", # Path to the import file in Cloud Storage, in the form |
| 424 | # <code>gs: |
| 425 | # //bucketName/fileName</code>. Compressed gzip files (.gz) are supported |
| 426 | # // when <code>fileType</code> is <code>SQL</code>. The instance must have |
| 427 | # // write permissions to the bucket and read access to the file. |
| 428 | "fileType": "A String", # The file type for the specified uri. <br><code>SQL</code>: The file |
| 429 | # contains SQL statements. <br><code>CSV</code>: The file contains CSV data. |
| 430 | }, |
| 431 | "status": "A String", # The status of an operation. Valid values are <code>PENDING</code>, |
| 432 | # <code>RUNNING</code>, <code>DONE</code>, |
| 433 | # <code>SQL_OPERATION_STATUS_UNSPECIFIED</code>. |
| 434 | "name": "A String", # An identifier that uniquely identifies the operation. You can use this |
| 435 | # identifier to retrieve the Operations resource that has information about |
| 436 | # the operation. |
| 437 | "exportContext": { # Database instance export context. # The context for export operation, if applicable. |
| 438 | "databases": [ # Databases to be exported. <br /> <b>MySQL instances:</b> If |
| 439 | # <code>fileType</code> is <code>SQL</code> and no database is specified, all |
| 440 | # databases are exported, except for the <code>mysql</code> system database. |
| 441 | # If <code>fileType</code> is <code>CSV</code>, you can specify one database, |
| 442 | # either by using this property or by using the |
| 443 | # <code>csvExportOptions.selectQuery</code> property, which takes precedence |
| 444 | # over this property. <br /> <b>PostgreSQL instances:</b> You must specify |
| 445 | # one database to be exported. If <code>fileType</code> is <code>CSV</code>, |
| 446 | # this database must match the one specified in the |
| 447 | # <code>csvExportOptions.selectQuery</code> property. |
| 448 | "A String", |
| 449 | ], |
| 450 | "sqlExportOptions": { # Options for exporting data as SQL statements. |
| 451 | "tables": [ # Tables to export, or that were exported, from the specified database. If |
| 452 | # you specify tables, specify one and only one database. For PostgreSQL |
| 453 | # instances, you can specify only one table. |
| 454 | "A String", |
| 455 | ], |
| 456 | "schemaOnly": True or False, # Export only schemas. |
| 457 | "mysqlExportOptions": { # Options for exporting from MySQL. |
| 458 | "masterData": 42, # Option to include SQL statement required to set up replication. |
| 459 | # If set to <code>1</code>, the dump file includes |
| 460 | # a CHANGE MASTER TO statement with the binary log coordinates. |
| 461 | # If set to <code>2</code>, the CHANGE MASTER TO statement is written as |
| 462 | # a SQL comment, and has no effect. |
| 463 | # All other values are ignored. |
| 464 | }, |
| 465 | }, |
| 466 | "fileType": "A String", # The file type for the specified uri. <br><code>SQL</code>: The file |
| 467 | # contains SQL statements. <br><code>CSV</code>: The file contains CSV data. |
| 468 | "uri": "A String", # The path to the file in Google Cloud Storage where the export will be |
| 469 | # stored. The URI is in the form <code>gs: |
| 470 | # //bucketName/fileName</code>. If the file already exists, the requests |
| 471 | # // succeeds, but the operation fails. If <code>fileType</code> is |
| 472 | # // <code>SQL</code> and the filename ends with .gz, the contents are |
| 473 | # // compressed. |
| 474 | "csvExportOptions": { # Options for exporting data as CSV. |
| 475 | "selectQuery": "A String", # The select query used to extract the data. |
| 476 | }, |
| 477 | "kind": "A String", # This is always <code>sql#exportContext</code>. |
| 478 | }, |
| 479 | "targetId": "A String", # Name of the database instance related to this operation. |
| 480 | "endTime": "A String", # The time this operation finished in UTC timezone in <a |
| 481 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 482 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 483 | "startTime": "A String", # The time this operation actually started in UTC timezone in <a |
| 484 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 485 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 486 | "insertTime": "A String", # The time this operation was enqueued in UTC timezone in <a |
| 487 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 488 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 489 | }, |
| 490 | }</pre> |
| 491 | </div> |
| 492 | |
| 493 | <div class="method"> |
| 494 | <code class="details" id="list">list(project, instance, x__xgafv=None)</code> |
| 495 | <pre>Lists all of the current SSL certificates for the instance. |
| 496 | |
| 497 | Args: |
| 498 | project: string, Project ID of the project that contains the instance. (required) |
| 499 | instance: string, Cloud SQL instance ID. This does not include the project ID. (required) |
| 500 | x__xgafv: string, V1 error format. |
| 501 | Allowed values |
| 502 | 1 - v1 error format |
| 503 | 2 - v2 error format |
| 504 | |
| 505 | Returns: |
| 506 | An object of the form: |
| 507 | |
| 508 | { # SslCerts list response. |
| 509 | "kind": "A String", # This is always <code>sql#sslCertsList</code>. |
| 510 | "items": [ # List of client certificates for the instance. |
| 511 | { # SslCerts Resource |
| 512 | "selfLink": "A String", # The URI of this resource. |
| 513 | "expirationTime": "A String", # The time when the certificate expires in <a |
| 514 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 515 | # <code>2012-11-15T16:19:00.094Z</code>. |
| 516 | "sha1Fingerprint": "A String", # Sha1 Fingerprint. |
| 517 | "certSerialNumber": "A String", # Serial number, as extracted from the certificate. |
| 518 | "cert": "A String", # PEM representation. |
| 519 | "kind": "A String", # This is always <code>sql#sslCert</code>. |
| 520 | "commonName": "A String", # User supplied name. Constrained to [a-zA-Z.-_ ]+. |
| 521 | "createTime": "A String", # The time when the certificate was created in <a |
| 522 | # href="https://tools.ietf.org/html/rfc3339">RFC 3339</a> format, for example |
| 523 | # <code>2012-11-15T16:19:00.094Z</code> |
| 524 | "instance": "A String", # Name of the database instance. |
| 525 | }, |
| 526 | ], |
| 527 | }</pre> |
| 528 | </div> |
| 529 | |
| 530 | </body></html> |