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 crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DedicatedNetworking : Configuration for dedicated networking.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DedicatedNetworking {
17 /// Enables or disables dedicated networking. Default is false.
18 #[serde(
19 rename = "enabled",
20 default,
21 with = "::serde_with::rust::double_option",
22 skip_serializing_if = "Option::is_none"
23 )]
24 pub enabled: Option<Option<bool>>,
25 /// If true, includes the standby instance in the dedicated networking setup. Default is false.
26 #[serde(
27 rename = "includeStandby",
28 default,
29 with = "::serde_with::rust::double_option",
30 skip_serializing_if = "Option::is_none"
31 )]
32 pub include_standby: Option<Option<bool>>,
33}
34
35impl DedicatedNetworking {
36 /// Configuration for dedicated networking.
37 pub fn new() -> DedicatedNetworking {
38 DedicatedNetworking {
39 enabled: None,
40 include_standby: None,
41 }
42 }
43}