fastly_api/models/logging_google_pubsub_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 LoggingGooglePubsubAdditional {
13 /// The Google Cloud Pub/Sub topic to which logs will be published. Required.
14 #[serde(rename = "topic", skip_serializing_if = "Option::is_none")]
15 pub topic: Option<String>,
16 /// A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
17 #[serde(rename = "format", skip_serializing_if = "Option::is_none")]
18 pub format: Option<String>,
19 /// Your Google Cloud Platform project ID. Required
20 #[serde(rename = "project_id", skip_serializing_if = "Option::is_none")]
21 pub project_id: Option<String>,
22}
23
24impl LoggingGooglePubsubAdditional {
25 pub fn new() -> LoggingGooglePubsubAdditional {
26 LoggingGooglePubsubAdditional {
27 topic: None,
28 format: None,
29 project_id: None,
30 }
31 }
32}
33
34