Skip to main content

openapi_service_fabric/models/
instance_lifecycle_description.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/// InstanceLifecycleDescription : Describes how the instance will behave
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct InstanceLifecycleDescription {
17    /// If set to true, move/swap replica to original location after upgrade.
18    #[serde(
19        rename = "RestoreReplicaLocationAfterUpgrade",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub restore_replica_location_after_upgrade: Option<bool>,
23}
24
25impl InstanceLifecycleDescription {
26    /// Describes how the instance will behave
27    pub fn new() -> InstanceLifecycleDescription {
28        InstanceLifecycleDescription {
29            restore_replica_location_after_upgrade: None,
30        }
31    }
32}