Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0f71807

Browse files
authored
Automated Spec Update (dropbox#392)
72d0718154d13756b31b5a0e0948abcae35dab84 Change Notes:files Namespace- Remove upload_session/finish_batchteam_log_generated Namespace- Update SharedContentUnshareDetails struct exampleCo-authored-by: Eugene Che <eugeneyche@dropbox.com> 956339f6ff8113095999e38a17bcb7927475ab7b Change Notes:team_log_generated Namespace- Update SharingLinkPolicy union to include default_no_oneteam_policies Namespace- Update SharedLinkCreatePolicy union to include default_no_oneCo-authored-by: DropboxBot <DropboxBot@users.noreply.github.com>
1 parent2dc18a1 commit0f71807

File tree

5 files changed

+35
-2
lines changed

5 files changed

+35
-2
lines changed

‎dropbox/base.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,6 +3006,10 @@ def files_upload_session_finish_batch(self,
30063006
Commit information for each file in the batch.
30073007
:rtype: :class:`dropbox.files.UploadSessionFinishBatchLaunch`
30083008
"""
3009+
warnings.warn(
3010+
'upload_session/finish_batch is deprecated. Use upload_session/finish_batch.',
3011+
DeprecationWarning,
3012+
)
30093013
arg=files.UploadSessionFinishBatchArg(entries)
30103014
r=self.request(
30113015
files.upload_session_finish_batch,

‎dropbox/files.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13138,7 +13138,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1313813138
upload_session_finish_batch=bb.Route(
1313913139
'upload_session/finish_batch',
1314013140
1,
13141-
False,
13141+
True,
1314213142
UploadSessionFinishBatchArg_validator,
1314313143
UploadSessionFinishBatchLaunch_validator,
1314413144
bv.Void(),

‎dropbox/team_log.py‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64030,6 +64030,8 @@ class SharingLinkPolicy(bb.Union):
6403064030

6403164031
_catch_all = 'other'
6403264032
# Attribute is overwritten below the class definition
64033+
default_no_one = None
64034+
# Attribute is overwritten below the class definition
6403364035
default_private = None
6403464036
# Attribute is overwritten below the class definition
6403564037
default_public = None
@@ -64038,6 +64040,14 @@ class SharingLinkPolicy(bb.Union):
6403864040
# Attribute is overwritten below the class definition
6403964041
other = None
6404064042

64043+
def is_default_no_one(self):
64044+
"""
64045+
Check if the union tag is ``default_no_one``.
64046+
64047+
:rtype: bool
64048+
"""
64049+
return self._tag == 'default_no_one'
64050+
6404164051
def is_default_private(self):
6404264052
"""
6404364053
Check if the union tag is ``default_private``.
@@ -81648,17 +81658,20 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
8164881658
SharingFolderJoinPolicy.from_team_only = SharingFolderJoinPolicy('from_team_only')
8164981659
SharingFolderJoinPolicy.other = SharingFolderJoinPolicy('other')
8165081660

81661+
SharingLinkPolicy._default_no_one_validator = bv.Void()
8165181662
SharingLinkPolicy._default_private_validator = bv.Void()
8165281663
SharingLinkPolicy._default_public_validator = bv.Void()
8165381664
SharingLinkPolicy._only_private_validator = bv.Void()
8165481665
SharingLinkPolicy._other_validator = bv.Void()
8165581666
SharingLinkPolicy._tagmap = {
81667+
'default_no_one': SharingLinkPolicy._default_no_one_validator,
8165681668
'default_private': SharingLinkPolicy._default_private_validator,
8165781669
'default_public': SharingLinkPolicy._default_public_validator,
8165881670
'only_private': SharingLinkPolicy._only_private_validator,
8165981671
'other': SharingLinkPolicy._other_validator,
8166081672
}
8166181673

81674+
SharingLinkPolicy.default_no_one = SharingLinkPolicy('default_no_one')
8166281675
SharingLinkPolicy.default_private = SharingLinkPolicy('default_private')
8166381676
SharingLinkPolicy.default_public = SharingLinkPolicy('default_public')
8166481677
SharingLinkPolicy.only_private = SharingLinkPolicy('only_private')

‎dropbox/team_policies.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,9 @@ class SharedLinkCreatePolicy(bb.Union):
844844
:ivar team_policies.SharedLinkCreatePolicy.team_only: Only members of the
845845
same team can access all shared links. Login will be required to access
846846
all shared links.
847+
:ivar team_policies.SharedLinkCreatePolicy.default_no_one: Only people
848+
invited can access newly created links. Login will be required to access
849+
the shared links unless overridden.
847850
"""
848851

849852
_catch_all='other'
@@ -854,6 +857,8 @@ class SharedLinkCreatePolicy(bb.Union):
854857
# Attribute is overwritten below the class definition
855858
team_only=None
856859
# Attribute is overwritten below the class definition
860+
default_no_one=None
861+
# Attribute is overwritten below the class definition
857862
other=None
858863

859864
defis_default_public(self):
@@ -880,6 +885,14 @@ def is_team_only(self):
880885
"""
881886
returnself._tag=='team_only'
882887

888+
defis_default_no_one(self):
889+
"""
890+
Check if the union tag is ``default_no_one``.
891+
892+
:rtype: bool
893+
"""
894+
returnself._tag=='default_no_one'
895+
883896
defis_other(self):
884897
"""
885898
Check if the union tag is ``other``.
@@ -1687,17 +1700,20 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
16871700
SharedLinkCreatePolicy._default_public_validator=bv.Void()
16881701
SharedLinkCreatePolicy._default_team_only_validator=bv.Void()
16891702
SharedLinkCreatePolicy._team_only_validator=bv.Void()
1703+
SharedLinkCreatePolicy._default_no_one_validator=bv.Void()
16901704
SharedLinkCreatePolicy._other_validator=bv.Void()
16911705
SharedLinkCreatePolicy._tagmap= {
16921706
'default_public':SharedLinkCreatePolicy._default_public_validator,
16931707
'default_team_only':SharedLinkCreatePolicy._default_team_only_validator,
16941708
'team_only':SharedLinkCreatePolicy._team_only_validator,
1709+
'default_no_one':SharedLinkCreatePolicy._default_no_one_validator,
16951710
'other':SharedLinkCreatePolicy._other_validator,
16961711
}
16971712

16981713
SharedLinkCreatePolicy.default_public=SharedLinkCreatePolicy('default_public')
16991714
SharedLinkCreatePolicy.default_team_only=SharedLinkCreatePolicy('default_team_only')
17001715
SharedLinkCreatePolicy.team_only=SharedLinkCreatePolicy('team_only')
1716+
SharedLinkCreatePolicy.default_no_one=SharedLinkCreatePolicy('default_no_one')
17011717
SharedLinkCreatePolicy.other=SharedLinkCreatePolicy('other')
17021718

17031719
ShowcaseDownloadPolicy._disabled_validator=bv.Void()

‎spec‎

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp