Skip to main content

authentik_client/models/
blueprint_instance_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BlueprintInstanceRequest : Info about a single blueprint instance file
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BlueprintInstanceRequest {
17    #[serde(rename = "name")]
18    pub name: String,
19    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
20    pub path: Option<String>,
21    #[serde(rename = "context", skip_serializing_if = "Option::is_none")]
22    pub context: Option<std::collections::HashMap<String, serde_json::Value>>,
23    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
24    pub enabled: Option<bool>,
25    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
26    pub content: Option<String>,
27}
28
29impl BlueprintInstanceRequest {
30    /// Info about a single blueprint instance file
31    pub fn new(name: String) -> BlueprintInstanceRequest {
32        BlueprintInstanceRequest {
33            name,
34            path: None,
35            context: None,
36            enabled: None,
37            content: None,
38        }
39    }
40}