#[non_exhaustive]pub struct TransferRun {Show 15 fields
pub name: String,
pub schedule_time: Option<Timestamp>,
pub run_time: Option<Timestamp>,
pub error_status: Option<Status>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub params: Option<Struct>,
pub data_source_id: String,
pub state: TransferState,
pub user_id: i64,
pub schedule: String,
pub notification_pubsub_topic: String,
pub email_preferences: Option<EmailPreferences>,
pub destination: Option<Destination>,
/* private fields */
}Expand description
Represents a data transfer run.
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: StringIdentifier. The resource name of the transfer run.
Transfer run names have the form
projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}.
The name is ignored when creating a transfer run.
schedule_time: Option<Timestamp>Minimum time after which a transfer run can be started.
run_time: Option<Timestamp>For batch transfer runs, specifies the date and time of the data should be ingested.
error_status: Option<Status>Status of the transfer run.
start_time: Option<Timestamp>Output only. Time when transfer run was started. Parameter ignored by server for input requests.
end_time: Option<Timestamp>Output only. Time when transfer run ended. Parameter ignored by server for input requests.
update_time: Option<Timestamp>Output only. Last time the data transfer run state was updated.
params: Option<Struct>Output only. Parameters specific to each data source. For more information see the bq tab in the ‘Setting up a data transfer’ section for each data source. For example the parameters for Cloud Storage transfers are listed here: https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer#bq
data_source_id: StringOutput only. Data source id.
state: TransferStateData transfer run state. Ignored for input requests.
user_id: i64Deprecated. Unique ID of the user on whose behalf transfer is done.
schedule: StringOutput only. Describes the schedule of this transfer run if it was
created as part of a regular schedule. For batch transfer runs that are
scheduled manually, this is empty.
NOTE: the system might choose to delay the schedule depending on the
current load, so schedule_time doesn’t always match this.
notification_pubsub_topic: StringOutput only. Pub/Sub topic where a notification will be sent after this transfer run finishes.
The format for specifying a pubsub topic is:
projects/{project_id}/topics/{topic_id}
email_preferences: Option<EmailPreferences>Output only. Email notifications will be sent according to these preferences to the email address of the user who owns the transfer config this run was derived from.
destination: Option<Destination>Data transfer destination.
Implementations§
Source§impl TransferRun
impl TransferRun
pub fn new() -> Self
Sourcepub fn set_schedule_time<T>(self, v: T) -> Self
pub fn set_schedule_time<T>(self, v: T) -> Self
Sets the value of schedule_time.
Sourcepub fn set_or_clear_schedule_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_schedule_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of schedule_time.
Sourcepub fn set_run_time<T>(self, v: T) -> Self
pub fn set_run_time<T>(self, v: T) -> Self
Sets the value of run_time.
Sourcepub fn set_or_clear_run_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_run_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of run_time.
Sourcepub fn set_error_status<T>(self, v: T) -> Self
pub fn set_error_status<T>(self, v: T) -> Self
Sets the value of error_status.
Sourcepub fn set_or_clear_error_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of error_status.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_params<T>(self, v: T) -> Self
pub fn set_params<T>(self, v: T) -> Self
Sets the value of params.
Sourcepub fn set_or_clear_params<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_params<T>(self, v: Option<T>) -> Self
Sets or clears the value of params.
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_state<T: Into<TransferState>>(self, v: T) -> Self
pub fn set_state<T: Into<TransferState>>(self, v: T) -> Self
Sets the value of state.
Sourcepub fn set_user_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_user_id<T: Into<i64>>(self, v: T) -> Self
Sets the value of user_id.
Sourcepub fn set_schedule<T: Into<String>>(self, v: T) -> Self
pub fn set_schedule<T: Into<String>>(self, v: T) -> Self
Sets the value of schedule.
Sourcepub fn set_notification_pubsub_topic<T: Into<String>>(self, v: T) -> Self
pub fn set_notification_pubsub_topic<T: Into<String>>(self, v: T) -> Self
Sets the value of notification_pubsub_topic.
Sourcepub fn set_email_preferences<T>(self, v: T) -> Selfwhere
T: Into<EmailPreferences>,
pub fn set_email_preferences<T>(self, v: T) -> Selfwhere
T: Into<EmailPreferences>,
Sets the value of email_preferences.
Sourcepub fn set_or_clear_email_preferences<T>(self, v: Option<T>) -> Selfwhere
T: Into<EmailPreferences>,
pub fn set_or_clear_email_preferences<T>(self, v: Option<T>) -> Selfwhere
T: Into<EmailPreferences>,
Sets or clears the value of email_preferences.
Sourcepub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
pub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
Sets the value of destination.
Note that all the setters affecting destination are mutually
exclusive.
Sourcepub fn destination_dataset_id(&self) -> Option<&String>
pub fn destination_dataset_id(&self) -> Option<&String>
The value of destination
if it holds a DestinationDatasetId, None if the field is not set or
holds a different branch.
Sourcepub fn set_destination_dataset_id<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_dataset_id<T: Into<String>>(self, v: T) -> Self
Sets the value of destination
to hold a DestinationDatasetId.
Note that all the setters affecting destination are
mutually exclusive.
Trait Implementations§
Source§impl Clone for TransferRun
impl Clone for TransferRun
Source§fn clone(&self) -> TransferRun
fn clone(&self) -> TransferRun
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more