openapi_service_fabric/models/file_version.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/// FileVersion : Information about the version of image store file.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FileVersion {
17 /// The current image store version number for the file is used in image store for checking whether it need to be updated.
18 #[serde(rename = "VersionNumber", skip_serializing_if = "Option::is_none")]
19 pub version_number: Option<String>,
20 /// The epoch data loss number of image store replica when this file entry was updated or created.
21 #[serde(
22 rename = "EpochDataLossNumber",
23 skip_serializing_if = "Option::is_none"
24 )]
25 pub epoch_data_loss_number: Option<String>,
26 /// The epoch configuration version number of the image store replica when this file entry was created or updated.
27 #[serde(
28 rename = "EpochConfigurationNumber",
29 skip_serializing_if = "Option::is_none"
30 )]
31 pub epoch_configuration_number: Option<String>,
32}
33
34impl FileVersion {
35 /// Information about the version of image store file.
36 pub fn new() -> FileVersion {
37 FileVersion {
38 version_number: None,
39 epoch_data_loss_number: None,
40 epoch_configuration_number: None,
41 }
42 }
43}