Data API — Role Rights
role_rights_create
sync(role_id: UUID, right_id: UUID, client: AuthenticatedClient | Client) -> ProblemDetails | list[ErrorResponse] | list[RightListItemResponse] | NoneParameter | Type | Default |
|---|---|---|
role_id | UUID | required |
right_id | UUID | required |
client | AuthenticatedClient | Client | required |
Returns: ProblemDetails | list[ErrorResponse] | list[RightListItemResponse] | None
Raises:
Exception | Condition |
|---|---|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. | |
TimeoutException | If the request takes longer than Client.timeout. |
role_rights_create_batch
sync(role_id: UUID, client: AuthenticatedClient | Client, body: RoleRightBatchRequest | Unset = UNSET) -> ProblemDetails | list[ErrorResponse] | list[RightListItemResponse] | NoneParameter | Type | Default |
|---|---|---|
role_id | UUID | required |
client | AuthenticatedClient | Client | required |
body | RoleRightBatchRequest | Unset | UNSET |
- body — Request for batch adding rights to roles
Returns: ProblemDetails | list[ErrorResponse] | list[RightListItemResponse] | None
Raises:
Exception | Condition |
|---|---|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. | |
TimeoutException | If the request takes longer than Client.timeout. |
role_rights_delete
sync(role_id: UUID, right_id: UUID, client: AuthenticatedClient | Client) -> ProblemDetails | list[ErrorResponse] | list[RightListItemResponse] | NoneParameter | Type | Default |
|---|---|---|
role_id | UUID | required |
right_id | UUID | required |
client | AuthenticatedClient | Client | required |
Returns: ProblemDetails | list[ErrorResponse] | list[RightListItemResponse] | None
Raises:
Exception | Condition |
|---|---|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. | |
TimeoutException | If the request takes longer than Client.timeout. |
role_rights_describe
sync(role_id: UUID, client: AuthenticatedClient | Client, page: int | Unset = UNSET, page_size: int | Unset = UNSET) -> ProblemDetails | list[ErrorResponse] | list[RightListItemResponse] | NoneParameter | Type | Default |
|---|---|---|
role_id | UUID | required |
client | AuthenticatedClient | Client | required |
page | int | Unset | UNSET |
page_size | int | Unset | UNSET |
Returns: ProblemDetails | list[ErrorResponse] | list[RightListItemResponse] | None
Raises:
Exception | Condition |
|---|---|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. | |
TimeoutException | If the request takes longer than Client.timeout. |