Skip to main content

openapi_service_fabric/models/
application_resource_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/// ApplicationResourceDescription : This type describes a application resource.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ApplicationResourceDescription {
17    /// Name of the Application resource.
18    #[serde(rename = "name")]
19    pub name: String,
20    #[serde(rename = "properties")]
21    pub properties: Box<models::ApplicationProperties>,
22    #[serde(rename = "identity", skip_serializing_if = "Option::is_none")]
23    pub identity: Option<Box<models::IdentityDescription>>,
24}
25
26impl ApplicationResourceDescription {
27    /// This type describes a application resource.
28    pub fn new(
29        name: String,
30        properties: models::ApplicationProperties,
31    ) -> ApplicationResourceDescription {
32        ApplicationResourceDescription {
33            name,
34            properties: Box::new(properties),
35            identity: None,
36        }
37    }
38}