/*
* 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 ModelsApiRuntimeDetection {
#[serde(rename = "action_taken")]
pub action_taken: String,
#[serde(rename = "agent_type")]
pub agent_type: String,
#[serde(rename = "aid")]
pub aid: String,
#[serde(rename = "assigned_to")]
pub assigned_to: String,
#[serde(rename = "cid")]
pub cid: String,
#[serde(rename = "cloud")]
pub cloud: String,
#[serde(rename = "cloud_account_id")]
pub cloud_account_id: String,
#[serde(rename = "cloud_id")]
pub cloud_id: String,
#[serde(rename = "cloud_instance_id")]
pub cloud_instance_id: String,
#[serde(rename = "cloud_name")]
pub cloud_name: String,
#[serde(rename = "cluster_name")]
pub cluster_name: String,
#[serde(rename = "command_line")]
pub command_line: String,
#[serde(rename = "computer_name")]
pub computer_name: String,
#[serde(rename = "container_devices")]
pub container_devices: Vec<String>,
#[serde(rename = "container_id")]
pub container_id: String,
#[serde(rename = "container_interactive_mode")]
pub container_interactive_mode: String,
#[serde(rename = "container_name")]
pub container_name: String,
#[serde(rename = "container_network_ip_address")]
pub container_network_ip_address: String,
#[serde(rename = "container_privileged")]
pub container_privileged: String,
#[serde(rename = "container_read_only_root_fs")]
pub container_read_only_root_fs: String,
#[serde(rename = "container_user_info")]
pub container_user_info: String,
#[serde(rename = "containers_impacted_count")]
pub containers_impacted_count: String,
#[serde(rename = "detect_timestamp")]
pub detect_timestamp: String,
#[serde(rename = "detection_description")]
pub detection_description: String,
#[serde(rename = "detection_id")]
pub detection_id: String,
#[serde(rename = "detection_name")]
pub detection_name: Vec<String>,
#[serde(rename = "executable_sha_256")]
pub executable_sha_256: String,
#[serde(rename = "file_name")]
pub file_name: String,
#[serde(rename = "file_path")]
pub file_path: String,
#[serde(rename = "host_containers_count")]
pub host_containers_count: String,
#[serde(rename = "host_detections_count")]
pub host_detections_count: String,
#[serde(rename = "host_detections_ids")]
pub host_detections_ids: Vec<String>,
#[serde(rename = "host_id")]
pub host_id: String,
#[serde(rename = "host_last_seen_timestamp")]
pub host_last_seen_timestamp: String,
#[serde(rename = "host_type")]
pub host_type: String,
#[serde(rename = "image_digest")]
pub image_digest: String,
#[serde(rename = "image_first_seen_timestamp")]
pub image_first_seen_timestamp: String,
#[serde(rename = "image_id")]
pub image_id: String,
#[serde(rename = "image_label")]
pub image_label: String,
#[serde(rename = "image_last_seen_timestamp")]
pub image_last_seen_timestamp: String,
#[serde(rename = "image_maintainer")]
pub image_maintainer: String,
#[serde(rename = "image_name")]
pub image_name: String,
#[serde(rename = "images_container_count")]
pub images_container_count: String,
#[serde(rename = "namespace")]
pub namespace: String,
#[serde(rename = "network_ip_address")]
pub network_ip_address: String,
#[serde(rename = "os_version")]
pub os_version: String,
#[serde(rename = "pod_id")]
pub pod_id: String,
#[serde(rename = "pod_name")]
pub pod_name: String,
#[serde(rename = "pod_namespace")]
pub pod_namespace: String,
#[serde(rename = "sensor_version")]
pub sensor_version: String,
#[serde(rename = "severity")]
pub severity: String,
#[serde(rename = "tactic_and_technique")]
pub tactic_and_technique: String,
#[serde(rename = "type")]
pub r#type: String,
#[serde(rename = "vulnerabilities_count")]
pub vulnerabilities_count: String,
}
impl ModelsApiRuntimeDetection {
pub fn new(
action_taken: String,
agent_type: String,
aid: String,
assigned_to: String,
cid: String,
cloud: String,
cloud_account_id: String,
cloud_id: String,
cloud_instance_id: String,
cloud_name: String,
cluster_name: String,
command_line: String,
computer_name: String,
container_devices: Vec<String>,
container_id: String,
container_interactive_mode: String,
container_name: String,
container_network_ip_address: String,
container_privileged: String,
container_read_only_root_fs: String,
container_user_info: String,
containers_impacted_count: String,
detect_timestamp: String,
detection_description: String,
detection_id: String,
detection_name: Vec<String>,
executable_sha_256: String,
file_name: String,
file_path: String,
host_containers_count: String,
host_detections_count: String,
host_detections_ids: Vec<String>,
host_id: String,
host_last_seen_timestamp: String,
host_type: String,
image_digest: String,
image_first_seen_timestamp: String,
image_id: String,
image_label: String,
image_last_seen_timestamp: String,
image_maintainer: String,
image_name: String,
images_container_count: String,
namespace: String,
network_ip_address: String,
os_version: String,
pod_id: String,
pod_name: String,
pod_namespace: String,
sensor_version: String,
severity: String,
tactic_and_technique: String,
r#type: String,
vulnerabilities_count: String,
) -> ModelsApiRuntimeDetection {
ModelsApiRuntimeDetection {
action_taken,
agent_type,
aid,
assigned_to,
cid,
cloud,
cloud_account_id,
cloud_id,
cloud_instance_id,
cloud_name,
cluster_name,
command_line,
computer_name,
container_devices,
container_id,
container_interactive_mode,
container_name,
container_network_ip_address,
container_privileged,
container_read_only_root_fs,
container_user_info,
containers_impacted_count,
detect_timestamp,
detection_description,
detection_id,
detection_name,
executable_sha_256,
file_name,
file_path,
host_containers_count,
host_detections_count,
host_detections_ids,
host_id,
host_last_seen_timestamp,
host_type,
image_digest,
image_first_seen_timestamp,
image_id,
image_label,
image_last_seen_timestamp,
image_maintainer,
image_name,
images_container_count,
namespace,
network_ip_address,
os_version,
pod_id,
pod_name,
pod_namespace,
sensor_version,
severity,
tactic_and_technique,
r#type,
vulnerabilities_count,
}
}
}