Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
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 java.util.List;
import org.ovirt.engine.sdk4.Request;
import org.ovirt.engine.sdk4.Response;
import org.ovirt.engine.sdk4.Service;
import org.ovirt.engine.sdk4.builders.ClusterBuilder;
import org.ovirt.engine.sdk4.builders.DiskBuilder;
import org.ovirt.engine.sdk4.builders.HostBuilder;
import org.ovirt.engine.sdk4.builders.SnapshotBuilder;
import org.ovirt.engine.sdk4.builders.StorageDomainBuilder;
import org.ovirt.engine.sdk4.builders.TicketBuilder;
import org.ovirt.engine.sdk4.builders.VmBuilder;
import org.ovirt.engine.sdk4.types.Cluster;
import org.ovirt.engine.sdk4.types.Disk;
import org.ovirt.engine.sdk4.types.Host;
import org.ovirt.engine.sdk4.types.Snapshot;
import org.ovirt.engine.sdk4.types.StorageDomain;
import org.ovirt.engine.sdk4.types.Ticket;
import org.ovirt.engine.sdk4.types.Vm;
public interface VmService extends Service {
/**
* This operation stops any migration of a virtual machine to another physical host.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/cancelmigration
* ----
*
* The cancel migration action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface CancelMigrationRequest extends Request {
/**
* Indicates if the migration should cancelled asynchronously.
*/
CancelMigrationRequest async(Boolean async);
}
/**
* This operation stops any migration of a virtual machine to another physical host.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/cancelmigration
* ----
*
* The cancel migration action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface CancelMigrationResponse extends Response {
}
/**
* This operation stops any migration of a virtual machine to another physical host.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/cancelmigration
* ----
*
* The cancel migration action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
CancelMigrationRequest cancelMigration();
public interface CloneRequest extends Request {
/**
* Indicates if the clone should be performed asynchronously.
*/
CloneRequest async(Boolean async);
CloneRequest vm(Vm vm);
CloneRequest vm(VmBuilder vm);
}
public interface CloneResponse extends Response {
}
CloneRequest clone_();
public interface CommitSnapshotRequest extends Request {
/**
* Indicates if the snapshots should be committed asynchronously.
*/
CommitSnapshotRequest async(Boolean async);
}
public interface CommitSnapshotResponse extends Response {
}
CommitSnapshotRequest commitSnapshot();
/**
* Detaches a virtual machine from a pool.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/detach
* ----
*
* The detach action does not take any action specific parameters, so the request body should contain an
* empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface DetachRequest extends Request {
/**
* Indicates if the detach should be performed asynchronously.
*/
DetachRequest async(Boolean async);
}
/**
* Detaches a virtual machine from a pool.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/detach
* ----
*
* The detach action does not take any action specific parameters, so the request body should contain an
* empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface DetachResponse extends Response {
}
/**
* Detaches a virtual machine from a pool.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/detach
* ----
*
* The detach action does not take any action specific parameters, so the request body should contain an
* empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
DetachRequest detach();
/**
* Export a virtual machine to an export domain.
*
* For example to export virtual machine `123` to the export domain `myexport`, send a request like this:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/export
* ----
*
* With a request body like this:
*
* [source,xml]
* ----
*
*
* myexport
*
* true
* true
*
* ----
*/
public interface ExportRequest extends Request {
/**
* Indicates if the export should be performed asynchronously.
*/
ExportRequest async(Boolean async);
/**
* The `discard_snapshots` parameter is to be used when the virtual machine should be exported with all its
* snapshots collapsed.
*/
ExportRequest discardSnapshots(Boolean discardSnapshots);
/**
* The `exclusive` parameter is to be used when the virtual machine should be exported even if another copy of
* it already exists in the export domain (override).
*/
ExportRequest exclusive(Boolean exclusive);
ExportRequest storageDomain(StorageDomain storageDomain);
ExportRequest storageDomain(StorageDomainBuilder storageDomain);
}
/**
* Export a virtual machine to an export domain.
*
* For example to export virtual machine `123` to the export domain `myexport`, send a request like this:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/export
* ----
*
* With a request body like this:
*
* [source,xml]
* ----
*
*
* myexport
*
* true
* true
*
* ----
*/
public interface ExportResponse extends Response {
}
/**
* Export a virtual machine to an export domain.
*
* For example to export virtual machine `123` to the export domain `myexport`, send a request like this:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/export
* ----
*
* With a request body like this:
*
* [source,xml]
* ----
*
*
* myexport
*
* true
* true
*
* ----
*/
ExportRequest export();
/**
* Freeze virtual machine file systems.
*
* This operation freezes a virtual machine's file systems using the QEMU guest agent when taking a live snapshot of
* a running virtual machine. Normally, this is done automatically by the manager, but this must be executed
* manually with the API for virtual machines using OpenStack Volume (Cinder) disks.
*
* Example:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/freezefilesystems
* ----
*
* [source,xml]
* ----
*
* ----
*/
public interface FreezeFilesystemsRequest extends Request {
/**
* Indicates if the freeze should be performed asynchronously.
*/
FreezeFilesystemsRequest async(Boolean async);
}
/**
* Freeze virtual machine file systems.
*
* This operation freezes a virtual machine's file systems using the QEMU guest agent when taking a live snapshot of
* a running virtual machine. Normally, this is done automatically by the manager, but this must be executed
* manually with the API for virtual machines using OpenStack Volume (Cinder) disks.
*
* Example:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/freezefilesystems
* ----
*
* [source,xml]
* ----
*
* ----
*/
public interface FreezeFilesystemsResponse extends Response {
}
/**
* Freeze virtual machine file systems.
*
* This operation freezes a virtual machine's file systems using the QEMU guest agent when taking a live snapshot of
* a running virtual machine. Normally, this is done automatically by the manager, but this must be executed
* manually with the API for virtual machines using OpenStack Volume (Cinder) disks.
*
* Example:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/freezefilesystems
* ----
*
* [source,xml]
* ----
*
* ----
*/
FreezeFilesystemsRequest freezeFilesystems();
/**
* Retrieves the description of the virtual machine.
*/
public interface GetRequest extends Request {
/**
* Indicates if all the attributes of the virtual machine should be included in the response.
*
* By default the following attributes are excluded:
*
* - `console`
* - `initialization.configuration.data` - The OVF document describing the virtual machine.
* - `rng_source`
* - `soundcard`
* - `virtio_scsi`
*
* For example, to retrieve the complete representation of the virtual machine '123' send a request like this:
*
* ....
* GET /ovirt-engine/api/vms/123?all_content=true
* ....
*
* NOTE: The reason for not including these attributes is performance: they are seldom used and they require
* additional queries to the database. So try to use the this parameter only when it is really needed.
*/
GetRequest allContent(Boolean allContent);
/**
* Indicates if the results should be filtered according to the permissions of the user.
*/
GetRequest filter(Boolean filter);
/**
* Indicates if the returned result describes the virtual machine as it is currently running, or if describes
* it with the modifications that have already been performed but that will have effect only when it is
* restarted. By default the values is `false`.
*
* If the parameter is included in the request, but without a value, it is assumed that the value is `true`, so
* the following request:
*
* [source]
* ----
* GET /vms/{vm:id};next_run
* ----
*
* Is equivalent to using the value `true`:
*
* [source]
* ----
* GET /vms/{vm:id};next_run=true
* ----
*/
GetRequest nextRun(Boolean nextRun);
}
/**
* Retrieves the description of the virtual machine.
*/
public interface GetResponse extends Response {
/**
* Description of the virtual machine.
*/
Vm vm();
}
/**
* Retrieves the description of the virtual machine.
*/
GetRequest get();
/**
* Initiates the automatic user logon to access a virtual machine from an external console.
*
* This action requires the `ovirt-guest-agent-gdm-plugin` and the `ovirt-guest-agent-pam-module` packages to be
* installed and the `ovirt-guest-agent` service to be running on the virtual machine.
*
* Users require the appropriate user permissions for the virtual machine in order to access the virtual machine
* from an external console.
*
* This is how an example request would look like:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/logon
* ----
*
* Request body:
*
* [source,xml]
* ----
*
* ----
*/
public interface LogonRequest extends Request {
/**
* Indicates if the logon should be performed asynchronously.
*/
LogonRequest async(Boolean async);
}
/**
* Initiates the automatic user logon to access a virtual machine from an external console.
*
* This action requires the `ovirt-guest-agent-gdm-plugin` and the `ovirt-guest-agent-pam-module` packages to be
* installed and the `ovirt-guest-agent` service to be running on the virtual machine.
*
* Users require the appropriate user permissions for the virtual machine in order to access the virtual machine
* from an external console.
*
* This is how an example request would look like:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/logon
* ----
*
* Request body:
*
* [source,xml]
* ----
*
* ----
*/
public interface LogonResponse extends Response {
}
/**
* Initiates the automatic user logon to access a virtual machine from an external console.
*
* This action requires the `ovirt-guest-agent-gdm-plugin` and the `ovirt-guest-agent-pam-module` packages to be
* installed and the `ovirt-guest-agent` service to be running on the virtual machine.
*
* Users require the appropriate user permissions for the virtual machine in order to access the virtual machine
* from an external console.
*
* This is how an example request would look like:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/logon
* ----
*
* Request body:
*
* [source,xml]
* ----
*
* ----
*/
LogonRequest logon();
public interface MaintenanceRequest extends Request {
/**
* Indicates if the action should be performed asynchronously.
*/
MaintenanceRequest async(Boolean async);
MaintenanceRequest maintenanceEnabled(Boolean maintenanceEnabled);
}
public interface MaintenanceResponse extends Response {
}
MaintenanceRequest maintenance();
/**
* This operation migrates a virtual machine to another physical host.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/migrate
* ----
*
* One can specify a specific host to migrate the virtual machine to:
*
* [source,xml]
* ----
*
*
*
* ----
*/
public interface MigrateRequest extends Request {
/**
* Indicates if the migration should be performed asynchronously.
*/
MigrateRequest async(Boolean async);
MigrateRequest cluster(Cluster cluster);
/**
* Specifies the cluster the virtual machine should migrate to. This is an optional parameter. By default, the
* virtual machine is migrated to another host within the same cluster.
*/
MigrateRequest cluster(ClusterBuilder cluster);
/**
* Specifies the virtual machine should migrate although it might be defined as non migratable. This is an
* optional parameter. By default, it is set to `false`.
*/
MigrateRequest force(Boolean force);
MigrateRequest host(Host host);
/**
* Specifies a specific host the virtual machine should migrate to. This is an optional parameters. By default,
* the oVirt Engine automatically selects a default host for migration within the same cluster. If an API user
* requires a specific host, the user can specify the host with either an `id` or `name` parameter.
*/
MigrateRequest host(HostBuilder host);
}
/**
* This operation migrates a virtual machine to another physical host.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/migrate
* ----
*
* One can specify a specific host to migrate the virtual machine to:
*
* [source,xml]
* ----
*
*
*
* ----
*/
public interface MigrateResponse extends Response {
}
/**
* This operation migrates a virtual machine to another physical host.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/migrate
* ----
*
* One can specify a specific host to migrate the virtual machine to:
*
* [source,xml]
* ----
*
*
*
* ----
*/
MigrateRequest migrate();
public interface PreviewSnapshotRequest extends Request {
/**
* Indicates if the preview should be performed asynchronously.
*/
PreviewSnapshotRequest async(Boolean async);
PreviewSnapshotRequest disks(List disks);
PreviewSnapshotRequest disks(Disk... disks);
PreviewSnapshotRequest disks(DiskBuilder... disks);
PreviewSnapshotRequest restoreMemory(Boolean restoreMemory);
PreviewSnapshotRequest snapshot(Snapshot snapshot);
PreviewSnapshotRequest snapshot(SnapshotBuilder snapshot);
PreviewSnapshotRequest vm(Vm vm);
PreviewSnapshotRequest vm(VmBuilder vm);
}
public interface PreviewSnapshotResponse extends Response {
}
PreviewSnapshotRequest previewSnapshot();
/**
* This operation sends a reboot request to a virtual machine.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/reboot
* ----
*
* The reboot action does not take any action specific parameters, so the request body should contain an
* empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface RebootRequest extends Request {
/**
* Indicates if the reboot should be performed asynchronously.
*/
RebootRequest async(Boolean async);
}
/**
* This operation sends a reboot request to a virtual machine.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/reboot
* ----
*
* The reboot action does not take any action specific parameters, so the request body should contain an
* empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface RebootResponse extends Response {
}
/**
* This operation sends a reboot request to a virtual machine.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/reboot
* ----
*
* The reboot action does not take any action specific parameters, so the request body should contain an
* empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
RebootRequest reboot();
/**
* Removes the virtual machine, including the virtual disks attached to it.
*
* For example, to remove the virtual machine with identifier `123` send a request like this:
*
* [source]
* ----
* DELETE /ovirt-engine/api/vms/123
* ----
*/
public interface RemoveRequest extends Request {
/**
* Indicates if the remove should be performed asynchronously.
*/
RemoveRequest async(Boolean async);
/**
* Indicates if the attached virtual disks should be detached first and preserved instead of being removed.
*/
RemoveRequest detachOnly(Boolean detachOnly);
/**
* Indicates if the virtual machine should be forcibly removed.
*
* Locked virtual machines and virtual machines with locked disk images
* cannot be removed without this flag set to true.
*/
RemoveRequest force(Boolean force);
}
/**
* Removes the virtual machine, including the virtual disks attached to it.
*
* For example, to remove the virtual machine with identifier `123` send a request like this:
*
* [source]
* ----
* DELETE /ovirt-engine/api/vms/123
* ----
*/
public interface RemoveResponse extends Response {
}
/**
* Removes the virtual machine, including the virtual disks attached to it.
*
* For example, to remove the virtual machine with identifier `123` send a request like this:
*
* [source]
* ----
* DELETE /ovirt-engine/api/vms/123
* ----
*/
RemoveRequest remove();
public interface ReorderMacAddressesRequest extends Request {
/**
* Indicates if the action should be performed asynchronously.
*/
ReorderMacAddressesRequest async(Boolean async);
}
public interface ReorderMacAddressesResponse extends Response {
}
ReorderMacAddressesRequest reorderMacAddresses();
/**
* This operation sends a shutdown request to a virtual machine.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/shutdown
* ----
*
* The shutdown action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface ShutdownRequest extends Request {
/**
* Indicates if the shutdown should be performed asynchronously.
*/
ShutdownRequest async(Boolean async);
}
/**
* This operation sends a shutdown request to a virtual machine.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/shutdown
* ----
*
* The shutdown action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface ShutdownResponse extends Response {
}
/**
* This operation sends a shutdown request to a virtual machine.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/shutdown
* ----
*
* The shutdown action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
ShutdownRequest shutdown();
/**
* Starts the virtual machine.
*
* If the virtual environment is complete and the virtual machine contains all necessary components to function,
* it can be started.
*
* This example starts the virtual machine:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/start
* ----
*
* With a request body:
*
* [source,xml]
* ----
*
* ----
*/
public interface StartRequest extends Request {
/**
* Indicates if the action should be performed asynchronously.
*/
StartRequest async(Boolean async);
/**
* Indicates if the results should be filtered according to the permissions of the user.
*/
StartRequest filter(Boolean filter);
/**
* If set to `true`, start the virtual machine in paused mode. Default is `false`.
*/
StartRequest pause(Boolean pause);
/**
* If set to `true`, the initialization type is set to _cloud-init_. The default value is `false`.
* See https://cloudinit.readthedocs.io/en/latest[this] for details.
*/
StartRequest useCloudInit(Boolean useCloudInit);
/**
* If set to `true`, the initialization type is set to _Sysprep_. The default value is `false`.
* See https://en.wikipedia.org/wiki/Sysprep[this] for details.
*/
StartRequest useSysprep(Boolean useSysprep);
StartRequest vm(Vm vm);
/**
* The definition of the virtual machine for this specific run.
*
* For example:
*
* [source,xml]
* ----
*
*
*
*
*
* cdrom
*
*
*
*
*
* ----
*
* This will set the boot device to the CDROM only for this specific start. After the virtual machine will be
* powered off, this definition will be reverted.
*/
StartRequest vm(VmBuilder vm);
}
/**
* Starts the virtual machine.
*
* If the virtual environment is complete and the virtual machine contains all necessary components to function,
* it can be started.
*
* This example starts the virtual machine:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/start
* ----
*
* With a request body:
*
* [source,xml]
* ----
*
* ----
*/
public interface StartResponse extends Response {
}
/**
* Starts the virtual machine.
*
* If the virtual environment is complete and the virtual machine contains all necessary components to function,
* it can be started.
*
* This example starts the virtual machine:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/start
* ----
*
* With a request body:
*
* [source,xml]
* ----
*
* ----
*/
StartRequest start();
/**
* This operation forces a virtual machine to power-off.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/stop
* ----
*
* The stop action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface StopRequest extends Request {
/**
* Indicates if the action should be performed asynchronously.
*/
StopRequest async(Boolean async);
}
/**
* This operation forces a virtual machine to power-off.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/stop
* ----
*
* The stop action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface StopResponse extends Response {
}
/**
* This operation forces a virtual machine to power-off.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/stop
* ----
*
* The stop action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
StopRequest stop();
/**
* This operation saves the virtual machine state to disk and stops it.
* Start a suspended virtual machine and restore the virtual machine state with the start action.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/suspend
* ----
*
* The suspend action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface SuspendRequest extends Request {
/**
* Indicates if the action should be performed asynchronously.
*/
SuspendRequest async(Boolean async);
}
/**
* This operation saves the virtual machine state to disk and stops it.
* Start a suspended virtual machine and restore the virtual machine state with the start action.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/suspend
* ----
*
* The suspend action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
public interface SuspendResponse extends Response {
}
/**
* This operation saves the virtual machine state to disk and stops it.
* Start a suspended virtual machine and restore the virtual machine state with the start action.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/suspend
* ----
*
* The suspend action does not take any action specific parameters,
* so the request body should contain an empty `action`:
*
* [source,xml]
* ----
*
* ----
*/
SuspendRequest suspend();
/**
* Thaw virtual machine file systems.
*
* This operation thaws a virtual machine's file systems using the QEMU guest agent when taking a live snapshot of a
* running virtual machine. Normally, this is done automatically by the manager, but this must be executed manually
* with the API for virtual machines using OpenStack Volume (Cinder) disks.
*
* Example:
*
* [source]
* ----
* POST /api/vms/123/thawfilesystems
* ----
*
* [source,xml]
* ----
*
* ----
*/
public interface ThawFilesystemsRequest extends Request {
/**
* Indicates if the action should be performed asynchronously.
*/
ThawFilesystemsRequest async(Boolean async);
}
/**
* Thaw virtual machine file systems.
*
* This operation thaws a virtual machine's file systems using the QEMU guest agent when taking a live snapshot of a
* running virtual machine. Normally, this is done automatically by the manager, but this must be executed manually
* with the API for virtual machines using OpenStack Volume (Cinder) disks.
*
* Example:
*
* [source]
* ----
* POST /api/vms/123/thawfilesystems
* ----
*
* [source,xml]
* ----
*
* ----
*/
public interface ThawFilesystemsResponse extends Response {
}
/**
* Thaw virtual machine file systems.
*
* This operation thaws a virtual machine's file systems using the QEMU guest agent when taking a live snapshot of a
* running virtual machine. Normally, this is done automatically by the manager, but this must be executed manually
* with the API for virtual machines using OpenStack Volume (Cinder) disks.
*
* Example:
*
* [source]
* ----
* POST /api/vms/123/thawfilesystems
* ----
*
* [source,xml]
* ----
*
* ----
*/
ThawFilesystemsRequest thawFilesystems();
/**
* Generates a time-sensitive authentication token for accessing a virtual machine's display.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/ticket
* ----
*
* The client-provided action optionally includes a desired ticket value and/or an expiry time in seconds.
*
* In any case, the response specifies the actual ticket value and expiry used.
*
* [source,xml]
* ----
*
*
* abcd12345
* 120
*
*
* ----
*
* [IMPORTANT]
* ====
* If the virtual machine is configured to support only one graphics protocol
* then the generated authentication token will be valid for that protocol.
* But if the virtual machine is configured to support multiple protocols,
* VNC and SPICE, then the authentication token will only be valid for
* the SPICE protocol.
*
* In order to obtain an authentication token for a specific protocol, for
* example for VNC, use the `ticket` method of the <> that manages the graphics consoles of the virtual machine, sending
* a request like this:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/graphicsconsoles/456/ticket
* ----
* ====
*/
public interface TicketRequest extends Request {
/**
* Indicates if the generation of the ticket should be performed asynchronously.
*/
TicketRequest async(Boolean async);
TicketRequest ticket(Ticket ticket);
TicketRequest ticket(TicketBuilder ticket);
}
/**
* Generates a time-sensitive authentication token for accessing a virtual machine's display.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/ticket
* ----
*
* The client-provided action optionally includes a desired ticket value and/or an expiry time in seconds.
*
* In any case, the response specifies the actual ticket value and expiry used.
*
* [source,xml]
* ----
*
*
* abcd12345
* 120
*
*
* ----
*
* [IMPORTANT]
* ====
* If the virtual machine is configured to support only one graphics protocol
* then the generated authentication token will be valid for that protocol.
* But if the virtual machine is configured to support multiple protocols,
* VNC and SPICE, then the authentication token will only be valid for
* the SPICE protocol.
*
* In order to obtain an authentication token for a specific protocol, for
* example for VNC, use the `ticket` method of the <> that manages the graphics consoles of the virtual machine, sending
* a request like this:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/graphicsconsoles/456/ticket
* ----
* ====
*/
public interface TicketResponse extends Response {
Ticket ticket();
}
/**
* Generates a time-sensitive authentication token for accessing a virtual machine's display.
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/ticket
* ----
*
* The client-provided action optionally includes a desired ticket value and/or an expiry time in seconds.
*
* In any case, the response specifies the actual ticket value and expiry used.
*
* [source,xml]
* ----
*
*
* abcd12345
* 120
*
*
* ----
*
* [IMPORTANT]
* ====
* If the virtual machine is configured to support only one graphics protocol
* then the generated authentication token will be valid for that protocol.
* But if the virtual machine is configured to support multiple protocols,
* VNC and SPICE, then the authentication token will only be valid for
* the SPICE protocol.
*
* In order to obtain an authentication token for a specific protocol, for
* example for VNC, use the `ticket` method of the <> that manages the graphics consoles of the virtual machine, sending
* a request like this:
*
* [source]
* ----
* POST /ovirt-engine/api/vms/123/graphicsconsoles/456/ticket
* ----
* ====
*/
TicketRequest ticket();
public interface UndoSnapshotRequest extends Request {
/**
* Indicates if the action should be performed asynchronously.
*/
UndoSnapshotRequest async(Boolean async);
}
public interface UndoSnapshotResponse extends Response {
}
UndoSnapshotRequest undoSnapshot();
public interface UpdateRequest extends Request {
/**
* Indicates if the update should be performed asynchronously.
*/
UpdateRequest async(Boolean async);
/**
* Indicates if the update should be applied to the virtual machine immediately, or if it should be applied only
* when the virtual machine is restarted. The default value is `false`, so by default changes are applied
* immediately.
*/
UpdateRequest nextRun(Boolean nextRun);
UpdateRequest vm(Vm vm);
UpdateRequest vm(VmBuilder vm);
}
public interface UpdateResponse extends Response {
Vm vm();
}
UpdateRequest update();
/**
* List of scheduling labels assigned to this VM.
*/
AssignedAffinityLabelsService affinityLabelsService();
VmApplicationsService applicationsService();
VmCdromsService cdromsService();
/**
* List of disks attached to this virtual machine.
*/
DiskAttachmentsService diskAttachmentsService();
VmGraphicsConsolesService graphicsConsolesService();
VmHostDevicesService hostDevicesService();
/**
* Reference to the service that can show the applicable errata available on the virtual machine.
* This information is taken from Katello.
*/
KatelloErrataService katelloErrataService();
VmNicsService nicsService();
VmNumaNodesService numaNodesService();
AssignedPermissionsService permissionsService();
VmReportedDevicesService reportedDevicesService();
/**
* Reference to the service that provides information about virtual machine user sessions.
*/
VmSessionsService sessionsService();
SnapshotsService snapshotsService();
AssignedTagsService tagsService();
VmWatchdogsService watchdogsService();
/**
* Service locator method, returns individual service on which the URI is dispatched.
*/
Service service(String path);
}