1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * Exoscale Public API
 *
 *  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://openapi-v2.exoscale.com/source.json) * [YAML format](https://openapi-v2.exoscale.com/source.yaml)
 *
 * The version of the OpenAPI document: 2.0.0
 * Contact: api@exoscale.com
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct DbaasServicePgConnectionPoolsInner {
    /// Connection URI for the DB pool
    #[serde(rename = "connection-uri")]
    pub connection_uri: String,
    #[serde(rename = "database")]
    pub database: String,
    #[serde(rename = "mode")]
    pub mode: crate::models::EnumPgPoolMode,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "size")]
    pub size: i64,
    #[serde(rename = "username")]
    pub username: String,
}

impl DbaasServicePgConnectionPoolsInner {
    pub fn new(connection_uri: String, database: String, mode: crate::models::EnumPgPoolMode, name: String, size: i64, username: String) -> DbaasServicePgConnectionPoolsInner {
        DbaasServicePgConnectionPoolsInner {
            connection_uri,
            database,
            mode,
            name,
            size,
            username,
        }
    }
}