[][src]Struct gcp_client::google::cloud::bigquery::datatransfer::v1::data_transfer_service_client::DataTransferServiceClient

pub struct DataTransferServiceClient<T> { /* fields omitted */ }

The Google BigQuery Data Transfer Service API enables BigQuery users to configure the transfer of their data from other Google Products into BigQuery. This service contains methods that are end user exposed. It backs up the frontend.

Implementations

impl<T> DataTransferServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn get_data_source<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetDataSourceRequest>
) -> Result<Response<DataSource>, Status>
[src]

Retrieves a supported data source and returns its settings, which can be used for UI rendering.

pub async fn list_data_sources<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListDataSourcesRequest>
) -> Result<Response<ListDataSourcesResponse>, Status>
[src]

Lists supported data sources and returns their settings, which can be used for UI rendering.

pub async fn create_transfer_config<'_>(
    &'_ mut self,
    request: impl IntoRequest<CreateTransferConfigRequest>
) -> Result<Response<TransferConfig>, Status>
[src]

Creates a new data transfer configuration.

pub async fn update_transfer_config<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateTransferConfigRequest>
) -> Result<Response<TransferConfig>, Status>
[src]

Updates a data transfer configuration. All fields must be set, even if they are not updated.

pub async fn delete_transfer_config<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteTransferConfigRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a data transfer configuration, including any associated transfer runs and logs.

pub async fn get_transfer_config<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetTransferConfigRequest>
) -> Result<Response<TransferConfig>, Status>
[src]

Returns information about a data transfer config.

pub async fn list_transfer_configs<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListTransferConfigsRequest>
) -> Result<Response<ListTransferConfigsResponse>, Status>
[src]

Returns information about all data transfers in the project.

pub async fn schedule_transfer_runs<'_>(
    &'_ mut self,
    request: impl IntoRequest<ScheduleTransferRunsRequest>
) -> Result<Response<ScheduleTransferRunsResponse>, Status>
[src]

Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.

pub async fn start_manual_transfer_runs<'_>(
    &'_ mut self,
    request: impl IntoRequest<StartManualTransferRunsRequest>
) -> Result<Response<StartManualTransferRunsResponse>, Status>
[src]

Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time (inclusive) and end_time (exclusive), or for a specific run_time.

pub async fn get_transfer_run<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetTransferRunRequest>
) -> Result<Response<TransferRun>, Status>
[src]

Returns information about the particular transfer run.

pub async fn delete_transfer_run<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteTransferRunRequest>
) -> Result<Response<()>, Status>
[src]

Deletes the specified transfer run.

pub async fn list_transfer_runs<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListTransferRunsRequest>
) -> Result<Response<ListTransferRunsResponse>, Status>
[src]

Returns information about running and completed jobs.

pub async fn list_transfer_logs<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListTransferLogsRequest>
) -> Result<Response<ListTransferLogsResponse>, Status>
[src]

Returns user facing log messages for the data transfer run.

pub async fn check_valid_creds<'_>(
    &'_ mut self,
    request: impl IntoRequest<CheckValidCredsRequest>
) -> Result<Response<CheckValidCredsResponse>, Status>
[src]

Returns true if valid credentials exist for the given data source and requesting user. Some data sources doesn't support service account, so we need to talk to them on behalf of the end user. This API just checks whether we have OAuth token for the particular user, which is a pre-requisite before user can create a transfer config.

Trait Implementations

impl<T: Clone> Clone for DataTransferServiceClient<T>[src]

impl<T> Debug for DataTransferServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for DataTransferServiceClient<T>

impl<T> Send for DataTransferServiceClient<T> where
    T: Send

impl<T> Sync for DataTransferServiceClient<T> where
    T: Sync

impl<T> Unpin for DataTransferServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for DataTransferServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]