Skip to content

Commit 08cf819

Browse files
committed
Rebuild docs with fixed references
1 parent 0f26ac3 commit 08cf819

17 files changed

+7759
-6701
lines changed

dropbox/async_.py

+16-13
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class LaunchResultBase(bb.Union):
2424
return true. To get the associated value of a tag (if one exists), use the
2525
corresponding ``get_*`` method.
2626
27-
:ivar str async_job_id: This response indicates that the processing is
28-
asynchronous. The string is an id that can be used to obtain the status
29-
of the asynchronous job.
27+
:ivar str async.LaunchResultBase.async_job_id: This response indicates that
28+
the processing is asynchronous. The string is an id that can be used to
29+
obtain the status of the asynchronous job.
3030
"""
3131

3232
_catch_all = None
@@ -38,7 +38,7 @@ def async_job_id(cls, val):
3838
value ``val``.
3939
4040
:param str val:
41-
:rtype: LaunchResultBase
41+
:rtype: async_.LaunchResultBase
4242
"""
4343
return cls('async_job_id', val)
4444

@@ -81,7 +81,8 @@ class LaunchEmptyResult(LaunchResultBase):
8181
return true. To get the associated value of a tag (if one exists), use the
8282
corresponding ``get_*`` method.
8383
84-
:ivar complete: The job finished synchronously and successfully.
84+
:ivar async.LaunchEmptyResult.complete: The job finished synchronously and
85+
successfully.
8586
"""
8687

8788
# Attribute is overwritten below the class definition
@@ -107,8 +108,8 @@ class PollArg(bb.Struct):
107108
"""
108109
Arguments for methods that poll the status of an asynchronous job.
109110
110-
:ivar async_job_id: Id of the asynchronous job. This is the value of a
111-
response returned from the method that launched the job.
111+
:ivar async.PollArg.async_job_id: Id of the asynchronous job. This is the
112+
value of a response returned from the method that launched the job.
112113
"""
113114

114115
__slots__ = [
@@ -170,7 +171,8 @@ class PollResultBase(bb.Union):
170171
return true. To get the associated value of a tag (if one exists), use the
171172
corresponding ``get_*`` method.
172173
173-
:ivar in_progress: The asynchronous job is still in progress.
174+
:ivar async.PollResultBase.in_progress: The asynchronous job is still in
175+
progress.
174176
"""
175177

176178
_catch_all = None
@@ -202,7 +204,8 @@ class PollEmptyResult(PollResultBase):
202204
return true. To get the associated value of a tag (if one exists), use the
203205
corresponding ``get_*`` method.
204206
205-
:ivar complete: The asynchronous job has completed successfully.
207+
:ivar async.PollEmptyResult.complete: The asynchronous job has completed
208+
successfully.
206209
"""
207210

208211
# Attribute is overwritten below the class definition
@@ -232,10 +235,10 @@ class PollError(bb.Union):
232235
return true. To get the associated value of a tag (if one exists), use the
233236
corresponding ``get_*`` method.
234237
235-
:ivar invalid_async_job_id: The job ID is invalid.
236-
:ivar internal_error: Something went wrong with the job on Dropbox's end.
237-
You'll need to verify that the action you were taking succeeded, and if
238-
not, try again. This should happen very rarely.
238+
:ivar async.PollError.invalid_async_job_id: The job ID is invalid.
239+
:ivar async.PollError.internal_error: Something went wrong with the job on
240+
Dropbox's end. You'll need to verify that the action you were taking
241+
succeeded, and if not, try again. This should happen very rarely.
239242
"""
240243

241244
_catch_all = 'other'

dropbox/auth.py

+43-40
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class AccessError(bb.Union):
2121
return true. To get the associated value of a tag (if one exists), use the
2222
corresponding ``get_*`` method.
2323
24-
:ivar InvalidAccountTypeError invalid_account_type: Current account type
25-
cannot access the resource.
26-
:ivar PaperAccessError paper_access_denied: Current account cannot access
27-
Paper.
24+
:ivar InvalidAccountTypeError auth.AccessError.invalid_account_type: Current
25+
account type cannot access the resource.
26+
:ivar PaperAccessError auth.AccessError.paper_access_denied: Current account
27+
cannot access Paper.
2828
"""
2929

3030
_catch_all = 'other'
@@ -37,8 +37,8 @@ def invalid_account_type(cls, val):
3737
Create an instance of this class set to the ``invalid_account_type`` tag
3838
with value ``val``.
3939
40-
:param InvalidAccountTypeError val:
41-
:rtype: AccessError
40+
:param auth.InvalidAccountTypeError val:
41+
:rtype: auth.AccessError
4242
"""
4343
return cls('invalid_account_type', val)
4444

