Skip to main content

windmill_api/models/
azure_delete_subscription.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.699.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AzureDeleteSubscription {
16    #[serde(rename = "azure_mode")]
17    pub azure_mode: models::AzureMode,
18    #[serde(rename = "scope_resource_id")]
19    pub scope_resource_id: String,
20    #[serde(rename = "topic_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub topic_name: Option<Option<String>>,
22    #[serde(rename = "subscription_name")]
23    pub subscription_name: String,
24}
25
26impl AzureDeleteSubscription {
27    pub fn new(azure_mode: models::AzureMode, scope_resource_id: String, subscription_name: String) -> AzureDeleteSubscription {
28        AzureDeleteSubscription {
29            azure_mode,
30            scope_resource_id,
31            topic_name: None,
32            subscription_name,
33        }
34    }
35}
36