openapi_service_fabric/models/volume_reference.rs
1/*
2 * Service Fabric Client APIs
3 *
4 * Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services.
5 *
6 * The version of the OpenAPI document: 8.2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// VolumeReference : Describes a reference to a volume resource.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VolumeReference {
17 /// Name of the volume being referenced.
18 #[serde(rename = "name")]
19 pub name: String,
20 /// The flag indicating whether the volume is read only. Default is 'false'.
21 #[serde(rename = "readOnly", skip_serializing_if = "Option::is_none")]
22 pub read_only: Option<bool>,
23 /// The path within the container at which the volume should be mounted. Only valid path characters are allowed.
24 #[serde(rename = "destinationPath")]
25 pub destination_path: String,
26}
27
28impl VolumeReference {
29 /// Describes a reference to a volume resource.
30 pub fn new(name: String, destination_path: String) -> VolumeReference {
31 VolumeReference {
32 name,
33 read_only: None,
34 destination_path,
35 }
36 }
37}