fastly_api/models/
logging_gcs_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 LoggingGcsAdditional {
13    /// The name of the GCS bucket.
14    #[serde(rename = "bucket_name", skip_serializing_if = "Option::is_none")]
15    pub bucket_name: Option<String>,
16    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
17    pub path: Option<Box<String>>,
18    /// A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
19    #[serde(rename = "public_key", skip_serializing_if = "Option::is_none")]
20    pub public_key: Option<String>,
21    /// Your Google Cloud Platform project ID. Required
22    #[serde(rename = "project_id", skip_serializing_if = "Option::is_none")]
23    pub project_id: Option<String>,
24}
25
26impl LoggingGcsAdditional {
27    pub fn new() -> LoggingGcsAdditional {
28        LoggingGcsAdditional {
29            bucket_name: None,
30            path: None,
31            public_key: None,
32            project_id: None,
33        }
34    }
35}
36
37