From 9868d66d00c8647c59e1bb3b9ef71a775f0fcc49 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:48:29 +0000 Subject: [PATCH] Automated Spec Update b6bb8e88b6cc5898dcc8eff66324908203d95eb4 Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> --- .../Shared/Generated/TeamLog.swift | 318 +++++++++++++++++ .../Shared/Generated/DBXTeamLog.swift | 321 ++++++++++++++++++ spec | 2 +- 3 files changed, 640 insertions(+), 1 deletion(-) diff --git a/Source/SwiftyDropbox/Shared/Generated/TeamLog.swift b/Source/SwiftyDropbox/Shared/Generated/TeamLog.swift index 2b0000bf..6755a198 100644 --- a/Source/SwiftyDropbox/Shared/Generated/TeamLog.swift +++ b/Source/SwiftyDropbox/Shared/Generated/TeamLog.swift @@ -16213,6 +16213,12 @@ public class TeamLog { /// An unspecified error. case protectInternalDomainsChangedDetails(TeamLog.ProtectInternalDomainsChangedDetails) /// An unspecified error. + case protectPolicyActivatedDetails(TeamLog.ProtectPolicyActivatedDetails) + /// An unspecified error. + case protectPolicyDeactivatedDetails(TeamLog.ProtectPolicyDeactivatedDetails) + /// An unspecified error. + case protectPolicyUpdatedDetails(TeamLog.ProtectPolicyUpdatedDetails) + /// An unspecified error. case classificationCreateReportDetails(TeamLog.ClassificationCreateReportDetails) /// An unspecified error. case classificationCreateReportFailDetails(TeamLog.ClassificationCreateReportFailDetails) @@ -18055,6 +18061,18 @@ public class TeamLog { var d = try Serialization.getFields(TeamLog.ProtectInternalDomainsChangedDetailsSerializer().serialize(arg)) d[".tag"] = .str("protect_internal_domains_changed_details") return .dictionary(d) + case .protectPolicyActivatedDetails(let arg): + var d = try Serialization.getFields(TeamLog.ProtectPolicyActivatedDetailsSerializer().serialize(arg)) + d[".tag"] = .str("protect_policy_activated_details") + return .dictionary(d) + case .protectPolicyDeactivatedDetails(let arg): + var d = try Serialization.getFields(TeamLog.ProtectPolicyDeactivatedDetailsSerializer().serialize(arg)) + d[".tag"] = .str("protect_policy_deactivated_details") + return .dictionary(d) + case .protectPolicyUpdatedDetails(let arg): + var d = try Serialization.getFields(TeamLog.ProtectPolicyUpdatedDetailsSerializer().serialize(arg)) + d[".tag"] = .str("protect_policy_updated_details") + return .dictionary(d) case .classificationCreateReportDetails(let arg): var d = try Serialization.getFields(TeamLog.ClassificationCreateReportDetailsSerializer().serialize(arg)) d[".tag"] = .str("classification_create_report_details") @@ -20289,6 +20307,15 @@ public class TeamLog { case "protect_internal_domains_changed_details": let v = try TeamLog.ProtectInternalDomainsChangedDetailsSerializer().deserialize(json) return EventDetails.protectInternalDomainsChangedDetails(v) + case "protect_policy_activated_details": + let v = try TeamLog.ProtectPolicyActivatedDetailsSerializer().deserialize(json) + return EventDetails.protectPolicyActivatedDetails(v) + case "protect_policy_deactivated_details": + let v = try TeamLog.ProtectPolicyDeactivatedDetailsSerializer().deserialize(json) + return EventDetails.protectPolicyDeactivatedDetails(v) + case "protect_policy_updated_details": + let v = try TeamLog.ProtectPolicyUpdatedDetailsSerializer().deserialize(json) + return EventDetails.protectPolicyUpdatedDetails(v) case "classification_create_report_details": let v = try TeamLog.ClassificationCreateReportDetailsSerializer().deserialize(json) return EventDetails.classificationCreateReportDetails(v) @@ -21898,6 +21925,12 @@ public class TeamLog { case protectActionStopSharing(TeamLog.ProtectActionStopSharingType) /// (protect) Modified Protect internal domains list case protectInternalDomainsChanged(TeamLog.ProtectInternalDomainsChangedType) + /// (protect) Activated a Dropbox Protect policy + case protectPolicyActivated(TeamLog.ProtectPolicyActivatedType) + /// (protect) Deactivated a Dropbox Protect policy + case protectPolicyDeactivated(TeamLog.ProtectPolicyDeactivatedType) + /// (protect) Updated a Dropbox Protect policy + case protectPolicyUpdated(TeamLog.ProtectPolicyUpdatedType) /// (reports) Created Classification report case classificationCreateReport(TeamLog.ClassificationCreateReportType) /// (reports) Couldn't create Classification report @@ -23748,6 +23781,18 @@ public class TeamLog { var d = try Serialization.getFields(TeamLog.ProtectInternalDomainsChangedTypeSerializer().serialize(arg)) d[".tag"] = .str("protect_internal_domains_changed") return .dictionary(d) + case .protectPolicyActivated(let arg): + var d = try Serialization.getFields(TeamLog.ProtectPolicyActivatedTypeSerializer().serialize(arg)) + d[".tag"] = .str("protect_policy_activated") + return .dictionary(d) + case .protectPolicyDeactivated(let arg): + var d = try Serialization.getFields(TeamLog.ProtectPolicyDeactivatedTypeSerializer().serialize(arg)) + d[".tag"] = .str("protect_policy_deactivated") + return .dictionary(d) + case .protectPolicyUpdated(let arg): + var d = try Serialization.getFields(TeamLog.ProtectPolicyUpdatedTypeSerializer().serialize(arg)) + d[".tag"] = .str("protect_policy_updated") + return .dictionary(d) case .classificationCreateReport(let arg): var d = try Serialization.getFields(TeamLog.ClassificationCreateReportTypeSerializer().serialize(arg)) d[".tag"] = .str("classification_create_report") @@ -25978,6 +26023,15 @@ public class TeamLog { case "protect_internal_domains_changed": let v = try TeamLog.ProtectInternalDomainsChangedTypeSerializer().deserialize(json) return EventType.protectInternalDomainsChanged(v) + case "protect_policy_activated": + let v = try TeamLog.ProtectPolicyActivatedTypeSerializer().deserialize(json) + return EventType.protectPolicyActivated(v) + case "protect_policy_deactivated": + let v = try TeamLog.ProtectPolicyDeactivatedTypeSerializer().deserialize(json) + return EventType.protectPolicyDeactivated(v) + case "protect_policy_updated": + let v = try TeamLog.ProtectPolicyUpdatedTypeSerializer().deserialize(json) + return EventType.protectPolicyUpdated(v) case "classification_create_report": let v = try TeamLog.ClassificationCreateReportTypeSerializer().deserialize(json) return EventType.classificationCreateReport(v) @@ -27584,6 +27638,12 @@ public class TeamLog { case protectActionStopSharing /// (protect) Modified Protect internal domains list case protectInternalDomainsChanged + /// (protect) Activated a Dropbox Protect policy + case protectPolicyActivated + /// (protect) Deactivated a Dropbox Protect policy + case protectPolicyDeactivated + /// (protect) Updated a Dropbox Protect policy + case protectPolicyUpdated /// (reports) Created Classification report case classificationCreateReport /// (reports) Couldn't create Classification report @@ -29434,6 +29494,18 @@ public class TeamLog { var d = [String: JSON]() d[".tag"] = .str("protect_internal_domains_changed") return .dictionary(d) + case .protectPolicyActivated: + var d = [String: JSON]() + d[".tag"] = .str("protect_policy_activated") + return .dictionary(d) + case .protectPolicyDeactivated: + var d = [String: JSON]() + d[".tag"] = .str("protect_policy_deactivated") + return .dictionary(d) + case .protectPolicyUpdated: + var d = [String: JSON]() + d[".tag"] = .str("protect_policy_updated") + return .dictionary(d) case .classificationCreateReport: var d = [String: JSON]() d[".tag"] = .str("classification_create_report") @@ -31379,6 +31451,12 @@ public class TeamLog { return EventTypeArg.protectActionStopSharing case "protect_internal_domains_changed": return EventTypeArg.protectInternalDomainsChanged + case "protect_policy_activated": + return EventTypeArg.protectPolicyActivated + case "protect_policy_deactivated": + return EventTypeArg.protectPolicyDeactivated + case "protect_policy_updated": + return EventTypeArg.protectPolicyUpdated case "classification_create_report": return EventTypeArg.classificationCreateReport case "classification_create_report_fail": @@ -57059,6 +57137,246 @@ public class TeamLog { } } + /// Activated a Dropbox Protect policy. + public class ProtectPolicyActivatedDetails: CustomStringConvertible, JSONRepresentable { + /// Policy ID. + public let policyId: String + public init(policyId: String) { + stringValidator()(policyId) + self.policyId = policyId + } + + func json() throws -> JSON { + try ProtectPolicyActivatedDetailsSerializer().serialize(self) + } + + public var description: String { + do { + return "\(SerializeUtil.prepareJSONForSerialization(try ProtectPolicyActivatedDetailsSerializer().serialize(self)))" + } catch { + return "Failed to generate description for ProtectPolicyActivatedDetails: \(error)" + } + } + } + public class ProtectPolicyActivatedDetailsSerializer: JSONSerializer { + public init() { } + public func serialize(_ value: ProtectPolicyActivatedDetails) throws -> JSON { + let output = [ + "policy_id": try Serialization._StringSerializer.serialize(value.policyId), + ] + return .dictionary(output) + } + public func deserialize(_ json: JSON) throws -> ProtectPolicyActivatedDetails { + switch json { + case .dictionary(let dict): + let policyId = try Serialization._StringSerializer.deserialize(dict["policy_id"] ?? .null) + return ProtectPolicyActivatedDetails(policyId: policyId) + default: + throw JSONSerializerError.deserializeError(type: ProtectPolicyActivatedDetails.self, json: json) + } + } + } + + /// The ProtectPolicyActivatedType struct + public class ProtectPolicyActivatedType: CustomStringConvertible, JSONRepresentable { + /// (no description) + public let description_: String + public init(description_: String) { + stringValidator()(description_) + self.description_ = description_ + } + + func json() throws -> JSON { + try ProtectPolicyActivatedTypeSerializer().serialize(self) + } + + public var description: String { + do { + return "\(SerializeUtil.prepareJSONForSerialization(try ProtectPolicyActivatedTypeSerializer().serialize(self)))" + } catch { + return "Failed to generate description for ProtectPolicyActivatedType: \(error)" + } + } + } + public class ProtectPolicyActivatedTypeSerializer: JSONSerializer { + public init() { } + public func serialize(_ value: ProtectPolicyActivatedType) throws -> JSON { + let output = [ + "description": try Serialization._StringSerializer.serialize(value.description_), + ] + return .dictionary(output) + } + public func deserialize(_ json: JSON) throws -> ProtectPolicyActivatedType { + switch json { + case .dictionary(let dict): + let description_ = try Serialization._StringSerializer.deserialize(dict["description"] ?? .null) + return ProtectPolicyActivatedType(description_: description_) + default: + throw JSONSerializerError.deserializeError(type: ProtectPolicyActivatedType.self, json: json) + } + } + } + + /// Deactivated a Dropbox Protect policy. + public class ProtectPolicyDeactivatedDetails: CustomStringConvertible, JSONRepresentable { + /// Policy ID. + public let policyId: String + public init(policyId: String) { + stringValidator()(policyId) + self.policyId = policyId + } + + func json() throws -> JSON { + try ProtectPolicyDeactivatedDetailsSerializer().serialize(self) + } + + public var description: String { + do { + return "\(SerializeUtil.prepareJSONForSerialization(try ProtectPolicyDeactivatedDetailsSerializer().serialize(self)))" + } catch { + return "Failed to generate description for ProtectPolicyDeactivatedDetails: \(error)" + } + } + } + public class ProtectPolicyDeactivatedDetailsSerializer: JSONSerializer { + public init() { } + public func serialize(_ value: ProtectPolicyDeactivatedDetails) throws -> JSON { + let output = [ + "policy_id": try Serialization._StringSerializer.serialize(value.policyId), + ] + return .dictionary(output) + } + public func deserialize(_ json: JSON) throws -> ProtectPolicyDeactivatedDetails { + switch json { + case .dictionary(let dict): + let policyId = try Serialization._StringSerializer.deserialize(dict["policy_id"] ?? .null) + return ProtectPolicyDeactivatedDetails(policyId: policyId) + default: + throw JSONSerializerError.deserializeError(type: ProtectPolicyDeactivatedDetails.self, json: json) + } + } + } + + /// The ProtectPolicyDeactivatedType struct + public class ProtectPolicyDeactivatedType: CustomStringConvertible, JSONRepresentable { + /// (no description) + public let description_: String + public init(description_: String) { + stringValidator()(description_) + self.description_ = description_ + } + + func json() throws -> JSON { + try ProtectPolicyDeactivatedTypeSerializer().serialize(self) + } + + public var description: String { + do { + return "\(SerializeUtil.prepareJSONForSerialization(try ProtectPolicyDeactivatedTypeSerializer().serialize(self)))" + } catch { + return "Failed to generate description for ProtectPolicyDeactivatedType: \(error)" + } + } + } + public class ProtectPolicyDeactivatedTypeSerializer: JSONSerializer { + public init() { } + public func serialize(_ value: ProtectPolicyDeactivatedType) throws -> JSON { + let output = [ + "description": try Serialization._StringSerializer.serialize(value.description_), + ] + return .dictionary(output) + } + public func deserialize(_ json: JSON) throws -> ProtectPolicyDeactivatedType { + switch json { + case .dictionary(let dict): + let description_ = try Serialization._StringSerializer.deserialize(dict["description"] ?? .null) + return ProtectPolicyDeactivatedType(description_: description_) + default: + throw JSONSerializerError.deserializeError(type: ProtectPolicyDeactivatedType.self, json: json) + } + } + } + + /// Updated a Dropbox Protect policy. + public class ProtectPolicyUpdatedDetails: CustomStringConvertible, JSONRepresentable { + /// Policy ID. + public let policyId: String + public init(policyId: String) { + stringValidator()(policyId) + self.policyId = policyId + } + + func json() throws -> JSON { + try ProtectPolicyUpdatedDetailsSerializer().serialize(self) + } + + public var description: String { + do { + return "\(SerializeUtil.prepareJSONForSerialization(try ProtectPolicyUpdatedDetailsSerializer().serialize(self)))" + } catch { + return "Failed to generate description for ProtectPolicyUpdatedDetails: \(error)" + } + } + } + public class ProtectPolicyUpdatedDetailsSerializer: JSONSerializer { + public init() { } + public func serialize(_ value: ProtectPolicyUpdatedDetails) throws -> JSON { + let output = [ + "policy_id": try Serialization._StringSerializer.serialize(value.policyId), + ] + return .dictionary(output) + } + public func deserialize(_ json: JSON) throws -> ProtectPolicyUpdatedDetails { + switch json { + case .dictionary(let dict): + let policyId = try Serialization._StringSerializer.deserialize(dict["policy_id"] ?? .null) + return ProtectPolicyUpdatedDetails(policyId: policyId) + default: + throw JSONSerializerError.deserializeError(type: ProtectPolicyUpdatedDetails.self, json: json) + } + } + } + + /// The ProtectPolicyUpdatedType struct + public class ProtectPolicyUpdatedType: CustomStringConvertible, JSONRepresentable { + /// (no description) + public let description_: String + public init(description_: String) { + stringValidator()(description_) + self.description_ = description_ + } + + func json() throws -> JSON { + try ProtectPolicyUpdatedTypeSerializer().serialize(self) + } + + public var description: String { + do { + return "\(SerializeUtil.prepareJSONForSerialization(try ProtectPolicyUpdatedTypeSerializer().serialize(self)))" + } catch { + return "Failed to generate description for ProtectPolicyUpdatedType: \(error)" + } + } + } + public class ProtectPolicyUpdatedTypeSerializer: JSONSerializer { + public init() { } + public func serialize(_ value: ProtectPolicyUpdatedType) throws -> JSON { + let output = [ + "description": try Serialization._StringSerializer.serialize(value.description_), + ] + return .dictionary(output) + } + public func deserialize(_ json: JSON) throws -> ProtectPolicyUpdatedType { + switch json { + case .dictionary(let dict): + let description_ = try Serialization._StringSerializer.deserialize(dict["description"] ?? .null) + return ProtectPolicyUpdatedType(description_: description_) + default: + throw JSONSerializerError.deserializeError(type: ProtectPolicyUpdatedType.self, json: json) + } + } + } + /// Quick action type. public enum QuickActionType: CustomStringConvertible, JSONRepresentable { /// An unspecified error. diff --git a/Source/SwiftyDropboxObjC/Shared/Generated/DBXTeamLog.swift b/Source/SwiftyDropboxObjC/Shared/Generated/DBXTeamLog.swift index ad1423c7..7aa30fae 100644 --- a/Source/SwiftyDropboxObjC/Shared/Generated/DBXTeamLog.swift +++ b/Source/SwiftyDropboxObjC/Shared/Generated/DBXTeamLog.swift @@ -12591,6 +12591,15 @@ public class DBXTeamLogEventDetails: NSObject { case .protectInternalDomainsChangedDetails(let swiftArg): let arg = DBXTeamLogProtectInternalDomainsChangedDetails(swift: swiftArg) return DBXTeamLogEventDetailsProtectInternalDomainsChangedDetails(arg) + case .protectPolicyActivatedDetails(let swiftArg): + let arg = DBXTeamLogProtectPolicyActivatedDetails(swift: swiftArg) + return DBXTeamLogEventDetailsProtectPolicyActivatedDetails(arg) + case .protectPolicyDeactivatedDetails(let swiftArg): + let arg = DBXTeamLogProtectPolicyDeactivatedDetails(swift: swiftArg) + return DBXTeamLogEventDetailsProtectPolicyDeactivatedDetails(arg) + case .protectPolicyUpdatedDetails(let swiftArg): + let arg = DBXTeamLogProtectPolicyUpdatedDetails(swift: swiftArg) + return DBXTeamLogEventDetailsProtectPolicyUpdatedDetails(arg) case .classificationCreateReportDetails(let swiftArg): let arg = DBXTeamLogClassificationCreateReportDetails(swift: swiftArg) return DBXTeamLogEventDetailsClassificationCreateReportDetails(arg) @@ -15050,6 +15059,21 @@ public class DBXTeamLogEventDetails: NSObject { return self as? DBXTeamLogEventDetailsProtectInternalDomainsChangedDetails } + @objc + public var asProtectPolicyActivatedDetails: DBXTeamLogEventDetailsProtectPolicyActivatedDetails? { + return self as? DBXTeamLogEventDetailsProtectPolicyActivatedDetails + } + + @objc + public var asProtectPolicyDeactivatedDetails: DBXTeamLogEventDetailsProtectPolicyDeactivatedDetails? { + return self as? DBXTeamLogEventDetailsProtectPolicyDeactivatedDetails + } + + @objc + public var asProtectPolicyUpdatedDetails: DBXTeamLogEventDetailsProtectPolicyUpdatedDetails? { + return self as? DBXTeamLogEventDetailsProtectPolicyUpdatedDetails + } + @objc public var asClassificationCreateReportDetails: DBXTeamLogEventDetailsClassificationCreateReportDetails? { return self as? DBXTeamLogEventDetailsClassificationCreateReportDetails @@ -20756,6 +20780,48 @@ public class DBXTeamLogEventDetailsProtectInternalDomainsChangedDetails: DBXTeam } } +/// An unspecified error. +@objc +public class DBXTeamLogEventDetailsProtectPolicyActivatedDetails: DBXTeamLogEventDetails { + @objc + public var protectPolicyActivatedDetails: DBXTeamLogProtectPolicyActivatedDetails + + @objc + public init(_ arg: DBXTeamLogProtectPolicyActivatedDetails) { + protectPolicyActivatedDetails = arg + let swift = TeamLog.EventDetails.protectPolicyActivatedDetails(arg.swift) + super.init(swift: swift) + } +} + +/// An unspecified error. +@objc +public class DBXTeamLogEventDetailsProtectPolicyDeactivatedDetails: DBXTeamLogEventDetails { + @objc + public var protectPolicyDeactivatedDetails: DBXTeamLogProtectPolicyDeactivatedDetails + + @objc + public init(_ arg: DBXTeamLogProtectPolicyDeactivatedDetails) { + protectPolicyDeactivatedDetails = arg + let swift = TeamLog.EventDetails.protectPolicyDeactivatedDetails(arg.swift) + super.init(swift: swift) + } +} + +/// An unspecified error. +@objc +public class DBXTeamLogEventDetailsProtectPolicyUpdatedDetails: DBXTeamLogEventDetails { + @objc + public var protectPolicyUpdatedDetails: DBXTeamLogProtectPolicyUpdatedDetails + + @objc + public init(_ arg: DBXTeamLogProtectPolicyUpdatedDetails) { + protectPolicyUpdatedDetails = arg + let swift = TeamLog.EventDetails.protectPolicyUpdatedDetails(arg.swift) + super.init(swift: swift) + } +} + /// An unspecified error. @objc public class DBXTeamLogEventDetailsClassificationCreateReportDetails: DBXTeamLogEventDetails { @@ -26420,6 +26486,15 @@ public class DBXTeamLogEventType: NSObject { case .protectInternalDomainsChanged(let swiftArg): let arg = DBXTeamLogProtectInternalDomainsChangedType(swift: swiftArg) return DBXTeamLogEventTypeProtectInternalDomainsChanged(arg) + case .protectPolicyActivated(let swiftArg): + let arg = DBXTeamLogProtectPolicyActivatedType(swift: swiftArg) + return DBXTeamLogEventTypeProtectPolicyActivated(arg) + case .protectPolicyDeactivated(let swiftArg): + let arg = DBXTeamLogProtectPolicyDeactivatedType(swift: swiftArg) + return DBXTeamLogEventTypeProtectPolicyDeactivated(arg) + case .protectPolicyUpdated(let swiftArg): + let arg = DBXTeamLogProtectPolicyUpdatedType(swift: swiftArg) + return DBXTeamLogEventTypeProtectPolicyUpdated(arg) case .classificationCreateReport(let swiftArg): let arg = DBXTeamLogClassificationCreateReportType(swift: swiftArg) return DBXTeamLogEventTypeClassificationCreateReport(arg) @@ -28876,6 +28951,21 @@ public class DBXTeamLogEventType: NSObject { return self as? DBXTeamLogEventTypeProtectInternalDomainsChanged } + @objc + public var asProtectPolicyActivated: DBXTeamLogEventTypeProtectPolicyActivated? { + return self as? DBXTeamLogEventTypeProtectPolicyActivated + } + + @objc + public var asProtectPolicyDeactivated: DBXTeamLogEventTypeProtectPolicyDeactivated? { + return self as? DBXTeamLogEventTypeProtectPolicyDeactivated + } + + @objc + public var asProtectPolicyUpdated: DBXTeamLogEventTypeProtectPolicyUpdated? { + return self as? DBXTeamLogEventTypeProtectPolicyUpdated + } + @objc public var asClassificationCreateReport: DBXTeamLogEventTypeClassificationCreateReport? { return self as? DBXTeamLogEventTypeClassificationCreateReport @@ -34577,6 +34667,48 @@ public class DBXTeamLogEventTypeProtectInternalDomainsChanged: DBXTeamLogEventTy } } +/// (protect) Activated a Dropbox Protect policy +@objc +public class DBXTeamLogEventTypeProtectPolicyActivated: DBXTeamLogEventType { + @objc + public var protectPolicyActivated: DBXTeamLogProtectPolicyActivatedType + + @objc + public init(_ arg: DBXTeamLogProtectPolicyActivatedType) { + protectPolicyActivated = arg + let swift = TeamLog.EventType.protectPolicyActivated(arg.swift) + super.init(swift: swift) + } +} + +/// (protect) Deactivated a Dropbox Protect policy +@objc +public class DBXTeamLogEventTypeProtectPolicyDeactivated: DBXTeamLogEventType { + @objc + public var protectPolicyDeactivated: DBXTeamLogProtectPolicyDeactivatedType + + @objc + public init(_ arg: DBXTeamLogProtectPolicyDeactivatedType) { + protectPolicyDeactivated = arg + let swift = TeamLog.EventType.protectPolicyDeactivated(arg.swift) + super.init(swift: swift) + } +} + +/// (protect) Updated a Dropbox Protect policy +@objc +public class DBXTeamLogEventTypeProtectPolicyUpdated: DBXTeamLogEventType { + @objc + public var protectPolicyUpdated: DBXTeamLogProtectPolicyUpdatedType + + @objc + public init(_ arg: DBXTeamLogProtectPolicyUpdatedType) { + protectPolicyUpdated = arg + let swift = TeamLog.EventType.protectPolicyUpdated(arg.swift) + super.init(swift: swift) + } +} + /// (reports) Created Classification report @objc public class DBXTeamLogEventTypeClassificationCreateReport: DBXTeamLogEventType { @@ -39951,6 +40083,12 @@ public class DBXTeamLogEventTypeArg: NSObject { return DBXTeamLogEventTypeArgProtectActionStopSharing() case .protectInternalDomainsChanged: return DBXTeamLogEventTypeArgProtectInternalDomainsChanged() + case .protectPolicyActivated: + return DBXTeamLogEventTypeArgProtectPolicyActivated() + case .protectPolicyDeactivated: + return DBXTeamLogEventTypeArgProtectPolicyDeactivated() + case .protectPolicyUpdated: + return DBXTeamLogEventTypeArgProtectPolicyUpdated() case .classificationCreateReport: return DBXTeamLogEventTypeArgClassificationCreateReport() case .classificationCreateReportFail: @@ -42066,6 +42204,21 @@ public class DBXTeamLogEventTypeArg: NSObject { return self as? DBXTeamLogEventTypeArgProtectInternalDomainsChanged } + @objc + public var asProtectPolicyActivated: DBXTeamLogEventTypeArgProtectPolicyActivated? { + return self as? DBXTeamLogEventTypeArgProtectPolicyActivated + } + + @objc + public var asProtectPolicyDeactivated: DBXTeamLogEventTypeArgProtectPolicyDeactivated? { + return self as? DBXTeamLogEventTypeArgProtectPolicyDeactivated + } + + @objc + public var asProtectPolicyUpdated: DBXTeamLogEventTypeArgProtectPolicyUpdated? { + return self as? DBXTeamLogEventTypeArgProtectPolicyUpdated + } + @objc public var asClassificationCreateReport: DBXTeamLogEventTypeArgClassificationCreateReport? { return self as? DBXTeamLogEventTypeArgClassificationCreateReport @@ -46627,6 +46780,36 @@ public class DBXTeamLogEventTypeArgProtectInternalDomainsChanged: DBXTeamLogEven } } +/// (protect) Activated a Dropbox Protect policy +@objc +public class DBXTeamLogEventTypeArgProtectPolicyActivated: DBXTeamLogEventTypeArg { + @objc + public init() { + let swift = TeamLog.EventTypeArg.protectPolicyActivated + super.init(swift: swift) + } +} + +/// (protect) Deactivated a Dropbox Protect policy +@objc +public class DBXTeamLogEventTypeArgProtectPolicyDeactivated: DBXTeamLogEventTypeArg { + @objc + public init() { + let swift = TeamLog.EventTypeArg.protectPolicyDeactivated + super.init(swift: swift) + } +} + +/// (protect) Updated a Dropbox Protect policy +@objc +public class DBXTeamLogEventTypeArgProtectPolicyUpdated: DBXTeamLogEventTypeArg { + @objc + public init() { + let swift = TeamLog.EventTypeArg.protectPolicyUpdated + super.init(swift: swift) + } +} + /// (reports) Created Classification report @objc public class DBXTeamLogEventTypeArgClassificationCreateReport: DBXTeamLogEventTypeArg { @@ -66984,6 +67167,144 @@ public class DBXTeamLogProtectInternalDomainsChangedType: NSObject { public override var description: String { swift.description } } +/// Activated a Dropbox Protect policy. +@objc +public class DBXTeamLogProtectPolicyActivatedDetails: NSObject { + /// Policy ID. + @objc + public var policyId: String { swift.policyId } + + @objc + public init(policyId: String) { + self.swift = TeamLog.ProtectPolicyActivatedDetails(policyId: policyId) + } + + let swift: TeamLog.ProtectPolicyActivatedDetails + + public init(swift: TeamLog.ProtectPolicyActivatedDetails) { + self.swift = swift + } + + + @objc + public override var description: String { swift.description } +} + +/// Objective-C compatible ProtectPolicyActivatedType struct +@objc +public class DBXTeamLogProtectPolicyActivatedType: NSObject { + /// (no description) + @objc + public var description_: String { swift.description_ } + + @objc + public init(description_: String) { + self.swift = TeamLog.ProtectPolicyActivatedType(description_: description_) + } + + let swift: TeamLog.ProtectPolicyActivatedType + + public init(swift: TeamLog.ProtectPolicyActivatedType) { + self.swift = swift + } + + + @objc + public override var description: String { swift.description } +} + +/// Deactivated a Dropbox Protect policy. +@objc +public class DBXTeamLogProtectPolicyDeactivatedDetails: NSObject { + /// Policy ID. + @objc + public var policyId: String { swift.policyId } + + @objc + public init(policyId: String) { + self.swift = TeamLog.ProtectPolicyDeactivatedDetails(policyId: policyId) + } + + let swift: TeamLog.ProtectPolicyDeactivatedDetails + + public init(swift: TeamLog.ProtectPolicyDeactivatedDetails) { + self.swift = swift + } + + + @objc + public override var description: String { swift.description } +} + +/// Objective-C compatible ProtectPolicyDeactivatedType struct +@objc +public class DBXTeamLogProtectPolicyDeactivatedType: NSObject { + /// (no description) + @objc + public var description_: String { swift.description_ } + + @objc + public init(description_: String) { + self.swift = TeamLog.ProtectPolicyDeactivatedType(description_: description_) + } + + let swift: TeamLog.ProtectPolicyDeactivatedType + + public init(swift: TeamLog.ProtectPolicyDeactivatedType) { + self.swift = swift + } + + + @objc + public override var description: String { swift.description } +} + +/// Updated a Dropbox Protect policy. +@objc +public class DBXTeamLogProtectPolicyUpdatedDetails: NSObject { + /// Policy ID. + @objc + public var policyId: String { swift.policyId } + + @objc + public init(policyId: String) { + self.swift = TeamLog.ProtectPolicyUpdatedDetails(policyId: policyId) + } + + let swift: TeamLog.ProtectPolicyUpdatedDetails + + public init(swift: TeamLog.ProtectPolicyUpdatedDetails) { + self.swift = swift + } + + + @objc + public override var description: String { swift.description } +} + +/// Objective-C compatible ProtectPolicyUpdatedType struct +@objc +public class DBXTeamLogProtectPolicyUpdatedType: NSObject { + /// (no description) + @objc + public var description_: String { swift.description_ } + + @objc + public init(description_: String) { + self.swift = TeamLog.ProtectPolicyUpdatedType(description_: description_) + } + + let swift: TeamLog.ProtectPolicyUpdatedType + + public init(swift: TeamLog.ProtectPolicyUpdatedType) { + self.swift = swift + } + + + @objc + public override var description: String { swift.description } +} + /// Quick action type. @objc public class DBXTeamLogQuickActionType: NSObject { diff --git a/spec b/spec index f1b5fa6f..b6bb8e88 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit f1b5fa6f96526401bfee0a90171bd5bd19678062 +Subproject commit b6bb8e88b6cc5898dcc8eff66324908203d95eb4