/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.2.1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// TelemetrySettings : Telemetry configuration.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TelemetrySettings {
    #[serde(rename = "enabled")]
    pub enabled: bool,
    #[serde(rename = "include_logs")]
    pub include_logs: bool,
    #[serde(rename = "review_before_send")]
    pub review_before_send: bool,
    #[serde(rename = "scrub_level")]
    pub scrub_level: String,
}

impl TelemetrySettings {
    /// Telemetry configuration.
    pub fn new(enabled: bool, include_logs: bool, review_before_send: bool, scrub_level: String) -> TelemetrySettings {
        TelemetrySettings {
            enabled,
            include_logs,
            review_before_send,
            scrub_level,
        }
    }
}

