|
1 | 1 | # Auto-generated by Stone, do not modify.
|
2 | 2 |
|
3 | 3 | from abc import ABCMeta, abstractmethod
|
| 4 | +import warnings |
4 | 5 |
|
5 | 6 | from . import (
|
6 | 7 | async,
|
@@ -774,6 +775,10 @@ def files_upload_session_append(self,
|
774 | 775 | If this raises, ApiError.reason is of type:
|
775 | 776 | :class:`dropbox.files.UploadSessionLookupError`
|
776 | 777 | """
|
| 778 | + warnings.warn( |
| 779 | + 'upload_session/append is deprecated. Use upload_session/append_v2.', |
| 780 | + DeprecationWarning, |
| 781 | + ) |
777 | 782 | arg = files.UploadSessionCursor(session_id,
|
778 | 783 | offset)
|
779 | 784 | r = self.request(
|
@@ -982,6 +987,10 @@ def sharing_create_shared_link(self,
|
982 | 987 | If this raises, ApiError.reason is of type:
|
983 | 988 | :class:`dropbox.sharing.CreateSharedLinkError`
|
984 | 989 | """
|
| 990 | + warnings.warn( |
| 991 | + 'create_shared_link is deprecated. Use create_shared_link_with_settings.', |
| 992 | + DeprecationWarning, |
| 993 | + ) |
985 | 994 | arg = sharing.CreateSharedLinkArg(path,
|
986 | 995 | short_url,
|
987 | 996 | pending_upload)
|
@@ -1165,6 +1174,10 @@ def sharing_get_shared_links(self,
|
1165 | 1174 | If this raises, ApiError.reason is of type:
|
1166 | 1175 | :class:`dropbox.sharing.GetSharedLinksError`
|
1167 | 1176 | """
|
| 1177 | + warnings.warn( |
| 1178 | + 'get_shared_links is deprecated. Use list_shared_links.', |
| 1179 | + DeprecationWarning, |
| 1180 | + ) |
1168 | 1181 | arg = sharing.GetSharedLinksArg(path)
|
1169 | 1182 | r = self.request(
|
1170 | 1183 | sharing.get_shared_links,
|
|
0 commit comments