BigQuery Migration v2 API - Class MigrationService.MigrationServiceClient (1.2.0)

public class MigrationService.MigrationServiceClient : ClientBase<MigrationService.MigrationServiceClient>

Reference documentation and code samples for the BigQuery Migration v2 API class MigrationService.MigrationServiceClient.

Client for MigrationService

Inheritance

object > ClientBase > ClientBaseMigrationServiceMigrationServiceClient > MigrationService.MigrationServiceClient

Namespace

Google.Cloud.BigQuery.Migration.V2

Assembly

Google.Cloud.BigQuery.Migration.V2.dll

Constructors

MigrationServiceClient()

protected MigrationServiceClient()

Protected parameterless constructor to allow creation of test doubles.

MigrationServiceClient(CallInvoker)

public MigrationServiceClient(CallInvoker callInvoker)

Creates a new client for MigrationService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

MigrationServiceClient(ChannelBase)

public MigrationServiceClient(ChannelBase channel)

Creates a new client for MigrationService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

MigrationServiceClient(ClientBaseConfiguration)

protected MigrationServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateMigrationWorkflow(CreateMigrationWorkflowRequest, CallOptions)

public virtual MigrationWorkflow CreateMigrationWorkflow(CreateMigrationWorkflowRequest request, CallOptions options)

Creates a migration workflow.

Parameters
NameDescription
requestCreateMigrationWorkflowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
MigrationWorkflow

The response received from the server.

CreateMigrationWorkflow(CreateMigrationWorkflowRequest, Metadata, DateTime?, CancellationToken)

