fastly_api/models/logging_sftp_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 LoggingSftpAdditional {
13 /// The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.
14 #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
15 pub password: Option<String>,
16 /// The path to upload logs to.
17 #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
18 pub path: Option<String>,
19 /// A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
20 #[serde(rename = "public_key", skip_serializing_if = "Option::is_none")]
21 pub public_key: Option<String>,
22 /// The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.
23 #[serde(rename = "secret_key", skip_serializing_if = "Option::is_none")]
24 pub secret_key: Option<String>,
25 /// A list of host keys for all hosts we can connect to over SFTP.
26 #[serde(rename = "ssh_known_hosts", skip_serializing_if = "Option::is_none")]
27 pub ssh_known_hosts: Option<String>,
28 /// The username for the server.
29 #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
30 pub user: Option<String>,
31}
32
33impl LoggingSftpAdditional {
34 pub fn new() -> LoggingSftpAdditional {
35 LoggingSftpAdditional {
36 password: None,
37 path: None,
38 public_key: None,
39 secret_key: None,
40 ssh_known_hosts: None,
41 user: None,
42 }
43 }
44}
45
46