rusty_falcon 0.7.1

Rust bindings for CrowdStrike Falcon API
Documentation
/*
 * CrowdStrike API Specification
 *
 * Use this API specification as a reference for the API endpoints you can use to interact with your Falcon environment. These endpoints support authentication via OAuth2 and interact with detections and network containment. For detailed usage guides and examples, see our [documentation inside the Falcon console](https://falcon.crowdstrike.com/support/documentation).     To use the APIs described below, combine the base URL with the path shown for each API endpoint. For commercial cloud customers, your base URL is `https://api.crowdstrike.com`.    Each API endpoint requires authorization via an OAuth2 token. Your first API request should retrieve an OAuth2 token using the `oauth2/token` endpoint, such as `https://api.crowdstrike.com/oauth2/token`. For subsequent requests, include the OAuth2 token in an HTTP authorization header. Tokens expire after 30 minutes, after which you should make a new token request to continue making API requests.
 *
 * The version of the OpenAPI document: rolling
 *
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeviceControlExceptionRespV1 {
    #[serde(rename = "action", skip_serializing_if = "Option::is_none")]
    pub action: Option<String>,
    /// USB Class ID to apply the exception. If empty it applies to all classes
    #[serde(rename = "class")]
    pub class: String,
    #[serde(rename = "combined_id", skip_serializing_if = "Option::is_none")]
    pub combined_id: Option<String>,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "expiration_time", skip_serializing_if = "Option::is_none")]
    pub expiration_time: Option<String>,
    /// Unique identifier for an exception
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "match_method", skip_serializing_if = "Option::is_none")]
    pub match_method: Option<String>,
    #[serde(rename = "product_id", skip_serializing_if = "Option::is_none")]
    pub product_id: Option<String>,
    #[serde(rename = "product_id_decimal", skip_serializing_if = "Option::is_none")]
    pub product_id_decimal: Option<String>,
    #[serde(rename = "product_name", skip_serializing_if = "Option::is_none")]
    pub product_name: Option<String>,
    #[serde(rename = "serial_number", skip_serializing_if = "Option::is_none")]
    pub serial_number: Option<String>,
    /// Hexadecimal VendorID used to apply the exception
    #[serde(rename = "vendor_id", skip_serializing_if = "Option::is_none")]
    pub vendor_id: Option<String>,
    /// Hexadecimal VendorID used to apply the exception
    #[serde(rename = "vendor_id_decimal", skip_serializing_if = "Option::is_none")]
    pub vendor_id_decimal: Option<String>,
    /// Vendor Name
    #[serde(rename = "vendor_name", skip_serializing_if = "Option::is_none")]
    pub vendor_name: Option<String>,
}

impl DeviceControlExceptionRespV1 {
    pub fn new(class: String, id: String) -> DeviceControlExceptionRespV1 {
        DeviceControlExceptionRespV1 {
            action: None,
            class,
            combined_id: None,
            description: None,
            expiration_time: None,
            id,
            match_method: None,
            product_id: None,
            product_id_decimal: None,
            product_name: None,
            serial_number: None,
            vendor_id: None,
            vendor_id_decimal: None,
            vendor_name: None,
        }
    }
}