use serde::{Deserialize, Serialize}; /*
                                      * Service Control API
                                      *
                                      * Provides admission control and telemetry reporting for services integrated with Service Infrastructure.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::servicecontrol_v1::models;

/// PolicyViolationInfo : Information related to policy violations for this request.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PolicyViolationInfo {
    #[serde(
        rename = "orgPolicyViolationInfo",
        skip_serializing_if = "Option::is_none"
    )]
    pub org_policy_violation_info: Option<Box<models::OrgPolicyViolationInfo>>,
}

impl PolicyViolationInfo {
    /// Information related to policy violations for this request.
    pub fn new() -> PolicyViolationInfo {
        PolicyViolationInfo {
            org_policy_violation_info: None,
        }
    }
}
