/*
* 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
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DevicecontentState {
#[serde(rename = "cid")]
pub cid: String,
#[serde(
rename = "content_update_policy_applied_date",
skip_serializing_if = "Option::is_none"
)]
pub content_update_policy_applied_date: Option<String>,
#[serde(
rename = "content_update_policy_id",
skip_serializing_if = "Option::is_none"
)]
pub content_update_policy_id: Option<String>,
#[serde(rename = "device_id")]
pub device_id: String,
#[serde(rename = "groups", skip_serializing_if = "Option::is_none")]
pub groups: Option<Vec<String>>,
#[serde(rename = "hidden_status", skip_serializing_if = "Option::is_none")]
pub hidden_status: Option<String>,
#[serde(rename = "hostname", skip_serializing_if = "Option::is_none")]
pub hostname: Option<String>,
#[serde(rename = "last_seen", skip_serializing_if = "Option::is_none")]
pub last_seen: Option<String>,
#[serde(rename = "platform_name", skip_serializing_if = "Option::is_none")]
pub platform_name: Option<String>,
#[serde(
rename = "rapid_response_content",
skip_serializing_if = "Option::is_none"
)]
pub rapid_response_content: Option<Box<models::DevicecontentContentCategory>>,
#[serde(
rename = "reduced_functionality_mode",
skip_serializing_if = "Option::is_none"
)]
pub reduced_functionality_mode: Option<String>,
#[serde(rename = "sensor_operations", skip_serializing_if = "Option::is_none")]
pub sensor_operations: Option<Box<models::DevicecontentContentCategory>>,
#[serde(rename = "system_critical", skip_serializing_if = "Option::is_none")]
pub system_critical: Option<Box<models::DevicecontentContentCategory>>,
#[serde(
rename = "vulnerability_management",
skip_serializing_if = "Option::is_none"
)]
pub vulnerability_management: Option<Box<models::DevicecontentContentCategory>>,
}
impl DevicecontentState {
pub fn new(cid: String, device_id: String) -> DevicecontentState {
DevicecontentState {
cid,
content_update_policy_applied_date: None,
content_update_policy_id: None,
device_id,
groups: None,
hidden_status: None,
hostname: None,
last_seen: None,
platform_name: None,
rapid_response_content: None,
reduced_functionality_mode: None,
sensor_operations: None,
system_critical: None,
vulnerability_management: None,
}
}
}