openapi_service_fabric/models/application_parameter.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/// ApplicationParameter : Describes an application parameter override to be applied when creating or upgrading an application.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ApplicationParameter {
17 /// The name of the parameter.
18 #[serde(rename = "Key")]
19 pub key: String,
20 /// The value of the parameter.
21 #[serde(rename = "Value")]
22 pub value: String,
23}
24
25impl ApplicationParameter {
26 /// Describes an application parameter override to be applied when creating or upgrading an application.
27 pub fn new(key: String, value: String) -> ApplicationParameter {
28 ApplicationParameter { key, value }
29 }
30}