Skip to main content

openapi_service_fabric/models/
create_compose_deployment_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/// CreateComposeDeploymentDescription : Defines description for creating a Service Fabric compose deployment.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateComposeDeploymentDescription {
17    /// The name of the deployment.
18    #[serde(rename = "DeploymentName")]
19    pub deployment_name: String,
20    /// The content of the compose file that describes the deployment to create.
21    #[serde(rename = "ComposeFileContent")]
22    pub compose_file_content: String,
23    #[serde(rename = "RegistryCredential", skip_serializing_if = "Option::is_none")]
24    pub registry_credential: Option<Box<models::RegistryCredential>>,
25}
26
27impl CreateComposeDeploymentDescription {
28    /// Defines description for creating a Service Fabric compose deployment.
29    pub fn new(
30        deployment_name: String,
31        compose_file_content: String,
32    ) -> CreateComposeDeploymentDescription {
33        CreateComposeDeploymentDescription {
34            deployment_name,
35            compose_file_content,
36            registry_credential: None,
37        }
38    }
39}