fastly_api/models/logging_azureblob_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 LoggingAzureblobAdditional {
13 /// The path to upload logs to.
14 #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
15 pub path: Option<String>,
16 /// The unique Azure Blob Storage namespace in which your data objects are stored. Required.
17 #[serde(rename = "account_name", skip_serializing_if = "Option::is_none")]
18 pub account_name: Option<String>,
19 /// The name of the Azure Blob Storage container in which to store logs. Required.
20 #[serde(rename = "container", skip_serializing_if = "Option::is_none")]
21 pub container: Option<String>,
22 /// The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
23 #[serde(rename = "sas_token", skip_serializing_if = "Option::is_none")]
24 pub sas_token: Option<String>,
25 /// A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
26 #[serde(rename = "public_key", skip_serializing_if = "Option::is_none")]
27 pub public_key: Option<String>,
28 /// The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=microsoft-entra-id#remarks).
29 #[serde(rename = "file_max_bytes", skip_serializing_if = "Option::is_none")]
30 pub file_max_bytes: Option<i32>,
31}
32
33impl LoggingAzureblobAdditional {
34 pub fn new() -> LoggingAzureblobAdditional {
35 LoggingAzureblobAdditional {
36 path: None,
37 account_name: None,
38 container: None,
39 sas_token: None,
40 public_key: None,
41 file_max_bytes: None,
42 }
43 }
44}
45
46