-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add .gitignore and populate with Python defaults * Expose ZIA and ZPA Classes to root module. * Add contributors variable * make code more readable * fix typo * fix typo. zia.users.list() doesn't exist but zia.users.list_users() does. * search for adminuser works * drop .gitignore and undo changes in utils.py * Missed some undoing changes in utils.py Co-authored-by: Dax Mickelson <dmickelson@zscaler.com>
- Loading branch information
Showing
4 changed files
with
49 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
__author__ = "Mitch Kelly" | ||
__license__ = "MIT" | ||
__contributors__ = [ | ||
"Dax Mickelson", | ||
] | ||
|
||
from .zia import ZIA | ||
from .zpa import ZPA |
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,30 @@ | ||
from restfly.endpoint import APIEndpoint | ||
|
||
from pyzscaler.utils import Iterator | ||
|
||
|
||
class AdminAndRoleManagementAPI(APIEndpoint): | ||
def get_admin_users(self, **kwargs): | ||
""" | ||
Returns a list of admin users. | ||
Keyword Args: | ||
**include_auditor_users (bool, optional): | ||
Include or exclude auditor user information in the list. | ||
**include_admin_users (bool, optional): | ||
Include or exclude admin user information in the list. (default: True) | ||
**search (str, optional): | ||
The search string used to partially match against an admin/auditor user's Login ID or Name. | ||
**page (int, optional): | ||
Specifies the page offset. | ||
**page_size (int, optional): | ||
Specifies the page size. The default size is 100, but the maximum size is 1000. | ||
Returns: | ||
:obj:`list`: The admin_users resource record. | ||
Examples: | ||
>>> department = zia.admin_and_role_management.get_admin_users(search='login_name') | ||
""" | ||
return list(Iterator(self._api, "adminUsers", **kwargs)) |