# BigQuery Migration V2 API - Class Google::Cloud::Bigquery::Migration::V2::MigrationService::Rest::ServiceStub (v0.21.0)

0.21.0 (latest) 0.20.0 0.19.0 0.18.0 0.17.1 0.16.0 0.15.1 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the BigQuery Migration V2 API class Google::Cloud::Bigquery::Migration::V2::MigrationService::Rest::ServiceStub.

REST service stub for the MigrationService service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #create_migration_workflow

    def create_migration_workflow(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow

Baseline implementation for the create_migration_workflow REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Bigquery::Migration::V2::CreateMigrationWorkflowRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-CreateMigrationWorkflowRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-MigrationWorkflow))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-MigrationWorkflow)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_migration_workflow

    def delete_migration_workflow(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_migration_workflow REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Bigquery::Migration::V2::DeleteMigrationWorkflowRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-DeleteMigrationWorkflowRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_migration_subtask

    def get_migration_subtask(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask

Baseline implementation for the get_migration_subtask REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Bigquery::Migration::V2::GetMigrationSubtaskRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-GetMigrationSubtaskRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-MigrationSubtask))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-MigrationSubtask)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_migration_workflow

    def get_migration_workflow(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow

Baseline implementation for the get_migration_workflow REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Bigquery::Migration::V2::GetMigrationWorkflowRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-GetMigrationWorkflowRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-MigrationWorkflow))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-MigrationWorkflow)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_migration_subtasks

    def list_migration_subtasks(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Migration::V2::ListMigrationSubtasksResponse

Baseline implementation for the list_migration_subtasks REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Bigquery::Migration::V2::ListMigrationSubtasksRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-ListMigrationSubtasksRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Bigquery::Migration::V2::ListMigrationSubtasksResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-ListMigrationSubtasksResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Bigquery::Migration::V2::ListMigrationSubtasksResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-ListMigrationSubtasksResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_migration_workflows

    def list_migration_workflows(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Bigquery::Migration::V2::ListMigrationWorkflowsResponse

Baseline implementation for the list_migration_workflows REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Bigquery::Migration::V2::ListMigrationWorkflowsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-ListMigrationWorkflowsRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Bigquery::Migration::V2::ListMigrationWorkflowsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-ListMigrationWorkflowsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Bigquery::Migration::V2::ListMigrationWorkflowsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-ListMigrationWorkflowsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #start_migration_workflow

    def start_migration_workflow(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the start_migration_workflow REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Bigquery::Migration::V2::StartMigrationWorkflowRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Cloud-Bigquery-Migration-V2-StartMigrationWorkflowRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-migration-v2/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)