Skip to content

Commit d1fcec4

Browse files
DropboxBotScott Erickson
and
Scott Erickson
authored
Automated Spec Update (#386)
2026d2d9a589c1679f82507e4699252a2c3764ba Change Notes: team_log Namespace: - Update Comments common: - Update EmailAddress regex Co-authored-by: Scott Erickson <serickson@dropbox.com> Co-authored-by: DropboxBot <DropboxBot@users.noreply.github.com> Co-authored-by: Scott Erickson <serickson@dropbox.com>
1 parent 5070697 commit d1fcec4

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

dropbox/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
287287
DisplayName_validator = bv.String(pattern=u'[^/:?*<>"|]*')
288288
DisplayNameLegacy_validator = bv.String()
289289
DropboxTimestamp_validator = bv.Timestamp(u'%Y-%m-%dT%H:%M:%SZ')
290-
EmailAddress_validator = bv.String(max_length=255, pattern=u"^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$")
290+
EmailAddress_validator = bv.String(max_length=255, pattern=u"^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$")
291291
# A ISO639-1 code.
292292
LanguageCode_validator = bv.String(min_length=2)
293293
NamePart_validator = bv.String(min_length=1, max_length=100, pattern=u'[^/:?*<>"|]*')

dropbox/team_log.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7000,7 +7000,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
70007000

70017001
class EmailIngestPolicy(bb.Union):
70027002
"""
7003-
Email ingest policy
7003+
Policy for deciding whether a team can use Email to my Dropbox feature
70047004

70057005
This class acts as a tagged union. Only one of the ``is_*`` methods will
70067006
return true. To get the associated value of a tag (if one exists), use the
@@ -7046,12 +7046,10 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
70467046

70477047
class EmailIngestPolicyChangedDetails(bb.Struct):
70487048
"""
7049-
Changed email to my dropbox policy for team.
7049+
Changed email to my Dropbox policy for team.
70507050

7051-
:ivar team_log.EmailIngestPolicyChangedDetails.new_value: New email to my
7052-
dropbox policy.
7053-
:ivar team_log.EmailIngestPolicyChangedDetails.previous_value: Previous
7054-
email to my dropbox policy.
7051+
:ivar team_log.EmailIngestPolicyChangedDetails.new_value: To.
7052+
:ivar team_log.EmailIngestPolicyChangedDetails.previous_value: From.
70557053
"""
70567054

70577055
__slots__ = [
@@ -22783,7 +22781,7 @@ class EventType(bb.Union):
2278322781
EventType.directory_restrictions_remove_members: (team_policies) Removed
2278422782
members from directory restrictions list
2278522783
:ivar EmailIngestPolicyChangedType EventType.email_ingest_policy_changed:
22786-
(team_policies) Changed email to my dropbox policy for team
22784+
(team_policies) Changed email to my Dropbox policy for team
2278722785
:ivar EmmAddExceptionType EventType.emm_add_exception: (team_policies) Added
2278822786
members to EMM exception list
2278922787
:ivar EmmChangePolicyType EventType.emm_change_policy: (team_policies)
@@ -36571,7 +36569,7 @@ def get_directory_restrictions_remove_members(self):
3657136569

3657236570
def get_email_ingest_policy_changed(self):
3657336571
"""
36574-
(team_policies) Changed email to my dropbox policy for team
36572+
(team_policies) Changed email to my Dropbox policy for team
3657536573

3657636574
Only call this if :meth:`is_email_ingest_policy_changed` is true.
3657736575

@@ -38630,7 +38628,7 @@ class EventTypeArg(bb.Union):
3863038628
:ivar team_log.EventTypeArg.directory_restrictions_remove_members:
3863138629
(team_policies) Removed members from directory restrictions list
3863238630
:ivar team_log.EventTypeArg.email_ingest_policy_changed: (team_policies)
38633-
Changed email to my dropbox policy for team
38631+
Changed email to my Dropbox policy for team
3863438632
:ivar team_log.EventTypeArg.emm_add_exception: (team_policies) Added members
3863538633
to EMM exception list
3863638634
:ivar team_log.EventTypeArg.emm_change_policy: (team_policies)

spec

0 commit comments

Comments
 (0)