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
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GraphMulti {
    /// Name of the field that contains the array in input data
    #[serde(rename = "array_field")]
    pub array_field: String,
    /// Display name of the field that contains the array in input data
    #[serde(rename = "array_field_display_name")]
    pub array_field_display_name: String,
    #[serde(rename = "condition", skip_serializing_if = "Option::is_none")]
    pub condition: Option<Box<models::GraphCondition>>,
    /// If true will allow the workflow to continue execution even if some loop iterations fail or when there are no iterations to execute
    #[serde(rename = "continue_on_partial_execution")]
    pub continue_on_partial_execution: bool,
    /// Maximum number of seconds the submodel will run for, if this is exceeded no new iterations will run. If unset a default value is used during execution
    #[serde(rename = "max_execution_seconds")]
    pub max_execution_seconds: i32,
    /// Maximum number of iterations allowed in sub model
    #[serde(rename = "max_iteration_count")]
    pub max_iteration_count: i32,
    /// Indicates the loop will run sequentially
    #[serde(rename = "sequential", skip_serializing_if = "Option::is_none")]
    pub sequential: Option<bool>,
}

impl GraphMulti {
    pub fn new(
        array_field: String,
        array_field_display_name: String,
        continue_on_partial_execution: bool,
        max_execution_seconds: i32,
        max_iteration_count: i32,
    ) -> GraphMulti {
        GraphMulti {
            array_field,
            array_field_display_name,
            condition: None,
            continue_on_partial_execution,
            max_execution_seconds,
            max_iteration_count,
            sequential: None,
        }
    }
}