Class: Google::Apis::VmmigrationV1::VMMigrationServiceService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::VmmigrationV1::VMMigrationServiceService
- Defined in:
- lib/google/apis/vmmigration_v1/service.rb
Overview
VM Migration API
Use the Migrate to Virtual Machines API to programmatically migrate workloads.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://vmmigration.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#add_group_migration(group, add_group_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Adds a MigratingVm to a Group.
-
#cancel_clone_job(name, cancel_clone_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates the cancellation of a running clone job.
-
#cancel_cutover_job(name, cancel_cutover_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates the cancellation of a running cutover job.
-
#cancel_disk_migration_job(name, cancel_disk_migration_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Cancels the disk migration job.
-
#cancel_image_import_job(name, cancel_image_import_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates the cancellation of a running ImageImportJob.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_group(parent, group_object = nil, group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new Group in a given project and location.
-
#create_project_location_image_import(parent, image_import_object = nil, image_import_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new ImageImport in a given project.
-
#create_project_location_source(parent, source_object = nil, request_id: nil, source_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new Source in a given project and location.
-
#create_project_location_source_datacenter_connector(parent, datacenter_connector_object = nil, datacenter_connector_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new DatacenterConnector in a given Source.
-
#create_project_location_source_disk_migration_job(parent, disk_migration_job_object = nil, disk_migration_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new disk migration job in a given Source.
-
#create_project_location_source_migrating_vm(parent, migrating_vm_object = nil, migrating_vm_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new MigratingVm in a given Source.
-
#create_project_location_source_migrating_vm_clone_job(parent, clone_job_object = nil, clone_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates a Clone of a specific migrating VM.
-
#create_project_location_source_migrating_vm_cutover_job(parent, cutover_job_object = nil, cutover_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates a Cutover of a specific migrating VM.
-
#create_project_location_source_utilization_report(parent, utilization_report_object = nil, request_id: nil, utilization_report_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new UtilizationReport.
-
#create_project_location_target_project(parent, target_project_object = nil, request_id: nil, target_project_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new TargetProject in a given project.
-
#delete_project_location_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single Group.
-
#delete_project_location_image_import(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single ImageImport.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Empty
Deletes a long-running operation.
-
#delete_project_location_source(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single Source.
-
#delete_project_location_source_datacenter_connector(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single DatacenterConnector.
-
#delete_project_location_source_disk_migration_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single DiskMigrationJob.
-
#delete_project_location_source_migrating_vm(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single MigratingVm.
-
#delete_project_location_source_utilization_report(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single Utilization Report.
-
#delete_project_location_target_project(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single TargetProject.
-
#extend_migrating_vm_migration(migrating_vm, extend_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Extend the migrating VM time to live.
-
#fetch_project_location_source_inventory(source, force_refresh: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::FetchInventoryResponse
List remote source's inventory of VMs.
-
#fetch_project_location_source_storage_inventory(source, force_refresh: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::FetchStorageInventoryResponse
List remote source's inventory of storage resources.
-
#finalize_migrating_vm_migration(migrating_vm, finalize_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Marks a migration as completed, deleting migration resources that are no longer being used.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Location
Gets information about a location.
-
#get_project_location_group(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Group
Gets details of a single Group.
-
#get_project_location_image_import(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ImageImport
Gets details of a single ImageImport.
-
#get_project_location_image_import_image_import_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ImageImportJob
Gets details of a single ImageImportJob.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_source(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Source
Gets details of a single Source.
-
#get_project_location_source_datacenter_connector(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::DatacenterConnector
Gets details of a single DatacenterConnector.
-
#get_project_location_source_disk_migration_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::DiskMigrationJob
Gets details of a single DiskMigrationJob.
-
#get_project_location_source_migrating_vm(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::MigratingVm
Gets details of a single MigratingVm.
-
#get_project_location_source_migrating_vm_clone_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::CloneJob
Gets details of a single CloneJob.
-
#get_project_location_source_migrating_vm_cutover_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::CutoverJob
Gets details of a single CutoverJob.
-
#get_project_location_source_migrating_vm_replication_cycle(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ReplicationCycle
Gets details of a single ReplicationCycle.
-
#get_project_location_source_utilization_report(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::UtilizationReport
Gets a single Utilization Report.
-
#get_project_location_target_project(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::TargetProject
Gets details of a single TargetProject.
-
#initialize ⇒ VMMigrationServiceService
constructor
A new instance of VMMigrationServiceService.
-
#list_project_location_groups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListGroupsResponse
Lists Groups in a given project and location.
-
#list_project_location_image_import_image_import_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListImageImportJobsResponse
Lists ImageImportJobs in a given project.
-
#list_project_location_image_imports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListImageImportsResponse
Lists ImageImports in a given project.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_source_datacenter_connectors(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListDatacenterConnectorsResponse
Lists DatacenterConnectors in a given Source.
-
#list_project_location_source_disk_migration_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListDiskMigrationJobsResponse
Lists DiskMigrationJobs in a given Source.
-
#list_project_location_source_migrating_vm_clone_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListCloneJobsResponse
Lists the CloneJobs of a migrating VM.
-
#list_project_location_source_migrating_vm_cutover_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListCutoverJobsResponse
Lists the CutoverJobs of a migrating VM.
-
#list_project_location_source_migrating_vm_replication_cycles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListReplicationCyclesResponse
Lists ReplicationCycles in a given MigratingVM.
-
#list_project_location_source_migrating_vms(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListMigratingVmsResponse
Lists MigratingVms in a given Source.
-
#list_project_location_source_utilization_reports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListUtilizationReportsResponse
Lists Utilization Reports of the given Source.
-
#list_project_location_sources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListSourcesResponse
Lists Sources in a given project and location.
-
#list_project_location_target_projects(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListTargetProjectsResponse
Lists TargetProjects in a given project.
-
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_group(name, group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single Group.
-
#patch_project_location_source(name, source_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single Source.
-
#patch_project_location_source_disk_migration_job(name, disk_migration_job_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single DiskMigrationJob.
-
#patch_project_location_source_migrating_vm(name, migrating_vm_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single MigratingVm.
-
#patch_project_location_target_project(name, target_project_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single TargetProject.
-
#pause_migrating_vm_migration(migrating_vm, pause_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Pauses a migration for a VM.
-
#remove_group_migration(group, remove_group_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Removes a MigratingVm from a Group.
-
#resume_migrating_vm_migration(migrating_vm, resume_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Resumes a migration for a VM.
-
#run_disk_migration_job(name, run_disk_migration_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Runs the disk migration job.
-
#start_migrating_vm_migration(migrating_vm, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Starts migration for a VM.
-
#upgrade_datacenter_connector_appliance(datacenter_connector, upgrade_appliance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.
Constructor Details
#initialize ⇒ VMMigrationServiceService
Returns a new instance of VMMigrationServiceService.
47 48 49 50 51 52 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-vmmigration_v1', client_version: Google::Apis::VmmigrationV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
45 46 47 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#add_group_migration(group, add_group_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Adds a MigratingVm to a Group.
156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 156 def add_group_migration(group, add_group_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+group}:addGroupMigration', ) command.request_representation = Google::Apis::VmmigrationV1::AddGroupMigrationRequest::Representation command.request_object = add_group_migration_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['group'] = group unless group.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_clone_job(name, cancel_clone_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates the cancellation of a running clone job.
2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2059 def cancel_clone_job(name, cancel_clone_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::VmmigrationV1::CancelCloneJobRequest::Representation command.request_object = cancel_clone_job_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_cutover_job(name, cancel_cutover_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates the cancellation of a running cutover job.
2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2217 def cancel_cutover_job(name, cancel_cutover_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::VmmigrationV1::CancelCutoverJobRequest::Representation command.request_object = cancel_cutover_job_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_disk_migration_job(name, cancel_disk_migration_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Cancels the disk migration job.
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1396 def cancel_disk_migration_job(name, cancel_disk_migration_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::VmmigrationV1::CancelDiskMigrationJobRequest::Representation command.request_object = cancel_disk_migration_job_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_image_import_job(name, cancel_image_import_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates the cancellation of a running ImageImportJob.
610 611 612 613 614 615 616 617 618 619 620 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 610 def cancel_image_import_job(name, cancel_image_import_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::VmmigrationV1::CancelImageImportJobRequest::Representation command.request_object = cancel_image_import_job_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1
, corresponding to Code.CANCELLED.
728 729 730 731 732 733 734 735 736 737 738 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 728 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::VmmigrationV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::VmmigrationV1::Empty::Representation command.response_class = Google::Apis::VmmigrationV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_group(parent, group_object = nil, group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new Group in a given project and location.
202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 202 def create_project_location_group(parent, group_object = nil, group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/groups', ) command.request_representation = Google::Apis::VmmigrationV1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['groupId'] = group_id unless group_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_image_import(parent, image_import_object = nil, image_import_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new ImageImport in a given project.
455 456 457 458 459 460 461 462 463 464 465 466 467 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 455 def create_project_location_image_import(parent, image_import_object = nil, image_import_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/imageImports', ) command.request_representation = Google::Apis::VmmigrationV1::ImageImport::Representation command.request_object = image_import_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['imageImportId'] = image_import_id unless image_import_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_source(parent, source_object = nil, request_id: nil, source_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new Source in a given project and location.
887 888 889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 887 def create_project_location_source(parent, source_object = nil, request_id: nil, source_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/sources', ) command.request_representation = Google::Apis::VmmigrationV1::Source::Representation command.request_object = source_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['sourceId'] = source_id unless source_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_source_datacenter_connector(parent, datacenter_connector_object = nil, datacenter_connector_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new DatacenterConnector in a given Source.
1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1208 def create_project_location_source_datacenter_connector(parent, datacenter_connector_object = nil, datacenter_connector_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/datacenterConnectors', ) command.request_representation = Google::Apis::VmmigrationV1::DatacenterConnector::Representation command.request_object = datacenter_connector_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['datacenterConnectorId'] = datacenter_connector_id unless datacenter_connector_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_source_disk_migration_job(parent, disk_migration_job_object = nil, disk_migration_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new disk migration job in a given Source.
1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1444 def create_project_location_source_disk_migration_job(parent, disk_migration_job_object = nil, disk_migration_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/diskMigrationJobs', ) command.request_representation = Google::Apis::VmmigrationV1::DiskMigrationJob::Representation command.request_object = disk_migration_job_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['diskMigrationJobId'] = disk_migration_job_id unless disk_migration_job_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_source_migrating_vm(parent, migrating_vm_object = nil, migrating_vm_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new MigratingVm in a given Source.
1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1686 def (parent, = nil, migrating_vm_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/migratingVms', ) command.request_representation = Google::Apis::VmmigrationV1::MigratingVm::Representation command.request_object = command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['migratingVmId'] = unless .nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_source_migrating_vm_clone_job(parent, clone_job_object = nil, clone_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates a Clone of a specific migrating VM.
2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2105 def (parent, clone_job_object = nil, clone_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/cloneJobs', ) command.request_representation = Google::Apis::VmmigrationV1::CloneJob::Representation command.request_object = clone_job_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['cloneJobId'] = clone_job_id unless clone_job_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_source_migrating_vm_cutover_job(parent, cutover_job_object = nil, cutover_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Initiates a Cutover of a specific migrating VM. The returned LRO is completed when the cutover job resource is created and the job is initiated.
2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2264 def (parent, cutover_job_object = nil, cutover_job_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/cutoverJobs', ) command.request_representation = Google::Apis::VmmigrationV1::CutoverJob::Representation command.request_object = cutover_job_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['cutoverJobId'] = cutover_job_id unless cutover_job_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_source_utilization_report(parent, utilization_report_object = nil, request_id: nil, utilization_report_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new UtilizationReport.
2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2470 def create_project_location_source_utilization_report(parent, utilization_report_object = nil, request_id: nil, utilization_report_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/utilizationReports', ) command.request_representation = Google::Apis::VmmigrationV1::UtilizationReport::Representation command.request_object = utilization_report_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['utilizationReportId'] = utilization_report_id unless utilization_report_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_target_project(parent, target_project_object = nil, request_id: nil, target_project_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Creates a new TargetProject in a given project. NOTE: TargetProject is a
global resource; hence the only supported value for location is global.
2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2644 def create_project_location_target_project(parent, target_project_object = nil, request_id: nil, target_project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/targetProjects', ) command.request_representation = Google::Apis::VmmigrationV1::TargetProject::Representation command.request_object = target_project_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['parent'] = parent unless parent.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['targetProjectId'] = target_project_id unless target_project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single Group.
247 248 249 250 251 252 253 254 255 256 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 247 def delete_project_location_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_image_import(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single ImageImport.
500 501 502 503 504 505 506 507 508 509 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 500 def delete_project_location_image_import(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
763 764 765 766 767 768 769 770 771 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 763 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Empty::Representation command.response_class = Google::Apis::VmmigrationV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_source(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single Source.
932 933 934 935 936 937 938 939 940 941 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 932 def delete_project_location_source(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_source_datacenter_connector(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single DatacenterConnector.
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1253 def delete_project_location_source_datacenter_connector(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_source_disk_migration_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single DiskMigrationJob.
1478 1479 1480 1481 1482 1483 1484 1485 1486 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1478 def delete_project_location_source_disk_migration_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_source_migrating_vm(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single MigratingVm.
1720 1721 1722 1723 1724 1725 1726 1727 1728 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1720 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_source_utilization_report(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single Utilization Report.
2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2515 def delete_project_location_source_utilization_report(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_target_project(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Deletes a single TargetProject. NOTE: TargetProject is a global resource;
hence the only supported value for location is global.
2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2690 def delete_project_location_target_project(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#extend_migrating_vm_migration(migrating_vm, extend_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Extend the migrating VM time to live.
1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1751 def (, extend_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+migratingVm}:extendMigration', ) command.request_representation = Google::Apis::VmmigrationV1::ExtendMigrationRequest::Representation command.request_object = extend_migration_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['migratingVm'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#fetch_project_location_source_inventory(source, force_refresh: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::FetchInventoryResponse
List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 980 def fetch_project_location_source_inventory(source, force_refresh: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+source}:fetchInventory', ) command.response_representation = Google::Apis::VmmigrationV1::FetchInventoryResponse::Representation command.response_class = Google::Apis::VmmigrationV1::FetchInventoryResponse command.params['source'] = source unless source.nil? command.query['forceRefresh'] = force_refresh unless force_refresh.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#fetch_project_location_source_storage_inventory(source, force_refresh: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::FetchStorageInventoryResponse
List remote source's inventory of storage resources. The remote source is another cloud vendor (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that source. Note that this operation lists the resources on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.
1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1030 def fetch_project_location_source_storage_inventory(source, force_refresh: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+source}:fetchStorageInventory', ) command.response_representation = Google::Apis::VmmigrationV1::FetchStorageInventoryResponse::Representation command.response_class = Google::Apis::VmmigrationV1::FetchStorageInventoryResponse command.params['source'] = source unless source.nil? command.query['forceRefresh'] = force_refresh unless force_refresh.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#finalize_migrating_vm_migration(migrating_vm, finalize_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1785 def (, finalize_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+migratingVm}:finalizeMigration', ) command.request_representation = Google::Apis::VmmigrationV1::FinalizeMigrationRequest::Representation command.request_object = finalize_migration_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['migratingVm'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Location
Gets information about a location.
74 75 76 77 78 79 80 81 82 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 74 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Location::Representation command.response_class = Google::Apis::VmmigrationV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_group(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Group
Gets details of a single Group.
278 279 280 281 282 283 284 285 286 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 278 def get_project_location_group(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Group::Representation command.response_class = Google::Apis::VmmigrationV1::Group command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_image_import(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ImageImport
Gets details of a single ImageImport.
531 532 533 534 535 536 537 538 539 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 531 def get_project_location_image_import(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::ImageImport::Representation command.response_class = Google::Apis::VmmigrationV1::ImageImport command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_image_import_image_import_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ImageImportJob
Gets details of a single ImageImportJob.
642 643 644 645 646 647 648 649 650 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 642 def get_project_location_image_import_image_import_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::ImageImportJob::Representation command.response_class = Google::Apis::VmmigrationV1::ImageImportJob command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
794 795 796 797 798 799 800 801 802 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 794 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_source(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Source
Gets details of a single Source.
1064 1065 1066 1067 1068 1069 1070 1071 1072 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1064 def get_project_location_source(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::Source::Representation command.response_class = Google::Apis::VmmigrationV1::Source command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_source_datacenter_connector(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::DatacenterConnector
Gets details of a single DatacenterConnector.
1284 1285 1286 1287 1288 1289 1290 1291 1292 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1284 def get_project_location_source_datacenter_connector(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::DatacenterConnector::Representation command.response_class = Google::Apis::VmmigrationV1::DatacenterConnector command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_source_disk_migration_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::DiskMigrationJob
Gets details of a single DiskMigrationJob.
1508 1509 1510 1511 1512 1513 1514 1515 1516 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1508 def get_project_location_source_disk_migration_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::DiskMigrationJob::Representation command.response_class = Google::Apis::VmmigrationV1::DiskMigrationJob command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_source_migrating_vm(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::MigratingVm
Gets details of a single MigratingVm.
1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1819 def (name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::MigratingVm::Representation command.response_class = Google::Apis::VmmigrationV1::MigratingVm command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_source_migrating_vm_clone_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::CloneJob
Gets details of a single CloneJob.
2139 2140 2141 2142 2143 2144 2145 2146 2147 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2139 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::CloneJob::Representation command.response_class = Google::Apis::VmmigrationV1::CloneJob command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_source_migrating_vm_cutover_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::CutoverJob
Gets details of a single CutoverJob.
2298 2299 2300 2301 2302 2303 2304 2305 2306 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2298 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::CutoverJob::Representation command.response_class = Google::Apis::VmmigrationV1::CutoverJob command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_source_migrating_vm_replication_cycle(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ReplicationCycle
Gets details of a single ReplicationCycle.
2376 2377 2378 2379 2380 2381 2382 2383 2384 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2376 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::ReplicationCycle::Representation command.response_class = Google::Apis::VmmigrationV1::ReplicationCycle command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_source_utilization_report(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::UtilizationReport
Gets a single Utilization Report.
2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2548 def get_project_location_source_utilization_report(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::UtilizationReport::Representation command.response_class = Google::Apis::VmmigrationV1::UtilizationReport command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_target_project(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::TargetProject
Gets details of a single TargetProject. NOTE: TargetProject is a global
resource; hence the only supported value for location is global.
2722 2723 2724 2725 2726 2727 2728 2729 2730 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2722 def get_project_location_target_project(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1::TargetProject::Representation command.response_class = Google::Apis::VmmigrationV1::TargetProject command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_groups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListGroupsResponse
Lists Groups in a given project and location.
320 321 322 323 324 325 326 327 328 329 330 331 332 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 320 def list_project_location_groups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/groups', ) command.response_representation = Google::Apis::VmmigrationV1::ListGroupsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListGroupsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_image_import_image_import_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListImageImportJobsResponse
Lists ImageImportJobs in a given project.
686 687 688 689 690 691 692 693 694 695 696 697 698 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 686 def list_project_location_image_import_image_import_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/imageImportJobs', ) command.response_representation = Google::Apis::VmmigrationV1::ListImageImportJobsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListImageImportJobsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_image_imports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListImageImportsResponse
Lists ImageImports in a given project.
575 576 577 578 579 580 581 582 583 584 585 586 587 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 575 def list_project_location_image_imports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/imageImports', ) command.response_representation = Google::Apis::VmmigrationV1::ListImageImportsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListImageImportsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
839 840 841 842 843 844 845 846 847 848 849 850 851 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 839 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', ) command.response_representation = Google::Apis::VmmigrationV1::ListOperationsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_source_datacenter_connectors(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListDatacenterConnectorsResponse
Lists DatacenterConnectors in a given Source.
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1327 def list_project_location_source_datacenter_connectors(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/datacenterConnectors', ) command.response_representation = Google::Apis::VmmigrationV1::ListDatacenterConnectorsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListDatacenterConnectorsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_source_disk_migration_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListDiskMigrationJobsResponse
Lists DiskMigrationJobs in a given Source.
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1552 def list_project_location_source_disk_migration_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/diskMigrationJobs', ) command.response_representation = Google::Apis::VmmigrationV1::ListDiskMigrationJobsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListDiskMigrationJobsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_source_migrating_vm_clone_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListCloneJobsResponse
Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.
2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2182 def (parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/cloneJobs', ) command.response_representation = Google::Apis::VmmigrationV1::ListCloneJobsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListCloneJobsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_source_migrating_vm_cutover_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListCutoverJobsResponse
Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.
2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2342 def (parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/cutoverJobs', ) command.response_representation = Google::Apis::VmmigrationV1::ListCutoverJobsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListCutoverJobsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_source_migrating_vm_replication_cycles(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListReplicationCyclesResponse
Lists ReplicationCycles in a given MigratingVM.
2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2419 def (parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/replicationCycles', ) command.response_representation = Google::Apis::VmmigrationV1::ListReplicationCyclesResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListReplicationCyclesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_source_migrating_vms(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListMigratingVmsResponse
Lists MigratingVms in a given Source.
1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1866 def (parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/migratingVms', ) command.response_representation = Google::Apis::VmmigrationV1::ListMigratingVmsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListMigratingVmsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_source_utilization_reports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListUtilizationReportsResponse
Lists Utilization Reports of the given Source.
2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2594 def list_project_location_source_utilization_reports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/utilizationReports', ) command.response_representation = Google::Apis::VmmigrationV1::ListUtilizationReportsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListUtilizationReportsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_sources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListSourcesResponse
Lists Sources in a given project and location.
1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1106 def list_project_location_sources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/sources', ) command.response_representation = Google::Apis::VmmigrationV1::ListSourcesResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListSourcesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_target_projects(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListTargetProjectsResponse
Lists TargetProjects in a given project. NOTE: TargetProject is a global
resource; hence the only supported value for location is global.
2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2765 def list_project_location_target_projects(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/targetProjects', ) command.response_representation = Google::Apis::VmmigrationV1::ListTargetProjectsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListTargetProjectsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::ListLocationsResponse
Lists information about the supported locations for this service. This method
can be called in two ways: * List all public locations: Use the path GET /
v1/locations. * List project-visible locations: Use the path GET /v1/
projects/project_id/locations. This may include public locations as well as
private or other locations specifically visible to the project.
121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 121 def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', ) command.response_representation = Google::Apis::VmmigrationV1::ListLocationsResponse::Representation command.response_class = Google::Apis::VmmigrationV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_group(name, group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single Group.
372 373 374 375 376 377 378 379 380 381 382 383 384 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 372 def patch_project_location_group(name, group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmmigrationV1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_source(name, source_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single Source.
1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1158 def patch_project_location_source(name, source_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmmigrationV1::Source::Representation command.request_object = source_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_source_disk_migration_job(name, disk_migration_job_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single DiskMigrationJob.
1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1605 def patch_project_location_source_disk_migration_job(name, disk_migration_job_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmmigrationV1::DiskMigrationJob::Representation command.request_object = disk_migration_job_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_source_migrating_vm(name, migrating_vm_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single MigratingVm.
1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1919 def (name, = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmmigrationV1::MigratingVm::Representation command.request_object = command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_target_project(name, target_project_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Updates the parameters of a single TargetProject. NOTE: TargetProject is a
global resource; hence the only supported value for location is global.
2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2818 def patch_project_location_target_project(name, target_project_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmmigrationV1::TargetProject::Representation command.request_object = target_project_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#pause_migrating_vm_migration(migrating_vm, pause_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused.
1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1956 def (, pause_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+migratingVm}:pauseMigration', ) command.request_representation = Google::Apis::VmmigrationV1::PauseMigrationRequest::Representation command.request_object = pause_migration_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['migratingVm'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_group_migration(group, remove_group_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Removes a MigratingVm from a Group.
407 408 409 410 411 412 413 414 415 416 417 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 407 def remove_group_migration(group, remove_group_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+group}:removeGroupMigration', ) command.request_representation = Google::Apis::VmmigrationV1::RemoveGroupMigrationRequest::Representation command.request_object = remove_group_migration_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['group'] = group unless group.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#resume_migrating_vm_migration(migrating_vm, resume_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots.
1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1992 def (, resume_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+migratingVm}:resumeMigration', ) command.request_representation = Google::Apis::VmmigrationV1::ResumeMigrationRequest::Representation command.request_object = resume_migration_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['migratingVm'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#run_disk_migration_job(name, run_disk_migration_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Runs the disk migration job.
1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1640 def run_disk_migration_job(name, run_disk_migration_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:run', ) command.request_representation = Google::Apis::VmmigrationV1::RunDiskMigrationJobRequest::Representation command.request_object = run_disk_migration_job_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#start_migrating_vm_migration(migrating_vm, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 2026 def (, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+migratingVm}:startMigration', ) command.request_representation = Google::Apis::VmmigrationV1::StartMigrationRequest::Representation command.request_object = start_migration_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['migratingVm'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upgrade_datacenter_connector_appliance(datacenter_connector, upgrade_appliance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1::Operation
Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.
1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 |
# File 'lib/google/apis/vmmigration_v1/service.rb', line 1363 def upgrade_datacenter_connector_appliance(datacenter_connector, upgrade_appliance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+datacenterConnector}:upgradeAppliance', ) command.request_representation = Google::Apis::VmmigrationV1::UpgradeApplianceRequest::Representation command.request_object = upgrade_appliance_request_object command.response_representation = Google::Apis::VmmigrationV1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1::Operation command.params['datacenterConnector'] = datacenter_connector unless datacenter_connector.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |