Class InstanceTypeServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.InstanceTypeServiceImpl
-
- All Implemented Interfaces:
Service
,InstanceTypeService
public class InstanceTypeServiceImpl extends ServiceImpl implements InstanceTypeService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.InstanceTypeService
InstanceTypeService.GetRequest, InstanceTypeService.GetResponse, InstanceTypeService.RemoveRequest, InstanceTypeService.RemoveResponse, InstanceTypeService.UpdateRequest, InstanceTypeService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description InstanceTypeServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceTypeService.GetRequest
get()
Get a specific instance type and it's attributes.InstanceTypeGraphicsConsolesService
graphicsConsolesService()
Reference to the service that manages the graphic consoles that are attached to this instance type.InstanceTypeNicsService
nicsService()
Reference to the service that manages the NICs that are attached to this instance type.InstanceTypeService.RemoveRequest
remove()
Removes a specific instance type from the system.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
InstanceTypeService.UpdateRequest
update()
Update a specific instance type and it's attributes.InstanceTypeWatchdogsService
watchdogsService()
Reference to the service that manages the watchdogs that are attached to this instance type.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
InstanceTypeServiceImpl
public InstanceTypeServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public InstanceTypeService.GetRequest get()
Description copied from interface:InstanceTypeService
Get a specific instance type and it's attributes. [source] ---- GET /ovirt-engine/api/instancetypes/123 ----- Specified by:
get
in interfaceInstanceTypeService
-
remove
public InstanceTypeService.RemoveRequest remove()
Description copied from interface:InstanceTypeService
Removes a specific instance type from the system. If a virtual machine was created using an instance type X after removal of the instance type the virtual machine's instance type will be set to `custom`. [source] ---- DELETE /ovirt-engine/api/instancetypes/123 ----- Specified by:
remove
in interfaceInstanceTypeService
-
update
public InstanceTypeService.UpdateRequest update()
Description copied from interface:InstanceTypeService
Update a specific instance type and it's attributes. All the attributes are editable after creation. If a virtual machine was created using an instance type X and some configuration in instance type X was updated, the virtual machine's configuration will be updated automatically by the engine. [source] ---- PUT /ovirt-engine/api/instancetypes/123 ---- For example, to update the memory of instance type `123` to 1 GiB and set the cpu topology to 2 sockets and 1 core, send a request like this: [source, xml] ----1073741824 1 2 1 - Specified by:
update
in interfaceInstanceTypeService
-
graphicsConsolesService
public InstanceTypeGraphicsConsolesService graphicsConsolesService()
Description copied from interface:InstanceTypeService
Reference to the service that manages the graphic consoles that are attached to this instance type.- Specified by:
graphicsConsolesService
in interfaceInstanceTypeService
-
nicsService
public InstanceTypeNicsService nicsService()
Description copied from interface:InstanceTypeService
Reference to the service that manages the NICs that are attached to this instance type.- Specified by:
nicsService
in interfaceInstanceTypeService
-
watchdogsService
public InstanceTypeWatchdogsService watchdogsService()
Description copied from interface:InstanceTypeService
Reference to the service that manages the watchdogs that are attached to this instance type.- Specified by:
watchdogsService
in interfaceInstanceTypeService
-
service
public Service service(String path)
Description copied from interface:InstanceTypeService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceInstanceTypeService
-
-