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
40
41
42
43
44
45
46
// 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,
/// How accounts authenticate with the provider for this Data Integration.
pub auth_methods: Vec<DataIntegrationAuthMethods>,
/// The credentials configured for the Data Integration.
pub credentials: DataIntegrationCredential,
/// The tenant installation created when an API key was supplied at creation time; `null` otherwise. Not populated on list/get responses.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub installation: Option<DataIntegrationInstallation>,
/// Provider-specific config values set on the Data Integration (e.g. a Snowflake `account_identifier`), keyed by config field. Only fields the provider declares are accepted.
pub config: std::collections::HashMap<String, String>,
/// 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,
}