exoscale/models/
create_security_group_request.rs

1/*
2 * Exoscale Public API
3 *
4 *  Infrastructure automation API, allowing programmatic access to all Exoscale products and services.  The [OpenAPI Specification](http://spec.openapis.org/oas/v3.0.3.html) source of this documentation can be obtained here:  * [JSON format](https://bump.sh/doc/exoscale-api.json) * [YAML format](https://bump.sh/doc/exoscale-api.yaml)
5 *
6 * The version of the OpenAPI document: 2.0.0
7 * Contact: api@exoscale.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct CreateSecurityGroupRequest {
13    /// Security Group name
14    #[serde(rename = "name")]
15    pub name: String,
16    /// Security Group description
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<String>,
19}
20
21impl CreateSecurityGroupRequest {
22    pub fn new(name: String) -> CreateSecurityGroupRequest {
23        CreateSecurityGroupRequest {
24            name,
25            description: None,
26        }
27    }
28}