Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52276e1

Browse files
committed
chore review comments
1 parent 6520cc1 commit 52276e1

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

auth0/v3/management/roles.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def update(self, id, body):
8888
return self.client.patch(self._url(id), data=body)
8989

9090
def list_users(self, id, page=0, per_page=25, include_totals=True):
91-
"""Lists the users that have been associated with a given role.
91+
"""List the users that have been associated with a given role.
9292
9393
Args:
9494
id (str): The role's id.
@@ -126,7 +126,7 @@ def add_users(self, id, users):
126126
return self.client.post(url, data=body)
127127

128128
def list_permissions(self, id, page=0, per_page=25, include_totals=True):
129-
"""Gets the permissions for a role.
129+
"""List the permissions associated to a role.
130130
131131
Args:
132132
id (str): The role's id.
@@ -149,12 +149,12 @@ def list_permissions(self, id, page=0, per_page=25, include_totals=True):
149149
return self.client.get(url, params=params)
150150

151151
def remove_permissions(self, id, permissions):
152-
"""Removes permissions from a role.
152+
"""Unassociates permissions from a role.
153153
154154
Args:
155155
id (str): The role's id.
156156
157-
permissions (list of str): A list of permissions ids to unassociate from the role.
157+
permissions (list of str): A list of permission ids to unassociate from the role.
158158
159159
See https://auth0.com/docs/api/management/v2#!/Roles/delete_role_permission_assignment
160160
"""
@@ -164,12 +164,12 @@ def remove_permissions(self, id, permissions):
164164

165165

166166
def add_permissions(self, id, permissions):
167-
"""Adds permissions from a role.
167+
"""Associates permissions with a role.
168168
169169
Args:
170170
id (str): The role's id.
171171
172-
permissions (list of str): A list of permissions ids to associate to the role.
172+
permissions (list of str): A list of permission ids to associate to the role.
173173
174174
See https://auth0.com/docs/api/management/v2#!/Roles/post_role_permission_assignment
175175
"""

auth0/v3/management/users.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def update(self, id, body):
130130
return self.client.patch(self._url(id), data=body)
131131

132132
def list_roles(self, id, page=0, per_page=25, include_totals=True):
133-
"""Get a user's roles.
133+
"""List the roles associated with a user.
134134
135135
Args:
136136
id (str): The user's id.
@@ -154,7 +154,7 @@ def list_roles(self, id, page=0, per_page=25, include_totals=True):
154154
return self.client.get(url, params=params)
155155

156156
def remove_roles(self, id, roles):
157-
"""Removes roles from a user.
157+
"""Removes an array of roles from a user.
158158
159159
Args:
160160
id (str): The user's id.
@@ -168,7 +168,7 @@ def remove_roles(self, id, roles):
168168
return self.client.delete(url, data=body)
169169

170170
def add_roles(self, id, roles):
171-
"""Assign roles to a user
171+
"""Associate an array of roles with a user.
172172
173173
Args:
174174
id (str): The user's id.
@@ -182,7 +182,7 @@ def add_roles(self, id, roles):
182182
return self.client.post(url, data=body)
183183

184184
def list_permissions(self, id, page=0, per_page=25, include_totals=True):
185-
"""Get a user's permissions.
185+
"""List the permissions associated to the user.
186186
187187
Args:
188188
id (str): The user's id.
@@ -211,7 +211,7 @@ def remove_permissions(self, id, permissions):
211211
Args:
212212
id (str): The user's id.
213213
214-
permissions (list of str): A list of permissions ids to unassociate from the user.
214+
permissions (list of str): A list of permission ids to unassociate from the user.
215215
216216
See https://auth0.com/docs/api/management/v2#!/Users/delete_permissions
217217
"""
@@ -220,12 +220,12 @@ def remove_permissions(self, id, permissions):
220220
return self.client.delete(url, data=body)
221221

222222
def add_permissions(self, id, permissions):
223-
"""Assign permissions to a user
223+
"""Assign permissions to a user.
224224
225225
Args:
226226
id (str): The user's id.
227227
228-
permissions (list of str): A list of permissions ids to associated with the user.
228+
permissions (list of str): A list of permission ids to associated with the user.
229229
230230
See https://auth0.com/docs/api/management/v2#!/Users/post_permissions
231231
"""

0 commit comments

Comments
 (0)