RolesApi class

Constructors

RolesApi(Dio _dio, Serializers _serializers)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createRole({CreateRoleRequest? createRoleRequest, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<SuccessResponse>>
Create Role Create role.
deleteRole({required String roleId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<SuccessResponse>>
Delete Role Delete role
getRolePermission({required String roleId, String? sort, int? pageSize, String? nextToken, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<BuiltList<RolesPermissionResponseInner>>>
Get Role Permissions Get permissions for a role.
getRoles({String? sort, int? pageSize, String? nextToken, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<GetRolesResponse>>
List Roles The returned list can be sorted by role name or role ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRolePermission({required String roleId, required String permissionId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<SuccessResponse>>
Remove Role Permission Remove a permission from a role.
toString() String
A string representation of this object.
inherited
updateRolePermissions({required String roleId, required UpdateRolePermissionsRequest updateRolePermissionsRequest, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<UpdateRolePermissionsResponse>>
Update Role Permissions Update role permissions.
updateRoles({required String roleId, UpdateRolesRequest? updateRolesRequest, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<SuccessResponse>>
Update Role Update a role

Operators

operator ==(Object other) bool
The equality operator.
inherited