Skip to main content

openapi_azure_storage_blob/models/
logging.rs

1/*
2 * Azure Storage Blob service
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 2026-02-06
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Logging : Azure Analytics Logging settings.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Logging {
17    /// The version of the logging properties.
18    #[serde(rename = "Version")]
19    pub version: String,
20    /// Whether delete operation is logged.
21    #[serde(rename = "Delete")]
22    pub delete: bool,
23    /// Whether read operation is logged.
24    #[serde(rename = "Read")]
25    pub read: bool,
26    /// Whether write operation is logged.
27    #[serde(rename = "Write")]
28    pub write: bool,
29    #[serde(rename = "RetentionPolicy")]
30    pub retention_policy: Box<models::RetentionPolicy>,
31}
32
33impl Logging {
34    /// Azure Analytics Logging settings.
35    pub fn new(
36        version: String,
37        delete: bool,
38        read: bool,
39        write: bool,
40        retention_policy: models::RetentionPolicy,
41    ) -> Logging {
42        Logging {
43            version,
44            delete,
45            read,
46            write,
47            retention_policy: Box::new(retention_policy),
48        }
49    }
50}