1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 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 DataIntegration {
/// Distinguishes the Data Integration object.
pub object: String,
/// Unique identifier of the Data Integration.
pub id: String,
/// The provider slug for this Data Integration.
pub slug: String,
/// The integration type derived from the provider.
pub integration_type: String,
/// An optional description of the Data Integration.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub description: Option<String>,
/// Whether the Data Integration is enabled.
pub enabled: bool,
/// The state of the Data Integration.
pub state: DataIntegrationState,
/// The OAuth scopes configured for the Data Integration. `null` when the provider's configured scopes are used.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub scopes: Option<Vec<String>>,
/// The OAuth redirect URI to register with the provider when configuring the custom application.
pub redirect_uri: String,
/// The credentials configured for the Data Integration.
pub credentials: DataIntegrationCredential,
/// The OAuth definition when this is a custom provider; `null` for built-in providers.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub custom_provider: Option<DataIntegrationCustomProvider>,
/// An ISO 8601 timestamp.
pub created_at: String,
/// An ISO 8601 timestamp.
pub updated_at: String,
}