services.aaa.UserOptionsService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of model Show documentation
Show all versions of model Show documentation
Model management tools for the oVirt Engine API.
package services.aaa;
import static org.ovirt.api.metamodel.language.ApiLanguage.mandatory;
import org.ovirt.api.metamodel.annotations.In;
import org.ovirt.api.metamodel.annotations.InputDetail;
import org.ovirt.api.metamodel.annotations.Out;
import org.ovirt.api.metamodel.annotations.Service;
import annotations.Area;
import types.UserOption;
@Service
@Area("Infrastructure")
public interface UserOptionsService {
/**
* Adds a new user profile property of type JSON.
*
* Example request(for user with identifier `123`):
*
* [source]
* ----
* POST /ovirt-engine/api/users/123/options
* ----
*
* Payload:
*
* [source,xml]
* ----
*
* SomeName
* ["any", "JSON"]
*
* ----
* @author Radoslaw Szwajkowski
* @date 11 Jan 2021
* @status added
* @since 4.4.5
*/
interface Add {
@InputDetail
default void inputDetail() {
mandatory(option().content());
mandatory(option().name());
}
@In @Out UserOption option();
}
/**
* Returns a list of user profile properties of type JSON.
*
* Example request(for user with identifier `123`):
*
* [source]
* ----
* GET /ovirt-engine/api/users/123/options
* ----
*
* The result will be the following XML document:
*
* [source,xml]
* ----
*
*
* SomeName
* ["any", "JSON"]
*
*
*
* ----
* @author Radoslaw Szwajkowski
* @date 11 Jan 2021
* @status added
* @since 4.4.5
*/
interface List {
@Out UserOption[] options();
}
/**
* @author Radoslaw Szwajkowski
* @date 11 Jan 2021
* @status added
* @since 4.4.5
*/
@Service UserOptionService option(String id);
}