/*
* 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 DomainApiCombinedNodesFindings {
#[serde(rename = "aid")]
pub aid: String,
#[serde(rename = "assessments")]
pub assessments: Vec<models::DomainAssetFinding>,
#[serde(rename = "cid")]
pub cid: String,
#[serde(rename = "cloud_account_id", skip_serializing_if = "Option::is_none")]
pub cloud_account_id: Option<String>,
#[serde(rename = "cloud_provider", skip_serializing_if = "Option::is_none")]
pub cloud_provider: Option<String>,
#[serde(rename = "cloud_region", skip_serializing_if = "Option::is_none")]
pub cloud_region: Option<String>,
#[serde(rename = "cluster_name", skip_serializing_if = "Option::is_none")]
pub cluster_name: Option<String>,
#[serde(rename = "cluster_type", skip_serializing_if = "Option::is_none")]
pub cluster_type: Option<String>,
#[serde(rename = "node_id", skip_serializing_if = "Option::is_none")]
pub node_id: Option<String>,
#[serde(rename = "node_ipv4", skip_serializing_if = "Option::is_none")]
pub node_ipv4: Option<String>,
#[serde(rename = "node_ipv6", skip_serializing_if = "Option::is_none")]
pub node_ipv6: Option<String>,
#[serde(rename = "node_name", skip_serializing_if = "Option::is_none")]
pub node_name: Option<String>,
#[serde(rename = "node_type", skip_serializing_if = "Option::is_none")]
pub node_type: Option<i32>,
}
impl DomainApiCombinedNodesFindings {
pub fn new(
aid: String,
assessments: Vec<models::DomainAssetFinding>,
cid: String,
) -> DomainApiCombinedNodesFindings {
DomainApiCombinedNodesFindings {
aid,
assessments,
cid,
cloud_account_id: None,
cloud_provider: None,
cloud_region: None,
cluster_name: None,
cluster_type: None,
node_id: None,
node_ipv4: None,
node_ipv6: None,
node_name: None,
node_type: None,
}
}
}