orvanta-api 6.5.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 6.5.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SetWorkspaceSlackOauthConfigRequest {
    #[serde(rename = "slack_oauth_client_id")]
    pub slack_oauth_client_id: String,
    /// The client secret. `\"\"` (the settings export's placeholder) or `***` (the masked value GET returns) keeps the stored secret, and is refused when none is stored. Clear the config with DELETE. 
    #[serde(rename = "slack_oauth_client_secret")]
    pub slack_oauth_client_secret: String,
    /// The secret is the workspace-key ciphertext written by a `secret_mode=encrypted` settings export; it is decrypted before it is stored. 
    #[serde(rename = "already_encrypted", skip_serializing_if = "Option::is_none")]
    pub already_encrypted: Option<bool>,
}

impl SetWorkspaceSlackOauthConfigRequest {
    pub fn new(slack_oauth_client_id: String, slack_oauth_client_secret: String) -> SetWorkspaceSlackOauthConfigRequest {
        SetWorkspaceSlackOauthConfigRequest {
            slack_oauth_client_id,
            slack_oauth_client_secret,
            already_encrypted: None,
        }
    }
}