Class StorageTransferServiceConnection (2.18.0)

This interface defines virtual methods for each of the user-facing overload sets in StorageTransferServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type StorageTransferServiceClient.

To create a concrete instance, see MakeStorageTransferServiceConnection().

For mocking, see storagetransfer_v1_mocks::MockStorageTransferServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual GetGoogleServiceAccount(google::storagetransfer::v1::GetGoogleServiceAccountRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::GetGoogleServiceAccountRequest const &
Returns
TypeDescription
StatusOr< google::storagetransfer::v1::GoogleServiceAccount >

virtual CreateTransferJob(google::storagetransfer::v1::CreateTransferJobRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::CreateTransferJobRequest const &
Returns
TypeDescription
StatusOr< google::storagetransfer::v1::TransferJob >

virtual UpdateTransferJob(google::storagetransfer::v1::UpdateTransferJobRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::UpdateTransferJobRequest const &
Returns
TypeDescription
StatusOr< google::storagetransfer::v1::TransferJob >

virtual GetTransferJob(google::storagetransfer::v1::GetTransferJobRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::GetTransferJobRequest const &
Returns
TypeDescription
StatusOr< google::storagetransfer::v1::TransferJob >

virtual ListTransferJobs(google::storagetransfer::v1::ListTransferJobsRequest)

Parameter
NameDescription
request google::storagetransfer::v1::ListTransferJobsRequest
Returns
TypeDescription
StreamRange< google::storagetransfer::v1::TransferJob >

virtual PauseTransferOperation(google::storagetransfer::v1::PauseTransferOperationRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::PauseTransferOperationRequest const &
Returns
TypeDescription
Status

virtual ResumeTransferOperation(google::storagetransfer::v1::ResumeTransferOperationRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::ResumeTransferOperationRequest const &
Returns
TypeDescription
Status

virtual RunTransferJob(google::storagetransfer::v1::RunTransferJobRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::RunTransferJobRequest const &
Returns
TypeDescription
future< StatusOr< google::storagetransfer::v1::TransferOperation > >

virtual DeleteTransferJob(google::storagetransfer::v1::DeleteTransferJobRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::DeleteTransferJobRequest const &
Returns
TypeDescription
Status

virtual CreateAgentPool(google::storagetransfer::v1::CreateAgentPoolRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::CreateAgentPoolRequest const &
Returns
TypeDescription
StatusOr< google::storagetransfer::v1::AgentPool >

virtual UpdateAgentPool(google::storagetransfer::v1::UpdateAgentPoolRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::UpdateAgentPoolRequest const &
Returns
TypeDescription
StatusOr< google::storagetransfer::v1::AgentPool >

virtual GetAgentPool(google::storagetransfer::v1::GetAgentPoolRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::GetAgentPoolRequest const &
Returns
TypeDescription
StatusOr< google::storagetransfer::v1::AgentPool >

virtual ListAgentPools(google::storagetransfer::v1::ListAgentPoolsRequest)

Parameter
NameDescription
request google::storagetransfer::v1::ListAgentPoolsRequest
Returns
TypeDescription
StreamRange< google::storagetransfer::v1::AgentPool >

virtual DeleteAgentPool(google::storagetransfer::v1::DeleteAgentPoolRequest const &)

Parameter
NameDescription
request google::storagetransfer::v1::DeleteAgentPoolRequest const &
Returns
TypeDescription
Status