#[non_exhaustive]pub struct DataSource {Show 18 fields
pub name: String,
pub data_source_id: String,
pub display_name: String,
pub description: String,
pub client_id: String,
pub scopes: Vec<String>,
pub transfer_type: TransferType,
pub supports_multiple_transfers: bool,
pub update_deadline_seconds: i32,
pub default_schedule: String,
pub supports_custom_schedule: bool,
pub parameters: Vec<DataSourceParameter>,
pub help_url: String,
pub authorization_type: AuthorizationType,
pub data_refresh_type: DataRefreshType,
pub default_data_refresh_window_days: i32,
pub manual_runs_disabled: bool,
pub minimum_schedule_interval: Option<Duration>,
/* private fields */
}Expand description
Defines the properties and custom parameters for a data source.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. Data source resource name.
data_source_id: StringData source id.
display_name: StringUser friendly data source name.
description: StringUser friendly data source description string.
client_id: StringData source client id which should be used to receive refresh token.
scopes: Vec<String>Api auth scopes for which refresh token needs to be obtained. These are scopes needed by a data source to prepare data and ingest them into BigQuery, e.g., https://www.googleapis.com/auth/bigquery
transfer_type: TransferTypeDeprecated. This field has no effect.
supports_multiple_transfers: boolDeprecated. This field has no effect.
update_deadline_seconds: i32The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED.
default_schedule: StringDefault data transfer schedule.
Examples of valid schedules include:
1st,3rd monday of month 15:30,
every wed,fri of jan,jun 13:15, and
first sunday of quarter 00:00.
supports_custom_schedule: boolSpecifies whether the data source supports a user defined schedule, or
operates on the default schedule.
When set to true, user can override default schedule.
parameters: Vec<DataSourceParameter>Data source parameters.
help_url: StringUrl for the help document for this data source.
Indicates the type of authorization.
data_refresh_type: DataRefreshTypeSpecifies whether the data source supports automatic data refresh for the past few days, and how it’s supported. For some data sources, data might not be complete until a few days later, so it’s useful to refresh data automatically.
default_data_refresh_window_days: i32Default data refresh window on days.
Only meaningful when data_refresh_type = SLIDING_WINDOW.
manual_runs_disabled: boolDisables backfilling and manual run scheduling for the data source.
minimum_schedule_interval: Option<Duration>The minimum interval for scheduler to schedule runs.
Implementations§
Source§impl DataSource
impl DataSource
pub fn new() -> Self
Sourcepub fn set_data_source_id<T: Into<String>>(self, v: T) -> Self
pub fn set_data_source_id<T: Into<String>>(self, v: T) -> Self
Sets the value of data_source_id.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_client_id<T: Into<String>>(self, v: T) -> Self
pub fn set_client_id<T: Into<String>>(self, v: T) -> Self
Sets the value of client_id.
Sourcepub fn set_scopes<T, V>(self, v: T) -> Self
pub fn set_scopes<T, V>(self, v: T) -> Self
Sets the value of scopes.
Sourcepub fn set_transfer_type<T: Into<TransferType>>(self, v: T) -> Self
👎Deprecated
pub fn set_transfer_type<T: Into<TransferType>>(self, v: T) -> Self
Sets the value of transfer_type.
Sourcepub fn set_supports_multiple_transfers<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_supports_multiple_transfers<T: Into<bool>>(self, v: T) -> Self
Sets the value of supports_multiple_transfers.
Sourcepub fn set_update_deadline_seconds<T: Into<i32>>(self, v: T) -> Self
pub fn set_update_deadline_seconds<T: Into<i32>>(self, v: T) -> Self
Sets the value of update_deadline_seconds.
Sourcepub fn set_default_schedule<T: Into<String>>(self, v: T) -> Self
pub fn set_default_schedule<T: Into<String>>(self, v: T) -> Self
Sets the value of default_schedule.
Sourcepub fn set_supports_custom_schedule<T: Into<bool>>(self, v: T) -> Self
pub fn set_supports_custom_schedule<T: Into<bool>>(self, v: T) -> Self
Sets the value of supports_custom_schedule.
Sourcepub fn set_parameters<T, V>(self, v: T) -> Self
pub fn set_parameters<T, V>(self, v: T) -> Self
Sets the value of parameters.
Sourcepub fn set_help_url<T: Into<String>>(self, v: T) -> Self
pub fn set_help_url<T: Into<String>>(self, v: T) -> Self
Sets the value of help_url.
Sets the value of authorization_type.
Sourcepub fn set_data_refresh_type<T: Into<DataRefreshType>>(self, v: T) -> Self
pub fn set_data_refresh_type<T: Into<DataRefreshType>>(self, v: T) -> Self
Sets the value of data_refresh_type.
Sourcepub fn set_default_data_refresh_window_days<T: Into<i32>>(self, v: T) -> Self
pub fn set_default_data_refresh_window_days<T: Into<i32>>(self, v: T) -> Self
Sets the value of default_data_refresh_window_days.
Sourcepub fn set_manual_runs_disabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_manual_runs_disabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of manual_runs_disabled.
Sourcepub fn set_minimum_schedule_interval<T>(self, v: T) -> Self
pub fn set_minimum_schedule_interval<T>(self, v: T) -> Self
Sets the value of minimum_schedule_interval.
Sourcepub fn set_or_clear_minimum_schedule_interval<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_minimum_schedule_interval<T>(self, v: Option<T>) -> Self
Sets or clears the value of minimum_schedule_interval.
Trait Implementations§
Source§impl Clone for DataSource
impl Clone for DataSource
Source§fn clone(&self) -> DataSource
fn clone(&self) -> DataSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more