exoscale/models/add_external_source_to_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 AddExternalSourceToSecurityGroupRequest {
13 /// CIDR-formatted network to add
14 #[serde(rename = "cidr")]
15 pub cidr: String,
16}
17
18impl AddExternalSourceToSecurityGroupRequest {
19 pub fn new(cidr: String) -> AddExternalSourceToSecurityGroupRequest {
20 AddExternalSourceToSecurityGroupRequest { cidr }
21 }
22}