Skip to main content

netbox_openapi/models/
render_config_input_request.rs

1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.6.2 (4.6)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// RenderConfigInputRequest : Describes the request body for the device/VM /render-config/ endpoints. Any additional keys supplied are passed through as context variables to the rendered template.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct RenderConfigInputRequest {
15    /// Optional ID of the ConfigTemplate to render. If omitted, the object's assigned config template is used.
16    #[serde(rename = "config_template_id", skip_serializing_if = "Option::is_none")]
17    pub config_template_id: Option<i32>,
18}
19
20impl RenderConfigInputRequest {
21    /// Describes the request body for the device/VM /render-config/ endpoints. Any additional keys supplied are passed through as context variables to the rendered template.
22    pub fn new() -> RenderConfigInputRequest {
23        RenderConfigInputRequest {
24            config_template_id: None,
25        }
26    }
27}