Skip to content

Commit

Permalink
update links to swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda committed Apr 9, 2021
1 parent 7d35392 commit 5c15ac9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
42 changes: 21 additions & 21 deletions auth0/v3/management/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def all_organizations(self, page=None, per_page=None):
per_page (int, optional): The amount of entries per page. When not set,
the default value is up to the server.
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_organizations
"""
params = {}
params['page'] = page
Expand All @@ -55,7 +55,7 @@ def get_organization_by_name(self, name=None):
Args:
name (str): The name of the organization to retrieve.
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_name_by_name
"""
params = {}
params['name'] = name
Expand All @@ -68,7 +68,7 @@ def get_organization(self, id):
Args:
id (str): Id of organization to retrieve.
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_organizations_by_id
"""
params = {}

Expand All @@ -80,7 +80,7 @@ def create_organization(self, body):
Args:
body (dict): Attributes for the new organization.
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_organizations
"""

return self.client.post(self._url(), data=body)
Expand All @@ -93,7 +93,7 @@ def update_organization(self, id, body):
body (dict): Attributes to modify.
See: https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id
See: https://auth0.com/docs/api/management/v2#!/Organizations/patch_organizations_by_id
"""

return self.client.patch(self._url(id), data=body)
Expand All @@ -104,7 +104,7 @@ def delete_organization(self, id):
Args:
id (str): Id of organization to delete.
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_organizations_by_id
"""

return self.client.delete(self._url(id))
Expand All @@ -123,7 +123,7 @@ def all_organization_connections(self, id, page=None, per_page=None):
per_page (int, optional): The amount of entries per page. When not set,
the default value is up to the server.
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_enabled_connections
"""
params = {}
params['page'] = page
Expand All @@ -139,7 +139,7 @@ def get_organization_connection(self, id, connection_id):
connection_id (str): the ID of the connection.
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_enabled_connections_by_connectionId
"""
params = {}

Expand All @@ -153,7 +153,7 @@ def create_organization_connection(self, id, body):
body (dict): Attributes for the connection to add.
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_enabled_connections
"""

return self.client.post(self._url(id, 'enabled_connections'), data=body)
Expand All @@ -168,7 +168,7 @@ def update_organization_connection(self, id, connection_id, body):
body (dict): Attributes to modify.
See: https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id
See: https://auth0.com/docs/api/management/v2#!/Organizations/patch_enabled_connections_by_connectionId
"""

return self.client.patch(self._url(id, 'enabled_connections', connection_id), data=body)
Expand All @@ -181,7 +181,7 @@ def delete_organization_connection(self, id, connection_id):
connection_id (str): the ID of the connection to delete.
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_enabled_connections_by_connectionId
"""

return self.client.delete(self._url(id, 'enabled_connections', connection_id))
Expand All @@ -199,7 +199,7 @@ def all_organization_members(self, id, page=None, per_page=None):
per_page (int, optional): The amount of entries per page. When not set,
the default value is up to the server.
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_members
"""
params = {}
params['page'] = page
Expand All @@ -215,7 +215,7 @@ def create_organization_members(self, id, body):
body (dict): Attributes from the members to add.
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_members
"""

return self.client.post(self._url(id, 'members'), data=body)
Expand All @@ -228,7 +228,7 @@ def delete_organization_members(self, id, body):
body (dict): Attributes from the members to delete
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_members
"""

return self.client.delete(self._url(id, 'members'), data=body)
Expand All @@ -248,7 +248,7 @@ def all_organization_member_roles(self, id, user_id, page=None, per_page=None):
per_page (int, optional): The amount of entries per page. When not set,
the default value is up to the server.
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_organization_member_roles
"""
params = {}
params['page'] = page
Expand All @@ -266,7 +266,7 @@ def create_organization_member_roles(self, id, user_id, body):
body (dict): Attributes from the members to add.
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_organization_member_roles
"""

return self.client.post(self._url(id, 'members', user_id, 'roles'), data=body)
Expand All @@ -281,7 +281,7 @@ def delete_organization_member_roles(self, id, user_id, body):
body (dict): Attributes from the members to delete
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_organization_member_roles
"""

return self.client.delete(self._url(id, 'members', user_id, 'roles'), data=body)
Expand All @@ -300,7 +300,7 @@ def all_organization_invitations(self, id, page=None, per_page=None):
per_page (int, optional): The amount of entries per page. When not set,
the default value is up to the server.
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_invitations
"""
params = {}
params['page'] = page
Expand All @@ -316,7 +316,7 @@ def get_organization_invitation(self, id, invitaton_id):
invitaton_id (str): the ID of the invitation.
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/get_invitations_by_invitation_id
"""
params = {}

Expand All @@ -330,7 +330,7 @@ def create_organization_invitation(self, id, body):
body (dict): Attributes for the invitation to create.
See: https://auth0.com/docs/api/v2#!/Clients/post_clients
See: https://auth0.com/docs/api/management/v2#!/Organizations/post_invitations
"""

return self.client.post(self._url(id, 'invitations'), data=body)
Expand All @@ -343,7 +343,7 @@ def delete_organization_invitation(self, id, invitation_id):
invitation_id (str): the ID of the invitation to delete.
See: https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
See: https://auth0.com/docs/api/management/v2#!/Organizations/delete_invitations_by_invitation_id
"""

return self.client.delete(self._url(id, 'invitations', invitation_id))
2 changes: 1 addition & 1 deletion auth0/v3/management/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def list_organizations(self, id, page=0, per_page=25, include_totals=True):
include_totals (bool, optional): True if the query summary is
to be included in the result, False otherwise. Defaults to True.
See https://auth0.com/docs/api/management/v2#!/Users/get_user_roles
See https://auth0.com/docs/api/management/v2#!/Users/get_organizations
"""
params = {
'per_page': per_page,
Expand Down

0 comments on commit 5c15ac9

Please sign in to comment.