public class UserGroup extends AbstractCoreResources<UserGroupRestRep> implements TopLevelResources<UserGroupRestRep>
Constructor and Description |
---|
UserGroup(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
UserGroupRestRep |
create(UserGroupCreateParam input)
Creates an user group.
|
void |
delete(java.net.URI id)
Deletes an user group.
|
java.util.List<UserGroupRestRep> |
getAll()
Gets all resources for this resource type.
|
java.util.List<UserGroupRestRep> |
getAll(ResourceFilter<UserGroupRestRep> filter)
Gets all resources for this resource type.
|
java.util.List<NamedRelatedResourceRep> |
list()
Lists all user groups.
|
UserGroupRestRep |
update(java.net.URI id,
UserGroupUpdateParam input)
Updates an user group.
|
UserGroup |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
UserGroup |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
addTags, get, get, getByIds, getByIds, getByRefs, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags
public UserGroup(ViPRCoreClient parent, RestClient client)
public UserGroup withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<UserGroupRestRep>
inactive
- whether to include inactive resources.public UserGroup withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<UserGroupRestRep>
internal
- whether to include internal resources.public java.util.List<NamedRelatedResourceRep> list()
API Call: GET /vdc/admin/user-groups
list
in interface TopLevelResources<UserGroupRestRep>
public java.util.List<UserGroupRestRep> getAll()
TopLevelResources
Gets all resources for this resource type. This is combination of the list() call combined with a bulk query to retrieve the resources.
API Call: GET /RESOURCE_PATH
getAll
in interface TopLevelResources<UserGroupRestRep>
TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection)
public java.util.List<UserGroupRestRep> getAll(ResourceFilter<UserGroupRestRep> filter)
TopLevelResources
Gets all resources for this resource type. This is combination of the list() call combined with a bulk query to retrieve the resources. This optionally filters the results by the filter specified.
API Call: GET /RESOURCE_PATH
getAll
in interface TopLevelResources<UserGroupRestRep>
filter
- the resource filter to apply to the results as they are returned (optional).TopLevelResources.list()
,
Resources.getByRefs(java.util.Collection, ResourceFilter)
public UserGroupRestRep create(UserGroupCreateParam input)
API Call: POST /vdc/admin/user-groups
input
- the create configuration.public UserGroupRestRep update(java.net.URI id, UserGroupUpdateParam input)
API Call: PUT /vdc/admin/user-groups
input
- the update configuration.public void delete(java.net.URI id)
API Call: DELETE /vdc/admin/user-groups/{id}
id
- the user group ID.