Skip to content

Commit cb2ecc7

Browse files
committed
Improve docstring references to routes (methods on DropboxBase).
1 parent 99953e1 commit cb2ecc7

File tree

8 files changed

+529
-358
lines changed

8 files changed

+529
-358
lines changed

docs/moduledoc.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ SDK Documentation
1717
:special-members: __init__
1818
:undoc-members:
1919

20+
:mod:`dropbox.async` -- Async
21+
============================================
22+
.. automodule:: dropbox.async
23+
:members:
24+
:show-inheritance:
25+
:special-members: __init__
26+
:undoc-members:
27+
2028
:mod:`dropbox.files` -- Files
2129
============================================
2230
.. automodule:: dropbox.files

dropbox/base.py

Lines changed: 95 additions & 83 deletions
Large diffs are not rendered by default.

dropbox/base_team.py

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def team_alpha_groups_list(self,
9999
def team_alpha_groups_list_continue(self,
100100
cursor):
101101
"""
102-
Once a cursor has been retrieved from :meth:`alpha_groups_list`, use
103-
this to paginate through all groups. Permission : Team information
102+
Once a cursor has been retrieved from :meth:`team_alpha_groups_list`,
103+
use this to paginate through all groups. Permission : Team information
104104
105105
:param str cursor: Indicates from what point to get the next set of
106106
groups.
@@ -200,10 +200,10 @@ def team_devices_list_members_devices(self,
200200
List all device sessions of a team.
201201
202202
:param Nullable cursor: At the first call to the
203-
:meth:`devices_list_members_devices` the cursor shouldn't be passed.
204-
Then, if the result of the call includes a cursor, the following
205-
requests should include the received cursors in order to receive the
206-
next sub list of team devices
203+
:meth:`team_devices_list_members_devices` the cursor shouldn't be
204+
passed. Then, if the result of the call includes a cursor, the
205+
following requests should include the received cursors in order to
206+
receive the next sub list of team devices
207207
:param bool include_web_sessions: Whether to list web sessions of the
208208
team members
209209
:param bool include_desktop_clients: Whether to list desktop clients of
@@ -237,10 +237,10 @@ def team_devices_list_team_devices(self,
237237
List all device sessions of a team.
238238
239239
:param Nullable cursor: At the first call to the
240-
:meth:`devices_list_team_devices` the cursor shouldn't be passed.
241-
Then, if the result of the call includes a cursor, the following
242-
requests should include the received cursors in order to receive the
243-
next sub list of team devices
240+
:meth:`team_devices_list_team_devices` the cursor shouldn't be
241+
passed. Then, if the result of the call includes a cursor, the
242+
following requests should include the received cursors in order to
243+
receive the next sub list of team devices
244244
:param bool include_web_sessions: Whether to list web sessions of the
245245
team members
246246
:param bool include_desktop_clients: Whether to list desktop clients of
@@ -360,7 +360,7 @@ def team_groups_delete(self,
360360
"""
361361
Deletes a group. The group is deleted immediately. However the revoking
362362
of group-owned resources may take additional time. Use the
363-
:meth:`groups_job_status_get` to determine whether this process has
363+
:meth:`team_groups_job_status_get` to determine whether this process has
364364
completed. Permission : Team member management
365365
366366
:param arg: Argument for selecting a single group, either by group_id or
@@ -406,10 +406,10 @@ def team_groups_get_info(self,
406406
def team_groups_job_status_get(self,
407407
async_job_id):
408408
"""
409-
Once an async_job_id is returned from :meth:`groups_delete`,
410-
:meth:`groups_members_add` , or :meth:`groups_members_remove` use this
411-
method to poll the status of granting/revoking group members' access to
412-
group-owned resources. Permission : Team member management
409+
Once an async_job_id is returned from :meth:`team_groups_delete`,
410+
:meth:`team_groups_members_add` , or :meth:`team_groups_members_remove`
411+
use this method to poll the status of granting/revoking group members'
412+
access to group-owned resources. Permission : Team member management
413413
414414
:param str async_job_id: Id of the asynchronous job. This is the value
415415
of a response returned from the method that launched the job.
@@ -448,8 +448,8 @@ def team_groups_list(self,
448448
def team_groups_list_continue(self,
449449
cursor):
450450
"""
451-
Once a cursor has been retrieved from :meth:`groups_list`, use this to
452-
paginate through all groups. Permission : Team information
451+
Once a cursor has been retrieved from :meth:`team_groups_list`, use this
452+
to paginate through all groups. Permission : Team information
453453
454454
:param str cursor: Indicates from what point to get the next set of
455455
groups.
@@ -475,7 +475,7 @@ def team_groups_members_add(self,
475475
"""
476476
Adds members to a group. The members are added immediately. However the
477477
granting of group-owned resources may take additional time. Use the
478-
:meth:`groups_job_status_get` to determine whether this process has
478+
:meth:`team_groups_job_status_get` to determine whether this process has
479479
completed. Permission : Team member management
480480
481481
:param group: Group to which users will be added.
@@ -526,8 +526,8 @@ def team_groups_members_list(self,
526526
def team_groups_members_list_continue(self,
527527
cursor):
528528
"""
529-
Once a cursor has been retrieved from :meth:`groups_members_list`, use
530-
this to paginate through all members of the group. Permission : Team
529+
Once a cursor has been retrieved from :meth:`team_groups_members_list`,
530+
use this to paginate through all members of the group. Permission : Team
531531
information
532532
533533
:param str cursor: Indicates from what point to get the next set of
@@ -554,10 +554,10 @@ def team_groups_members_remove(self,
554554
"""
555555
Removes members from a group. The members are removed immediately.
556556
However the revoking of group-owned resources may take additional time.
557-
Use the :meth:`groups_job_status_get` to determine whether this process
558-
has completed. This method permits removing the only owner of a group,
559-
even in cases where this is not possible via the web client. Permission
560-
: Team member management
557+
Use the :meth:`team_groups_job_status_get` to determine whether this
558+
process has completed. This method permits removing the only owner of a
559+
group, even in cases where this is not possible via the web client.
560+
Permission : Team member management
561561
562562
:param group: Group from which users will be removed.
563563
:type group: :class:`dropbox.team.GroupSelector`
@@ -680,10 +680,10 @@ def team_linked_apps_list_members_linked_apps(self,
680680
endpoint does not list any team-linked applications.
681681
682682
:param Nullable cursor: At the first call to the
683-
:meth:`linked_apps_list_members_linked_apps` the cursor shouldn't be
684-
passed. Then, if the result of the call includes a cursor, the
685-
following requests should include the received cursors in order to
686-
receive the next sub list of the team applications
683+
:meth:`team_linked_apps_list_members_linked_apps` the cursor
684+
shouldn't be passed. Then, if the result of the call includes a
685+
cursor, the following requests should include the received cursors
686+
in order to receive the next sub list of the team applications
687687
:rtype: :class:`dropbox.team.ListMembersAppsResult`
688688
:raises: :class:`dropbox.exceptions.ApiError`
689689
@@ -706,8 +706,8 @@ def team_linked_apps_list_team_linked_apps(self,
706706
endpoint doesn't list any team-linked applications.
707707
708708
:param Nullable cursor: At the first call to the
709-
:meth:`linked_apps_list_team_linked_apps` the cursor shouldn't be
710-
passed. Then, if the result of the call includes a cursor, the
709+
:meth:`team_linked_apps_list_team_linked_apps` the cursor shouldn't
710+
be passed. Then, if the result of the call includes a cursor, the
711711
following requests should include the received cursors in order to
712712
receive the next sub list of the team applications
713713
:rtype: :class:`dropbox.team.ListTeamAppsResult`
@@ -812,9 +812,9 @@ def team_members_add(self,
812812
def team_members_add_job_status_get(self,
813813
async_job_id):
814814
"""
815-
Once an async_job_id is returned from :meth:`members_add` , use this to
816-
poll the status of the asynchronous request. Permission : Team member
817-
management
815+
Once an async_job_id is returned from :meth:`team_members_add` , use
816+
this to poll the status of the asynchronous request. Permission : Team
817+
member management
818818
819819
:param str async_job_id: Id of the asynchronous job. This is the value
820820
of a response returned from the method that launched the job.
@@ -884,8 +884,8 @@ def team_members_list(self,
884884
def team_members_list_continue(self,
885885
cursor):
886886
"""
887-
Once a cursor has been retrieved from :meth:`members_list`, use this to
888-
paginate through all team members. Permission : Team information
887+
Once a cursor has been retrieved from :meth:`team_members_list`, use
888+
this to paginate through all team members. Permission : Team information
889889
890890
:param str cursor: Indicates from what point to get the next set of
891891
members.
@@ -938,12 +938,12 @@ def team_members_remove(self,
938938
Removes a member from a team. Permission : Team member management
939939
Exactly one of team_member_id, email, or external_id must be provided to
940940
identify the user account. This is not a deactivation where the account
941-
can be re-activated again. Calling :meth:`members_add` with the removed
942-
user's email address will create a new account with a new team_member_id
943-
that will not have access to any content that was shared with the
944-
initial account. This endpoint may initiate an asynchronous job. To
945-
obtain the final result of the job, the client should periodically poll
946-
:meth:`members_remove_job_status_get`.
941+
can be re-activated again. Calling :meth:`team_members_add` with the
942+
removed user's email address will create a new account with a new
943+
team_member_id that will not have access to any content that was shared
944+
with the initial account. This endpoint may initiate an asynchronous
945+
job. To obtain the final result of the job, the client should
946+
periodically poll :meth:`team_members_remove_job_status_get`.
947947
948948
:param Nullable transfer_dest_id: If provided, files from the deleted
949949
member account will be transferred to this user.
@@ -977,9 +977,9 @@ def team_members_remove(self,
977977
def team_members_remove_job_status_get(self,
978978
async_job_id):
979979
"""
980-
Once an async_job_id is returned from :meth:`members_remove` , use this
981-
to poll the status of the asynchronous request. Permission : Team member
982-
management
980+
Once an async_job_id is returned from :meth:`team_members_remove` , use
981+
this to poll the status of the asynchronous request. Permission : Team
982+
member management
983983
984984
:param str async_job_id: Id of the asynchronous job. This is the value
985985
of a response returned from the method that launched the job.
@@ -1185,7 +1185,7 @@ def team_properties_template_get(self,
11851185
def team_properties_template_list(self):
11861186
"""
11871187
Get the property template identifiers for a team. To get the schema of
1188-
each template use :meth:`properties_template_get`.
1188+
each template use :meth:`team_properties_template_get`.
11891189
11901190
:rtype: :class:`dropbox.team.ListPropertyTemplateIds`
11911191
:raises: :class:`dropbox.exceptions.ApiError`
@@ -1212,7 +1212,7 @@ def team_properties_template_update(self,
12121212
template description and add optional properties to templates.
12131213
12141214
:param str template_id: An identifier for property template added by
1215-
:meth:`properties_template_add`.
1215+
:meth:`team_properties_template_add`.
12161216
:param Nullable name: A display name for the property template. Property
12171217
template names can be up to 256 bytes.
12181218
:param Nullable description: Description for new property template.

0 commit comments

Comments
 (0)