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
                                      */

use crate::google_rest_apis::sqladmin_v1::models;

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

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