Class AccessControlEntriesRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.security.accesscontrolentries.AccessControlEntriesRequestBuilder
Provides functionality to work with Security Access control entries 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
ConstructorDescriptionAccessControlEntriesRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionremove
(String securityNamespaceId, Consumer<AccessControlEntriesRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove the specified ACEs from the ACL belonging to the specified token.removeAsync
(String securityNamespaceId, Consumer<AccessControlEntriesRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove the specified ACEs from the ACL belonging to the specified token.Add or update ACEs in the ACL for the provided token.Add or update ACEs in the ACL for the provided token.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
AccessControlEntriesRequestBuilder
public AccessControlEntriesRequestBuilder(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
-
removeAsync
public CompletableFuture<Boolean> removeAsync(String securityNamespaceId, Consumer<AccessControlEntriesRequestBuilder.DeleteRequestConfiguration> requestConfiguration) throws AzDException Remove the specified ACEs from the ACL belonging to the specified token.- Parameters:
securityNamespaceId
- Security namespace identifier.requestConfiguration
- Represents the query parameters.- Throws:
AzDException
- Default Api Exception handler.
-
setAsync
public CompletableFuture<ACEs> setAsync(String securityNamespaceId, ACEs setAccessControlEntryRequest) throws AzDException Add or update ACEs in the ACL for the provided token. The request body contains the target token, a list of ACEs and a optional merge parameter. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced.- Parameters:
securityNamespaceId
- Security namespace identifier.setAccessControlEntryRequest
- Request body to add or update the access control entries.- Returns:
- Collection of access control entry
ACEs
- Throws:
AzDException
- Default Api Exception handler.
-
remove
public Boolean remove(String securityNamespaceId, Consumer<AccessControlEntriesRequestBuilder.DeleteRequestConfiguration> requestConfiguration) throws AzDException Remove the specified ACEs from the ACL belonging to the specified token.- Parameters:
securityNamespaceId
- Security namespace identifier.requestConfiguration
- Represents the query parameters.- Throws:
AzDException
- Default Api Exception handler.
-
set
Add or update ACEs in the ACL for the provided token. The request body contains the target token, a list of ACEs and a optional merge parameter. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced.- Parameters:
securityNamespaceId
- Security namespace identifier.setAccessControlEntryRequest
- Request body to add or update the access control entries.- Returns:
- Collection of access control entry
ACEs
- Throws:
AzDException
- Default Api Exception handler.- See Also:
-