Migrate for Compute Engine V1 API - Class Google::Cloud::VMMigration::V1::VMMigration::Rest::ServiceStub (v0.6.0)

Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Cloud::VMMigration::V1::VMMigration::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#add_group_migration

def add_group_migration(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the add_group_migration REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#cancel_clone_job

def cancel_clone_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the cancel_clone_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#cancel_cutover_job

def cancel_cutover_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the cancel_cutover_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_clone_job

def create_clone_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_clone_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_cutover_job

def create_cutover_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_cutover_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_datacenter_connector

def create_datacenter_connector(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_datacenter_connector REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_group

def create_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_group REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_migrating_vm

def create_migrating_vm(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_migrating_vm REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_source

def create_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_target_project

def create_target_project(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_target_project REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_utilization_report

def create_utilization_report(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_utilization_report REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_datacenter_connector

def delete_datacenter_connector(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_datacenter_connector REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_group

def delete_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_group REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_migrating_vm

def delete_migrating_vm(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_migrating_vm REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_source

def delete_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_target_project

def delete_target_project(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_target_project REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_utilization_report

def delete_utilization_report(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_utilization_report REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#fetch_inventory

def fetch_inventory(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::FetchInventoryResponse

Baseline implementation for the fetch_inventory REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#finalize_migration

def finalize_migration(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the finalize_migration REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_clone_job

def get_clone_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::CloneJob

Baseline implementation for the get_clone_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_cutover_job

def get_cutover_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::CutoverJob

Baseline implementation for the get_cutover_job REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_datacenter_connector

def get_datacenter_connector(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::DatacenterConnector

Baseline implementation for the get_datacenter_connector REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_group

def get_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::Group

Baseline implementation for the get_group REST call

Parameters
  • request_pb (::Google::Cloud::VMMigration::V1::GetGroupRequest) — 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
Returns
Raises
  • (::ArgumentError)

#get_migrating_vm

def get_migrating_vm(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::MigratingVm

Baseline implementation for the get_migrating_vm REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_replication_cycle

def get_replication_cycle(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ReplicationCycle

Baseline implementation for the get_replication_cycle REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_source

def get_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::Source

Baseline implementation for the get_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_target_project

def get_target_project(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::TargetProject

Baseline implementation for the get_target_project REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_utilization_report

def get_utilization_report(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::UtilizationReport

Baseline implementation for the get_utilization_report REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#list_clone_jobs

def list_clone_jobs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ListCloneJobsResponse

Baseline implementation for the list_clone_jobs REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_cutover_jobs

def list_cutover_jobs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ListCutoverJobsResponse

Baseline implementation for the list_cutover_jobs REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_datacenter_connectors

def list_datacenter_connectors(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ListDatacenterConnectorsResponse

Baseline implementation for the list_datacenter_connectors REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_groups

def list_groups(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ListGroupsResponse

Baseline implementation for the list_groups REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_migrating_vms

def list_migrating_vms(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ListMigratingVmsResponse

Baseline implementation for the list_migrating_vms REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_replication_cycles

def list_replication_cycles(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ListReplicationCyclesResponse

Baseline implementation for the list_replication_cycles REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_sources

def list_sources(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ListSourcesResponse

Baseline implementation for the list_sources REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_target_projects

def list_target_projects(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ListTargetProjectsResponse

Baseline implementation for the list_target_projects REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_utilization_reports

def list_utilization_reports(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::VMMigration::V1::ListUtilizationReportsResponse

Baseline implementation for the list_utilization_reports REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#pause_migration

def pause_migration(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the pause_migration REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#remove_group_migration

def remove_group_migration(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the remove_group_migration REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#resume_migration

def resume_migration(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the resume_migration REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#start_migration

def start_migration(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the start_migration REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_group

def update_group(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_group REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_migrating_vm

def update_migrating_vm(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_migrating_vm REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_source

def update_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_target_project

def update_target_project(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_target_project REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#upgrade_appliance

def upgrade_appliance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the upgrade_appliance REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)