tembo_api_client/models/dedicated_networking.rs
1/*
2 * Tembo Cloud
3 *
4 * Platform API for Tembo Cloud </br> </br> To find a Tembo Data API, please find it here: </br> </br> [AWS US East 1](https://api.data-1.use1.tembo.io/swagger-ui/)
5 *
6 * The version of the OpenAPI document: v1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13/// DedicatedNetworking : Configuration for dedicated networking.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DedicatedNetworking {
16 /// Enables or disables dedicated networking. Default is false.
17 #[serde(
18 rename = "enabled",
19 default,
20 with = "::serde_with::rust::double_option",
21 skip_serializing_if = "Option::is_none"
22 )]
23 pub enabled: Option<Option<bool>>,
24 /// If true, includes the standby instance in the dedicated networking setup. Default is false.
25 #[serde(
26 rename = "includeStandby",
27 default,
28 with = "::serde_with::rust::double_option",
29 skip_serializing_if = "Option::is_none"
30 )]
31 pub include_standby: Option<Option<bool>>,
32}
33
34impl DedicatedNetworking {
35 /// Configuration for dedicated networking.
36 pub fn new() -> DedicatedNetworking {
37 DedicatedNetworking {
38 enabled: None,
39 include_standby: None,
40 }
41 }
42}