org.ovirt.engine.sdk4.services.ExternalVmImportsService Maven / Gradle / Ivy
/*
Copyright (c) 2015 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.ovirt.engine.sdk4.services;
import java.io.IOException;
import org.ovirt.engine.sdk4.Request;
import org.ovirt.engine.sdk4.Response;
import org.ovirt.engine.sdk4.Service;
import org.ovirt.engine.sdk4.builders.ExternalVmImportBuilder;
import org.ovirt.engine.sdk4.types.ExternalVmImport;
/**
* Provides capability to import external virtual machines.
*/
public interface ExternalVmImportsService extends Service {
/**
* This operation is used to import a virtual machine from external hypervisor, such as KVM, XEN or VMware.
*
* For example import of a virtual machine from VMware can be facilitated using the following request:
*
* [source]
* ----
* POST /externalvmimports
* ----
*
* With request body of type <>, for example:
*
* [source,xml]
* ----
*
*
* my_vm
*
*
*
* vm_name_as_is_in_vmware
* true
* vmware_user
* 123456
* VMWARE
* vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1
*
*
* ----
*/
public interface AddRequest extends Request {
AddRequest import_(ExternalVmImport import_);
AddRequest import_(ExternalVmImportBuilder import_);
}
/**
* This operation is used to import a virtual machine from external hypervisor, such as KVM, XEN or VMware.
*
* For example import of a virtual machine from VMware can be facilitated using the following request:
*
* [source]
* ----
* POST /externalvmimports
* ----
*
* With request body of type <>, for example:
*
* [source,xml]
* ----
*
*
* my_vm
*
*
*
* vm_name_as_is_in_vmware
* true
* vmware_user
* 123456
* VMWARE
* vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1
*
*
* ----
*/
public interface AddResponse extends Response {
ExternalVmImport import_();
}
/**
* This operation is used to import a virtual machine from external hypervisor, such as KVM, XEN or VMware.
*
* For example import of a virtual machine from VMware can be facilitated using the following request:
*
* [source]
* ----
* POST /externalvmimports
* ----
*
* With request body of type <>, for example:
*
* [source,xml]
* ----
*
*
* my_vm
*
*
*
* vm_name_as_is_in_vmware
* true
* vmware_user
* 123456
* VMWARE
* vpx://wmware_user@vcenter-host/DataCenter/Cluster/esxi-host?no_verify=1
*
*
* ----
*/
AddRequest add();
/**
* Service locator method, returns individual service on which the URI is dispatched.
*/
Service service(String path);
}