Interface RoleServiceAsync
-
- All Implemented Interfaces:
public interface RoleServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRoleServiceAsync.WithRawResponseA view of RoleServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract RoleServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
CompletableFuture<Role> create(RoleCreateParams params)
Create a new role. If there is an existing role with the same name as the one specified in the request, will return the existing role unmodified
-
create
abstract CompletableFuture<Role> create(RoleCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Role> retrieve(RoleRetrieveParams params)
Get a role object by its id
-
retrieve
abstract CompletableFuture<Role> retrieve(RoleRetrieveParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Role> update(RoleUpdateParams params)
Partially update a role object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null.
-
update
abstract CompletableFuture<Role> update(RoleUpdateParams params, RequestOptions requestOptions)
-
list
CompletableFuture<RoleListPageAsync> list()
List out all roles. The roles are sorted by creation date, with the most recently-created roles coming first
-
list
abstract CompletableFuture<RoleListPageAsync> list(RoleListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<RoleListPageAsync> list(RoleListParams params)
-
list
CompletableFuture<RoleListPageAsync> list(RequestOptions requestOptions)
-
delete
CompletableFuture<Role> delete(RoleDeleteParams params)
Delete a role object by its id
-
delete
abstract CompletableFuture<Role> delete(RoleDeleteParams params, RequestOptions requestOptions)
-
replace
CompletableFuture<Role> replace(RoleReplaceParams params)
Create or replace role. If there is an existing role with the same name as the one specified in the request, will replace the existing role with the provided fields
-
replace
abstract CompletableFuture<Role> replace(RoleReplaceParams params, RequestOptions requestOptions)
-
-
-
-