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 ModelsApiDriftIndicators {
    #[serde(rename = "agent_id")]
    pub agent_id: String,
    #[serde(rename = "aid")]
    pub aid: String,
    #[serde(rename = "cid")]
    pub cid: String,
    #[serde(rename = "cloud_name")]
    pub cloud_name: String,
    #[serde(rename = "command_line")]
    pub command_line: String,
    #[serde(rename = "computer_name")]
    pub computer_name: String,
    #[serde(rename = "container_id")]
    pub container_id: String,
    #[serde(rename = "detection_description")]
    pub detection_description: String,
    #[serde(rename = "detection_id")]
    pub detection_id: String,
    #[serde(rename = "detection_name")]
    pub detection_name: String,
    #[serde(rename = "file_name")]
    pub file_name: String,
    #[serde(rename = "host_id")]
    pub host_id: String,
    #[serde(rename = "indicator_process_id")]
    pub indicator_process_id: String,
    #[serde(rename = "namespace")]
    pub namespace: String,
    #[serde(rename = "occurred_at")]
    pub occurred_at: String,
    #[serde(rename = "parent_process_id")]
    pub parent_process_id: String,
    #[serde(rename = "pod_id")]
    pub pod_id: String,
    #[serde(rename = "pod_name")]
    pub pod_name: String,
    #[serde(rename = "prevented")]
    pub prevented: bool,
    #[serde(rename = "prevention_status")]
    pub prevention_status: Vec<String>,
    #[serde(rename = "prevention_status_string")]
    pub prevention_status_string: String,
    #[serde(rename = "scheduler_name")]
    pub scheduler_name: String,
    #[serde(rename = "severity")]
    pub severity: String,
    #[serde(rename = "sha256")]
    pub sha256: String,
    #[serde(rename = "timestamp")]
    pub timestamp: String,
}

impl ModelsApiDriftIndicators {
    pub fn new(
        agent_id: String,
        aid: String,
        cid: String,
        cloud_name: String,
        command_line: String,
        computer_name: String,
        container_id: String,
        detection_description: String,
        detection_id: String,
        detection_name: String,
        file_name: String,
        host_id: String,
        indicator_process_id: String,
        namespace: String,
        occurred_at: String,
        parent_process_id: String,
        pod_id: String,
        pod_name: String,
        prevented: bool,
        prevention_status: Vec<String>,
        prevention_status_string: String,
        scheduler_name: String,
        severity: String,
        sha256: String,
        timestamp: String,
    ) -> ModelsApiDriftIndicators {
        ModelsApiDriftIndicators {
            agent_id,
            aid,
            cid,
            cloud_name,
            command_line,
            computer_name,
            container_id,
            detection_description,
            detection_id,
            detection_name,
            file_name,
            host_id,
            indicator_process_id,
            namespace,
            occurred_at,
            parent_process_id,
            pod_id,
            pod_name,
            prevented,
            prevention_status,
            prevention_status_string,
            scheduler_name,
            severity,
            sha256,
            timestamp,
        }
    }
}