/*
 * Mithril
 *
 * Mithril Compute API
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// UpdateVolumeRequest : Request model for updating an existing storage volume.  Attributes:     name: New name for the volume. Must follow naming conventions.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateVolumeRequest {
    #[serde(rename = "name")]
    pub name: String,
}

impl UpdateVolumeRequest {
    /// Request model for updating an existing storage volume.  Attributes:     name: New name for the volume. Must follow naming conventions.
    pub fn new(name: String) -> UpdateVolumeRequest {
        UpdateVolumeRequest { name }
    }
}
