Skip to content

Commit d81a234

Browse files
authored
Automated Spec Update (dropbox#354)
4d5bb48ac801df6410ddc9c2cad0d9f5bb0a2365 Change Notes: Team Log Namespace: - Add user_defined_tag to LabelType union Co-authored-by: DropboxBot <DropboxBot@users.noreply.github.com>
1 parent 7cdab3c commit d81a234

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

dropbox/team_log.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48109,6 +48109,8 @@ class LabelType(bb.Union):
4810948109
# Attribute is overwritten below the class definition
4811048110
personal_information = None
4811148111
# Attribute is overwritten below the class definition
48112+
user_defined_tag = None
48113+
# Attribute is overwritten below the class definition
4811248114
other = None
4811348115

4811448116
def is_personal_information(self):
@@ -48119,6 +48121,14 @@ def is_personal_information(self):
4811948121
"""
4812048122
return self._tag == 'personal_information'
4812148123

48124+
def is_user_defined_tag(self):
48125+
"""
48126+
Check if the union tag is ``user_defined_tag``.
48127+
48128+
:rtype: bool
48129+
"""
48130+
return self._tag == 'user_defined_tag'
48131+
4812248132
def is_other(self):
4812348133
"""
4812448134
Check if the union tag is ``other``.
@@ -75837,13 +75847,16 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
7583775847
]
7583875848

7583975849
LabelType._personal_information_validator = bv.Void()
75850+
LabelType._user_defined_tag_validator = bv.Void()
7584075851
LabelType._other_validator = bv.Void()
7584175852
LabelType._tagmap = {
7584275853
'personal_information': LabelType._personal_information_validator,
75854+
'user_defined_tag': LabelType._user_defined_tag_validator,
7584375855
'other': LabelType._other_validator,
7584475856
}
7584575857

7584675858
LabelType.personal_information = LabelType('personal_information')
75859+
LabelType.user_defined_tag = LabelType('user_defined_tag')
7584775860
LabelType.other = LabelType('other')
7584875861

7584975862
LegacyDeviceSessionLogInfo.session_info.validator = bv.Nullable(SessionLogInfo_validator)

spec

0 commit comments

Comments
 (0)