Skip to main content

windmill_api/models/
test_http_store_backend_request.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.864.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 TestHttpStoreBackendRequest {
16    #[serde(rename = "settings")]
17    pub settings: Box<models::HttpStoreSettings>,
18    /// workspace of a variable whose secret exists in the store
19    #[serde(rename = "workspace_id")]
20    pub workspace_id: String,
21    /// path of a variable whose secret exists in the store
22    #[serde(rename = "path")]
23    pub path: String,
24}
25
26impl TestHttpStoreBackendRequest {
27    pub fn new(settings: models::HttpStoreSettings, workspace_id: String, path: String) -> TestHttpStoreBackendRequest {
28        TestHttpStoreBackendRequest {
29            settings: Box::new(settings),
30            workspace_id,
31            path,
32        }
33    }
34}
35