-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
108 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<!-- markdownlint-disable --> | ||
|
||
<a href="../src/actions/promote_user_admin.py#L0"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
# <kbd>module</kbd> `promote_user_admin` | ||
Module to interact with Promote User Admin action. | ||
|
||
|
||
--- | ||
|
||
<a href="../src/actions/promote_user_admin.py#L34"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
## <kbd>function</kbd> `promote_user_admin` | ||
|
||
```python | ||
promote_user_admin( | ||
username: str, | ||
server: Optional[str], | ||
admin_access_token: Optional[str] | ||
) → None | ||
``` | ||
|
||
Run promote user admin action. | ||
|
||
|
||
|
||
**Args:** | ||
|
||
- <b>`username`</b>: username to be promoted. | ||
- <b>`server`</b>: to be used to promote the user id. | ||
- <b>`admin_access_token`</b>: server admin access token to call API. | ||
|
||
|
||
|
||
**Raises:** | ||
|
||
- <b>`PromoteUserAdminError`</b>: if something goes wrong while promoting the user to be an admin. | ||
|
||
|
||
--- | ||
|
||
<a href="../src/actions/promote_user_admin.py#L17"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
## <kbd>class</kbd> `PromoteUserAdminError` | ||
Exception raised when something fails while running promote-user-admin. | ||
|
||
Attrs: msg (str): Explanation of the error. | ||
|
||
<a href="../src/actions/promote_user_admin.py#L24"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
### <kbd>method</kbd> `__init__` | ||
|
||
```python | ||
__init__(msg: str) | ||
``` | ||
|
||
Initialize a new instance of the PromoteUserAdminError exception. | ||
|
||
|
||
|
||
**Args:** | ||
|
||
- <b>`msg`</b> (str): Explanation of the error. | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters