openapi_service_fabric/models/http_config.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/// HttpConfig : Describes the http configuration for external connectivity for this network.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct HttpConfig {
17 /// http gateway config name.
18 #[serde(rename = "name")]
19 pub name: String,
20 /// Specifies the port at which the service endpoint below needs to be exposed.
21 #[serde(rename = "port")]
22 pub port: i32,
23 /// description for routing.
24 #[serde(rename = "hosts")]
25 pub hosts: Vec<models::HttpHostConfig>,
26}
27
28impl HttpConfig {
29 /// Describes the http configuration for external connectivity for this network.
30 pub fn new(name: String, port: i32, hosts: Vec<models::HttpHostConfig>) -> HttpConfig {
31 HttpConfig { name, port, hosts }
32 }
33}