/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AzureDeleteSubscription {
    #[serde(rename = "azure_mode")]
    pub azure_mode: models::AzureMode,
    #[serde(rename = "scope_resource_id")]
    pub scope_resource_id: String,
    #[serde(rename = "topic_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub topic_name: Option<Option<String>>,
    #[serde(rename = "subscription_name")]
    pub subscription_name: String,
}

impl AzureDeleteSubscription {
    pub fn new(azure_mode: models::AzureMode, scope_resource_id: String, subscription_name: String) -> AzureDeleteSubscription {
        AzureDeleteSubscription {
            azure_mode,
            scope_resource_id,
            topic_name: None,
            subscription_name,
        }
    }
}

