Skip to main content

openapi_service_fabric/models/
code_package_entry_point.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/// CodePackageEntryPoint : Information about setup or main entry point of a code package deployed on a Service Fabric node.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CodePackageEntryPoint {
17    /// The location of entry point executable on the node.
18    #[serde(rename = "EntryPointLocation", skip_serializing_if = "Option::is_none")]
19    pub entry_point_location: Option<String>,
20    /// The process ID of the entry point.
21    #[serde(rename = "ProcessId", skip_serializing_if = "Option::is_none")]
22    pub process_id: Option<String>,
23    /// The user name under which entry point executable is run on the node.
24    #[serde(rename = "RunAsUserName", skip_serializing_if = "Option::is_none")]
25    pub run_as_user_name: Option<String>,
26    #[serde(
27        rename = "CodePackageEntryPointStatistics",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub code_package_entry_point_statistics: Option<Box<models::CodePackageEntryPointStatistics>>,
31    #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
32    pub status: Option<models::EntryPointStatus>,
33    /// The time (in UTC) when the entry point executable will be run next.
34    #[serde(rename = "NextActivationTime", skip_serializing_if = "Option::is_none")]
35    pub next_activation_time: Option<String>,
36    /// The instance ID for current running entry point. For a code package setup entry point (if specified) runs first and after it finishes main entry point is started. Each time entry point executable is run, its instance id will change.
37    #[serde(rename = "InstanceId", skip_serializing_if = "Option::is_none")]
38    pub instance_id: Option<String>,
39}
40
41impl CodePackageEntryPoint {
42    /// Information about setup or main entry point of a code package deployed on a Service Fabric node.
43    pub fn new() -> CodePackageEntryPoint {
44        CodePackageEntryPoint {
45            entry_point_location: None,
46            process_id: None,
47            run_as_user_name: None,
48            code_package_entry_point_statistics: None,
49            status: None,
50            next_activation_time: None,
51            instance_id: None,
52        }
53    }
54}