// 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};
/// Organization-managed OAuth credential configuration. Present only for integrations whose credentials are supplied by the organization; absent otherwise.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DataIntegrationCredentials {
/// The credentials type for this integration (e.g., `shared`, `custom`, or `organization`).
pub credentials_type: DataIntegrationCredentialsCredentialsType,
/// Whether the organization has supplied OAuth credentials for this integration.
pub has_credentials: bool,
/// The OAuth client ID supplied by the organization, or `null` when none is configured.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub client_id: Option<String>,
/// The last four characters of the organization-supplied OAuth client secret, or `null` when none is configured.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub client_secret_last_four: Option<String>,
/// The redirect URI to register with the provider when configuring the organization-managed OAuth application.
pub redirect_uri: String,
}