fastly_api/models/
logging_digitalocean_additional.rs

1/*
2 * Fastly API
3 *
4 * Via the Fastly API you can perform any of the operations that are possible within the management console,  including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/) 
5 *
6 */
7
8
9
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct LoggingDigitaloceanAdditional {
13    /// The name of the DigitalOcean Space.
14    #[serde(rename = "bucket_name", skip_serializing_if = "Option::is_none")]
15    pub bucket_name: Option<String>,
16    /// Your DigitalOcean Spaces account access key.
17    #[serde(rename = "access_key", skip_serializing_if = "Option::is_none")]
18    pub access_key: Option<String>,
19    /// Your DigitalOcean Spaces account secret key.
20    #[serde(rename = "secret_key", skip_serializing_if = "Option::is_none")]
21    pub secret_key: Option<String>,
22    /// The domain of the DigitalOcean Spaces endpoint.
23    #[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
24    pub domain: Option<String>,
25    /// The path to upload logs to.
26    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
27    pub path: Option<String>,
28    /// A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
29    #[serde(rename = "public_key", skip_serializing_if = "Option::is_none")]
30    pub public_key: Option<String>,
31}
32
33impl LoggingDigitaloceanAdditional {
34    pub fn new() -> LoggingDigitaloceanAdditional {
35        LoggingDigitaloceanAdditional {
36            bucket_name: None,
37            access_key: None,
38            secret_key: None,
39            domain: None,
40            path: None,
41            public_key: None,
42        }
43    }
44}
45
46