Skip to content

Commit

Permalink
docs: docstrings for user item and endpoint (#1485)
Browse files Browse the repository at this point in the history
* docs: docstrings for user item and endpoint

* docs: add serverresponseerror details

---------

Co-authored-by: Jordan Woods <[email protected]>
  • Loading branch information
jorwoods and jorwoods authored Oct 11, 2024
1 parent 89e1ddf commit 1b64987
Show file tree
Hide file tree
Showing 2 changed files with 377 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tableauserverclient/models/user_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,34 @@


class UserItem:
"""
The UserItem class contains the members or attributes for the view
resources on Tableau Server. The UserItem class defines the information you
can request or query from Tableau Server. The class attributes correspond
to the attributes of a server request or response payload.
Parameters
----------
name: str
The name of the user.
site_role: str
The role of the user on the site.
auth_setting: str
Required attribute for Tableau Cloud. How the user autenticates to the
server.
"""

tag_name: str = "user"

class Roles:
"""
The Roles class contains the possible roles for a user on Tableau
Server.
"""

Interactor = "Interactor"
Publisher = "Publisher"
ServerAdministrator = "ServerAdministrator"
Expand All @@ -43,6 +68,11 @@ class Roles:
SupportUser = "SupportUser"

class Auth:
"""
The Auth class contains the possible authentication settings for a user
on Tableau Cloud.
"""

OpenID = "OpenID"
SAML = "SAML"
TableauIDWithMFA = "TableauIDWithMFA"
Expand Down
Loading

0 comments on commit 1b64987

Please sign in to comment.