public virtual MigrationWorkflow CreateMigrationWorkflow(CreateMigrationWorkflowRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a migration workflow.

Parameters
NameDescription
requestCreateMigrationWorkflowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
MigrationWorkflow

The response received from the server.

CreateMigrationWorkflowAsync(CreateMigrationWorkflowRequest, CallOptions)

public virtual AsyncUnaryCall<MigrationWorkflow> CreateMigrationWorkflowAsync(CreateMigrationWorkflowRequest request, CallOptions options)

Creates a migration workflow.

Parameters
NameDescription
requestCreateMigrationWorkflowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallMigrationWorkflow

The call object.

CreateMigrationWorkflowAsync(CreateMigrationWorkflowRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<MigrationWorkflow> CreateMigrationWorkflowAsync(CreateMigrationWorkflowRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a migration workflow.

Parameters
NameDescription
requestCreateMigrationWorkflowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallMigrationWorkflow

The call object.

DeleteMigrationWorkflow(DeleteMigrationWorkflowRequest, CallOptions)

public virtual Empty DeleteMigrationWorkflow(DeleteMigrationWorkflowRequest request, CallOptions options)

Deletes a migration workflow by name.

Parameters
NameDescription
requestDeleteMigrationWorkflowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteMigrationWorkflow(DeleteMigrationWorkflowRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteMigrationWorkflow(DeleteMigrationWorkflowRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a migration workflow by name.

Parameters
NameDescription
requestDeleteMigrationWorkflowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest request, CallOptions options)

Deletes a migration workflow by name.

Parameters
NameDescription
requestDeleteMigrationWorkflowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DeleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a migration workflow by name.

Parameters
NameDescription
requestDeleteMigrationWorkflowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

GetMigrationSubtask(GetMigrationSubtaskRequest, CallOptions)

public virtual MigrationSubtask GetMigrationSubtask(GetMigrationSubtaskRequest request, CallOptions options)

Gets a previously created migration subtask.

Parameters
NameDescription
requestGetMigrationSubtaskRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
MigrationSubtask

The response received from the server.

GetMigrationSubtask(GetMigrationSubtaskRequest, Metadata, DateTime?, CancellationToken)

public virtual MigrationSubtask GetMigrationSubtask(GetMigrationSubtaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a previously created migration subtask.

Parameters
NameDescription
requestGetMigrationSubtaskRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
MigrationSubtask

The response received from the server.

GetMigrationSubtaskAsync(GetMigrationSubtaskRequest, CallOptions)

public virtual AsyncUnaryCall<MigrationSubtask> GetMigrationSubtaskAsync(GetMigrationSubtaskRequest request, CallOptions options)

Gets a previously created migration subtask.

Parameters
NameDescription
requestGetMigrationSubtaskRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallMigrationSubtask

The call object.

GetMigrationSubtaskAsync(GetMigrationSubtaskRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<MigrationSubtask> GetMigrationSubtaskAsync(GetMigrationSubtaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a previously created migration subtask.

Parameters
NameDescription
requestGetMigrationSubtaskRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallMigrationSubtask

The call object.

GetMigrationWorkflow(GetMigrationWorkflowRequest, CallOptions)

public virtual MigrationWorkflow GetMigrationWorkflow(GetMigrationWorkflowRequest request, CallOptions options)

Gets a previously created migration workflow.

Parameters
NameDescription
requestGetMigrationWorkflowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
MigrationWorkflow

The response received from the server.

GetMigrationWorkflow(GetMigrationWorkflowRequest, Metadata, DateTime?, CancellationToken)

public virtual MigrationWorkflow GetMigrationWorkflow(GetMigrationWorkflowRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a previously created migration workflow.

Parameters
NameDescription
requestGetMigrationWorkflowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
MigrationWorkflow

The response received from the server.

GetMigrationWorkflowAsync(GetMigrationWorkflowRequest, CallOptions)

public virtual AsyncUnaryCall<MigrationWorkflow> GetMigrationWorkflowAsync(GetMigrationWorkflowRequest request, CallOptions options)

Gets a previously created migration workflow.

Parameters
NameDescription
requestGetMigrationWorkflowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallMigrationWorkflow

The call object.

GetMigrationWorkflowAsync(GetMigrationWorkflowRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<MigrationWorkflow> GetMigrationWorkflowAsync(GetMigrationWorkflowRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a previously created migration workflow.

Parameters
NameDescription
requestGetMigrationWorkflowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallMigrationWorkflow

The call object.

ListMigrationSubtasks(ListMigrationSubtasksRequest, CallOptions)

public virtual ListMigrationSubtasksResponse ListMigrationSubtasks(ListMigrationSubtasksRequest request, CallOptions options)

Lists previously created migration subtasks.

Parameters
NameDescription
requestListMigrationSubtasksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListMigrationSubtasksResponse

The response received from the server.

ListMigrationSubtasks(ListMigrationSubtasksRequest, Metadata, DateTime?, CancellationToken)

public virtual ListMigrationSubtasksResponse ListMigrationSubtasks(ListMigrationSubtasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists previously created migration subtasks.

Parameters
NameDescription
requestListMigrationSubtasksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListMigrationSubtasksResponse

The response received from the server.

ListMigrationSubtasksAsync(ListMigrationSubtasksRequest, CallOptions)

public virtual AsyncUnaryCall<ListMigrationSubtasksResponse> ListMigrationSubtasksAsync(ListMigrationSubtasksRequest request, CallOptions options)

Lists previously created migration subtasks.

Parameters
NameDescription
requestListMigrationSubtasksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListMigrationSubtasksResponse

The call object.

ListMigrationSubtasksAsync(ListMigrationSubtasksRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListMigrationSubtasksResponse> ListMigrationSubtasksAsync(ListMigrationSubtasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists previously created migration subtasks.

Parameters
NameDescription
requestListMigrationSubtasksRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListMigrationSubtasksResponse

The call object.

ListMigrationWorkflows(ListMigrationWorkflowsRequest, CallOptions)

public virtual ListMigrationWorkflowsResponse ListMigrationWorkflows(ListMigrationWorkflowsRequest request, CallOptions options)

Lists previously created migration workflow.

Parameters
NameDescription
requestListMigrationWorkflowsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListMigrationWorkflowsResponse

The response received from the server.

ListMigrationWorkflows(ListMigrationWorkflowsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListMigrationWorkflowsResponse ListMigrationWorkflows(ListMigrationWorkflowsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists previously created migration workflow.

Parameters
NameDescription
requestListMigrationWorkflowsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListMigrationWorkflowsResponse

The response received from the server.

ListMigrationWorkflowsAsync(ListMigrationWorkflowsRequest, CallOptions)

public virtual AsyncUnaryCall<ListMigrationWorkflowsResponse> ListMigrationWorkflowsAsync(ListMigrationWorkflowsRequest request, CallOptions options)

Lists previously created migration workflow.

Parameters
NameDescription
requestListMigrationWorkflowsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListMigrationWorkflowsResponse

The call object.

ListMigrationWorkflowsAsync(ListMigrationWorkflowsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListMigrationWorkflowsResponse> ListMigrationWorkflowsAsync(ListMigrationWorkflowsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists previously created migration workflow.

Parameters
NameDescription
requestListMigrationWorkflowsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListMigrationWorkflowsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override MigrationService.MigrationServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
MigrationServiceMigrationServiceClient
Overrides

StartMigrationWorkflow(StartMigrationWorkflowRequest, CallOptions)

public virtual Empty StartMigrationWorkflow(StartMigrationWorkflowRequest request, CallOptions options)

Starts a previously created migration workflow. I.e., the state transitions from DRAFT to RUNNING. This is a no-op if the state is already RUNNING. An error will be signaled if the state is anything other than DRAFT or RUNNING.

Parameters
NameDescription
requestStartMigrationWorkflowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

StartMigrationWorkflow(StartMigrationWorkflowRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty StartMigrationWorkflow(StartMigrationWorkflowRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Starts a previously created migration workflow. I.e., the state transitions from DRAFT to RUNNING. This is a no-op if the state is already RUNNING. An error will be signaled if the state is anything other than DRAFT or RUNNING.

Parameters
NameDescription
requestStartMigrationWorkflowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

StartMigrationWorkflowAsync(StartMigrationWorkflowRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> StartMigrationWorkflowAsync(StartMigrationWorkflowRequest request, CallOptions options)

Starts a previously created migration workflow. I.e., the state transitions from DRAFT to RUNNING. This is a no-op if the state is already RUNNING. An error will be signaled if the state is anything other than DRAFT or RUNNING.

Parameters
NameDescription
requestStartMigrationWorkflowRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

StartMigrationWorkflowAsync(StartMigrationWorkflowRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> StartMigrationWorkflowAsync(StartMigrationWorkflowRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Starts a previously created migration workflow. I.e., the state transitions from DRAFT to RUNNING. This is a no-op if the state is already RUNNING. An error will be signaled if the state is anything other than DRAFT or RUNNING.

Parameters
NameDescription
requestStartMigrationWorkflowRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.