Skip to main content

exoscale_rs/models/
create_dbaas_task_migration_check_request.rs

1/*
2 * Exoscale API
3 *
4 * Infrastructure automation API, allowing programmatic access to all Exoscale products and services.
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: support@exoscale.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreateDbaasTaskMigrationCheckRequest {
16    /// Service URI of the source MySQL or PostgreSQL database with admin credentials.
17    #[serde(rename = "source-service-uri")]
18    pub source_service_uri: String,
19    #[serde(rename = "method", skip_serializing_if = "Option::is_none")]
20    pub method: Option<models::EnumMigrationMethod>,
21    /// Comma-separated list of databases, which should be ignored during migration (supported by MySQL only at the moment)
22    #[serde(rename = "ignore-dbs", skip_serializing_if = "Option::is_none")]
23    pub ignore_dbs: Option<String>,
24}
25
26impl CreateDbaasTaskMigrationCheckRequest {
27    pub fn new(source_service_uri: String) -> CreateDbaasTaskMigrationCheckRequest {
28        CreateDbaasTaskMigrationCheckRequest {
29            source_service_uri,
30            method: None,
31            ignore_dbs: None,
32        }
33    }
34}
35