Skip to content

Commit

Permalink
Automated Spec Update (#270)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
3 people authored Sep 22, 2021
1 parent 2d155ab commit 17ca23c
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public SecondaryEmail(string email,
{
throw new sys.ArgumentOutOfRangeException("email", "Length should be at most 255");
}
if (!re.Regex.IsMatch(email, @"\A(?:^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z"))
if (!re.Regex.IsMatch(email, @"\A(?:^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z"))
{
throw new sys.ArgumentOutOfRangeException("email", @"Value should match pattern '\A(?:^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z'");
throw new sys.ArgumentOutOfRangeException("email", @"Value should match pattern '\A(?:^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z'");
}

this.Email = email;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public LegalHoldHeldRevisionMetadata(string newFilename,
{
throw new sys.ArgumentOutOfRangeException("authorEmail", "Length should be at most 255");
}
if (!re.Regex.IsMatch(authorEmail, @"\A(?:^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z"))
if (!re.Regex.IsMatch(authorEmail, @"\A(?:^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z"))
{
throw new sys.ArgumentOutOfRangeException("authorEmail", @"Value should match pattern '\A(?:^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z'");
throw new sys.ArgumentOutOfRangeException("authorEmail", @"Value should match pattern '\A(?:^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z'");
}

if (fileType == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ public MemberAddArgBase(string memberEmail,
{
throw new sys.ArgumentOutOfRangeException("memberEmail", "Length should be at most 255");
}
if (!re.Regex.IsMatch(memberEmail, @"\A(?:^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z"))
if (!re.Regex.IsMatch(memberEmail, @"\A(?:^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z"))
{
throw new sys.ArgumentOutOfRangeException("memberEmail", @"Value should match pattern '\A(?:^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z'");
throw new sys.ArgumentOutOfRangeException("memberEmail", @"Value should match pattern '\A(?:^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z'");
}

if (memberGivenName != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public MembersSetProfileArg(UserSelectorArg user,
{
throw new sys.ArgumentOutOfRangeException("newEmail", "Length should be at most 255");
}
if (!re.Regex.IsMatch(newEmail, @"\A(?:^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z"))
if (!re.Regex.IsMatch(newEmail, @"\A(?:^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z"))
{
throw new sys.ArgumentOutOfRangeException("newEmail", @"Value should match pattern '\A(?:^['&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z'");
throw new sys.ArgumentOutOfRangeException("newEmail", @"Value should match pattern '\A(?:^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\.[A-Za-z]{2,15}$)\z'");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Dropbox.Api.TeamLog
using enc = Dropbox.Api.Stone;

/// <summary>
/// <para>Email ingest policy</para>
/// <para>Policy for deciding whether a team can use Email to my Dropbox feature</para>
/// </summary>
public class EmailIngestPolicy
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Dropbox.Api.TeamLog
using enc = Dropbox.Api.Stone;

/// <summary>
/// <para>Changed email to my dropbox policy for team.</para>
/// <para>Changed email to my Dropbox policy for team.</para>
/// </summary>
public class EmailIngestPolicyChangedDetails
{
Expand All @@ -31,8 +31,8 @@ public class EmailIngestPolicyChangedDetails
/// <para>Initializes a new instance of the <see cref="EmailIngestPolicyChangedDetails"
/// /> class.</para>
/// </summary>
/// <param name="newValue">New email to my dropbox policy.</param>
/// <param name="previousValue">Previous email to my dropbox policy.</param>
/// <param name="newValue">To.</param>
/// <param name="previousValue">From.</param>
public EmailIngestPolicyChangedDetails(EmailIngestPolicy newValue,
EmailIngestPolicy previousValue)
{
Expand Down Expand Up @@ -62,12 +62,12 @@ public EmailIngestPolicyChangedDetails()
}

/// <summary>
/// <para>New email to my dropbox policy.</para>
/// <para>To.</para>
/// </summary>
public EmailIngestPolicy NewValue { get; protected set; }

/// <summary>
/// <para>Previous email to my dropbox policy.</para>
/// <para>From.</para>
/// </summary>
public EmailIngestPolicy PreviousValue { get; protected set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47676,7 +47676,7 @@ public override DirectoryRestrictionsRemoveMembers DecodeFields(enc.IJsonReader
}

/// <summary>
/// <para>(team_policies) Changed email to my dropbox policy for team</para>
/// <para>(team_policies) Changed email to my Dropbox policy for team</para>
/// </summary>
public sealed class EmailIngestPolicyChanged : EventType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40720,7 +40720,7 @@ protected override DirectoryRestrictionsRemoveMembers Create()
}

/// <summary>
/// <para>(team_policies) Changed email to my dropbox policy for team</para>
/// <para>(team_policies) Changed email to my Dropbox policy for team</para>
/// </summary>
public sealed class EmailIngestPolicyChanged : EventTypeArg
{
Expand Down
2 changes: 1 addition & 1 deletion spec

0 comments on commit 17ca23c

Please sign in to comment.