use serde::{Deserialize, Serialize}; /*
                                      * Cloud SQL Admin API
                                      *
                                      * API for Cloud SQL database instance management
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

/// InstancesFailoverRequest : Instance failover request.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct InstancesFailoverRequest {
    #[serde(rename = "failoverContext", skip_serializing_if = "Option::is_none")]
    pub failover_context:
        Option<Box<crate::google_rest_apis::sqladmin_v1::models::FailoverContext>>,
}

impl InstancesFailoverRequest {
    /// Instance failover request.
    pub fn new() -> InstancesFailoverRequest {
        InstancesFailoverRequest {
            failover_context: None,
        }
    }
}
