Class DataTransferService.DataTransferServiceBase (3.1.0)

[BindServiceMethod(typeof(DataTransferService), "BindService")]
public abstract class DataTransferServiceBase

Base class for server-side implementations of DataTransferService

Inheritance

Object > DataTransferService.DataTransferServiceBase

Namespace

Google.Cloud.BigQuery.DataTransfer.V1

Assembly

Google.Cloud.BigQuery.DataTransfer.V1.dll

Methods

CheckValidCreds(CheckValidCredsRequest, ServerCallContext)

public virtual Task<CheckValidCredsResponse> CheckValidCreds(CheckValidCredsRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestCheckValidCredsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<CheckValidCredsResponse>

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

CreateTransferConfig(CreateTransferConfigRequest, ServerCallContext)

public virtual Task<TransferConfig> CreateTransferConfig(CreateTransferConfigRequest request, ServerCallContext context)

Creates a new data transfer configuration.

Parameters
NameDescription
requestCreateTransferConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<TransferConfig>

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

DeleteTransferConfig(DeleteTransferConfigRequest, ServerCallContext)

public virtual Task<Empty> DeleteTransferConfig(DeleteTransferConfigRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestDeleteTransferConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Empty>

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

DeleteTransferRun(DeleteTransferRunRequest, ServerCallContext)

public virtual Task<Empty> DeleteTransferRun(DeleteTransferRunRequest request, ServerCallContext context)

Deletes the specified transfer run.

Parameters
NameDescription
requestDeleteTransferRunRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Empty>

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

GetDataSource(GetDataSourceRequest, ServerCallContext)

public virtual Task<DataSource> GetDataSource(GetDataSourceRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestGetDataSourceRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<DataSource>

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

GetTransferConfig(GetTransferConfigRequest, ServerCallContext)

public virtual Task<TransferConfig> GetTransferConfig(GetTransferConfigRequest request, ServerCallContext context)

Returns information about a data transfer config.

Parameters
NameDescription
requestGetTransferConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<TransferConfig>

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

GetTransferRun(GetTransferRunRequest, ServerCallContext)

public virtual Task<TransferRun> GetTransferRun(GetTransferRunRequest request, ServerCallContext context)

Returns information about the particular transfer run.

Parameters
NameDescription
requestGetTransferRunRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<TransferRun>

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

ListDataSources(ListDataSourcesRequest, ServerCallContext)

public virtual Task<ListDataSourcesResponse> ListDataSources(ListDataSourcesRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestListDataSourcesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListDataSourcesResponse>

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

ListTransferConfigs(ListTransferConfigsRequest, ServerCallContext)

public virtual Task<ListTransferConfigsResponse> ListTransferConfigs(ListTransferConfigsRequest request, ServerCallContext context)

Returns information about all data transfers in the project.

Parameters
NameDescription
requestListTransferConfigsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListTransferConfigsResponse>

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

ListTransferLogs(ListTransferLogsRequest, ServerCallContext)

public virtual Task<ListTransferLogsResponse> ListTransferLogs(ListTransferLogsRequest request, ServerCallContext context)

Returns user facing log messages for the data transfer run.

Parameters
NameDescription
requestListTransferLogsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListTransferLogsResponse>

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

ListTransferRuns(ListTransferRunsRequest, ServerCallContext)

public virtual Task<ListTransferRunsResponse> ListTransferRuns(ListTransferRunsRequest request, ServerCallContext context)

Returns information about running and completed jobs.

Parameters
NameDescription
requestListTransferRunsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListTransferRunsResponse>

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

ScheduleTransferRuns(ScheduleTransferRunsRequest, ServerCallContext)

public virtual Task<ScheduleTransferRunsResponse> ScheduleTransferRuns(ScheduleTransferRunsRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestScheduleTransferRunsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ScheduleTransferRunsResponse>

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

StartManualTransferRuns(StartManualTransferRunsRequest, ServerCallContext)

public virtual Task<StartManualTransferRunsResponse> StartManualTransferRuns(StartManualTransferRunsRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestStartManualTransferRunsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<StartManualTransferRunsResponse>

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

UpdateTransferConfig(UpdateTransferConfigRequest, ServerCallContext)

public virtual Task<TransferConfig> UpdateTransferConfig(UpdateTransferConfigRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestUpdateTransferConfigRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<TransferConfig>

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