// 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};
/// The credentials configured for the Data Integration.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DataIntegrationCredential {
/// The credentials type. `custom` uses your own OAuth app credentials; `organization` has each organization supply its own credentials (so `client_id`/`redacted_client_secret` are null on the integration itself).
#[serde(rename = "type")]
pub type_: DataIntegrationCredentialType,
/// The OAuth client ID configured for the provider app. Null for `organization` credentials.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub client_id: Option<String>,
/// The last four characters of the OAuth client secret. The full secret is never returned. Null for `organization` credentials.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub redacted_client_secret: Option<crate::SecretString>,
}