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 AzureAzureRegistrationCreateInput {
    #[serde(rename = "account_type", skip_serializing_if = "Option::is_none")]
    pub account_type: Option<String>,
    #[serde(rename = "additional_features")]
    pub additional_features: Vec<models::AzureAdditionalFeature>,
    #[serde(
        rename = "additional_properties",
        skip_serializing_if = "Option::is_none"
    )]
    pub additional_properties: Option<serde_json::Value>,
    #[serde(rename = "api_client_key_id", skip_serializing_if = "Option::is_none")]
    pub api_client_key_id: Option<String>,
    #[serde(
        rename = "api_client_key_type",
        skip_serializing_if = "Option::is_none"
    )]
    pub api_client_key_type: Option<String>,
    #[serde(rename = "cs_infra_region", skip_serializing_if = "Option::is_none")]
    pub cs_infra_region: Option<String>,
    #[serde(
        rename = "cs_infra_subscription_id",
        skip_serializing_if = "Option::is_none"
    )]
    pub cs_infra_subscription_id: Option<String>,
    #[serde(rename = "deployment_method")]
    pub deployment_method: String,
    #[serde(
        rename = "deployment_stack_host_id",
        skip_serializing_if = "Option::is_none"
    )]
    pub deployment_stack_host_id: Option<String>,
    #[serde(
        rename = "deployment_stack_name",
        skip_serializing_if = "Option::is_none"
    )]
    pub deployment_stack_name: Option<String>,
    #[serde(rename = "dspm_regions", skip_serializing_if = "Option::is_none")]
    pub dspm_regions: Option<Vec<String>>,
    #[serde(rename = "environment", skip_serializing_if = "Option::is_none")]
    pub environment: Option<String>,
    #[serde(rename = "event_hub_settings")]
    pub event_hub_settings: Vec<models::AzureEventHubSettings>,
    #[serde(rename = "management_group_ids")]
    pub management_group_ids: Vec<String>,
    #[serde(rename = "microsoft_graph_permission_ids")]
    pub microsoft_graph_permission_ids: Vec<String>,
    #[serde(
        rename = "microsoft_graph_permission_ids_readonly",
        skip_serializing_if = "Option::is_none"
    )]
    pub microsoft_graph_permission_ids_readonly: Option<bool>,
    #[serde(rename = "products", skip_serializing_if = "Option::is_none")]
    pub products: Option<Vec<models::DomainProductFeatures>>,
    #[serde(
        rename = "resource_name_prefix",
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_name_prefix: Option<String>,
    #[serde(
        rename = "resource_name_suffix",
        skip_serializing_if = "Option::is_none"
    )]
    pub resource_name_suffix: Option<String>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(rename = "subscription_ids")]
    pub subscription_ids: Vec<String>,
    #[serde(rename = "tags")]
    pub tags: std::collections::HashMap<String, String>,
    #[serde(rename = "template_version", skip_serializing_if = "Option::is_none")]
    pub template_version: Option<String>,
    #[serde(rename = "tenant_id")]
    pub tenant_id: String,
    #[serde(rename = "tenant_name")]
    pub tenant_name: String,
}

impl AzureAzureRegistrationCreateInput {
    pub fn new(
        additional_features: Vec<models::AzureAdditionalFeature>,
        deployment_method: String,
        event_hub_settings: Vec<models::AzureEventHubSettings>,
        management_group_ids: Vec<String>,
        microsoft_graph_permission_ids: Vec<String>,
        subscription_ids: Vec<String>,
        tags: std::collections::HashMap<String, String>,
        tenant_id: String,
        tenant_name: String,
    ) -> AzureAzureRegistrationCreateInput {
        AzureAzureRegistrationCreateInput {
            account_type: None,
            additional_features,
            additional_properties: None,
            api_client_key_id: None,
            api_client_key_type: None,
            cs_infra_region: None,
            cs_infra_subscription_id: None,
            deployment_method,
            deployment_stack_host_id: None,
            deployment_stack_name: None,
            dspm_regions: None,
            environment: None,
            event_hub_settings,
            management_group_ids,
            microsoft_graph_permission_ids,
            microsoft_graph_permission_ids_readonly: None,
            products: None,
            resource_name_prefix: None,
            resource_name_suffix: None,
            status: None,
            subscription_ids,
            tags,
            template_version: None,
            tenant_id,
            tenant_name,
        }
    }
}