From 7eb3057795b946d3b106d1965d09725f8e220baf Mon Sep 17 00:00:00 2001 From: "dropbox-sdk-updater[bot]" <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 12:03:37 +0000 Subject: [PATCH] Automated Spec Update 2994fb7470d515e1fb223a9dbe18df41341b1a27 Automated update of the API specification Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> --- .../Generated/TeamLog/EventDetails.cs | 610 ++++++++++++++++++ .../Generated/TeamLog/EventType.cs | 605 +++++++++++++++++ .../Generated/TeamLog/EventTypeArg.cs | 510 +++++++++++++++ .../ProtectCustomDataTypeCreatedDetails.cs | 138 ++++ .../ProtectCustomDataTypeCreatedType.cs | 121 ++++ .../ProtectCustomDataTypeDeletedDetails.cs | 138 ++++ .../ProtectCustomDataTypeDeletedType.cs | 121 ++++ .../ProtectCustomDataTypeDisabledDetails.cs | 138 ++++ .../ProtectCustomDataTypeDisabledType.cs | 121 ++++ .../ProtectCustomDataTypeEnabledDetails.cs | 138 ++++ .../ProtectCustomDataTypeEnabledType.cs | 121 ++++ .../ProtectCustomDataTypeModifiedDetails.cs | 138 ++++ .../ProtectCustomDataTypeModifiedType.cs | 121 ++++ spec | 2 +- 14 files changed, 3021 insertions(+), 1 deletion(-) create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeCreatedDetails.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeCreatedType.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDeletedDetails.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDeletedType.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDisabledDetails.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDisabledType.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeEnabledDetails.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeEnabledType.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeModifiedDetails.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeModifiedType.cs diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs index 8fc22853aa..61fba91b1e 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs @@ -6684,6 +6684,126 @@ public ProtectActionStopSharingDetails AsProtectActionStopSharingDetails } } + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeCreatedDetails + /// + public bool IsProtectCustomDataTypeCreatedDetails + { + get + { + return this is ProtectCustomDataTypeCreatedDetails; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeCreatedDetails, or + /// null. + /// + public ProtectCustomDataTypeCreatedDetails AsProtectCustomDataTypeCreatedDetails + { + get + { + return this as ProtectCustomDataTypeCreatedDetails; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeDeletedDetails + /// + public bool IsProtectCustomDataTypeDeletedDetails + { + get + { + return this is ProtectCustomDataTypeDeletedDetails; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeDeletedDetails, or + /// null. + /// + public ProtectCustomDataTypeDeletedDetails AsProtectCustomDataTypeDeletedDetails + { + get + { + return this as ProtectCustomDataTypeDeletedDetails; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeDisabledDetails + /// + public bool IsProtectCustomDataTypeDisabledDetails + { + get + { + return this is ProtectCustomDataTypeDisabledDetails; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeDisabledDetails, or + /// null. + /// + public ProtectCustomDataTypeDisabledDetails AsProtectCustomDataTypeDisabledDetails + { + get + { + return this as ProtectCustomDataTypeDisabledDetails; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeEnabledDetails + /// + public bool IsProtectCustomDataTypeEnabledDetails + { + get + { + return this is ProtectCustomDataTypeEnabledDetails; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeEnabledDetails, or + /// null. + /// + public ProtectCustomDataTypeEnabledDetails AsProtectCustomDataTypeEnabledDetails + { + get + { + return this as ProtectCustomDataTypeEnabledDetails; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeModifiedDetails + /// + public bool IsProtectCustomDataTypeModifiedDetails + { + get + { + return this is ProtectCustomDataTypeModifiedDetails; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeModifiedDetails, or + /// null. + /// + public ProtectCustomDataTypeModifiedDetails AsProtectCustomDataTypeModifiedDetails + { + get + { + return this as ProtectCustomDataTypeModifiedDetails; + } + } + /// /// Gets a value indicating whether this instance is /// ProtectInternalDomainsChangedDetails @@ -16707,6 +16827,36 @@ public override void EncodeFields(EventDetails value, enc.IJsonWriter writer) ProtectActionStopSharingDetails.Encoder.EncodeFields((ProtectActionStopSharingDetails)value, writer); return; } + if (value is ProtectCustomDataTypeCreatedDetails) + { + WriteProperty(".tag", "protect_custom_data_type_created_details", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeCreatedDetails.Encoder.EncodeFields((ProtectCustomDataTypeCreatedDetails)value, writer); + return; + } + if (value is ProtectCustomDataTypeDeletedDetails) + { + WriteProperty(".tag", "protect_custom_data_type_deleted_details", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeDeletedDetails.Encoder.EncodeFields((ProtectCustomDataTypeDeletedDetails)value, writer); + return; + } + if (value is ProtectCustomDataTypeDisabledDetails) + { + WriteProperty(".tag", "protect_custom_data_type_disabled_details", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeDisabledDetails.Encoder.EncodeFields((ProtectCustomDataTypeDisabledDetails)value, writer); + return; + } + if (value is ProtectCustomDataTypeEnabledDetails) + { + WriteProperty(".tag", "protect_custom_data_type_enabled_details", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeEnabledDetails.Encoder.EncodeFields((ProtectCustomDataTypeEnabledDetails)value, writer); + return; + } + if (value is ProtectCustomDataTypeModifiedDetails) + { + WriteProperty(".tag", "protect_custom_data_type_modified_details", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeModifiedDetails.Encoder.EncodeFields((ProtectCustomDataTypeModifiedDetails)value, writer); + return; + } if (value is ProtectInternalDomainsChangedDetails) { WriteProperty(".tag", "protect_internal_domains_changed_details", writer, enc.StringEncoder.Instance); @@ -19421,6 +19571,16 @@ protected override EventDetails Decode(string tag, enc.IJsonReader reader) return ProtectActionRemoveLinkDetails.Decoder.DecodeFields(reader); case "protect_action_stop_sharing_details": return ProtectActionStopSharingDetails.Decoder.DecodeFields(reader); + case "protect_custom_data_type_created_details": + return ProtectCustomDataTypeCreatedDetails.Decoder.DecodeFields(reader); + case "protect_custom_data_type_deleted_details": + return ProtectCustomDataTypeDeletedDetails.Decoder.DecodeFields(reader); + case "protect_custom_data_type_disabled_details": + return ProtectCustomDataTypeDisabledDetails.Decoder.DecodeFields(reader); + case "protect_custom_data_type_enabled_details": + return ProtectCustomDataTypeEnabledDetails.Decoder.DecodeFields(reader); + case "protect_custom_data_type_modified_details": + return ProtectCustomDataTypeModifiedDetails.Decoder.DecodeFields(reader); case "protect_internal_domains_changed_details": return ProtectInternalDomainsChangedDetails.Decoder.DecodeFields(reader); case "protect_policy_activated_details": @@ -45853,6 +46013,456 @@ public override ProtectActionStopSharingDetails DecodeFields(enc.IJsonReader rea #endregion } + /// + /// The protect custom data type created details object + /// + public sealed class ProtectCustomDataTypeCreatedDetails : EventDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeCreatedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeCreatedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeCreatedDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeCreatedDetails value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeCreatedDetails() + { + } + + /// + /// Gets the value of this instance. + /// + public global::Dropbox.Api.TeamLog.ProtectCustomDataTypeCreatedDetails Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeCreatedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeCreatedDetails value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_created_details", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeCreatedDetails.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeCreatedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeCreatedDetails Create() + { + return new ProtectCustomDataTypeCreatedDetails(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeCreatedDetails DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeCreatedDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeCreatedDetails.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// The protect custom data type deleted details object + /// + public sealed class ProtectCustomDataTypeDeletedDetails : EventDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDeletedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDeletedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeDeletedDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDeletedDetails value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeDeletedDetails() + { + } + + /// + /// Gets the value of this instance. + /// + public global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDeletedDetails Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDeletedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDeletedDetails value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_deleted_details", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDeletedDetails.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDeletedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDeletedDetails Create() + { + return new ProtectCustomDataTypeDeletedDetails(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeDeletedDetails DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeDeletedDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDeletedDetails.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// The protect custom data type disabled details object + /// + public sealed class ProtectCustomDataTypeDisabledDetails : EventDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDisabledDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDisabledDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeDisabledDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDisabledDetails value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeDisabledDetails() + { + } + + /// + /// Gets the value of this instance. + /// + public global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDisabledDetails Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDisabledDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDisabledDetails value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_disabled_details", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDisabledDetails.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDisabledDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDisabledDetails Create() + { + return new ProtectCustomDataTypeDisabledDetails(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeDisabledDetails DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeDisabledDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDisabledDetails.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// The protect custom data type enabled details object + /// + public sealed class ProtectCustomDataTypeEnabledDetails : EventDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeEnabledDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeEnabledDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeEnabledDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeEnabledDetails value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeEnabledDetails() + { + } + + /// + /// Gets the value of this instance. + /// + public global::Dropbox.Api.TeamLog.ProtectCustomDataTypeEnabledDetails Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeEnabledDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeEnabledDetails value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_enabled_details", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeEnabledDetails.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeEnabledDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeEnabledDetails Create() + { + return new ProtectCustomDataTypeEnabledDetails(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeEnabledDetails DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeEnabledDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeEnabledDetails.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// The protect custom data type modified details object + /// + public sealed class ProtectCustomDataTypeModifiedDetails : EventDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeModifiedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeModifiedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeModifiedDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeModifiedDetails value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeModifiedDetails() + { + } + + /// + /// Gets the value of this instance. + /// + public global::Dropbox.Api.TeamLog.ProtectCustomDataTypeModifiedDetails Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeModifiedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeModifiedDetails value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_modified_details", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeModifiedDetails.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeModifiedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeModifiedDetails Create() + { + return new ProtectCustomDataTypeModifiedDetails(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeModifiedDetails DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeModifiedDetails(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeModifiedDetails.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + /// /// The protect internal domains changed 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 391e63feeb..c6e39d8160 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventType.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventType.cs @@ -6504,6 +6504,121 @@ public ProtectActionStopSharing AsProtectActionStopSharing } } + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeCreated + /// + public bool IsProtectCustomDataTypeCreated + { + get + { + return this is ProtectCustomDataTypeCreated; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeCreated, or null. + /// + public ProtectCustomDataTypeCreated AsProtectCustomDataTypeCreated + { + get + { + return this as ProtectCustomDataTypeCreated; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeDeleted + /// + public bool IsProtectCustomDataTypeDeleted + { + get + { + return this is ProtectCustomDataTypeDeleted; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeDeleted, or null. + /// + public ProtectCustomDataTypeDeleted AsProtectCustomDataTypeDeleted + { + get + { + return this as ProtectCustomDataTypeDeleted; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeDisabled + /// + public bool IsProtectCustomDataTypeDisabled + { + get + { + return this is ProtectCustomDataTypeDisabled; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeDisabled, or null. + /// + public ProtectCustomDataTypeDisabled AsProtectCustomDataTypeDisabled + { + get + { + return this as ProtectCustomDataTypeDisabled; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeEnabled + /// + public bool IsProtectCustomDataTypeEnabled + { + get + { + return this is ProtectCustomDataTypeEnabled; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeEnabled, or null. + /// + public ProtectCustomDataTypeEnabled AsProtectCustomDataTypeEnabled + { + get + { + return this as ProtectCustomDataTypeEnabled; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeModified + /// + public bool IsProtectCustomDataTypeModified + { + get + { + return this is ProtectCustomDataTypeModified; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeModified, or null. + /// + public ProtectCustomDataTypeModified AsProtectCustomDataTypeModified + { + get + { + return this as ProtectCustomDataTypeModified; + } + } + /// /// Gets a value indicating whether this instance is /// ProtectInternalDomainsChanged @@ -16296,6 +16411,36 @@ public override void EncodeFields(EventType value, enc.IJsonWriter writer) ProtectActionStopSharing.Encoder.EncodeFields((ProtectActionStopSharing)value, writer); return; } + if (value is ProtectCustomDataTypeCreated) + { + WriteProperty(".tag", "protect_custom_data_type_created", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeCreated.Encoder.EncodeFields((ProtectCustomDataTypeCreated)value, writer); + return; + } + if (value is ProtectCustomDataTypeDeleted) + { + WriteProperty(".tag", "protect_custom_data_type_deleted", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeDeleted.Encoder.EncodeFields((ProtectCustomDataTypeDeleted)value, writer); + return; + } + if (value is ProtectCustomDataTypeDisabled) + { + WriteProperty(".tag", "protect_custom_data_type_disabled", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeDisabled.Encoder.EncodeFields((ProtectCustomDataTypeDisabled)value, writer); + return; + } + if (value is ProtectCustomDataTypeEnabled) + { + WriteProperty(".tag", "protect_custom_data_type_enabled", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeEnabled.Encoder.EncodeFields((ProtectCustomDataTypeEnabled)value, writer); + return; + } + if (value is ProtectCustomDataTypeModified) + { + WriteProperty(".tag", "protect_custom_data_type_modified", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeModified.Encoder.EncodeFields((ProtectCustomDataTypeModified)value, writer); + return; + } if (value is ProtectInternalDomainsChanged) { WriteProperty(".tag", "protect_internal_domains_changed", writer, enc.StringEncoder.Instance); @@ -19004,6 +19149,16 @@ protected override EventType Decode(string tag, enc.IJsonReader reader) return ProtectActionRemoveLink.Decoder.DecodeFields(reader); case "protect_action_stop_sharing": return ProtectActionStopSharing.Decoder.DecodeFields(reader); + case "protect_custom_data_type_created": + return ProtectCustomDataTypeCreated.Decoder.DecodeFields(reader); + case "protect_custom_data_type_deleted": + return ProtectCustomDataTypeDeleted.Decoder.DecodeFields(reader); + case "protect_custom_data_type_disabled": + return ProtectCustomDataTypeDisabled.Decoder.DecodeFields(reader); + case "protect_custom_data_type_enabled": + return ProtectCustomDataTypeEnabled.Decoder.DecodeFields(reader); + case "protect_custom_data_type_modified": + return ProtectCustomDataTypeModified.Decoder.DecodeFields(reader); case "protect_internal_domains_changed": return ProtectInternalDomainsChanged.Decoder.DecodeFields(reader); case "protect_policy_activated": @@ -45308,6 +45463,456 @@ public override ProtectActionStopSharing DecodeFields(enc.IJsonReader reader) #endregion } + /// + /// (protect) Created a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeCreated : EventType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeCreatedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeCreatedDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeCreated(ProtectCustomDataTypeCreatedType value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeCreated() + { + } + + /// + /// Gets the value of this instance. + /// + public ProtectCustomDataTypeCreatedType Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeCreatedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeCreated value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_created", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeCreatedType.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeCreatedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeCreated Create() + { + return new ProtectCustomDataTypeCreated(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeCreated DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeCreated(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeCreatedType.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// (protect) Deleted a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeDeleted : EventType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDeletedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDeletedDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeDeleted(ProtectCustomDataTypeDeletedType value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeDeleted() + { + } + + /// + /// Gets the value of this instance. + /// + public ProtectCustomDataTypeDeletedType Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDeletedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDeleted value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_deleted", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDeletedType.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDeletedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDeleted Create() + { + return new ProtectCustomDataTypeDeleted(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeDeleted DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeDeleted(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDeletedType.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// (protect) Disabled a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeDisabled : EventType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDisabledEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDisabledDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeDisabled(ProtectCustomDataTypeDisabledType value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeDisabled() + { + } + + /// + /// Gets the value of this instance. + /// + public ProtectCustomDataTypeDisabledType Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDisabledEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDisabled value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_disabled", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDisabledType.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDisabledDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDisabled Create() + { + return new ProtectCustomDataTypeDisabled(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeDisabled DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeDisabled(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeDisabledType.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// (protect) Enabled a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeEnabled : EventType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeEnabledEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeEnabledDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeEnabled(ProtectCustomDataTypeEnabledType value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeEnabled() + { + } + + /// + /// Gets the value of this instance. + /// + public ProtectCustomDataTypeEnabledType Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeEnabledEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeEnabled value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_enabled", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeEnabledType.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeEnabledDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeEnabled Create() + { + return new ProtectCustomDataTypeEnabled(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeEnabled DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeEnabled(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeEnabledType.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// (protect) Modified a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeModified : EventType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeModifiedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeModifiedDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectCustomDataTypeModified(ProtectCustomDataTypeModifiedType value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeModified() + { + } + + /// + /// Gets the value of this instance. + /// + public ProtectCustomDataTypeModifiedType Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeModifiedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeModified value, enc.IJsonWriter writer) + { + WriteProperty("protect_custom_data_type_modified", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectCustomDataTypeModifiedType.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeModifiedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeModified Create() + { + return new ProtectCustomDataTypeModified(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectCustomDataTypeModified DecodeFields(enc.IJsonReader reader) + { + return new ProtectCustomDataTypeModified(global::Dropbox.Api.TeamLog.ProtectCustomDataTypeModifiedType.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + /// /// (protect) Modified Protect internal domains list /// diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs index 7d4bd9e470..4887435357 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs @@ -6504,6 +6504,121 @@ public ProtectActionStopSharing AsProtectActionStopSharing } } + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeCreated + /// + public bool IsProtectCustomDataTypeCreated + { + get + { + return this is ProtectCustomDataTypeCreated; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeCreated, or null. + /// + public ProtectCustomDataTypeCreated AsProtectCustomDataTypeCreated + { + get + { + return this as ProtectCustomDataTypeCreated; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeDeleted + /// + public bool IsProtectCustomDataTypeDeleted + { + get + { + return this is ProtectCustomDataTypeDeleted; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeDeleted, or null. + /// + public ProtectCustomDataTypeDeleted AsProtectCustomDataTypeDeleted + { + get + { + return this as ProtectCustomDataTypeDeleted; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeDisabled + /// + public bool IsProtectCustomDataTypeDisabled + { + get + { + return this is ProtectCustomDataTypeDisabled; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeDisabled, or null. + /// + public ProtectCustomDataTypeDisabled AsProtectCustomDataTypeDisabled + { + get + { + return this as ProtectCustomDataTypeDisabled; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeEnabled + /// + public bool IsProtectCustomDataTypeEnabled + { + get + { + return this is ProtectCustomDataTypeEnabled; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeEnabled, or null. + /// + public ProtectCustomDataTypeEnabled AsProtectCustomDataTypeEnabled + { + get + { + return this as ProtectCustomDataTypeEnabled; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectCustomDataTypeModified + /// + public bool IsProtectCustomDataTypeModified + { + get + { + return this is ProtectCustomDataTypeModified; + } + } + + /// + /// Gets this instance as a ProtectCustomDataTypeModified, or null. + /// + public ProtectCustomDataTypeModified AsProtectCustomDataTypeModified + { + get + { + return this as ProtectCustomDataTypeModified; + } + } + /// /// Gets a value indicating whether this instance is /// ProtectInternalDomainsChanged @@ -16296,6 +16411,36 @@ public override void EncodeFields(EventTypeArg value, enc.IJsonWriter writer) ProtectActionStopSharing.Encoder.EncodeFields((ProtectActionStopSharing)value, writer); return; } + if (value is ProtectCustomDataTypeCreated) + { + WriteProperty(".tag", "protect_custom_data_type_created", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeCreated.Encoder.EncodeFields((ProtectCustomDataTypeCreated)value, writer); + return; + } + if (value is ProtectCustomDataTypeDeleted) + { + WriteProperty(".tag", "protect_custom_data_type_deleted", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeDeleted.Encoder.EncodeFields((ProtectCustomDataTypeDeleted)value, writer); + return; + } + if (value is ProtectCustomDataTypeDisabled) + { + WriteProperty(".tag", "protect_custom_data_type_disabled", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeDisabled.Encoder.EncodeFields((ProtectCustomDataTypeDisabled)value, writer); + return; + } + if (value is ProtectCustomDataTypeEnabled) + { + WriteProperty(".tag", "protect_custom_data_type_enabled", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeEnabled.Encoder.EncodeFields((ProtectCustomDataTypeEnabled)value, writer); + return; + } + if (value is ProtectCustomDataTypeModified) + { + WriteProperty(".tag", "protect_custom_data_type_modified", writer, enc.StringEncoder.Instance); + ProtectCustomDataTypeModified.Encoder.EncodeFields((ProtectCustomDataTypeModified)value, writer); + return; + } if (value is ProtectInternalDomainsChanged) { WriteProperty(".tag", "protect_internal_domains_changed", writer, enc.StringEncoder.Instance); @@ -19004,6 +19149,16 @@ protected override EventTypeArg Decode(string tag, enc.IJsonReader reader) return ProtectActionRemoveLink.Decoder.DecodeFields(reader); case "protect_action_stop_sharing": return ProtectActionStopSharing.Decoder.DecodeFields(reader); + case "protect_custom_data_type_created": + return ProtectCustomDataTypeCreated.Decoder.DecodeFields(reader); + case "protect_custom_data_type_deleted": + return ProtectCustomDataTypeDeleted.Decoder.DecodeFields(reader); + case "protect_custom_data_type_disabled": + return ProtectCustomDataTypeDisabled.Decoder.DecodeFields(reader); + case "protect_custom_data_type_enabled": + return ProtectCustomDataTypeEnabled.Decoder.DecodeFields(reader); + case "protect_custom_data_type_modified": + return ProtectCustomDataTypeModified.Decoder.DecodeFields(reader); case "protect_internal_domains_changed": return ProtectInternalDomainsChanged.Decoder.DecodeFields(reader); case "protect_policy_activated": @@ -39906,6 +40061,361 @@ protected override ProtectActionStopSharing Create() #endregion } + /// + /// (protect) Created a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeCreated : EventTypeArg + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeCreatedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeCreatedDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeCreated() + { + } + + /// + /// A singleton instance of ProtectCustomDataTypeCreated + /// + public static readonly ProtectCustomDataTypeCreated Instance = new ProtectCustomDataTypeCreated(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeCreatedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeCreated value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeCreatedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeCreated Create() + { + return ProtectCustomDataTypeCreated.Instance; + } + + } + + #endregion + } + + /// + /// (protect) Deleted a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeDeleted : EventTypeArg + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDeletedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDeletedDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeDeleted() + { + } + + /// + /// A singleton instance of ProtectCustomDataTypeDeleted + /// + public static readonly ProtectCustomDataTypeDeleted Instance = new ProtectCustomDataTypeDeleted(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDeletedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDeleted value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDeletedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDeleted Create() + { + return ProtectCustomDataTypeDeleted.Instance; + } + + } + + #endregion + } + + /// + /// (protect) Disabled a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeDisabled : EventTypeArg + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDisabledEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDisabledDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeDisabled() + { + } + + /// + /// A singleton instance of ProtectCustomDataTypeDisabled + /// + public static readonly ProtectCustomDataTypeDisabled Instance = new ProtectCustomDataTypeDisabled(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDisabledEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDisabled value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDisabledDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDisabled Create() + { + return ProtectCustomDataTypeDisabled.Instance; + } + + } + + #endregion + } + + /// + /// (protect) Enabled a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeEnabled : EventTypeArg + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeEnabledEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeEnabledDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeEnabled() + { + } + + /// + /// A singleton instance of ProtectCustomDataTypeEnabled + /// + public static readonly ProtectCustomDataTypeEnabled Instance = new ProtectCustomDataTypeEnabled(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeEnabledEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeEnabled value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeEnabledDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeEnabled Create() + { + return ProtectCustomDataTypeEnabled.Instance; + } + + } + + #endregion + } + + /// + /// (protect) Modified a Dropbox Protect custom data type + /// + public sealed class ProtectCustomDataTypeModified : EventTypeArg + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeModifiedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeModifiedDecoder(); + + /// + /// Initializes a new instance of the class. + /// + private ProtectCustomDataTypeModified() + { + } + + /// + /// A singleton instance of ProtectCustomDataTypeModified + /// + public static readonly ProtectCustomDataTypeModified Instance = new ProtectCustomDataTypeModified(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeModifiedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeModified value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeModifiedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeModified Create() + { + return ProtectCustomDataTypeModified.Instance; + } + + } + + #endregion + } + /// /// (protect) Modified Protect internal domains list /// diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeCreatedDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeCreatedDetails.cs new file mode 100644 index 0000000000..018680f243 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeCreatedDetails.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; + + /// + /// Created a Dropbox Protect custom data type. + /// + public class ProtectCustomDataTypeCreatedDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeCreatedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeCreatedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// ID. + /// Name. + public ProtectCustomDataTypeCreatedDetails(string customDataTypeId, + string name) + { + if (customDataTypeId == null) + { + throw new sys.ArgumentNullException("customDataTypeId"); + } + + if (name == null) + { + throw new sys.ArgumentNullException("name"); + } + + this.CustomDataTypeId = customDataTypeId; + this.Name = name; + } + + /// + /// 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 ProtectCustomDataTypeCreatedDetails() + { + } + + /// + /// ID. + /// + public string CustomDataTypeId { get; protected set; } + + /// + /// Name. + /// + public string Name { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeCreatedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeCreatedDetails value, enc.IJsonWriter writer) + { + WriteProperty("custom_data_type_id", value.CustomDataTypeId, writer, enc.StringEncoder.Instance); + WriteProperty("name", value.Name, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeCreatedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeCreatedDetails Create() + { + return new ProtectCustomDataTypeCreatedDetails(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeCreatedDetails value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "custom_data_type_id": + value.CustomDataTypeId = enc.StringDecoder.Instance.Decode(reader); + break; + case "name": + value.Name = enc.StringDecoder.Instance.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeCreatedType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeCreatedType.cs new file mode 100644 index 0000000000..9e8ca8f972 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeCreatedType.cs @@ -0,0 +1,121 @@ +// +// 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 protect custom data type created type object + /// + public class ProtectCustomDataTypeCreatedType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeCreatedTypeEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeCreatedTypeDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The description + public ProtectCustomDataTypeCreatedType(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 ProtectCustomDataTypeCreatedType() + { + } + + /// + /// Gets the description of the protect custom data type created type + /// + public string Description { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeCreatedTypeEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeCreatedType value, enc.IJsonWriter writer) + { + WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeCreatedTypeDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeCreatedType Create() + { + return new ProtectCustomDataTypeCreatedType(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeCreatedType 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/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDeletedDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDeletedDetails.cs new file mode 100644 index 0000000000..20021d3bf1 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDeletedDetails.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; + + /// + /// Deleted a Dropbox Protect custom data type. + /// + public class ProtectCustomDataTypeDeletedDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDeletedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDeletedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// ID. + /// Name. + public ProtectCustomDataTypeDeletedDetails(string customDataTypeId, + string name) + { + if (customDataTypeId == null) + { + throw new sys.ArgumentNullException("customDataTypeId"); + } + + if (name == null) + { + throw new sys.ArgumentNullException("name"); + } + + this.CustomDataTypeId = customDataTypeId; + this.Name = name; + } + + /// + /// 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 ProtectCustomDataTypeDeletedDetails() + { + } + + /// + /// ID. + /// + public string CustomDataTypeId { get; protected set; } + + /// + /// Name. + /// + public string Name { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDeletedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDeletedDetails value, enc.IJsonWriter writer) + { + WriteProperty("custom_data_type_id", value.CustomDataTypeId, writer, enc.StringEncoder.Instance); + WriteProperty("name", value.Name, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDeletedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDeletedDetails Create() + { + return new ProtectCustomDataTypeDeletedDetails(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeDeletedDetails value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "custom_data_type_id": + value.CustomDataTypeId = enc.StringDecoder.Instance.Decode(reader); + break; + case "name": + value.Name = enc.StringDecoder.Instance.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDeletedType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDeletedType.cs new file mode 100644 index 0000000000..749c3304d1 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDeletedType.cs @@ -0,0 +1,121 @@ +// +// 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 protect custom data type deleted type object + /// + public class ProtectCustomDataTypeDeletedType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDeletedTypeEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDeletedTypeDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The description + public ProtectCustomDataTypeDeletedType(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 ProtectCustomDataTypeDeletedType() + { + } + + /// + /// Gets the description of the protect custom data type deleted type + /// + public string Description { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDeletedTypeEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDeletedType value, enc.IJsonWriter writer) + { + WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDeletedTypeDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDeletedType Create() + { + return new ProtectCustomDataTypeDeletedType(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeDeletedType 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/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDisabledDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDisabledDetails.cs new file mode 100644 index 0000000000..96589677c8 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDisabledDetails.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; + + /// + /// Disabled a Dropbox Protect custom data type. + /// + public class ProtectCustomDataTypeDisabledDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDisabledDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDisabledDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// ID. + /// Name. + public ProtectCustomDataTypeDisabledDetails(string customDataTypeId, + string name) + { + if (customDataTypeId == null) + { + throw new sys.ArgumentNullException("customDataTypeId"); + } + + if (name == null) + { + throw new sys.ArgumentNullException("name"); + } + + this.CustomDataTypeId = customDataTypeId; + this.Name = name; + } + + /// + /// 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 ProtectCustomDataTypeDisabledDetails() + { + } + + /// + /// ID. + /// + public string CustomDataTypeId { get; protected set; } + + /// + /// Name. + /// + public string Name { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDisabledDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDisabledDetails value, enc.IJsonWriter writer) + { + WriteProperty("custom_data_type_id", value.CustomDataTypeId, writer, enc.StringEncoder.Instance); + WriteProperty("name", value.Name, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDisabledDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDisabledDetails Create() + { + return new ProtectCustomDataTypeDisabledDetails(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeDisabledDetails value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "custom_data_type_id": + value.CustomDataTypeId = enc.StringDecoder.Instance.Decode(reader); + break; + case "name": + value.Name = enc.StringDecoder.Instance.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDisabledType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDisabledType.cs new file mode 100644 index 0000000000..5c0801d06c --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeDisabledType.cs @@ -0,0 +1,121 @@ +// +// 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 protect custom data type disabled type object + /// + public class ProtectCustomDataTypeDisabledType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeDisabledTypeEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeDisabledTypeDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The description + public ProtectCustomDataTypeDisabledType(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 ProtectCustomDataTypeDisabledType() + { + } + + /// + /// Gets the description of the protect custom data type disabled type + /// + public string Description { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeDisabledTypeEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeDisabledType value, enc.IJsonWriter writer) + { + WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeDisabledTypeDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeDisabledType Create() + { + return new ProtectCustomDataTypeDisabledType(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeDisabledType 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/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeEnabledDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeEnabledDetails.cs new file mode 100644 index 0000000000..c951fdac07 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeEnabledDetails.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; + + /// + /// Enabled a Dropbox Protect custom data type. + /// + public class ProtectCustomDataTypeEnabledDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeEnabledDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeEnabledDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// ID. + /// Name. + public ProtectCustomDataTypeEnabledDetails(string customDataTypeId, + string name) + { + if (customDataTypeId == null) + { + throw new sys.ArgumentNullException("customDataTypeId"); + } + + if (name == null) + { + throw new sys.ArgumentNullException("name"); + } + + this.CustomDataTypeId = customDataTypeId; + this.Name = name; + } + + /// + /// 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 ProtectCustomDataTypeEnabledDetails() + { + } + + /// + /// ID. + /// + public string CustomDataTypeId { get; protected set; } + + /// + /// Name. + /// + public string Name { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeEnabledDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeEnabledDetails value, enc.IJsonWriter writer) + { + WriteProperty("custom_data_type_id", value.CustomDataTypeId, writer, enc.StringEncoder.Instance); + WriteProperty("name", value.Name, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeEnabledDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeEnabledDetails Create() + { + return new ProtectCustomDataTypeEnabledDetails(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeEnabledDetails value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "custom_data_type_id": + value.CustomDataTypeId = enc.StringDecoder.Instance.Decode(reader); + break; + case "name": + value.Name = enc.StringDecoder.Instance.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeEnabledType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeEnabledType.cs new file mode 100644 index 0000000000..0b3af998b4 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeEnabledType.cs @@ -0,0 +1,121 @@ +// +// 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 protect custom data type enabled type object + /// + public class ProtectCustomDataTypeEnabledType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeEnabledTypeEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeEnabledTypeDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The description + public ProtectCustomDataTypeEnabledType(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 ProtectCustomDataTypeEnabledType() + { + } + + /// + /// Gets the description of the protect custom data type enabled type + /// + public string Description { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeEnabledTypeEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeEnabledType value, enc.IJsonWriter writer) + { + WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeEnabledTypeDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeEnabledType Create() + { + return new ProtectCustomDataTypeEnabledType(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeEnabledType 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/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeModifiedDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeModifiedDetails.cs new file mode 100644 index 0000000000..7da645c8ed --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeModifiedDetails.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; + + /// + /// Modified a Dropbox Protect custom data type. + /// + public class ProtectCustomDataTypeModifiedDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeModifiedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeModifiedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// ID. + /// Name. + public ProtectCustomDataTypeModifiedDetails(string customDataTypeId, + string name) + { + if (customDataTypeId == null) + { + throw new sys.ArgumentNullException("customDataTypeId"); + } + + if (name == null) + { + throw new sys.ArgumentNullException("name"); + } + + this.CustomDataTypeId = customDataTypeId; + this.Name = name; + } + + /// + /// 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 ProtectCustomDataTypeModifiedDetails() + { + } + + /// + /// ID. + /// + public string CustomDataTypeId { get; protected set; } + + /// + /// Name. + /// + public string Name { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeModifiedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeModifiedDetails value, enc.IJsonWriter writer) + { + WriteProperty("custom_data_type_id", value.CustomDataTypeId, writer, enc.StringEncoder.Instance); + WriteProperty("name", value.Name, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeModifiedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeModifiedDetails Create() + { + return new ProtectCustomDataTypeModifiedDetails(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeModifiedDetails value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "custom_data_type_id": + value.CustomDataTypeId = enc.StringDecoder.Instance.Decode(reader); + break; + case "name": + value.Name = enc.StringDecoder.Instance.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeModifiedType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeModifiedType.cs new file mode 100644 index 0000000000..6627846f5b --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectCustomDataTypeModifiedType.cs @@ -0,0 +1,121 @@ +// +// 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 protect custom data type modified type object + /// + public class ProtectCustomDataTypeModifiedType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectCustomDataTypeModifiedTypeEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectCustomDataTypeModifiedTypeDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The description + public ProtectCustomDataTypeModifiedType(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 ProtectCustomDataTypeModifiedType() + { + } + + /// + /// Gets the description of the protect custom data type modified type + /// + public string Description { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectCustomDataTypeModifiedTypeEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectCustomDataTypeModifiedType value, enc.IJsonWriter writer) + { + WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectCustomDataTypeModifiedTypeDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectCustomDataTypeModifiedType Create() + { + return new ProtectCustomDataTypeModifiedType(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectCustomDataTypeModifiedType 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 248109f2fb..2994fb7470 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 248109f2fb632e0f545e13ed1852d2b39f5c45ad +Subproject commit 2994fb7470d515e1fb223a9dbe18df41341b1a27