Class UserEntitlementsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.memberentitlementmanagement.userentitlements.UserEntitlementsRequestBuilder
Provides functionality to work with User entitlements Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Request configuration object for the query parameters.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionUserEntitlementsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionadd
(UserEntitlement userEntitlement) Add a user, assign license and extensions and make them a member of a project group in an account.addAsync
(UserEntitlement userEntitlement) Add a user, assign license and extensions and make them a member of a project group in an account.Delete a user from the account.deleteAsync
(String userId) Delete a user from the account.Get User Entitlement for a user.Get User Entitlement for a user.search()
Get a paged set of user entitlements matching the filter and sort criteria built with properties that match the select input.search
(Consumer<UserEntitlementsRequestBuilder.RequestConfiguration> requestConfiguration) Get a paged set of user entitlements matching the filter and sort criteria built with properties that match the select input.Get a paged set of user entitlements matching the filter and sort criteria built with properties that match the select input.searchAsync
(Consumer<UserEntitlementsRequestBuilder.RequestConfiguration> requestConfiguration) Get a paged set of user entitlements matching the filter and sort criteria built with properties that match the select input.update
(String userId, List<JsonPatchDocument> jsonPatchDocument) Edit the entitlements (License, Extensions, Projects, Teams etc) for a user.update
(List<JsonPatchDocument> jsonPatchDocument, boolean doNotSendInviteForNewUsers) Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users.updateAsync
(String userId, List<JsonPatchDocument> jsonPatchDocument) Edit the entitlements (License, Extensions, Projects, Teams etc) for a user.updateAsync
(List<JsonPatchDocument> jsonPatchDocument, boolean doNotSendInviteForNewUsers) Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
UserEntitlementsRequestBuilder
public UserEntitlementsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
addAsync
public CompletableFuture<UserEntitlementsResponse> addAsync(UserEntitlement userEntitlement) throws AzDException Add a user, assign license and extensions and make them a member of a project group in an account.- Parameters:
userEntitlement
- User entitlement objectUserEntitlement
- Returns:
- User entitlements response object
UserEntitlementsResponse
- Throws:
AzDException
- Default Api exception handler.
-
deleteAsync
Delete a user from the account.
The delete operation includes un-assigning Extensions and Licenses and removing the user from all project memberships. The user would continue to have access to the account if she is member of an AAD group, that is added directly to the account.- Parameters:
userId
- ID of the user.- Throws:
AzDException
- Default Api exception handler.
-
getAsync
Get User Entitlement for a user.- Parameters:
userId
- ID of the user.- Returns:
- User entitlement object
UserEntitlement
- Throws:
AzDException
- Default Api exception handler.
-
searchAsync
Get a paged set of user entitlements matching the filter and sort criteria built with properties that match the select input.- Returns:
- Paged list of members
PagedGraphMemberList
- Throws:
AzDException
- Default Api exception handler.
-
searchAsync
public CompletableFuture<PagedGraphMemberList> searchAsync(Consumer<UserEntitlementsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a paged set of user entitlements matching the filter and sort criteria built with properties that match the select input.- Parameters:
requestConfiguration
- Consumer of request configuration that represents the query parameters.- Returns:
- Paged list of members
PagedGraphMemberList
* @throws AzDException Default Api exception handler. - Throws:
AzDException
-
updateAsync
public CompletableFuture<UserEntitlementsResponse> updateAsync(String userId, List<JsonPatchDocument> jsonPatchDocument) throws AzDException Edit the entitlements (License, Extensions, Projects, Teams etc) for a user.- Parameters:
userId
- ID of the user.jsonPatchDocument
- Request body to update parameters.- Returns:
- User entitlement response object
UserEntitlementsResponse
- Throws:
AzDException
- Default Api exception handler.
-
updateAsync
public CompletableFuture<UserEntitlementOperationReference> updateAsync(List<JsonPatchDocument> jsonPatchDocument, boolean doNotSendInviteForNewUsers) throws AzDException Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users.- Parameters:
jsonPatchDocument
- Collection of patch objects to updatedoNotSendInviteForNewUsers
- Whether to send email invites to new users or not- Returns:
- User entitlement operation reference
UserEntitlementOperationReference
- Throws:
AzDException
- Default Api exception handler.
-
add
Add a user, assign license and extensions and make them a member of a project group in an account.- Parameters:
userEntitlement
- User entitlement objectUserEntitlement
- Returns:
- User entitlements response object
UserEntitlementsResponse
- Throws:
AzDException
- Default Api exception handler.
-
delete
Delete a user from the account.
The delete operation includes un-assigning Extensions and Licenses and removing the user from all project memberships. The user would continue to have access to the account if she is member of an AAD group, that is added directly to the account.- Parameters:
userId
- ID of the user.- Throws:
AzDException
- Default Api exception handler.
-
get
Get User Entitlement for a user.- Parameters:
userId
- ID of the user.- Returns:
- User entitlement object
UserEntitlement
- Throws:
AzDException
- Default Api exception handler.
-
search
Get a paged set of user entitlements matching the filter and sort criteria built with properties that match the select input.- Returns:
- Paged list of members
PagedGraphMemberList
- Throws:
AzDException
- Default Api exception handler.
-
search
public PagedGraphMemberList search(Consumer<UserEntitlementsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a paged set of user entitlements matching the filter and sort criteria built with properties that match the select input.- Parameters:
requestConfiguration
- Consumer of request configuration that represents the query parameters.- Returns:
- Paged list of members
PagedGraphMemberList
* @throws AzDException Default Api exception handler. - Throws:
AzDException
-
update
public UserEntitlementsResponse update(String userId, List<JsonPatchDocument> jsonPatchDocument) throws AzDException Edit the entitlements (License, Extensions, Projects, Teams etc) for a user.- Parameters:
userId
- ID of the user.jsonPatchDocument
- Request body to update parameters.- Returns:
- User entitlement response object
UserEntitlementsResponse
- Throws:
AzDException
- Default Api exception handler.
-
update
public UserEntitlementOperationReference update(List<JsonPatchDocument> jsonPatchDocument, boolean doNotSendInviteForNewUsers) throws AzDException Edit the entitlements (License, Extensions, Projects, Teams etc) for one or more users.- Parameters:
jsonPatchDocument
- Collection of patch objects to updatedoNotSendInviteForNewUsers
- Whether to send email invites to new users or not- Returns:
- User entitlement operation reference
UserEntitlementOperationReference
- Throws:
AzDException
- Default Api exception handler.
-