Skip to main content

windmill_api/models/
azure_arm_resource.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/// AzureArmResource : An ARM resource the service principal can see.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AzureArmResource {
17    #[serde(rename = "id")]
18    pub id: String,
19    #[serde(rename = "name")]
20    pub name: String,
21    #[serde(rename = "location", skip_serializing_if = "Option::is_none")]
22    pub location: Option<String>,
23    #[serde(rename = "type")]
24    pub r#type: String,
25}
26
27impl AzureArmResource {
28    /// An ARM resource the service principal can see.
29    pub fn new(id: String, name: String, r#type: String) -> AzureArmResource {
30        AzureArmResource {
31            id,
32            name,
33            location: None,
34            r#type,
35        }
36    }
37}
38