/*
* 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 ResourcesCloudContext {
#[serde(rename = "account_name", skip_serializing_if = "Option::is_none")]
pub account_name: Option<String>,
#[serde(
rename = "allows_public_access",
skip_serializing_if = "Option::is_none"
)]
pub allows_public_access: Option<bool>,
#[serde(rename = "asset_graph", skip_serializing_if = "Option::is_none")]
pub asset_graph: Option<Box<models::ResourcesAssetGraph>>,
#[serde(rename = "cspm_license", skip_serializing_if = "Option::is_none")]
pub cspm_license: Option<String>,
#[serde(
rename = "data_classifications",
skip_serializing_if = "Option::is_none"
)]
pub data_classifications: Option<Box<models::DataclassificationsResponse>>,
#[serde(rename = "detections", skip_serializing_if = "Option::is_none")]
pub detections: Option<Box<models::ResourcesDetections>>,
#[serde(rename = "has_falcon_sensor", skip_serializing_if = "Option::is_none")]
pub has_falcon_sensor: Option<bool>,
#[serde(rename = "has_tags", skip_serializing_if = "Option::is_none")]
pub has_tags: Option<bool>,
#[serde(rename = "host", skip_serializing_if = "Option::is_none")]
pub host: Option<Box<models::ResourcesHost>>,
#[serde(rename = "insights", skip_serializing_if = "Option::is_none")]
pub insights: Option<Box<models::InsightsInsight>>,
#[serde(rename = "instance_id", skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "instance_state", skip_serializing_if = "Option::is_none")]
pub instance_state: Option<String>,
#[serde(rename = "legacy_resource_id", skip_serializing_if = "Option::is_none")]
pub legacy_resource_id: Option<String>,
#[serde(rename = "legacy_type_id", skip_serializing_if = "Option::is_none")]
pub legacy_type_id: Option<i32>,
#[serde(rename = "legacy_uuid", skip_serializing_if = "Option::is_none")]
pub legacy_uuid: Option<String>,
#[serde(rename = "managed_by", skip_serializing_if = "Option::is_none")]
pub managed_by: Option<String>,
#[serde(rename = "open_risks", skip_serializing_if = "Option::is_none")]
pub open_risks: Option<i32>,
#[serde(rename = "publicly_exposed", skip_serializing_if = "Option::is_none")]
pub publicly_exposed: Option<bool>,
#[serde(rename = "scan_type", skip_serializing_if = "Option::is_none")]
pub scan_type: Option<String>,
}
impl ResourcesCloudContext {
pub fn new() -> ResourcesCloudContext {
ResourcesCloudContext {
account_name: None,
allows_public_access: None,
asset_graph: None,
cspm_license: None,
data_classifications: None,
detections: None,
has_falcon_sensor: None,
has_tags: None,
host: None,
insights: None,
instance_id: None,
instance_state: None,
legacy_resource_id: None,
legacy_type_id: None,
legacy_uuid: None,
managed_by: None,
open_risks: None,
publicly_exposed: None,
scan_type: None,
}
}
}