// 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 credential object containing the vended secret.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DataIntegrationCredentialsResponseCredential {
/// Distinguishes the credential object.
pub object: String,
/// The authentication method for this credential. Additional values may be added in the future; handle unknown values gracefully.
pub auth_method: String,
/// The OAuth access token.
pub value: String,
/// The ISO-8601 formatted timestamp indicating when the credential expires.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub expires_at: Option<String>,
/// The scopes granted to the access token.
pub scopes: Vec<String>,
/// If the integration has requested scopes that aren't present on the access token, they're listed here.
pub missing_scopes: Vec<String>,
}