@@ -48,8 +48,8 @@ def paper_access_denied(cls, val):
4848
Create an instance of this class set to the ``paper_access_denied`` tag
4949
with value ``val``.
5050
51-
:param PaperAccessError val:
52-
:rtype: AccessError
51+
:param auth.PaperAccessError val:
52+
:rtype: auth.AccessError
5353
"""
5454
return cls('paper_access_denied', val)
5555

@@ -83,7 +83,7 @@ def get_invalid_account_type(self):
8383
8484
Only call this if :meth:`is_invalid_account_type` is true.
8585
86-
:rtype: InvalidAccountTypeError
86+
:rtype: auth.InvalidAccountTypeError
8787
"""
8888
if not self.is_invalid_account_type():
8989
raise AttributeError("tag 'invalid_account_type' not set")
@@ -95,7 +95,7 @@ def get_paper_access_denied(self):
9595
9696
Only call this if :meth:`is_paper_access_denied` is true.
9797
98-
:rtype: PaperAccessError
98+
:rtype: auth.PaperAccessError
9999
"""
100100
if not self.is_paper_access_denied():
101101
raise AttributeError("tag 'paper_access_denied' not set")
@@ -117,13 +117,13 @@ class AuthError(bb.Union):
117117
return true. To get the associated value of a tag (if one exists), use the
118118
corresponding ``get_*`` method.
119119
120-
:ivar invalid_access_token: The access token is invalid.
121-
:ivar invalid_select_user: The user specified in 'Dropbox-API-Select-User'
122-
is no longer on the team.
123-
:ivar invalid_select_admin: The user specified in 'Dropbox-API-Select-Admin'
124-
is not a Dropbox Business team admin.
125-
:ivar user_suspended: The user has been suspended.
126-
:ivar expired_access_token: The access token has expired.
120+
:ivar auth.AuthError.invalid_access_token: The access token is invalid.
121+
:ivar auth.AuthError.invalid_select_user: The user specified in
122+
'Dropbox-API-Select-User' is no longer on the team.
123+
:ivar auth.AuthError.invalid_select_admin: The user specified in
124+
'Dropbox-API-Select-Admin' is not a Dropbox Business team admin.
125+
:ivar auth.AuthError.user_suspended: The user has been suspended.
126+
:ivar auth.AuthError.expired_access_token: The access token has expired.
127127
"""
128128

129129
_catch_all = 'other'
@@ -202,10 +202,10 @@ class InvalidAccountTypeError(bb.Union):
202202
return true. To get the associated value of a tag (if one exists), use the
203203
corresponding ``get_*`` method.
204204
205-
:ivar endpoint: Current account type doesn't have permission to access this
206-
route endpoint.
207-
:ivar feature: Current account type doesn't have permission to access this
208-
feature.
205+
:ivar auth.InvalidAccountTypeError.endpoint: Current account type doesn't
206+
have permission to access this route endpoint.
207+
:ivar auth.InvalidAccountTypeError.feature: Current account type doesn't
208+
have permission to access this feature.
209209
"""
210210

211211
_catch_all = 'other'
@@ -254,8 +254,9 @@ class PaperAccessError(bb.Union):
254254
return true. To get the associated value of a tag (if one exists), use the
255255
corresponding ``get_*`` method.
256256
257-
:ivar paper_disabled: Paper is disabled.
258-
:ivar not_paper_user: The provided user has not used Paper yet.
257+
:ivar auth.PaperAccessError.paper_disabled: Paper is disabled.
258+
:ivar auth.PaperAccessError.not_paper_user: The provided user has not used
259+
Paper yet.
259260
"""
260261

261262
_catch_all = 'other'
@@ -302,9 +303,10 @@ class RateLimitError(bb.Struct):
302303
"""
303304
Error occurred because the app is being rate limited.
304305
305-
:ivar reason: The reason why the app is being rate limited.
306-
:ivar retry_after: The number of seconds that the app should wait before
307-
making another request.
306+
:ivar auth.RateLimitError.reason: The reason why the app is being rate
307+
limited.
308+
:ivar auth.RateLimitError.retry_after: The number of seconds that the app
309+
should wait before making another request.
308310
"""
309311

