Storage Transfer v1 API - Class StorageTransferService.StorageTransferServiceBase (2.4.0)

[BindServiceMethod(typeof(StorageTransferService), "BindService")]
public abstract class StorageTransferService.StorageTransferServiceBase

Reference documentation and code samples for the Storage Transfer v1 API class StorageTransferService.StorageTransferServiceBase.

Base class for server-side implementations of StorageTransferService

Inheritance

object > StorageTransferService.StorageTransferServiceBase

Namespace

Google.Cloud.StorageTransfer.V1

Assembly

Google.Cloud.StorageTransfer.V1.dll

Methods

CreateAgentPool(CreateAgentPoolRequest, ServerCallContext)

public virtual Task<AgentPool> CreateAgentPool(CreateAgentPoolRequest request, ServerCallContext context)

Creates an agent pool resource.

Parameters
NameDescription
requestCreateAgentPoolRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskAgentPool

The response to send back to the client (wrapped by a task).

CreateTransferJob(CreateTransferJobRequest, ServerCallContext)

public virtual Task<TransferJob> CreateTransferJob(CreateTransferJobRequest request, ServerCallContext context)

Creates a transfer job that runs periodically.

Parameters
NameDescription
requestCreateTransferJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskTransferJob

The response to send back to the client (wrapped by a task).

DeleteAgentPool(DeleteAgentPoolRequest, ServerCallContext)

public virtual Task<Empty> DeleteAgentPool(DeleteAgentPoolRequest request, ServerCallContext context)

Deletes an agent pool.

Parameters
NameDescription
requestDeleteAgentPoolRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteTransferJob(DeleteTransferJobRequest, ServerCallContext)

public virtual Task<Empty> DeleteTransferJob(DeleteTransferJobRequest request, ServerCallContext context)

Deletes a transfer job. Deleting a transfer job sets its status to [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].

Parameters
NameDescription
requestDeleteTransferJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

GetAgentPool(GetAgentPoolRequest, ServerCallContext)

public virtual Task<AgentPool> GetAgentPool(GetAgentPoolRequest request, ServerCallContext context)

Gets an agent pool.

Parameters
NameDescription
requestGetAgentPoolRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskAgentPool

The response to send back to the client (wrapped by a task).

GetGoogleServiceAccount(GetGoogleServiceAccountRequest, ServerCallContext)

public virtual Task<GoogleServiceAccount> GetGoogleServiceAccount(GetGoogleServiceAccountRequest request, ServerCallContext context)

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 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.

Parameters
NameDescription
requestGetGoogleServiceAccountRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskGoogleServiceAccount

The response to send back to the client (wrapped by a task).

GetTransferJob(GetTransferJobRequest, ServerCallContext)

public virtual Task<TransferJob> GetTransferJob(GetTransferJobRequest request, ServerCallContext context)

Gets a transfer job.

Parameters
NameDescription
requestGetTransferJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskTransferJob

The response to send back to the client (wrapped by a task).

ListAgentPools(ListAgentPoolsRequest, ServerCallContext)

public virtual Task<ListAgentPoolsResponse> ListAgentPools(ListAgentPoolsRequest request, ServerCallContext context)

Lists agent pools.

Parameters
NameDescription
requestListAgentPoolsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListAgentPoolsResponse

The response to send back to the client (wrapped by a task).

ListTransferJobs(ListTransferJobsRequest, ServerCallContext)

public virtual Task<ListTransferJobsResponse> ListTransferJobs(ListTransferJobsRequest request, ServerCallContext context)

Lists transfer jobs.

Parameters
NameDescription
requestListTransferJobsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListTransferJobsResponse

The response to send back to the client (wrapped by a task).

PauseTransferOperation(PauseTransferOperationRequest, ServerCallContext)

public virtual Task<Empty> PauseTransferOperation(PauseTransferOperationRequest request, ServerCallContext context)

Pauses a transfer operation.

Parameters
NameDescription
requestPauseTransferOperationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

ResumeTransferOperation(ResumeTransferOperationRequest, ServerCallContext)

public virtual Task<Empty> ResumeTransferOperation(ResumeTransferOperationRequest request, ServerCallContext context)

Resumes a transfer operation that is paused.

Parameters
NameDescription
requestResumeTransferOperationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

RunTransferJob(RunTransferJobRequest, ServerCallContext)

public virtual Task<Operation> RunTransferJob(RunTransferJobRequest request, ServerCallContext context)

Starts a new operation for the specified transfer job. A TransferJob has a maximum of one active TransferOperation. If this method is called while a TransferOperation is active, an error is returned.

Parameters
NameDescription
requestRunTransferJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateAgentPool(UpdateAgentPoolRequest, ServerCallContext)

public virtual Task<AgentPool> UpdateAgentPool(UpdateAgentPoolRequest request, ServerCallContext context)

Updates an existing agent pool resource.

Parameters
NameDescription
requestUpdateAgentPoolRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskAgentPool

The response to send back to the client (wrapped by a task).

UpdateTransferJob(UpdateTransferJobRequest, ServerCallContext)

public virtual Task<TransferJob> UpdateTransferJob(UpdateTransferJobRequest request, ServerCallContext context)

Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already.

Note: The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified using this RPC (for example, to set a job's status to [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED], [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).

Parameters
NameDescription
requestUpdateTransferJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskTransferJob

The response to send back to the client (wrapped by a task).