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

Commit9895d70

Browse files
authored
Automated Spec Update (dropbox#452)
3d1080a021a67c335c52361d8f61ec558bb80606 Change Notes:shared_links NamespaceUpdate RequestedLinkAccessLevel unionteam NamespaceUpdate TeamGetInfoResult structteam_log_generated NamespaceAdd FolderLinkRestrictionPolicyChangedDetails, FolderLinkRestrictionPolicyChangedType structsAdd FolderLinkRestrictionPolicy unionsCo-authored-by: DropboxBot <DropboxBot@users.noreply.github.com>
1 parent93435f7 commit9895d70

File tree

4 files changed

+246
-1
lines changed

4 files changed

+246
-1
lines changed

‎dropbox/sharing.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7683,6 +7683,8 @@ class RequestedLinkAccessLevel(bb.Union):
76837683
edit links yet.
76847684
:ivar sharing.RequestedLinkAccessLevel.max: Request for the maximum access
76857685
level you can set the link to.
7686+
:ivar sharing.RequestedLinkAccessLevel.default: Request for the default
7687+
access level the user has set.
76867688
"""
76877689

76887690
_catch_all='other'
@@ -7693,6 +7695,8 @@ class RequestedLinkAccessLevel(bb.Union):
76937695
# Attribute is overwritten below the class definition
76947696
max=None
76957697
# Attribute is overwritten below the class definition
7698+
default=None
7699+
# Attribute is overwritten below the class definition
76967700
other=None
76977701

76987702
defis_viewer(self):
@@ -7719,6 +7723,14 @@ def is_max(self):
77197723
"""
77207724
returnself._tag=='max'
77217725

7726+
defis_default(self):
7727+
"""
7728+
Check if the union tag is ``default``.
7729+
7730+
:rtype: bool
7731+
"""
7732+
returnself._tag=='default'
7733+
77227734
defis_other(self):
77237735
"""
77247736
Check if the union tag is ``other``.
@@ -12715,17 +12727,20 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1271512727
RequestedLinkAccessLevel._viewer_validator=bv.Void()
1271612728
RequestedLinkAccessLevel._editor_validator=bv.Void()
1271712729
RequestedLinkAccessLevel._max_validator=bv.Void()
12730+
RequestedLinkAccessLevel._default_validator=bv.Void()
1271812731
RequestedLinkAccessLevel._other_validator=bv.Void()
1271912732
RequestedLinkAccessLevel._tagmap= {
1272012733
'viewer':RequestedLinkAccessLevel._viewer_validator,
1272112734
'editor':RequestedLinkAccessLevel._editor_validator,
1272212735
'max':RequestedLinkAccessLevel._max_validator,
12736+
'default':RequestedLinkAccessLevel._default_validator,
1272312737
'other':RequestedLinkAccessLevel._other_validator,
1272412738
}
1272512739

1272612740
RequestedLinkAccessLevel.viewer=RequestedLinkAccessLevel('viewer')
1272712741
RequestedLinkAccessLevel.editor=RequestedLinkAccessLevel('editor')
1272812742
RequestedLinkAccessLevel.max=RequestedLinkAccessLevel('max')
12743+
RequestedLinkAccessLevel.default=RequestedLinkAccessLevel('default')
1272912744
RequestedLinkAccessLevel.other=RequestedLinkAccessLevel('other')
1273012745

1273112746
RevokeSharedLinkArg.url.validator=bv.String()

‎dropbox/team.py‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12376,13 +12376,16 @@ class TeamGetInfoResult(bb.Struct):
1237612376
available to the team.
1237712377
:ivar team.TeamGetInfoResult.num_provisioned_users: The number of accounts
1237812378
that have been invited or are already active members of the team.
12379+
:ivar team.TeamGetInfoResult.num_used_licenses: The number of licenses used
12380+
on the team.
1237912381
"""
1238012382

1238112383
__slots__ = [
1238212384
'_name_value',
1238312385
'_team_id_value',
1238412386
'_num_licensed_users_value',
1238512387
'_num_provisioned_users_value',
12388+
'_num_used_licenses_value',
1238612389
'_policies_value',
1238712390
]
1238812391

@@ -12393,11 +12396,13 @@ def __init__(self,
1239312396
team_id=None,
1239412397
num_licensed_users=None,
1239512398
num_provisioned_users=None,
12399+
num_used_licenses=None,
1239612400
policies=None):
1239712401
self._name_value = bb.NOT_SET
1239812402
self._team_id_value = bb.NOT_SET
1239912403
self._num_licensed_users_value = bb.NOT_SET
1240012404
self._num_provisioned_users_value = bb.NOT_SET
12405+
self._num_used_licenses_value = bb.NOT_SET
1240112406
self._policies_value = bb.NOT_SET
1240212407
if name is not None:
1240312408
self.name = name
@@ -12407,6 +12412,8 @@ def __init__(self,
1240712412
self.num_licensed_users = num_licensed_users
1240812413
if num_provisioned_users is not None:
1240912414
self.num_provisioned_users = num_provisioned_users
12415+
if num_used_licenses is not None:
12416+
self.num_used_licenses = num_used_licenses
1241012417
if policies is not None:
1241112418
self.policies = policies
1241212419

@@ -12422,6 +12429,9 @@ def __init__(self,
1242212429
# Instance attribute type: int (validator is set below)
1242312430
num_provisioned_users = bb.Attribute("num_provisioned_users")
1242412431

12432+
# Instance attribute type: int (validator is set below)
12433+
num_used_licenses = bb.Attribute("num_used_licenses")
12434+
1242512435
# Instance attribute type: team_policies.TeamMemberPolicies (validator is set below)
1242612436
policies = bb.Attribute("policies", user_defined=True)
1242712437

@@ -16638,19 +16648,22 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
1663816648
TeamGetInfoResult.team_id.validator = bv.String()
1663916649
TeamGetInfoResult.num_licensed_users.validator = bv.UInt32()
1664016650
TeamGetInfoResult.num_provisioned_users.validator = bv.UInt32()
16651+
TeamGetInfoResult.num_used_licenses.validator = bv.UInt32()
1664116652
TeamGetInfoResult.policies.validator = team_policies.TeamMemberPolicies_validator
1664216653
TeamGetInfoResult._all_field_names_ = set([
1664316654
'name',
1664416655
'team_id',
1664516656
'num_licensed_users',
1664616657
'num_provisioned_users',
16658+
'num_used_licenses',
1664716659
'policies',
1664816660
])
1664916661
TeamGetInfoResult._all_fields_ = [
1665016662
('name', TeamGetInfoResult.name.validator),
1665116663
('team_id', TeamGetInfoResult.team_id.validator),
1665216664
('num_licensed_users', TeamGetInfoResult.num_licensed_users.validator),
1665316665
('num_provisioned_users', TeamGetInfoResult.num_provisioned_users.validator),
16666+
('num_used_licenses', TeamGetInfoResult.num_used_licenses.validator),
1665416667
('policies', TeamGetInfoResult.policies.validator),
1665516668
]
1665616669

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp