Struct google_api_proto::google::cloud::bigquery::datatransfer::v1::data_transfer_service_client::DataTransferServiceClient
source · pub struct DataTransferServiceClient<T> { /* private fields */ }
Expand description
This API allows users to manage their data transfers into BigQuery.
Implementations§
source§impl<T> DataTransferServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> DataTransferServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> DataTransferServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn get_data_source(
&mut self,
request: impl IntoRequest<GetDataSourceRequest>,
) -> Result<Response<DataSource>, Status>
pub async fn get_data_source( &mut self, request: impl IntoRequest<GetDataSourceRequest>, ) -> Result<Response<DataSource>, Status>
Retrieves a supported data source and returns its settings.
sourcepub async fn list_data_sources(
&mut self,
request: impl IntoRequest<ListDataSourcesRequest>,
) -> Result<Response<ListDataSourcesResponse>, Status>
pub async fn list_data_sources( &mut self, request: impl IntoRequest<ListDataSourcesRequest>, ) -> Result<Response<ListDataSourcesResponse>, Status>
Lists supported data sources and returns their settings.
sourcepub async fn create_transfer_config(
&mut self,
request: impl IntoRequest<CreateTransferConfigRequest>,
) -> Result<Response<TransferConfig>, Status>
pub async fn create_transfer_config( &mut self, request: impl IntoRequest<CreateTransferConfigRequest>, ) -> Result<Response<TransferConfig>, Status>
Creates a new data transfer configuration.
sourcepub async fn update_transfer_config(
&mut self,
request: impl IntoRequest<UpdateTransferConfigRequest>,
) -> Result<Response<TransferConfig>, Status>
pub async fn update_transfer_config( &mut self, request: impl IntoRequest<UpdateTransferConfigRequest>, ) -> Result<Response<TransferConfig>, Status>
Updates a data transfer configuration. All fields must be set, even if they are not updated.
sourcepub async fn delete_transfer_config(
&mut self,
request: impl IntoRequest<DeleteTransferConfigRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_transfer_config( &mut self, request: impl IntoRequest<DeleteTransferConfigRequest>, ) -> Result<Response<()>, Status>
Deletes a data transfer configuration, including any associated transfer runs and logs.
sourcepub async fn get_transfer_config(
&mut self,
request: impl IntoRequest<GetTransferConfigRequest>,
) -> Result<Response<TransferConfig>, Status>
pub async fn get_transfer_config( &mut self, request: impl IntoRequest<GetTransferConfigRequest>, ) -> Result<Response<TransferConfig>, Status>
Returns information about a data transfer config.
sourcepub async fn list_transfer_configs(
&mut self,
request: impl IntoRequest<ListTransferConfigsRequest>,
) -> Result<Response<ListTransferConfigsResponse>, Status>
pub async fn list_transfer_configs( &mut self, request: impl IntoRequest<ListTransferConfigsRequest>, ) -> Result<Response<ListTransferConfigsResponse>, Status>
Returns information about all transfer configs owned by a project in the specified location.
sourcepub async fn schedule_transfer_runs(
&mut self,
request: impl IntoRequest<ScheduleTransferRunsRequest>,
) -> Result<Response<ScheduleTransferRunsResponse>, Status>
pub async fn schedule_transfer_runs( &mut self, request: impl IntoRequest<ScheduleTransferRunsRequest>, ) -> Result<Response<ScheduleTransferRunsResponse>, Status>
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.
sourcepub async fn start_manual_transfer_runs(
&mut self,
request: impl IntoRequest<StartManualTransferRunsRequest>,
) -> Result<Response<StartManualTransferRunsResponse>, Status>
pub async fn start_manual_transfer_runs( &mut self, request: impl IntoRequest<StartManualTransferRunsRequest>, ) -> Result<Response<StartManualTransferRunsResponse>, Status>
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.
sourcepub async fn get_transfer_run(
&mut self,
request: impl IntoRequest<GetTransferRunRequest>,
) -> Result<Response<TransferRun>, Status>
pub async fn get_transfer_run( &mut self, request: impl IntoRequest<GetTransferRunRequest>, ) -> Result<Response<TransferRun>, Status>
Returns information about the particular transfer run.
sourcepub async fn delete_transfer_run(
&mut self,
request: impl IntoRequest<DeleteTransferRunRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_transfer_run( &mut self, request: impl IntoRequest<DeleteTransferRunRequest>, ) -> Result<Response<()>, Status>
Deletes the specified transfer run.
sourcepub async fn list_transfer_runs(
&mut self,
request: impl IntoRequest<ListTransferRunsRequest>,
) -> Result<Response<ListTransferRunsResponse>, Status>
pub async fn list_transfer_runs( &mut self, request: impl IntoRequest<ListTransferRunsRequest>, ) -> Result<Response<ListTransferRunsResponse>, Status>
Returns information about running and completed transfer runs.
sourcepub async fn list_transfer_logs(
&mut self,
request: impl IntoRequest<ListTransferLogsRequest>,
) -> Result<Response<ListTransferLogsResponse>, Status>
pub async fn list_transfer_logs( &mut self, request: impl IntoRequest<ListTransferLogsRequest>, ) -> Result<Response<ListTransferLogsResponse>, Status>
Returns log messages for the transfer run.
sourcepub async fn check_valid_creds(
&mut self,
request: impl IntoRequest<CheckValidCredsRequest>,
) -> Result<Response<CheckValidCredsResponse>, Status>
pub async fn check_valid_creds( &mut self, request: impl IntoRequest<CheckValidCredsRequest>, ) -> Result<Response<CheckValidCredsResponse>, Status>
Returns true if valid credentials exist for the given data source and requesting user.
sourcepub async fn enroll_data_sources(
&mut self,
request: impl IntoRequest<EnrollDataSourcesRequest>,
) -> Result<Response<()>, Status>
pub async fn enroll_data_sources( &mut self, request: impl IntoRequest<EnrollDataSourcesRequest>, ) -> Result<Response<()>, Status>
Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the BigQuery UI, and the documents can be found in the public guide for BigQuery Web UI and Data Transfer Service.
sourcepub async fn unenroll_data_sources(
&mut self,
request: impl IntoRequest<UnenrollDataSourcesRequest>,
) -> Result<Response<()>, Status>
pub async fn unenroll_data_sources( &mut self, request: impl IntoRequest<UnenrollDataSourcesRequest>, ) -> Result<Response<()>, Status>
Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the ListDataSources RPC and will also no longer appear in the BigQuery UI. Data transfers configurations of unenrolled data sources will not be scheduled.
Trait Implementations§
source§impl<T: Clone> Clone for DataTransferServiceClient<T>
impl<T: Clone> Clone for DataTransferServiceClient<T>
source§fn clone(&self) -> DataTransferServiceClient<T>
fn clone(&self) -> DataTransferServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for DataTransferServiceClient<T>
impl<T> RefUnwindSafe for DataTransferServiceClient<T>where
T: RefUnwindSafe,
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>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request