diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/RequestedLinkAccessLevel.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/RequestedLinkAccessLevel.cs index 0c14e02fe..af18a83b6 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/RequestedLinkAccessLevel.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/Sharing/RequestedLinkAccessLevel.cs @@ -101,6 +101,28 @@ public Max AsMax } } + /// + /// Gets a value indicating whether this instance is Default + /// + public bool IsDefault + { + get + { + return this is Default; + } + } + + /// + /// Gets this instance as a Default, or null. + /// + public Default AsDefault + { + get + { + return this as Default; + } + } + /// /// Gets a value indicating whether this instance is Other /// @@ -155,6 +177,12 @@ public override void EncodeFields(RequestedLinkAccessLevel value, enc.IJsonWrite Max.Encoder.EncodeFields((Max)value, writer); return; } + if (value is Default) + { + WriteProperty(".tag", "default", writer, enc.StringEncoder.Instance); + Default.Encoder.EncodeFields((Default)value, writer); + return; + } if (value is Other) { WriteProperty(".tag", "other", writer, enc.StringEncoder.Instance); @@ -200,6 +228,8 @@ protected override RequestedLinkAccessLevel Decode(string tag, enc.IJsonReader r return Editor.Decoder.DecodeFields(reader); case "max": return Max.Decoder.DecodeFields(reader); + case "default": + return Default.Decoder.DecodeFields(reader); default: return Other.Decoder.DecodeFields(reader); } @@ -416,6 +446,75 @@ protected override Max Create() #endregion } + /// + /// Request for the default access level the user has set. + /// + public sealed class Default : RequestedLinkAccessLevel + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new DefaultEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new DefaultDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private Default() + { + } + + /// + /// A singleton instance of Default + /// + public static readonly Default Instance = new Default(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class DefaultEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(Default value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class DefaultDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override Default Create() + { + return Default.Instance; + } + + } + + #endregion + } + /// /// The other object /// diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/Team/TeamGetInfoResult.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/Team/TeamGetInfoResult.cs index e23fd7716..cc0492bd6 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/Team/TeamGetInfoResult.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/Team/TeamGetInfoResult.cs @@ -37,11 +37,13 @@ public class TeamGetInfoResult /// team. /// The number of accounts that have been invited or /// are already active members of the team. + /// The number of licenses used on the team. /// The policies public TeamGetInfoResult(string name, string teamId, uint numLicensedUsers, uint numProvisionedUsers, + uint numUsedLicenses, global::Dropbox.Api.TeamPolicies.TeamMemberPolicies policies) { if (name == null) @@ -63,6 +65,7 @@ public TeamGetInfoResult(string name, this.TeamId = teamId; this.NumLicensedUsers = numLicensedUsers; this.NumProvisionedUsers = numProvisionedUsers; + this.NumUsedLicenses = numUsedLicenses; this.Policies = policies; } @@ -98,6 +101,11 @@ public TeamGetInfoResult() /// public uint NumProvisionedUsers { get; protected set; } + /// + /// The number of licenses used on the team. + /// + public uint NumUsedLicenses { get; protected set; } + /// /// Gets the policies of the team get info result /// @@ -121,6 +129,7 @@ public override void EncodeFields(TeamGetInfoResult value, enc.IJsonWriter write WriteProperty("team_id", value.TeamId, writer, enc.StringEncoder.Instance); WriteProperty("num_licensed_users", value.NumLicensedUsers, writer, enc.UInt32Encoder.Instance); WriteProperty("num_provisioned_users", value.NumProvisionedUsers, writer, enc.UInt32Encoder.Instance); + WriteProperty("num_used_licenses", value.NumUsedLicenses, writer, enc.UInt32Encoder.Instance); WriteProperty("policies", value.Policies, writer, global::Dropbox.Api.TeamPolicies.TeamMemberPolicies.Encoder); } } @@ -166,6 +175,9 @@ protected override void SetField(TeamGetInfoResult value, string fieldName, enc. case "num_provisioned_users": value.NumProvisionedUsers = enc.UInt32Decoder.Instance.Decode(reader); break; + case "num_used_licenses": + value.NumUsedLicenses = enc.UInt32Decoder.Instance.Decode(reader); + break; case "policies": value.Policies = global::Dropbox.Api.TeamPolicies.TeamMemberPolicies.Decoder.Decode(reader); break; diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs index 7d7a3d244..a6cf84658 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs @@ -9033,6 +9033,30 @@ public FileTransfersPolicyChangedDetails AsFileTransfersPolicyChangedDetails } } + /// + /// Gets a value indicating whether this instance is + /// FolderLinkRestrictionPolicyChangedDetails + /// + public bool IsFolderLinkRestrictionPolicyChangedDetails + { + get + { + return this is FolderLinkRestrictionPolicyChangedDetails; + } + } + + /// + /// Gets this instance as a FolderLinkRestrictionPolicyChangedDetails, or + /// null. + /// + public FolderLinkRestrictionPolicyChangedDetails AsFolderLinkRestrictionPolicyChangedDetails + { + get + { + return this as FolderLinkRestrictionPolicyChangedDetails; + } + } + /// /// Gets a value indicating whether this instance is /// GoogleSsoChangePolicyDetails @@ -13707,6 +13731,12 @@ public override void EncodeFields(EventDetails value, enc.IJsonWriter writer) FileTransfersPolicyChangedDetails.Encoder.EncodeFields((FileTransfersPolicyChangedDetails)value, writer); return; } + if (value is FolderLinkRestrictionPolicyChangedDetails) + { + WriteProperty(".tag", "folder_link_restriction_policy_changed_details", writer, enc.StringEncoder.Instance); + FolderLinkRestrictionPolicyChangedDetails.Encoder.EncodeFields((FolderLinkRestrictionPolicyChangedDetails)value, writer); + return; + } if (value is GoogleSsoChangePolicyDetails) { WriteProperty(".tag", "google_sso_change_policy_details", writer, enc.StringEncoder.Instance); @@ -15105,6 +15135,8 @@ protected override EventDetails Decode(string tag, enc.IJsonReader reader) return FileRequestsEmailsRestrictedToTeamOnlyDetails.Decoder.DecodeFields(reader); case "file_transfers_policy_changed_details": return FileTransfersPolicyChangedDetails.Decoder.DecodeFields(reader); + case "folder_link_restriction_policy_changed_details": + return FolderLinkRestrictionPolicyChangedDetails.Decoder.DecodeFields(reader); case "google_sso_change_policy_details": return GoogleSsoChangePolicyDetails.Decoder.DecodeFields(reader); case "group_user_management_change_policy_details": @@ -50161,6 +50193,98 @@ public override FileTransfersPolicyChangedDetails DecodeFields(enc.IJsonReader r #endregion } + /// + /// The folder link restriction policy changed details object + /// + public sealed class FolderLinkRestrictionPolicyChangedDetails : EventDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new FolderLinkRestrictionPolicyChangedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new FolderLinkRestrictionPolicyChangedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public FolderLinkRestrictionPolicyChangedDetails(global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicyChangedDetails value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private FolderLinkRestrictionPolicyChangedDetails() + { + } + + /// + /// Gets the value of this instance. + /// + public global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicyChangedDetails Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class FolderLinkRestrictionPolicyChangedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(FolderLinkRestrictionPolicyChangedDetails value, enc.IJsonWriter writer) + { + WriteProperty("folder_link_restriction_policy_changed_details", value.Value, writer, global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicyChangedDetails.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class FolderLinkRestrictionPolicyChangedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override FolderLinkRestrictionPolicyChangedDetails Create() + { + return new FolderLinkRestrictionPolicyChangedDetails(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override FolderLinkRestrictionPolicyChangedDetails DecodeFields(enc.IJsonReader reader) + { + return new FolderLinkRestrictionPolicyChangedDetails(global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicyChangedDetails.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + /// /// The google sso change policy details object /// diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventType.cs index c629ba583..e73dc3795 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventType.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventType.cs @@ -8792,6 +8792,30 @@ public FileTransfersPolicyChanged AsFileTransfersPolicyChanged } } + /// + /// Gets a value indicating whether this instance is + /// FolderLinkRestrictionPolicyChanged + /// + public bool IsFolderLinkRestrictionPolicyChanged + { + get + { + return this is FolderLinkRestrictionPolicyChanged; + } + } + + /// + /// Gets this instance as a FolderLinkRestrictionPolicyChanged, or + /// null. + /// + public FolderLinkRestrictionPolicyChanged AsFolderLinkRestrictionPolicyChanged + { + get + { + return this as FolderLinkRestrictionPolicyChanged; + } + } + /// /// Gets a value indicating whether this instance is GoogleSsoChangePolicy /// @@ -13386,6 +13410,12 @@ public override void EncodeFields(EventType value, enc.IJsonWriter writer) FileTransfersPolicyChanged.Encoder.EncodeFields((FileTransfersPolicyChanged)value, writer); return; } + if (value is FolderLinkRestrictionPolicyChanged) + { + WriteProperty(".tag", "folder_link_restriction_policy_changed", writer, enc.StringEncoder.Instance); + FolderLinkRestrictionPolicyChanged.Encoder.EncodeFields((FolderLinkRestrictionPolicyChanged)value, writer); + return; + } if (value is GoogleSsoChangePolicy) { WriteProperty(".tag", "google_sso_change_policy", writer, enc.StringEncoder.Instance); @@ -14778,6 +14808,8 @@ protected override EventType Decode(string tag, enc.IJsonReader reader) return FileRequestsEmailsRestrictedToTeamOnly.Decoder.DecodeFields(reader); case "file_transfers_policy_changed": return FileTransfersPolicyChanged.Decoder.DecodeFields(reader); + case "folder_link_restriction_policy_changed": + return FolderLinkRestrictionPolicyChanged.Decoder.DecodeFields(reader); case "google_sso_change_policy": return GoogleSsoChangePolicy.Decoder.DecodeFields(reader); case "group_user_management_change_policy": @@ -49674,6 +49706,96 @@ public override FileTransfersPolicyChanged DecodeFields(enc.IJsonReader reader) #endregion } + /// + /// (team_policies) Changed folder link restrictions policy for team + /// + public sealed class FolderLinkRestrictionPolicyChanged : EventType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new FolderLinkRestrictionPolicyChangedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new FolderLinkRestrictionPolicyChangedDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public FolderLinkRestrictionPolicyChanged(FolderLinkRestrictionPolicyChangedType value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private FolderLinkRestrictionPolicyChanged() + { + } + + /// + /// Gets the value of this instance. + /// + public FolderLinkRestrictionPolicyChangedType Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class FolderLinkRestrictionPolicyChangedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(FolderLinkRestrictionPolicyChanged value, enc.IJsonWriter writer) + { + WriteProperty("folder_link_restriction_policy_changed", value.Value, writer, global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicyChangedType.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class FolderLinkRestrictionPolicyChangedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override FolderLinkRestrictionPolicyChanged Create() + { + return new FolderLinkRestrictionPolicyChanged(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override FolderLinkRestrictionPolicyChanged DecodeFields(enc.IJsonReader reader) + { + return new FolderLinkRestrictionPolicyChanged(global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicyChangedType.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + /// /// (team_policies) Enabled/disabled Google single sign-on for team /// diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs index c0a137c73..0319b6b9a 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs @@ -8792,6 +8792,30 @@ public FileTransfersPolicyChanged AsFileTransfersPolicyChanged } } + /// + /// Gets a value indicating whether this instance is + /// FolderLinkRestrictionPolicyChanged + /// + public bool IsFolderLinkRestrictionPolicyChanged + { + get + { + return this is FolderLinkRestrictionPolicyChanged; + } + } + + /// + /// Gets this instance as a FolderLinkRestrictionPolicyChanged, or + /// null. + /// + public FolderLinkRestrictionPolicyChanged AsFolderLinkRestrictionPolicyChanged + { + get + { + return this as FolderLinkRestrictionPolicyChanged; + } + } + /// /// Gets a value indicating whether this instance is GoogleSsoChangePolicy /// @@ -13386,6 +13410,12 @@ public override void EncodeFields(EventTypeArg value, enc.IJsonWriter writer) FileTransfersPolicyChanged.Encoder.EncodeFields((FileTransfersPolicyChanged)value, writer); return; } + if (value is FolderLinkRestrictionPolicyChanged) + { + WriteProperty(".tag", "folder_link_restriction_policy_changed", writer, enc.StringEncoder.Instance); + FolderLinkRestrictionPolicyChanged.Encoder.EncodeFields((FolderLinkRestrictionPolicyChanged)value, writer); + return; + } if (value is GoogleSsoChangePolicy) { WriteProperty(".tag", "google_sso_change_policy", writer, enc.StringEncoder.Instance); @@ -14778,6 +14808,8 @@ protected override EventTypeArg Decode(string tag, enc.IJsonReader reader) return FileRequestsEmailsRestrictedToTeamOnly.Decoder.DecodeFields(reader); case "file_transfers_policy_changed": return FileTransfersPolicyChanged.Decoder.DecodeFields(reader); + case "folder_link_restriction_policy_changed": + return FolderLinkRestrictionPolicyChanged.Decoder.DecodeFields(reader); case "google_sso_change_policy": return GoogleSsoChangePolicy.Decoder.DecodeFields(reader); case "group_user_management_change_policy": @@ -42358,6 +42390,77 @@ protected override FileTransfersPolicyChanged Create() #endregion } + /// + /// (team_policies) Changed folder link restrictions policy for team + /// + public sealed class FolderLinkRestrictionPolicyChanged : EventTypeArg + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new FolderLinkRestrictionPolicyChangedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new FolderLinkRestrictionPolicyChangedDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private FolderLinkRestrictionPolicyChanged() + { + } + + /// + /// A singleton instance of FolderLinkRestrictionPolicyChanged + /// + public static readonly FolderLinkRestrictionPolicyChanged Instance = new FolderLinkRestrictionPolicyChanged(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class FolderLinkRestrictionPolicyChangedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(FolderLinkRestrictionPolicyChanged value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class FolderLinkRestrictionPolicyChangedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override FolderLinkRestrictionPolicyChanged Create() + { + return FolderLinkRestrictionPolicyChanged.Instance; + } + + } + + #endregion + } + /// /// (team_policies) Enabled/disabled Google single sign-on for team /// diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/FolderLinkRestrictionPolicy.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/FolderLinkRestrictionPolicy.cs new file mode 100644 index 000000000..c96db6788 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/FolderLinkRestrictionPolicy.cs @@ -0,0 +1,389 @@ +// +// Auto-generated by StoneAPI, do not modify. +// + +namespace Dropbox.Api.TeamLog +{ + using sys = System; + using col = System.Collections.Generic; + using re = System.Text.RegularExpressions; + + using enc = Dropbox.Api.Stone; + + /// + /// Policy for deciding whether applying link restrictions on all team owned + /// folders + /// + public class FolderLinkRestrictionPolicy + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new FolderLinkRestrictionPolicyEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new FolderLinkRestrictionPolicyDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + public FolderLinkRestrictionPolicy() + { + } + + /// + /// Gets a value indicating whether this instance is Disabled + /// + public bool IsDisabled + { + get + { + return this is Disabled; + } + } + + /// + /// Gets this instance as a Disabled, or null. + /// + public Disabled AsDisabled + { + get + { + return this as Disabled; + } + } + + /// + /// Gets a value indicating whether this instance is Enabled + /// + public bool IsEnabled + { + get + { + return this is Enabled; + } + } + + /// + /// Gets this instance as a Enabled, or null. + /// + public Enabled AsEnabled + { + get + { + return this as Enabled; + } + } + + /// + /// Gets a value indicating whether this instance is Other + /// + public bool IsOther + { + get + { + return this is Other; + } + } + + /// + /// Gets this instance as a Other, or null. + /// + public Other AsOther + { + get + { + return this as Other; + } + } + + #region Encoder class + + /// + /// Encoder for . + /// + private class FolderLinkRestrictionPolicyEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(FolderLinkRestrictionPolicy value, enc.IJsonWriter writer) + { + if (value is Disabled) + { + WriteProperty(".tag", "disabled", writer, enc.StringEncoder.Instance); + Disabled.Encoder.EncodeFields((Disabled)value, writer); + return; + } + if (value is Enabled) + { + WriteProperty(".tag", "enabled", writer, enc.StringEncoder.Instance); + Enabled.Encoder.EncodeFields((Enabled)value, writer); + return; + } + if (value is Other) + { + WriteProperty(".tag", "other", writer, enc.StringEncoder.Instance); + Other.Encoder.EncodeFields((Other)value, writer); + return; + } + throw new sys.InvalidOperationException(); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class FolderLinkRestrictionPolicyDecoder : enc.UnionDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override FolderLinkRestrictionPolicy Create() + { + return new FolderLinkRestrictionPolicy(); + } + + /// + /// Decode based on given tag. + /// + /// The tag. + /// The json reader. + /// The decoded object. + protected override FolderLinkRestrictionPolicy Decode(string tag, enc.IJsonReader reader) + { + switch (tag) + { + case "disabled": + return Disabled.Decoder.DecodeFields(reader); + case "enabled": + return Enabled.Decoder.DecodeFields(reader); + default: + return Other.Decoder.DecodeFields(reader); + } + } + } + + #endregion + + /// + /// The disabled object + /// + public sealed class Disabled : FolderLinkRestrictionPolicy + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new DisabledEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new DisabledDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private Disabled() + { + } + + /// + /// A singleton instance of Disabled + /// + public static readonly Disabled Instance = new Disabled(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class DisabledEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(Disabled value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class DisabledDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override Disabled Create() + { + return Disabled.Instance; + } + + } + + #endregion + } + + /// + /// The enabled object + /// + public sealed class Enabled : FolderLinkRestrictionPolicy + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new EnabledEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new EnabledDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private Enabled() + { + } + + /// + /// A singleton instance of Enabled + /// + public static readonly Enabled Instance = new Enabled(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class EnabledEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(Enabled value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class EnabledDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override Enabled Create() + { + return Enabled.Instance; + } + + } + + #endregion + } + + /// + /// The other object + /// + public sealed class Other : FolderLinkRestrictionPolicy + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new OtherEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new OtherDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private Other() + { + } + + /// + /// A singleton instance of Other + /// + public static readonly Other Instance = new Other(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class OtherEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(Other value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class OtherDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override Other Create() + { + return Other.Instance; + } + + } + + #endregion + } + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/FolderLinkRestrictionPolicyChangedDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/FolderLinkRestrictionPolicyChangedDetails.cs new file mode 100644 index 000000000..b08ee3802 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/FolderLinkRestrictionPolicyChangedDetails.cs @@ -0,0 +1,138 @@ +// +// Auto-generated by StoneAPI, do not modify. +// + +namespace Dropbox.Api.TeamLog +{ + using sys = System; + using col = System.Collections.Generic; + using re = System.Text.RegularExpressions; + + using enc = Dropbox.Api.Stone; + + /// + /// Changed folder link restrictions policy for team. + /// + public class FolderLinkRestrictionPolicyChangedDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new FolderLinkRestrictionPolicyChangedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new FolderLinkRestrictionPolicyChangedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// To. + /// From. + public FolderLinkRestrictionPolicyChangedDetails(FolderLinkRestrictionPolicy newValue, + FolderLinkRestrictionPolicy previousValue) + { + if (newValue == null) + { + throw new sys.ArgumentNullException("newValue"); + } + + if (previousValue == null) + { + throw new sys.ArgumentNullException("previousValue"); + } + + this.NewValue = newValue; + this.PreviousValue = previousValue; + } + + /// + /// Initializes a new instance of the class. + /// + /// This is to construct an instance of the object when + /// deserializing. + [sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)] + public FolderLinkRestrictionPolicyChangedDetails() + { + } + + /// + /// To. + /// + public FolderLinkRestrictionPolicy NewValue { get; protected set; } + + /// + /// From. + /// + public FolderLinkRestrictionPolicy PreviousValue { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class FolderLinkRestrictionPolicyChangedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(FolderLinkRestrictionPolicyChangedDetails value, enc.IJsonWriter writer) + { + WriteProperty("new_value", value.NewValue, writer, global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicy.Encoder); + WriteProperty("previous_value", value.PreviousValue, writer, global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicy.Encoder); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class FolderLinkRestrictionPolicyChangedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override FolderLinkRestrictionPolicyChangedDetails Create() + { + return new FolderLinkRestrictionPolicyChangedDetails(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(FolderLinkRestrictionPolicyChangedDetails value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "new_value": + value.NewValue = global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicy.Decoder.Decode(reader); + break; + case "previous_value": + value.PreviousValue = global::Dropbox.Api.TeamLog.FolderLinkRestrictionPolicy.Decoder.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/FolderLinkRestrictionPolicyChangedType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/FolderLinkRestrictionPolicyChangedType.cs new file mode 100644 index 000000000..a35f6cba2 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/FolderLinkRestrictionPolicyChangedType.cs @@ -0,0 +1,122 @@ +// +// Auto-generated by StoneAPI, do not modify. +// + +namespace Dropbox.Api.TeamLog +{ + using sys = System; + using col = System.Collections.Generic; + using re = System.Text.RegularExpressions; + + using enc = Dropbox.Api.Stone; + + /// + /// The folder link restriction policy changed type object + /// + public class FolderLinkRestrictionPolicyChangedType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new FolderLinkRestrictionPolicyChangedTypeEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new FolderLinkRestrictionPolicyChangedTypeDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The description + public FolderLinkRestrictionPolicyChangedType(string description) + { + if (description == null) + { + throw new sys.ArgumentNullException("description"); + } + + this.Description = description; + } + + /// + /// Initializes a new instance of the class. + /// + /// This is to construct an instance of the object when + /// deserializing. + [sys.ComponentModel.EditorBrowsable(sys.ComponentModel.EditorBrowsableState.Never)] + public FolderLinkRestrictionPolicyChangedType() + { + } + + /// + /// Gets the description of the folder link restriction policy changed + /// type + /// + public string Description { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class FolderLinkRestrictionPolicyChangedTypeEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(FolderLinkRestrictionPolicyChangedType value, enc.IJsonWriter writer) + { + WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class FolderLinkRestrictionPolicyChangedTypeDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override FolderLinkRestrictionPolicyChangedType Create() + { + return new FolderLinkRestrictionPolicyChangedType(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(FolderLinkRestrictionPolicyChangedType value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "description": + value.Description = enc.StringDecoder.Instance.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/spec b/spec index 18963b8a2..3d1080a02 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 18963b8a29fe125f6495d36c38eda5db2710d0dd +Subproject commit 3d1080a021a67c335c52361d8f61ec558bb80606