Skip to main content

openapi_service_fabric/models/
deployed_code_package_info.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/// DeployedCodePackageInfo : Information about code package deployed on a Service Fabric node.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeployedCodePackageInfo {
17    /// The name of the code package defined in the service manifest.
18    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    /// The version of the code package specified in service manifest.
21    #[serde(rename = "Version", skip_serializing_if = "Option::is_none")]
22    pub version: Option<String>,
23    /// The name of the service manifest.
24    #[serde(
25        rename = "ServiceManifestName",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub service_manifest_name: Option<String>,
29    /// The ActivationId of a deployed service package. If ServicePackageActivationMode specified at the time of creating the service is 'SharedProcess' (or if it is not specified, in which case it defaults to 'SharedProcess'), then value of ServicePackageActivationId is always an empty string.
30    #[serde(
31        rename = "ServicePackageActivationId",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub service_package_activation_id: Option<String>,
35    #[serde(rename = "HostType", skip_serializing_if = "Option::is_none")]
36    pub host_type: Option<models::HostType>,
37    #[serde(rename = "HostIsolationMode", skip_serializing_if = "Option::is_none")]
38    pub host_isolation_mode: Option<models::HostIsolationMode>,
39    #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
40    pub status: Option<models::DeploymentStatus>,
41    /// The interval at which code package is run. This is used for periodic code package.
42    #[serde(
43        rename = "RunFrequencyInterval",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub run_frequency_interval: Option<String>,
47    #[serde(rename = "SetupEntryPoint", skip_serializing_if = "Option::is_none")]
48    pub setup_entry_point: Option<Box<models::CodePackageEntryPoint>>,
49    #[serde(rename = "MainEntryPoint", skip_serializing_if = "Option::is_none")]
50    pub main_entry_point: Option<Box<models::CodePackageEntryPoint>>,
51}
52
53impl DeployedCodePackageInfo {
54    /// Information about code package deployed on a Service Fabric node.
55    pub fn new() -> DeployedCodePackageInfo {
56        DeployedCodePackageInfo {
57            name: None,
58            version: None,
59            service_manifest_name: None,
60            service_package_activation_id: None,
61            host_type: None,
62            host_isolation_mode: None,
63            status: None,
64            run_frequency_interval: None,
65            setup_entry_point: None,
66            main_entry_point: None,
67        }
68    }
69}