org.ovirt.engine.sdk4.services.AffinityGroupService 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.AffinityGroupBuilder;
import org.ovirt.engine.sdk4.types.AffinityGroup;
/**
* This service manages a single affinity group.
*/
public interface AffinityGroupService extends Service {
/**
* Retrieve the affinity group details.
*
* [source,xml]
* ----
*
* AF_GROUP_001
*
* true
* true
*
* ----
*/
public interface GetRequest extends Request {
}
/**
* Retrieve the affinity group details.
*
* [source,xml]
* ----
*
* AF_GROUP_001
*
* true
* true
*
* ----
*/
public interface GetResponse extends Response {
/**
* The affinity group.
*/
AffinityGroup group();
}
/**
* Retrieve the affinity group details.
*
* [source,xml]
* ----
*
* AF_GROUP_001
*
* true
* true
*
* ----
*/
GetRequest get();
/**
* Remove the affinity group.
*
* [source]
* ----
* DELETE /ovirt-engine/api/clusters/000-000/affinitygroups/123-456
* ----
*/
public interface RemoveRequest extends Request {
/**
* Indicates if the remove should be performed asynchronously.
*/
RemoveRequest async(Boolean async);
}
/**
* Remove the affinity group.
*
* [source]
* ----
* DELETE /ovirt-engine/api/clusters/000-000/affinitygroups/123-456
* ----
*/
public interface RemoveResponse extends Response {
}
/**
* Remove the affinity group.
*
* [source]
* ----
* DELETE /ovirt-engine/api/clusters/000-000/affinitygroups/123-456
* ----
*/
RemoveRequest remove();
/**
* Update the affinity group.
*/
public interface UpdateRequest extends Request {
/**
* Indicates if the update should be performed asynchronously.
*/
UpdateRequest async(Boolean async);
UpdateRequest group(AffinityGroup group);
/**
* The affinity group.
*/
UpdateRequest group(AffinityGroupBuilder group);
}
/**
* Update the affinity group.
*/
public interface UpdateResponse extends Response {
/**
* The affinity group.
*/
AffinityGroup group();
}
/**
* Update the affinity group.
*/
UpdateRequest update();
/**
* Returns a reference to the service that manages the
* list of all virtual machines attached to this affinity
* group.
*/
AffinityGroupVmsService vmsService();
/**
* Service locator method, returns individual service on which the URI is dispatched.
*/
Service service(String path);
}