310312
__slots__ = [
@@ -333,7 +335,7 @@ def reason(self):
333335
"""
334336
The reason why the app is being rate limited.
335337
336-
:rtype: RateLimitReason
338+
:rtype: auth.RateLimitReason
337339
"""
338340
if self._reason_present:
339341
return self._reason_value
@@ -392,10 +394,10 @@ class RateLimitReason(bb.Union):
392394
return true. To get the associated value of a tag (if one exists), use the
393395
corresponding ``get_*`` method.
394396
395-
:ivar too_many_requests: You are making too many requests in the past few
396-
minutes.
397-
:ivar too_many_write_operations: There are currently too many write
398-
operations happening in the user's Dropbox.
397+
:ivar auth.RateLimitReason.too_many_requests: You are making too many
398+
requests in the past few minutes.
399+
:ivar auth.RateLimitReason.too_many_write_operations: There are currently
400+
too many write operations happening in the user's Dropbox.
399401
"""
400402

401403
_catch_all = 'other'
@@ -440,9 +442,10 @@ def __repr__(self):
440442

441443
class TokenFromOAuth1Arg(bb.Struct):
442444
"""
443-
:ivar oauth1_token: The supplied OAuth 1.0 access token.
444-
:ivar oauth1_token_secret: The token secret associated with the supplied
445-
access token.
445+
:ivar auth.TokenFromOAuth1Arg.oauth1_token: The supplied OAuth 1.0 access
446+
token.
447+
:ivar auth.TokenFromOAuth1Arg.oauth1_token_secret: The token secret
448+
associated with the supplied access token.
446449
"""
447450

448451
__slots__ = [
@@ -529,10 +532,10 @@ class TokenFromOAuth1Error(bb.Union):
529532
return true. To get the associated value of a tag (if one exists), use the
530533
corresponding ``get_*`` method.
531534
532-
:ivar invalid_oauth1_token_info: Part or all of the OAuth 1.0 access token
533-
info is invalid.
534-
:ivar app_id_mismatch: The authorized app does not match the app associated
535-
with the supplied access token.
535+
:ivar auth.TokenFromOAuth1Error.invalid_oauth1_token_info: Part or all of
536+
the OAuth 1.0 access token info is invalid.
537+
:ivar auth.TokenFromOAuth1Error.app_id_mismatch: The authorized app does not
538+
match the app associated with the supplied access token.
536539
"""
537540

538541
_catch_all = 'other'
@@ -577,8 +580,8 @@ def __repr__(self):
577580

578581
class TokenFromOAuth1Result(bb.Struct):
579582
"""
580-
:ivar oauth2_token: The OAuth 2.0 token generated from the supplied OAuth
581-
1.0 token.
583+
:ivar auth.TokenFromOAuth1Result.oauth2_token: The OAuth 2.0 token generated
584+
from the supplied OAuth 1.0 token.
582585
"""
583586

584587
__slots__ = [

dropbox/common.py

+27-24
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ class PathRoot(bb.Union):
1818
return true. To get the associated value of a tag (if one exists), use the
1919
corresponding ``get_*`` method.
2020
21-
:ivar home: Paths are relative to the authenticating user's home namespace,
22-
whether or not that user belongs to a team.
23-
:ivar str root: Paths are relative to the authenticating user's root
24-
namespace (This results in :field:`PathRootError.invalid_root` if the
25-
user's root namespace has changed.).
26-
:ivar str namespace_id: Paths are relative to given namespace id (This
27-
results in :field:`PathRootError.no_permission` if you don't have access
28-
to this namespace.).
21+
:ivar common.PathRoot.home: Paths are relative to the authenticating user's
22+
home namespace, whether or not that user belongs to a team.
23+
:ivar str common.PathRoot.root: Paths are relative to the authenticating
24+
user's root namespace (This results in
25+
:field:`PathRootError.invalid_root` if the user's root namespace has
26+
changed.).
27+
:ivar str common.PathRoot.namespace_id: Paths are relative to given
28+
namespace id (This results in :field:`PathRootError.no_permission` if
29+
you don't have access to this namespace.).
2930
"""
3031

3132
_catch_all = 'other'
@@ -41,7 +42,7 @@ def root(cls, val):
4142
``val``.
4243
4344
:param str val:
44-
:rtype: PathRoot
45+
:rtype: common.PathRoot
4546
"""
4647
return cls('root', val)
4748

@@ -52,7 +53,7 @@ def namespace_id(cls, val):
5253
value ``val``.
5354
5455
:param str val:
55-
:rtype: PathRoot
56+
:rtype: common.PathRoot
5657
"""
5758
return cls('namespace_id', val)
5859

@@ -130,10 +131,11 @@ class PathRootError(bb.Union):
130131
return true. To get the associated value of a tag (if one exists), use the
131132
corresponding ``get_*`` method.
132133
133-
:ivar RootInfo invalid_root: The root namespace id in Dropbox-API-Path-Root
134-
header is not valid. The value of this error is use's latest root info.
135-
:ivar no_permission: You don't have permission to access the namespace id in
136-
Dropbox-API-Path-Root header.
134+
:ivar RootInfo common.PathRootError.invalid_root: The root namespace id in
135+
Dropbox-API-Path-Root header is not valid. The value of this error is
136+
use's latest root info.
137+
:ivar common.PathRootError.no_permission: You don't have permission to
138+
access the namespace id in Dropbox-API-Path-Root header.
137139
"""
138140

139141
_catch_all = 'other'
@@ -148,8 +150,8 @@ def invalid_root(cls, val):
148150
Create an instance of this class set to the ``invalid_root`` tag with
149151
value ``val``.
150152
151-
:param RootInfo val:
152-
:rtype: PathRootError
153+
:param common.RootInfo val:
154+
:rtype: common.PathRootError
153155
"""
154156
return cls('invalid_root', val)
155157

@@ -184,7 +186,7 @@ def get_invalid_root(self):
184186
185187
Only call this if :meth:`is_invalid_root` is true.
186188
187-
:rtype: RootInfo
189+
:rtype: common.RootInfo
188190
"""
189191
if not self.is_invalid_root():
190192
raise AttributeError("tag 'invalid_root' not set")
@@ -202,11 +204,12 @@ class RootInfo(bb.Struct):
202204
"""
203205
Information about current user's root.
204206
205-
:ivar root_namespace_id: The namespace ID for user's root namespace. It will
206-
be the namespace ID of the shared team root if the user is member of a
207-
team with a separate team root. Otherwise it will be same as
208-
``RootInfo.home_namespace_id``.
209-
:ivar home_namespace_id: The namespace ID for user's home namespace.
207+
:ivar common.RootInfo.root_namespace_id: The namespace ID for user's root
208+
namespace. It will be the namespace ID of the shared team root if the
209+
user is member of a team with a separate team root. Otherwise it will be
210+
same as ``RootInfo.home_namespace_id``.
211+
:ivar common.RootInfo.home_namespace_id: The namespace ID for user's home
212+
namespace.
210213
"""
211214

212215
__slots__ = [
@@ -293,8 +296,8 @@ class TeamRootInfo(RootInfo):
293296
"""
294297
Root info when user is member of a team with a separate root namespace ID.
295298
296-
:ivar home_path: The path for user's home directory under the shared team
297-
root.
299+
:ivar common.TeamRootInfo.home_path: The path for user's home directory
300+
under the shared team root.
298301
"""
299302

300303
__slots__ = [

dropbox/contacts.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121

2222
class DeleteManualContactsArg(bb.Struct):
2323
"""
24-
:ivar email_addresses: List of manually added contacts to be deleted.
24+
:ivar contacts.DeleteManualContactsArg.email_addresses: List of manually
25+
added contacts to be deleted.
2526
"""
2627

2728
__slots__ = [
@@ -77,9 +78,9 @@ class DeleteManualContactsError(bb.Union):
7778
return true. To get the associated value of a tag (if one exists), use the
7879
corresponding ``get_*`` method.
7980
80-
:ivar list of [str] contacts_not_found: Can't delete contacts from this
81-
list. Make sure the list only has manually added contacts. The deletion
82-
was cancelled.
81+
:ivar list of [str] contacts.DeleteManualContactsError.contacts_not_found:
82+
Can't delete contacts from this list. Make sure the list only has
83+
manually added contacts. The deletion was cancelled.
8384
"""
8485

8586
_catch_all = 'other'
@@ -93,7 +94,7 @@ def contacts_not_found(cls, val):
9394
with value ``val``.
9495
9596
:param list of [str] val:
96-
:rtype: DeleteManualContactsError
97+
:rtype: contacts.DeleteManualContactsError
9798
"""
9899
return cls('contacts_not_found', val)
99100

0 commit comments

Comments
 (0)