Struct gapi_grpc::google::storagetransfer::v1::storage_transfer_service_client::StorageTransferServiceClient[][src]

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

Transfers data between between Google Cloud Storage buckets or from a data source external to Google to a Cloud Storage bucket.

Implementations

impl StorageTransferServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> StorageTransferServiceClient<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_google_service_account(
    &mut self,
    request: impl IntoRequest<GetGoogleServiceAccountRequest>
) -> Result<Response<GoogleServiceAccount>, Status>
[src]

Returns the Google service account that is used by Storage Transfer Service to access buckets in the project where transfers run or in other projects. Each Google service account is associated with one Google Cloud Platform Console project. Users should add this service account to the Google Cloud Storage bucket ACLs to grant access to Storage Transfer Service. This service account is created and owned by Storage Transfer Service and can only be used by Storage Transfer Service.

pub async fn create_transfer_job(
    &mut self,
    request: impl IntoRequest<CreateTransferJobRequest>
) -> Result<Response<TransferJob>, Status>
[src]

Creates a transfer job that runs periodically.

pub async fn update_transfer_job(
    &mut self,
    request: impl IntoRequest<UpdateTransferJobRequest>
) -> Result<Response<TransferJob>, Status>
[src]

Updates a transfer job. Updating a job’s transfer spec does not affect transfer operations that are running already. Updating the scheduling of a job is not allowed.

pub async fn get_transfer_job(
    &mut self,
    request: impl IntoRequest<GetTransferJobRequest>
) -> Result<Response<TransferJob>, Status>
[src]

Gets a transfer job.

pub async fn list_transfer_jobs(
    &mut self,
    request: impl IntoRequest<ListTransferJobsRequest>
) -> Result<Response<ListTransferJobsResponse>, Status>
[src]

Lists transfer jobs.

pub async fn pause_transfer_operation(
    &mut self,
    request: impl IntoRequest<PauseTransferOperationRequest>
) -> Result<Response<()>, Status>
[src]

Pauses a transfer operation.

pub async fn resume_transfer_operation(
    &mut self,
    request: impl IntoRequest<ResumeTransferOperationRequest>
) -> Result<Response<()>, Status>
[src]

Resumes a transfer operation that is paused.

Trait Implementations

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for StorageTransferServiceClient<T>

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

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

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

impl<T> !UnwindSafe for StorageTransferServiceClient<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> 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>, 
[src]

impl<T> WithSubscriber for T[src]