windmill_api/models/
install_from_workspace_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.505.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 InstallFromWorkspaceRequest {
16    /// The ID of the workspace containing the installation to copy
17    #[serde(rename = "source_workspace_id")]
18    pub source_workspace_id: String,
19    /// The ID of the GitHub installation to copy
20    #[serde(rename = "installation_id")]
21    pub installation_id: f64,
22}
23
24impl InstallFromWorkspaceRequest {
25    pub fn new(source_workspace_id: String, installation_id: f64) -> InstallFromWorkspaceRequest {
26        InstallFromWorkspaceRequest {
27            source_workspace_id,
28            installation_id,
29        }
30    }
31}
32