From 440e222edd6b1814d9f66f5c9a7338d68f191c0e Mon Sep 17 00:00:00 2001 From: "dropbox-sdk-updater[bot]" <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com> Date: Fri, 31 Jul 2026 15:40:25 +0000 Subject: [PATCH] Automated Spec Update b6bb8e88b6cc5898dcc8eff66324908203d95eb4 Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> --- .../Generated/TeamLog/EventDetails.cs | 364 ++++++++++++++++++ .../Generated/TeamLog/EventType.cs | 362 +++++++++++++++++ .../Generated/TeamLog/EventTypeArg.cs | 305 +++++++++++++++ .../TeamLog/ProtectPolicyActivatedDetails.cs | 121 ++++++ .../TeamLog/ProtectPolicyActivatedType.cs | 121 ++++++ .../ProtectPolicyDeactivatedDetails.cs | 121 ++++++ .../TeamLog/ProtectPolicyDeactivatedType.cs | 121 ++++++ .../TeamLog/ProtectPolicyUpdatedDetails.cs | 121 ++++++ .../TeamLog/ProtectPolicyUpdatedType.cs | 121 ++++++ spec | 2 +- 10 files changed, 1758 insertions(+), 1 deletion(-) create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyActivatedDetails.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyActivatedType.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyDeactivatedDetails.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyDeactivatedType.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyUpdatedDetails.cs create mode 100644 dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyUpdatedType.cs diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs index 3bc7d982e4..95c4152270 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventDetails.cs @@ -6684,6 +6684,76 @@ public ProtectInternalDomainsChangedDetails AsProtectInternalDomainsChangedDetai } } + /// + /// Gets a value indicating whether this instance is + /// ProtectPolicyActivatedDetails + /// + public bool IsProtectPolicyActivatedDetails + { + get + { + return this is ProtectPolicyActivatedDetails; + } + } + + /// + /// Gets this instance as a ProtectPolicyActivatedDetails, or null. + /// + public ProtectPolicyActivatedDetails AsProtectPolicyActivatedDetails + { + get + { + return this as ProtectPolicyActivatedDetails; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectPolicyDeactivatedDetails + /// + public bool IsProtectPolicyDeactivatedDetails + { + get + { + return this is ProtectPolicyDeactivatedDetails; + } + } + + /// + /// Gets this instance as a ProtectPolicyDeactivatedDetails, or + /// null. + /// + public ProtectPolicyDeactivatedDetails AsProtectPolicyDeactivatedDetails + { + get + { + return this as ProtectPolicyDeactivatedDetails; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectPolicyUpdatedDetails + /// + public bool IsProtectPolicyUpdatedDetails + { + get + { + return this is ProtectPolicyUpdatedDetails; + } + } + + /// + /// Gets this instance as a ProtectPolicyUpdatedDetails, or null. + /// + public ProtectPolicyUpdatedDetails AsProtectPolicyUpdatedDetails + { + get + { + return this as ProtectPolicyUpdatedDetails; + } + } + /// /// Gets a value indicating whether this instance is /// ClassificationCreateReportDetails @@ -16495,6 +16565,24 @@ public override void EncodeFields(EventDetails value, enc.IJsonWriter writer) ProtectInternalDomainsChangedDetails.Encoder.EncodeFields((ProtectInternalDomainsChangedDetails)value, writer); return; } + if (value is ProtectPolicyActivatedDetails) + { + WriteProperty(".tag", "protect_policy_activated_details", writer, enc.StringEncoder.Instance); + ProtectPolicyActivatedDetails.Encoder.EncodeFields((ProtectPolicyActivatedDetails)value, writer); + return; + } + if (value is ProtectPolicyDeactivatedDetails) + { + WriteProperty(".tag", "protect_policy_deactivated_details", writer, enc.StringEncoder.Instance); + ProtectPolicyDeactivatedDetails.Encoder.EncodeFields((ProtectPolicyDeactivatedDetails)value, writer); + return; + } + if (value is ProtectPolicyUpdatedDetails) + { + WriteProperty(".tag", "protect_policy_updated_details", writer, enc.StringEncoder.Instance); + ProtectPolicyUpdatedDetails.Encoder.EncodeFields((ProtectPolicyUpdatedDetails)value, writer); + return; + } if (value is ClassificationCreateReportDetails) { WriteProperty(".tag", "classification_create_report_details", writer, enc.StringEncoder.Instance); @@ -19155,6 +19243,12 @@ protected override EventDetails Decode(string tag, enc.IJsonReader reader) return ProtectActionStopSharingDetails.Decoder.DecodeFields(reader); case "protect_internal_domains_changed_details": return ProtectInternalDomainsChangedDetails.Decoder.DecodeFields(reader); + case "protect_policy_activated_details": + return ProtectPolicyActivatedDetails.Decoder.DecodeFields(reader); + case "protect_policy_deactivated_details": + return ProtectPolicyDeactivatedDetails.Decoder.DecodeFields(reader); + case "protect_policy_updated_details": + return ProtectPolicyUpdatedDetails.Decoder.DecodeFields(reader); case "classification_create_report_details": return ClassificationCreateReportDetails.Decoder.DecodeFields(reader); case "classification_create_report_fail_details": @@ -45569,6 +45663,276 @@ public override ProtectInternalDomainsChangedDetails DecodeFields(enc.IJsonReade #endregion } + /// + /// The protect policy activated details object + /// + public sealed class ProtectPolicyActivatedDetails : EventDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyActivatedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyActivatedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectPolicyActivatedDetails(global::Dropbox.Api.TeamLog.ProtectPolicyActivatedDetails value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectPolicyActivatedDetails() + { + } + + /// + /// Gets the value of this instance. + /// + public global::Dropbox.Api.TeamLog.ProtectPolicyActivatedDetails Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyActivatedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyActivatedDetails value, enc.IJsonWriter writer) + { + WriteProperty("protect_policy_activated_details", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectPolicyActivatedDetails.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyActivatedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyActivatedDetails Create() + { + return new ProtectPolicyActivatedDetails(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectPolicyActivatedDetails DecodeFields(enc.IJsonReader reader) + { + return new ProtectPolicyActivatedDetails(global::Dropbox.Api.TeamLog.ProtectPolicyActivatedDetails.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// The protect policy deactivated details object + /// + public sealed class ProtectPolicyDeactivatedDetails : EventDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyDeactivatedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyDeactivatedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectPolicyDeactivatedDetails(global::Dropbox.Api.TeamLog.ProtectPolicyDeactivatedDetails value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectPolicyDeactivatedDetails() + { + } + + /// + /// Gets the value of this instance. + /// + public global::Dropbox.Api.TeamLog.ProtectPolicyDeactivatedDetails Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyDeactivatedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyDeactivatedDetails value, enc.IJsonWriter writer) + { + WriteProperty("protect_policy_deactivated_details", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectPolicyDeactivatedDetails.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyDeactivatedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyDeactivatedDetails Create() + { + return new ProtectPolicyDeactivatedDetails(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectPolicyDeactivatedDetails DecodeFields(enc.IJsonReader reader) + { + return new ProtectPolicyDeactivatedDetails(global::Dropbox.Api.TeamLog.ProtectPolicyDeactivatedDetails.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// The protect policy updated details object + /// + public sealed class ProtectPolicyUpdatedDetails : EventDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyUpdatedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyUpdatedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// The value + public ProtectPolicyUpdatedDetails(global::Dropbox.Api.TeamLog.ProtectPolicyUpdatedDetails value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the class. + /// + private ProtectPolicyUpdatedDetails() + { + } + + /// + /// Gets the value of this instance. + /// + public global::Dropbox.Api.TeamLog.ProtectPolicyUpdatedDetails Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyUpdatedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyUpdatedDetails value, enc.IJsonWriter writer) + { + WriteProperty("protect_policy_updated_details", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectPolicyUpdatedDetails.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyUpdatedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyUpdatedDetails Create() + { + return new ProtectPolicyUpdatedDetails(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectPolicyUpdatedDetails DecodeFields(enc.IJsonReader reader) + { + return new ProtectPolicyUpdatedDetails(global::Dropbox.Api.TeamLog.ProtectPolicyUpdatedDetails.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + /// /// The classification create report 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 160fd0a3d5..23969bdf4d 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventType.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventType.cs @@ -6504,6 +6504,74 @@ public ProtectInternalDomainsChanged AsProtectInternalDomainsChanged } } + /// + /// Gets a value indicating whether this instance is + /// ProtectPolicyActivated + /// + public bool IsProtectPolicyActivated + { + get + { + return this is ProtectPolicyActivated; + } + } + + /// + /// Gets this instance as a ProtectPolicyActivated, or null. + /// + public ProtectPolicyActivated AsProtectPolicyActivated + { + get + { + return this as ProtectPolicyActivated; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectPolicyDeactivated + /// + public bool IsProtectPolicyDeactivated + { + get + { + return this is ProtectPolicyDeactivated; + } + } + + /// + /// Gets this instance as a ProtectPolicyDeactivated, or null. + /// + public ProtectPolicyDeactivated AsProtectPolicyDeactivated + { + get + { + return this as ProtectPolicyDeactivated; + } + } + + /// + /// Gets a value indicating whether this instance is ProtectPolicyUpdated + /// + public bool IsProtectPolicyUpdated + { + get + { + return this is ProtectPolicyUpdated; + } + } + + /// + /// Gets this instance as a ProtectPolicyUpdated, or null. + /// + public ProtectPolicyUpdated AsProtectPolicyUpdated + { + get + { + return this as ProtectPolicyUpdated; + } + } + /// /// Gets a value indicating whether this instance is /// ClassificationCreateReport @@ -16089,6 +16157,24 @@ public override void EncodeFields(EventType value, enc.IJsonWriter writer) ProtectInternalDomainsChanged.Encoder.EncodeFields((ProtectInternalDomainsChanged)value, writer); return; } + if (value is ProtectPolicyActivated) + { + WriteProperty(".tag", "protect_policy_activated", writer, enc.StringEncoder.Instance); + ProtectPolicyActivated.Encoder.EncodeFields((ProtectPolicyActivated)value, writer); + return; + } + if (value is ProtectPolicyDeactivated) + { + WriteProperty(".tag", "protect_policy_deactivated", writer, enc.StringEncoder.Instance); + ProtectPolicyDeactivated.Encoder.EncodeFields((ProtectPolicyDeactivated)value, writer); + return; + } + if (value is ProtectPolicyUpdated) + { + WriteProperty(".tag", "protect_policy_updated", writer, enc.StringEncoder.Instance); + ProtectPolicyUpdated.Encoder.EncodeFields((ProtectPolicyUpdated)value, writer); + return; + } if (value is ClassificationCreateReport) { WriteProperty(".tag", "classification_create_report", writer, enc.StringEncoder.Instance); @@ -18743,6 +18829,12 @@ protected override EventType Decode(string tag, enc.IJsonReader reader) return ProtectActionStopSharing.Decoder.DecodeFields(reader); case "protect_internal_domains_changed": return ProtectInternalDomainsChanged.Decoder.DecodeFields(reader); + case "protect_policy_activated": + return ProtectPolicyActivated.Decoder.DecodeFields(reader); + case "protect_policy_deactivated": + return ProtectPolicyDeactivated.Decoder.DecodeFields(reader); + case "protect_policy_updated": + return ProtectPolicyUpdated.Decoder.DecodeFields(reader); case "classification_create_report": return ClassificationCreateReport.Decoder.DecodeFields(reader); case "classification_create_report_fail": @@ -45029,6 +45121,276 @@ public override ProtectInternalDomainsChanged DecodeFields(enc.IJsonReader reade #endregion } + /// + /// (protect) Activated a Dropbox Protect policy + /// + public sealed class ProtectPolicyActivated : EventType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyActivatedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyActivatedDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + /// The value + public ProtectPolicyActivated(ProtectPolicyActivatedType value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the + /// class. + /// + private ProtectPolicyActivated() + { + } + + /// + /// Gets the value of this instance. + /// + public ProtectPolicyActivatedType Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyActivatedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyActivated value, enc.IJsonWriter writer) + { + WriteProperty("protect_policy_activated", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectPolicyActivatedType.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyActivatedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyActivated Create() + { + return new ProtectPolicyActivated(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectPolicyActivated DecodeFields(enc.IJsonReader reader) + { + return new ProtectPolicyActivated(global::Dropbox.Api.TeamLog.ProtectPolicyActivatedType.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// (protect) Deactivated a Dropbox Protect policy + /// + public sealed class ProtectPolicyDeactivated : EventType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyDeactivatedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyDeactivatedDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + /// The value + public ProtectPolicyDeactivated(ProtectPolicyDeactivatedType value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the + /// class. + /// + private ProtectPolicyDeactivated() + { + } + + /// + /// Gets the value of this instance. + /// + public ProtectPolicyDeactivatedType Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyDeactivatedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyDeactivated value, enc.IJsonWriter writer) + { + WriteProperty("protect_policy_deactivated", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectPolicyDeactivatedType.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyDeactivatedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyDeactivated Create() + { + return new ProtectPolicyDeactivated(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectPolicyDeactivated DecodeFields(enc.IJsonReader reader) + { + return new ProtectPolicyDeactivated(global::Dropbox.Api.TeamLog.ProtectPolicyDeactivatedType.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + + /// + /// (protect) Updated a Dropbox Protect policy + /// + public sealed class ProtectPolicyUpdated : EventType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyUpdatedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyUpdatedDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + /// The value + public ProtectPolicyUpdated(ProtectPolicyUpdatedType value) + { + this.Value = value; + } + /// + /// Initializes a new instance of the + /// class. + /// + private ProtectPolicyUpdated() + { + } + + /// + /// Gets the value of this instance. + /// + public ProtectPolicyUpdatedType Value { get; private set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyUpdatedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyUpdated value, enc.IJsonWriter writer) + { + WriteProperty("protect_policy_updated", value.Value, writer, global::Dropbox.Api.TeamLog.ProtectPolicyUpdatedType.Encoder); + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyUpdatedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyUpdated Create() + { + return new ProtectPolicyUpdated(); + } + + /// + /// Decode fields without ensuring start and end object. + /// + /// The json reader. + /// The decoded object. + public override ProtectPolicyUpdated DecodeFields(enc.IJsonReader reader) + { + return new ProtectPolicyUpdated(global::Dropbox.Api.TeamLog.ProtectPolicyUpdatedType.Decoder.DecodeFields(reader)); + } + } + + #endregion + } + /// /// (reports) Created Classification report /// diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs index bf38b06966..ae04f1925a 100644 --- a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/EventTypeArg.cs @@ -6504,6 +6504,74 @@ public ProtectInternalDomainsChanged AsProtectInternalDomainsChanged } } + /// + /// Gets a value indicating whether this instance is + /// ProtectPolicyActivated + /// + public bool IsProtectPolicyActivated + { + get + { + return this is ProtectPolicyActivated; + } + } + + /// + /// Gets this instance as a ProtectPolicyActivated, or null. + /// + public ProtectPolicyActivated AsProtectPolicyActivated + { + get + { + return this as ProtectPolicyActivated; + } + } + + /// + /// Gets a value indicating whether this instance is + /// ProtectPolicyDeactivated + /// + public bool IsProtectPolicyDeactivated + { + get + { + return this is ProtectPolicyDeactivated; + } + } + + /// + /// Gets this instance as a ProtectPolicyDeactivated, or null. + /// + public ProtectPolicyDeactivated AsProtectPolicyDeactivated + { + get + { + return this as ProtectPolicyDeactivated; + } + } + + /// + /// Gets a value indicating whether this instance is ProtectPolicyUpdated + /// + public bool IsProtectPolicyUpdated + { + get + { + return this is ProtectPolicyUpdated; + } + } + + /// + /// Gets this instance as a ProtectPolicyUpdated, or null. + /// + public ProtectPolicyUpdated AsProtectPolicyUpdated + { + get + { + return this as ProtectPolicyUpdated; + } + } + /// /// Gets a value indicating whether this instance is /// ClassificationCreateReport @@ -16089,6 +16157,24 @@ public override void EncodeFields(EventTypeArg value, enc.IJsonWriter writer) ProtectInternalDomainsChanged.Encoder.EncodeFields((ProtectInternalDomainsChanged)value, writer); return; } + if (value is ProtectPolicyActivated) + { + WriteProperty(".tag", "protect_policy_activated", writer, enc.StringEncoder.Instance); + ProtectPolicyActivated.Encoder.EncodeFields((ProtectPolicyActivated)value, writer); + return; + } + if (value is ProtectPolicyDeactivated) + { + WriteProperty(".tag", "protect_policy_deactivated", writer, enc.StringEncoder.Instance); + ProtectPolicyDeactivated.Encoder.EncodeFields((ProtectPolicyDeactivated)value, writer); + return; + } + if (value is ProtectPolicyUpdated) + { + WriteProperty(".tag", "protect_policy_updated", writer, enc.StringEncoder.Instance); + ProtectPolicyUpdated.Encoder.EncodeFields((ProtectPolicyUpdated)value, writer); + return; + } if (value is ClassificationCreateReport) { WriteProperty(".tag", "classification_create_report", writer, enc.StringEncoder.Instance); @@ -18743,6 +18829,12 @@ protected override EventTypeArg Decode(string tag, enc.IJsonReader reader) return ProtectActionStopSharing.Decoder.DecodeFields(reader); case "protect_internal_domains_changed": return ProtectInternalDomainsChanged.Decoder.DecodeFields(reader); + case "protect_policy_activated": + return ProtectPolicyActivated.Decoder.DecodeFields(reader); + case "protect_policy_deactivated": + return ProtectPolicyDeactivated.Decoder.DecodeFields(reader); + case "protect_policy_updated": + return ProtectPolicyUpdated.Decoder.DecodeFields(reader); case "classification_create_report": return ClassificationCreateReport.Decoder.DecodeFields(reader); case "classification_create_report_fail": @@ -39627,6 +39719,219 @@ protected override ProtectInternalDomainsChanged Create() #endregion } + /// + /// (protect) Activated a Dropbox Protect policy + /// + public sealed class ProtectPolicyActivated : EventTypeArg + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyActivatedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyActivatedDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + private ProtectPolicyActivated() + { + } + + /// + /// A singleton instance of ProtectPolicyActivated + /// + public static readonly ProtectPolicyActivated Instance = new ProtectPolicyActivated(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyActivatedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyActivated value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyActivatedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyActivated Create() + { + return ProtectPolicyActivated.Instance; + } + + } + + #endregion + } + + /// + /// (protect) Deactivated a Dropbox Protect policy + /// + public sealed class ProtectPolicyDeactivated : EventTypeArg + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyDeactivatedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyDeactivatedDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + private ProtectPolicyDeactivated() + { + } + + /// + /// A singleton instance of ProtectPolicyDeactivated + /// + public static readonly ProtectPolicyDeactivated Instance = new ProtectPolicyDeactivated(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyDeactivatedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyDeactivated value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyDeactivatedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyDeactivated Create() + { + return ProtectPolicyDeactivated.Instance; + } + + } + + #endregion + } + + /// + /// (protect) Updated a Dropbox Protect policy + /// + public sealed class ProtectPolicyUpdated : EventTypeArg + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyUpdatedEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyUpdatedDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + private ProtectPolicyUpdated() + { + } + + /// + /// A singleton instance of ProtectPolicyUpdated + /// + public static readonly ProtectPolicyUpdated Instance = new ProtectPolicyUpdated(); + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyUpdatedEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyUpdated value, enc.IJsonWriter writer) + { + } + } + + #endregion + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyUpdatedDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyUpdated Create() + { + return ProtectPolicyUpdated.Instance; + } + + } + + #endregion + } + /// /// (reports) Created Classification report /// diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyActivatedDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyActivatedDetails.cs new file mode 100644 index 0000000000..6396358efd --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyActivatedDetails.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; + + /// + /// Activated a Dropbox Protect policy. + /// + public class ProtectPolicyActivatedDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyActivatedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyActivatedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// Policy ID. + public ProtectPolicyActivatedDetails(string policyId) + { + if (policyId == null) + { + throw new sys.ArgumentNullException("policyId"); + } + + this.PolicyId = policyId; + } + + /// + /// 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 ProtectPolicyActivatedDetails() + { + } + + /// + /// Policy ID. + /// + public string PolicyId { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyActivatedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyActivatedDetails value, enc.IJsonWriter writer) + { + WriteProperty("policy_id", value.PolicyId, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyActivatedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyActivatedDetails Create() + { + return new ProtectPolicyActivatedDetails(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectPolicyActivatedDetails value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "policy_id": + value.PolicyId = enc.StringDecoder.Instance.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyActivatedType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyActivatedType.cs new file mode 100644 index 0000000000..f1b0725d64 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyActivatedType.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 policy activated type object + /// + public class ProtectPolicyActivatedType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyActivatedTypeEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyActivatedTypeDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + /// The description + public ProtectPolicyActivatedType(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 ProtectPolicyActivatedType() + { + } + + /// + /// Gets the description of the protect policy activated type + /// + public string Description { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyActivatedTypeEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyActivatedType value, enc.IJsonWriter writer) + { + WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyActivatedTypeDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyActivatedType Create() + { + return new ProtectPolicyActivatedType(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectPolicyActivatedType 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/ProtectPolicyDeactivatedDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyDeactivatedDetails.cs new file mode 100644 index 0000000000..3377c4b3c8 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyDeactivatedDetails.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; + + /// + /// Deactivated a Dropbox Protect policy. + /// + public class ProtectPolicyDeactivatedDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyDeactivatedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyDeactivatedDetailsDecoder(); + + /// + /// Initializes a new instance of the class. + /// + /// Policy ID. + public ProtectPolicyDeactivatedDetails(string policyId) + { + if (policyId == null) + { + throw new sys.ArgumentNullException("policyId"); + } + + this.PolicyId = policyId; + } + + /// + /// 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 ProtectPolicyDeactivatedDetails() + { + } + + /// + /// Policy ID. + /// + public string PolicyId { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyDeactivatedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyDeactivatedDetails value, enc.IJsonWriter writer) + { + WriteProperty("policy_id", value.PolicyId, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyDeactivatedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyDeactivatedDetails Create() + { + return new ProtectPolicyDeactivatedDetails(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectPolicyDeactivatedDetails value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "policy_id": + value.PolicyId = enc.StringDecoder.Instance.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyDeactivatedType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyDeactivatedType.cs new file mode 100644 index 0000000000..6ccec8a004 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyDeactivatedType.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 policy deactivated type object + /// + public class ProtectPolicyDeactivatedType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyDeactivatedTypeEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyDeactivatedTypeDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + /// The description + public ProtectPolicyDeactivatedType(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 ProtectPolicyDeactivatedType() + { + } + + /// + /// Gets the description of the protect policy deactivated type + /// + public string Description { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyDeactivatedTypeEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyDeactivatedType value, enc.IJsonWriter writer) + { + WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyDeactivatedTypeDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyDeactivatedType Create() + { + return new ProtectPolicyDeactivatedType(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectPolicyDeactivatedType 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/ProtectPolicyUpdatedDetails.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyUpdatedDetails.cs new file mode 100644 index 0000000000..3f63ef44f2 --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyUpdatedDetails.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; + + /// + /// Updated a Dropbox Protect policy. + /// + public class ProtectPolicyUpdatedDetails + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyUpdatedDetailsEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyUpdatedDetailsDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + /// Policy ID. + public ProtectPolicyUpdatedDetails(string policyId) + { + if (policyId == null) + { + throw new sys.ArgumentNullException("policyId"); + } + + this.PolicyId = policyId; + } + + /// + /// 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 ProtectPolicyUpdatedDetails() + { + } + + /// + /// Policy ID. + /// + public string PolicyId { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyUpdatedDetailsEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyUpdatedDetails value, enc.IJsonWriter writer) + { + WriteProperty("policy_id", value.PolicyId, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyUpdatedDetailsDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyUpdatedDetails Create() + { + return new ProtectPolicyUpdatedDetails(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectPolicyUpdatedDetails value, string fieldName, enc.IJsonReader reader) + { + switch (fieldName) + { + case "policy_id": + value.PolicyId = enc.StringDecoder.Instance.Decode(reader); + break; + default: + reader.Skip(); + break; + } + } + } + + #endregion + } +} diff --git a/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyUpdatedType.cs b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyUpdatedType.cs new file mode 100644 index 0000000000..d143af9f3c --- /dev/null +++ b/dropbox-sdk-dotnet/Dropbox.Api/Generated/TeamLog/ProtectPolicyUpdatedType.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 policy updated type object + /// + public class ProtectPolicyUpdatedType + { + #pragma warning disable 108 + + /// + /// The encoder instance. + /// + internal static enc.StructEncoder Encoder = new ProtectPolicyUpdatedTypeEncoder(); + + /// + /// The decoder instance. + /// + internal static enc.StructDecoder Decoder = new ProtectPolicyUpdatedTypeDecoder(); + + /// + /// Initializes a new instance of the + /// class. + /// + /// The description + public ProtectPolicyUpdatedType(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 ProtectPolicyUpdatedType() + { + } + + /// + /// Gets the description of the protect policy updated type + /// + public string Description { get; protected set; } + + #region Encoder class + + /// + /// Encoder for . + /// + private class ProtectPolicyUpdatedTypeEncoder : enc.StructEncoder + { + /// + /// Encode fields of given value. + /// + /// The value. + /// The writer. + public override void EncodeFields(ProtectPolicyUpdatedType value, enc.IJsonWriter writer) + { + WriteProperty("description", value.Description, writer, enc.StringEncoder.Instance); + } + } + + #endregion + + + #region Decoder class + + /// + /// Decoder for . + /// + private class ProtectPolicyUpdatedTypeDecoder : enc.StructDecoder + { + /// + /// Create a new instance of type . + /// + /// The struct instance. + protected override ProtectPolicyUpdatedType Create() + { + return new ProtectPolicyUpdatedType(); + } + + /// + /// Set given field. + /// + /// The field value. + /// The field name. + /// The json reader. + protected override void SetField(ProtectPolicyUpdatedType 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 f1b5fa6f96..b6bb8e88b6 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit f1b5fa6f96526401bfee0a90171bd5bd19678062 +Subproject commit b6bb8e88b6cc5898dcc8eff66324908203d95eb4