// This file is auto-generated by oagen. Do not edit.
#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DataIntegrationCredentialsDto {
/// The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (configured per-organization).
#[serde(rename = "type")]
pub type_: DataIntegrationCredentialsType,
/// OAuth client ID for the provider app. Required when `type` is `custom`; omit for `organization`.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub client_id: Option<String>,
/// OAuth client secret for the provider app. Required when `type` is `custom`; omit for `organization`.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub client_secret: Option<crate::SecretString>,
}