Class PermitsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.PermitsServiceImpl
-
- All Implemented Interfaces:
Service
,PermitsService
public class PermitsServiceImpl extends ServiceImpl implements PermitsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.PermitsService
PermitsService.AddRequest, PermitsService.AddResponse, PermitsService.ListRequest, PermitsService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description PermitsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PermitsService.AddRequest
add()
Adds a permit to the role.PermitsService.ListRequest
list()
List the permits of the role.PermitService
permitService(String id)
Sub-resource locator method, returns individual permit resource on which the remainder of the URI is dispatched.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
PermitsServiceImpl
public PermitsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public PermitsService.AddRequest add()
Description copied from interface:PermitsService
Adds a permit to the role. The permit name can be retrieved from the <> service. For example to assign a permit `create_vm` to the role with id `123` send a request like this: .... POST /ovirt-engine/api/roles/123/permits .... With a request body like this: [source,xml] ---- create_vm - Specified by:
add
in interfacePermitsService
-
list
public PermitsService.ListRequest list()
Description copied from interface:PermitsService
List the permits of the role. For example to list the permits of the role with the id `123` send a request like this: .... GET /ovirt-engine/api/roles/123/permits .... [source,xml] ----change_vm_cd false connect_to_vm false - Specified by:
list
in interfacePermitsService
-
permitService
public PermitService permitService(String id)
Description copied from interface:PermitsService
Sub-resource locator method, returns individual permit resource on which the remainder of the URI is dispatched.- Specified by:
permitService
in interfacePermitsService
-
service
public Service service(String path)
Description copied from interface:PermitsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfacePermitsService
-
-