Class: Google::Apis::VmmigrationV1alpha1::VMMigrationServiceService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::VmmigrationV1alpha1::VMMigrationServiceService
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/service.rb
Overview
VM Migration API
Use the Migrate for Compute Engine API to programmatically migrate workloads.
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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Initiates the cancellation of a running cutover job.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Creates a new Group in a given project and location.
-
#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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Creates a new DatacenterConnector 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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Deletes a single Group.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Deletes a single DatacenterConnector.
-
#delete_project_location_source_migrating_vm(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Deletes a single TargetProject.
-
#fetch_project_location_source_inventory(source, force_refresh: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::FetchInventoryResponse
List remote source's inventory of VMs.
-
#finalize_migrating_vm_migration(migrating_vm, finalize_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Location
Gets information about a location.
-
#get_project_location_group(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::Group
Gets details of a single Group.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::DatacenterConnector
Gets details of a single DatacenterConnector.
-
#get_project_location_source_migrating_vm(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::CutoverJob
Gets details of a single CutoverJob.
-
#get_project_location_source_utilization_report(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::UtilizationReport
Gets a single Utilization Report.
-
#get_project_location_target_project(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::ListGroupsResponse
Lists Groups in a given project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::ListDatacenterConnectorsResponse
Lists DatacenterConnectors 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::VmmigrationV1alpha1::ListCloneJobsResponse
Lists CloneJobs of a given 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::VmmigrationV1alpha1::ListCutoverJobsResponse
Lists CutoverJobs of a given migrating VM.
-
#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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::ListTargetProjectsResponse
Lists TargetProjects in a given project.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Updates the parameters of a single Source.
-
#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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Resumes a migration for a VM.
-
#start_migrating_vm_migration(migrating_vm, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.
Constructor Details
#initialize ⇒ VMMigrationServiceService
Returns a new instance of VMMigrationServiceService.
45 46 47 48 49 50 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 45 def initialize super('https://vmmigration.googleapis.com/', '', client_name: 'google-apis-vmmigration_v1alpha1', client_version: Google::Apis::VmmigrationV1alpha1::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.
38 39 40 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 38 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.
43 44 45 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 43 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::VmmigrationV1alpha1::Operation
Adds a MigratingVm to a Group.
146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 146 def add_group_migration(group, add_group_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+group}:addGroupMigration', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::AddGroupMigrationRequest::Representation command.request_object = add_group_migration_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Initiates the cancellation of a running clone job.
1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1392 def cancel_clone_job(name, cancel_clone_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::CancelCloneJobRequest::Representation command.request_object = cancel_clone_job_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Initiates the cancellation of a running cutover job.
1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1549 def cancel_cutover_job(name, cancel_cutover_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::CancelCutoverJobRequest::Representation command.request_object = cancel_cutover_job_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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.
437 438 439 440 441 442 443 444 445 446 447 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 437 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Empty::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Creates a new Group in a given project and location.
192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 192 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, 'v1alpha1/{+parent}/groups', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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_source(parent, source_object = nil, request_id: nil, source_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::Operation
Creates a new Source in a given project and location.
593 594 595 596 597 598 599 600 601 602 603 604 605 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 593 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, 'v1alpha1/{+parent}/sources', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::Source::Representation command.request_object = source_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Creates a new DatacenterConnector in a given Source.
851 852 853 854 855 856 857 858 859 860 861 862 863 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 851 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, 'v1alpha1/{+parent}/datacenterConnectors', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::DatacenterConnector::Representation command.request_object = datacenter_connector_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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_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::VmmigrationV1alpha1::Operation
Creates a new MigratingVm in a given Source.
1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1052 def (parent, = nil, migrating_vm_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+parent}/migratingVms', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::MigratingVm::Representation command.request_object = command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Initiates a Clone of a specific migrating VM.
1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1438 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, 'v1alpha1/{+parent}/cloneJobs', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::CloneJob::Representation command.request_object = clone_job_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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.
1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1596 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, 'v1alpha1/{+parent}/cutoverJobs', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::CutoverJob::Representation command.request_object = cutover_job_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Creates a new UtilizationReport.
1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1724 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, 'v1alpha1/{+parent}/utilizationReports', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::UtilizationReport::Representation command.request_object = utilization_report_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Creates a new TargetProject in a given project. NOTE: TargetProject is a
global resource; hence the only supported value for location is global.
1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1898 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, 'v1alpha1/{+parent}/targetProjects', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::TargetProject::Representation command.request_object = target_project_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Deletes a single Group.
237 238 239 240 241 242 243 244 245 246 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 237 def delete_project_location_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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.
472 473 474 475 476 477 478 479 480 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 472 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Empty::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Deletes a single Source.
638 639 640 641 642 643 644 645 646 647 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 638 def delete_project_location_source(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Deletes a single DatacenterConnector.
896 897 898 899 900 901 902 903 904 905 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 896 def delete_project_location_source_datacenter_connector(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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_migrating_vm(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::Operation
Deletes a single MigratingVm.
1086 1087 1088 1089 1090 1091 1092 1093 1094 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1086 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Deletes a single Utilization Report.
1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1769 def delete_project_location_source_utilization_report(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Deletes a single TargetProject. NOTE: TargetProject is a global resource;
hence the only supported value for location is global.
1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1944 def delete_project_location_target_project(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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 |
#fetch_project_location_source_inventory(source, force_refresh: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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.
676 677 678 679 680 681 682 683 684 685 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 676 def fetch_project_location_source_inventory(source, force_refresh: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+source}:fetchInventory', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::FetchInventoryResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::FetchInventoryResponse command.params['source'] = source unless source.nil? command.query['forceRefresh'] = force_refresh unless force_refresh.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::VmmigrationV1alpha1::Operation
Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1118 def (, finalize_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+migratingVm}:finalizeMigration', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::FinalizeMigrationRequest::Representation command.request_object = finalize_migration_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Location
Gets information about a location.
72 73 74 75 76 77 78 79 80 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 72 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Location::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Group
Gets details of a single Group.
268 269 270 271 272 273 274 275 276 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 268 def get_project_location_group(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Group::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::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.
503 504 505 506 507 508 509 510 511 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 503 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Source
Gets details of a single Source.
707 708 709 710 711 712 713 714 715 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 707 def get_project_location_source(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::Source::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::DatacenterConnector
Gets details of a single DatacenterConnector.
927 928 929 930 931 932 933 934 935 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 927 def get_project_location_source_datacenter_connector(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::DatacenterConnector::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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_migrating_vm(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::MigratingVm
Gets details of a single MigratingVm.
1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1152 def (name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::MigratingVm::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::CloneJob
Gets details of a single CloneJob.
1472 1473 1474 1475 1476 1477 1478 1479 1480 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1472 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::CloneJob::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::CutoverJob
Gets details of a single CutoverJob.
1630 1631 1632 1633 1634 1635 1636 1637 1638 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1630 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::CutoverJob::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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_utilization_report(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::UtilizationReport
Gets a single Utilization Report.
1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1802 def get_project_location_source_utilization_report(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::UtilizationReport::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::TargetProject
Gets details of a single TargetProject. NOTE: TargetProject is a global
resource; hence the only supported value for location is global.
1976 1977 1978 1979 1980 1981 1982 1983 1984 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1976 def get_project_location_target_project(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::TargetProject::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::ListGroupsResponse
Lists Groups in a given project and location.
310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 310 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, 'v1alpha1/{+parent}/groups', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListGroupsResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED. NOTE: the name
binding allows API services to override the binding to use different resource
name schemes, such as users/*/operations. To override the binding, API
services can add a binding such as "/v1/name=users/*/operations" to their
service configuration. For backwards compatibility, the default name includes
the operations collection id, however overriding users must ensure the name
binding is the parent resource, without the operations collection id.
546 547 548 549 550 551 552 553 554 555 556 557 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 546 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}/operations', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListOperationsResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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['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::VmmigrationV1alpha1::ListDatacenterConnectorsResponse
Lists DatacenterConnectors in a given Source.
970 971 972 973 974 975 976 977 978 979 980 981 982 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 970 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, 'v1alpha1/{+parent}/datacenterConnectors', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListDatacenterConnectorsResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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_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::VmmigrationV1alpha1::ListCloneJobsResponse
Lists CloneJobs of a given migrating VM.
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1514 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, 'v1alpha1/{+parent}/cloneJobs', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListCloneJobsResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::ListCutoverJobsResponse
Lists CutoverJobs of a given migrating VM.
1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1673 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, 'v1alpha1/{+parent}/cutoverJobs', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListCutoverJobsResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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_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::VmmigrationV1alpha1::ListMigratingVmsResponse
Lists MigratingVms in a given Source.
1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1199 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, 'v1alpha1/{+parent}/migratingVms', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListMigratingVmsResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::ListUtilizationReportsResponse
Lists Utilization Reports of the given Source.
1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1848 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, 'v1alpha1/{+parent}/utilizationReports', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListUtilizationReportsResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::ListSourcesResponse
Lists Sources in a given project and location.
749 750 751 752 753 754 755 756 757 758 759 760 761 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 749 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, 'v1alpha1/{+parent}/sources', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListSourcesResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::ListTargetProjectsResponse
Lists TargetProjects in a given project. NOTE: TargetProject is a global
resource; hence the only supported value for location is global.
2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 2019 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, 'v1alpha1/{+parent}/targetProjects', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListTargetProjectsResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::ListLocationsResponse
Lists information about the supported locations for this service.
112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 112 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha1/{+name}/locations', ) command.response_representation = Google::Apis::VmmigrationV1alpha1::ListLocationsResponse::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::ListLocationsResponse 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['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::VmmigrationV1alpha1::Operation
Updates the parameters of a single Group.
362 363 364 365 366 367 368 369 370 371 372 373 374 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 362 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, 'v1alpha1/{+name}', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::Group::Representation command.request_object = group_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Updates the parameters of a single Source.
801 802 803 804 805 806 807 808 809 810 811 812 813 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 801 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, 'v1alpha1/{+name}', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::Source::Representation command.request_object = source_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Updates the parameters of a single MigratingVm.
1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1252 def (name, = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1alpha1/{+name}', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::MigratingVm::Representation command.request_object = command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Updates the parameters of a single TargetProject. NOTE: TargetProject is a
global resource; hence the only supported value for location is global.
2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 2072 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, 'v1alpha1/{+name}', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::TargetProject::Representation command.request_object = target_project_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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.
1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1289 def (, pause_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+migratingVm}:pauseMigration', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::PauseMigrationRequest::Representation command.request_object = pause_migration_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Removes a MigratingVm from a Group.
397 398 399 400 401 402 403 404 405 406 407 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 397 def remove_group_migration(group, remove_group_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+group}:removeGroupMigration', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::RemoveGroupMigrationRequest::Representation command.request_object = remove_group_migration_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::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.
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1325 def (, resume_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+migratingVm}:resumeMigration', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::ResumeMigrationRequest::Representation command.request_object = resume_migration_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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 |
#start_migrating_vm_migration(migrating_vm, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmmigrationV1alpha1::Operation
Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.
1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1359 def (, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha1/{+migratingVm}:startMigration', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::StartMigrationRequest::Representation command.request_object = start_migration_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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::VmmigrationV1alpha1::Operation
Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 |
# File 'lib/google/apis/vmmigration_v1alpha1/service.rb', line 1006 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, 'v1alpha1/{+datacenterConnector}:upgradeAppliance', ) command.request_representation = Google::Apis::VmmigrationV1alpha1::UpgradeApplianceRequest::Representation command.request_object = upgrade_appliance_request_object command.response_representation = Google::Apis::VmmigrationV1alpha1::Operation::Representation command.response_class = Google::Apis::VmmigrationV1alpha1::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 |