/*
* 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 EmpowerapiFalconScript {
#[serde(rename = "access_roles")]
pub access_roles: Vec<String>,
#[serde(rename = "categories")]
pub categories: Vec<String>,
#[serde(rename = "content", skip_serializing_if = "Option::is_none")]
pub content: Option<String>,
#[serde(rename = "created_by")]
pub created_by: String,
#[serde(rename = "created_timestamp")]
pub created_timestamp: String,
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "is_disruptive")]
pub is_disruptive: bool,
#[serde(rename = "modified_by")]
pub modified_by: String,
#[serde(rename = "modified_timestamp")]
pub modified_timestamp: String,
#[serde(rename = "modifies_system")]
pub modifies_system: bool,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "platform")]
pub platform: String,
#[serde(rename = "required_skus", skip_serializing_if = "Option::is_none")]
pub required_skus: Option<Vec<String>>,
#[serde(rename = "revision")]
pub revision: i32,
#[serde(rename = "sha256", skip_serializing_if = "Option::is_none")]
pub sha256: Option<String>,
#[serde(rename = "size", skip_serializing_if = "Option::is_none")]
pub size: Option<i32>,
#[serde(rename = "use_case")]
pub use_case: String,
#[serde(rename = "workflow_enabled")]
pub workflow_enabled: bool,
#[serde(rename = "workflow_input_schema")]
pub workflow_input_schema: String,
#[serde(rename = "workflow_output_schema")]
pub workflow_output_schema: String,
#[serde(rename = "workflow_tags")]
pub workflow_tags: Vec<String>,
}
impl EmpowerapiFalconScript {
pub fn new(
access_roles: Vec<String>,
categories: Vec<String>,
created_by: String,
created_timestamp: String,
description: String,
id: String,
is_disruptive: bool,
modified_by: String,
modified_timestamp: String,
modifies_system: bool,
name: String,
platform: String,
revision: i32,
use_case: String,
workflow_enabled: bool,
workflow_input_schema: String,
workflow_output_schema: String,
workflow_tags: Vec<String>,
) -> EmpowerapiFalconScript {
EmpowerapiFalconScript {
access_roles,
categories,
content: None,
created_by,
created_timestamp,
description,
id,
is_disruptive,
modified_by,
modified_timestamp,
modifies_system,
name,
platform,
required_skus: None,
revision,
sha256: None,
size: None,
use_case,
workflow_enabled,
workflow_input_schema,
workflow_output_schema,
workflow_tags,
}
}
}