RolesApi class
Constructors
RolesApi (Dio _dio , Serializers _serializers )
const
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
getRole ({required String roleId , CancelToken? cancelToken , ValidateStatus? validateStatus , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response<Role > >
Get a role
Get a role from the provided role id. ##### Permissions Requires an active session but no other permissions. Minimum server version : 4.9
getRoleByName ({required String roleName , CancelToken? cancelToken , ValidateStatus? validateStatus , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response<Role > >
Get a role
Get a role from the provided role name. ##### Permissions Requires an active session but no other permissions. Minimum server version : 4.9
getRolesByNames ({required BuiltList<String > requestBody , CancelToken? cancelToken , ValidateStatus? validateStatus , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response<BuiltList<Role > > >
Get a list of roles by name
Get a list of roles from their names. ##### Permissions Requires an active session but no other permissions. Minimum server version : 4.9
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchRole ({required String roleId , required InlineObject98 inlineObject98 , CancelToken? cancelToken , ValidateStatus? validateStatus , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response<Role > >
Patch a role
Partially update a role by providing only the fields you want to update. Omitted fields will not be updated. The fields that can be updated are defined in the request body, all other provided fields will be ignored. ##### Permissions `manage_system` permission is required. Minimum server version : 4.9
rolesGet ({CancelToken? cancelToken , ValidateStatus? validateStatus , ProgressCallback? onSendProgress , ProgressCallback? onReceiveProgress })
→ Future <Response<BuiltList<Role > > >
Get a list of all the roles
toString ()
→ String
A string representation of this object.
inherited