/*
* 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 DevicecontrolapiRespUsbExceptionV2 {
#[serde(rename = "action")]
pub action: String,
/// USB Device Class
#[serde(rename = "class")]
pub class: String,
#[serde(rename = "combined_id", skip_serializing_if = "Option::is_none")]
pub combined_id: Option<String>,
#[serde(rename = "created_timestamp", skip_serializing_if = "Option::is_none")]
pub created_timestamp: 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>,
/// ID of the exception
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "match_method")]
pub match_method: String,
#[serde(rename = "modified_timestamp", skip_serializing_if = "Option::is_none")]
pub modified_timestamp: Option<String>,
#[serde(rename = "product_id", skip_serializing_if = "Option::is_none")]
pub product_id: Option<String>,
/// Product name
#[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>,
#[serde(rename = "trigger_id", skip_serializing_if = "Option::is_none")]
pub trigger_id: Option<String>,
#[serde(rename = "use_wildcard", skip_serializing_if = "Option::is_none")]
pub use_wildcard: Option<bool>,
/// Decimal value of the vendor ID
#[serde(rename = "vendor_id")]
pub vendor_id: String,
/// Name of the vendor
#[serde(rename = "vendor_name")]
pub vendor_name: String,
}
impl DevicecontrolapiRespUsbExceptionV2 {
pub fn new(
action: String,
class: String,
id: String,
match_method: String,
vendor_id: String,
vendor_name: String,
) -> DevicecontrolapiRespUsbExceptionV2 {
DevicecontrolapiRespUsbExceptionV2 {
action,
class,
combined_id: None,
created_timestamp: None,
description: None,
expiration_time: None,
id,
match_method,
modified_timestamp: None,
product_id: None,
product_name: None,
serial_number: None,
trigger_id: None,
use_wildcard: None,
vendor_id,
vendor_name,
}
}
}