From 8315d80ba2d183779fac4fb10a6516b3fa2d5a3d Mon Sep 17 00:00:00 2001 From: "dropbox-sdk-updater[bot]" <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 06:03:21 +0000 Subject: [PATCH] Automated Spec Update 8857713f7d1aef703da1832520a6ec275ebff60c Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> --- .../ApiObjects/TeamLog/DBTeamLogObjects.m | 303 ++++++++++++++++++ .../TeamLog/Headers/DBTEAMLOGEventDetails.h | 33 ++ .../TeamLog/Headers/DBTEAMLOGEventType.h | 36 +++ .../TeamLog/Headers/DBTEAMLOGEventTypeArg.h | 22 ++ ...TEAMLOGProtectActionRemoveDomainsDetails.h | 79 +++++ .../DBTEAMLOGProtectActionRemoveDomainsType.h | 77 +++++ .../Shared/Generated/DBSDKImportsGenerated.h | 2 + spec | 2 +- 8 files changed, 553 insertions(+), 1 deletion(-) create mode 100644 Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGProtectActionRemoveDomainsDetails.h create mode 100644 Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGProtectActionRemoveDomainsType.h diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/DBTeamLogObjects.m b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/DBTeamLogObjects.m index 1e9ad15e0..540b50b7a 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/DBTeamLogObjects.m +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/DBTeamLogObjects.m @@ -41977,6 +41977,7 @@ + (DBTEAMLOGEventCategory *)deserialize:(NSDictionary *)valueDic #import "DBTEAMLOGProtectActionDeleteDetails.h" #import "DBTEAMLOGProtectActionExportDetails.h" #import "DBTEAMLOGProtectActionRemoveCollaboratorDetails.h" +#import "DBTEAMLOGProtectActionRemoveDomainsDetails.h" #import "DBTEAMLOGProtectActionRemoveLinkDetails.h" #import "DBTEAMLOGProtectActionStopSharingDetails.h" #import "DBTEAMLOGProtectInternalDomainsChangedDetails.h" @@ -42523,6 +42524,7 @@ @implementation DBTEAMLOGEventDetails @synthesize protectActionDeleteDetails = _protectActionDeleteDetails; @synthesize protectActionExportDetails = _protectActionExportDetails; @synthesize protectActionRemoveCollaboratorDetails = _protectActionRemoveCollaboratorDetails; +@synthesize protectActionRemoveDomainsDetails = _protectActionRemoveDomainsDetails; @synthesize protectActionRemoveLinkDetails = _protectActionRemoveLinkDetails; @synthesize protectActionStopSharingDetails = _protectActionStopSharingDetails; @synthesize protectInternalDomainsChangedDetails = _protectInternalDomainsChangedDetails; @@ -45604,6 +45606,16 @@ - (instancetype)initWithProtectActionRemoveCollaboratorDetails: return self; } +- (instancetype)initWithProtectActionRemoveDomainsDetails: + (DBTEAMLOGProtectActionRemoveDomainsDetails *)protectActionRemoveDomainsDetails { + self = [super init]; + if (self) { + _tag = DBTEAMLOGEventDetailsProtectActionRemoveDomainsDetails; + _protectActionRemoveDomainsDetails = protectActionRemoveDomainsDetails; + } + return self; +} + - (instancetype)initWithProtectActionRemoveLinkDetails: (DBTEAMLOGProtectActionRemoveLinkDetails *)protectActionRemoveLinkDetails { self = [super init]; @@ -51604,6 +51616,15 @@ - (DBTEAMLOGProtectActionRemoveCollaboratorDetails *)protectActionRemoveCollabor return _protectActionRemoveCollaboratorDetails; } +- (DBTEAMLOGProtectActionRemoveDomainsDetails *)protectActionRemoveDomainsDetails { + if (![self isProtectActionRemoveDomainsDetails]) { + [NSException raise:@"IllegalStateException" + format:@"Invalid tag: required DBTEAMLOGEventDetailsProtectActionRemoveDomainsDetails, but was %@.", + [self tagName]]; + } + return _protectActionRemoveDomainsDetails; +} + - (DBTEAMLOGProtectActionRemoveLinkDetails *)protectActionRemoveLinkDetails { if (![self isProtectActionRemoveLinkDetails]) { [NSException raise:@"IllegalStateException" @@ -55980,6 +56001,10 @@ - (BOOL)isProtectActionRemoveCollaboratorDetails { return _tag == DBTEAMLOGEventDetailsProtectActionRemoveCollaboratorDetails; } +- (BOOL)isProtectActionRemoveDomainsDetails { + return _tag == DBTEAMLOGEventDetailsProtectActionRemoveDomainsDetails; +} + - (BOOL)isProtectActionRemoveLinkDetails { return _tag == DBTEAMLOGEventDetailsProtectActionRemoveLinkDetails; } @@ -57958,6 +57983,8 @@ - (NSString *)tagName { return @"DBTEAMLOGEventDetailsProtectActionExportDetails"; case DBTEAMLOGEventDetailsProtectActionRemoveCollaboratorDetails: return @"DBTEAMLOGEventDetailsProtectActionRemoveCollaboratorDetails"; + case DBTEAMLOGEventDetailsProtectActionRemoveDomainsDetails: + return @"DBTEAMLOGEventDetailsProtectActionRemoveDomainsDetails"; case DBTEAMLOGEventDetailsProtectActionRemoveLinkDetails: return @"DBTEAMLOGEventDetailsProtectActionRemoveLinkDetails"; case DBTEAMLOGEventDetailsProtectActionStopSharingDetails: @@ -59546,6 +59573,9 @@ - (NSUInteger)hash { case DBTEAMLOGEventDetailsProtectActionRemoveCollaboratorDetails: result = prime * result + [self.protectActionRemoveCollaboratorDetails hash]; break; + case DBTEAMLOGEventDetailsProtectActionRemoveDomainsDetails: + result = prime * result + [self.protectActionRemoveDomainsDetails hash]; + break; case DBTEAMLOGEventDetailsProtectActionRemoveLinkDetails: result = prime * result + [self.protectActionRemoveLinkDetails hash]; break; @@ -61225,6 +61255,8 @@ - (BOOL)isEqualToEventDetails:(DBTEAMLOGEventDetails *)anEventDetails { return [self.protectActionExportDetails isEqual:anEventDetails.protectActionExportDetails]; case DBTEAMLOGEventDetailsProtectActionRemoveCollaboratorDetails: return [self.protectActionRemoveCollaboratorDetails isEqual:anEventDetails.protectActionRemoveCollaboratorDetails]; + case DBTEAMLOGEventDetailsProtectActionRemoveDomainsDetails: + return [self.protectActionRemoveDomainsDetails isEqual:anEventDetails.protectActionRemoveDomainsDetails]; case DBTEAMLOGEventDetailsProtectActionRemoveLinkDetails: return [self.protectActionRemoveLinkDetails isEqual:anEventDetails.protectActionRemoveLinkDetails]; case DBTEAMLOGEventDetailsProtectActionStopSharingDetails: @@ -63125,6 +63157,10 @@ @implementation DBTEAMLOGEventDetailsSerializer [jsonDict addEntriesFromDictionary:[DBTEAMLOGProtectActionRemoveCollaboratorDetailsSerializer serialize:valueObj.protectActionRemoveCollaboratorDetails]]; jsonDict[@".tag"] = @"protect_action_remove_collaborator_details"; + } else if ([valueObj isProtectActionRemoveDomainsDetails]) { + [jsonDict addEntriesFromDictionary:[DBTEAMLOGProtectActionRemoveDomainsDetailsSerializer + serialize:valueObj.protectActionRemoveDomainsDetails]]; + jsonDict[@".tag"] = @"protect_action_remove_domains_details"; } else if ([valueObj isProtectActionRemoveLinkDetails]) { [jsonDict addEntriesFromDictionary:[DBTEAMLOGProtectActionRemoveLinkDetailsSerializer serialize:valueObj.protectActionRemoveLinkDetails]]; @@ -65716,6 +65752,10 @@ + (DBTEAMLOGEventDetails *)deserialize:(NSDictionary *)valueDict [DBTEAMLOGProtectActionRemoveCollaboratorDetailsSerializer deserialize:valueDict]; return [[DBTEAMLOGEventDetails alloc] initWithProtectActionRemoveCollaboratorDetails:protectActionRemoveCollaboratorDetails]; + } else if ([tag isEqualToString:@"protect_action_remove_domains_details"]) { + DBTEAMLOGProtectActionRemoveDomainsDetails *protectActionRemoveDomainsDetails = + [DBTEAMLOGProtectActionRemoveDomainsDetailsSerializer deserialize:valueDict]; + return [[DBTEAMLOGEventDetails alloc] initWithProtectActionRemoveDomainsDetails:protectActionRemoveDomainsDetails]; } else if ([tag isEqualToString:@"protect_action_remove_link_details"]) { DBTEAMLOGProtectActionRemoveLinkDetails *protectActionRemoveLinkDetails = [DBTEAMLOGProtectActionRemoveLinkDetailsSerializer deserialize:valueDict]; @@ -67661,6 +67701,7 @@ + (DBTEAMLOGEventDetails *)deserialize:(NSDictionary *)valueDict #import "DBTEAMLOGProtectActionDeleteType.h" #import "DBTEAMLOGProtectActionExportType.h" #import "DBTEAMLOGProtectActionRemoveCollaboratorType.h" +#import "DBTEAMLOGProtectActionRemoveDomainsType.h" #import "DBTEAMLOGProtectActionRemoveLinkType.h" #import "DBTEAMLOGProtectActionStopSharingType.h" #import "DBTEAMLOGProtectInternalDomainsChangedType.h" @@ -68207,6 +68248,7 @@ @implementation DBTEAMLOGEventType @synthesize protectActionDelete = _protectActionDelete; @synthesize protectActionExport = _protectActionExport; @synthesize protectActionRemoveCollaborator = _protectActionRemoveCollaborator; +@synthesize protectActionRemoveDomains = _protectActionRemoveDomains; @synthesize protectActionRemoveLink = _protectActionRemoveLink; @synthesize protectActionStopSharing = _protectActionStopSharing; @synthesize protectInternalDomainsChanged = _protectInternalDomainsChanged; @@ -71196,6 +71238,16 @@ - (instancetype)initWithProtectActionRemoveCollaborator: return self; } +- (instancetype)initWithProtectActionRemoveDomains: + (DBTEAMLOGProtectActionRemoveDomainsType *)protectActionRemoveDomains { + self = [super init]; + if (self) { + _tag = DBTEAMLOGEventTypeProtectActionRemoveDomains; + _protectActionRemoveDomains = protectActionRemoveDomains; + } + return self; +} + - (instancetype)initWithProtectActionRemoveLink:(DBTEAMLOGProtectActionRemoveLinkType *)protectActionRemoveLink { self = [super init]; if (self) { @@ -76922,6 +76974,15 @@ - (DBTEAMLOGProtectActionRemoveCollaboratorType *)protectActionRemoveCollaborato return _protectActionRemoveCollaborator; } +- (DBTEAMLOGProtectActionRemoveDomainsType *)protectActionRemoveDomains { + if (![self isProtectActionRemoveDomains]) { + [NSException + raise:@"IllegalStateException" + format:@"Invalid tag: required DBTEAMLOGEventTypeProtectActionRemoveDomains, but was %@.", [self tagName]]; + } + return _protectActionRemoveDomains; +} + - (DBTEAMLOGProtectActionRemoveLinkType *)protectActionRemoveLink { if (![self isProtectActionRemoveLink]) { [NSException raise:@"IllegalStateException" @@ -81091,6 +81152,10 @@ - (BOOL)isProtectActionRemoveCollaborator { return _tag == DBTEAMLOGEventTypeProtectActionRemoveCollaborator; } +- (BOOL)isProtectActionRemoveDomains { + return _tag == DBTEAMLOGEventTypeProtectActionRemoveDomains; +} + - (BOOL)isProtectActionRemoveLink { return _tag == DBTEAMLOGEventTypeProtectActionRemoveLink; } @@ -83065,6 +83130,8 @@ - (NSString *)tagName { return @"DBTEAMLOGEventTypeProtectActionExport"; case DBTEAMLOGEventTypeProtectActionRemoveCollaborator: return @"DBTEAMLOGEventTypeProtectActionRemoveCollaborator"; + case DBTEAMLOGEventTypeProtectActionRemoveDomains: + return @"DBTEAMLOGEventTypeProtectActionRemoveDomains"; case DBTEAMLOGEventTypeProtectActionRemoveLink: return @"DBTEAMLOGEventTypeProtectActionRemoveLink"; case DBTEAMLOGEventTypeProtectActionStopSharing: @@ -84651,6 +84718,9 @@ - (NSUInteger)hash { case DBTEAMLOGEventTypeProtectActionRemoveCollaborator: result = prime * result + [self.protectActionRemoveCollaborator hash]; break; + case DBTEAMLOGEventTypeProtectActionRemoveDomains: + result = prime * result + [self.protectActionRemoveDomains hash]; + break; case DBTEAMLOGEventTypeProtectActionRemoveLink: result = prime * result + [self.protectActionRemoveLink hash]; break; @@ -86298,6 +86368,8 @@ - (BOOL)isEqualToEventType:(DBTEAMLOGEventType *)anEventType { return [self.protectActionExport isEqual:anEventType.protectActionExport]; case DBTEAMLOGEventTypeProtectActionRemoveCollaborator: return [self.protectActionRemoveCollaborator isEqual:anEventType.protectActionRemoveCollaborator]; + case DBTEAMLOGEventTypeProtectActionRemoveDomains: + return [self.protectActionRemoveDomains isEqual:anEventType.protectActionRemoveDomains]; case DBTEAMLOGEventTypeProtectActionRemoveLink: return [self.protectActionRemoveLink isEqual:anEventType.protectActionRemoveLink]; case DBTEAMLOGEventTypeProtectActionStopSharing: @@ -88090,6 +88162,10 @@ @implementation DBTEAMLOGEventTypeSerializer [jsonDict addEntriesFromDictionary:[DBTEAMLOGProtectActionRemoveCollaboratorTypeSerializer serialize:valueObj.protectActionRemoveCollaborator]]; jsonDict[@".tag"] = @"protect_action_remove_collaborator"; + } else if ([valueObj isProtectActionRemoveDomains]) { + [jsonDict addEntriesFromDictionary:[DBTEAMLOGProtectActionRemoveDomainsTypeSerializer + serialize:valueObj.protectActionRemoveDomains]]; + jsonDict[@".tag"] = @"protect_action_remove_domains"; } else if ([valueObj isProtectActionRemoveLink]) { [jsonDict addEntriesFromDictionary:[DBTEAMLOGProtectActionRemoveLinkTypeSerializer serialize:valueObj.protectActionRemoveLink]]; @@ -90522,6 +90598,10 @@ + (DBTEAMLOGEventType *)deserialize:(NSDictionary *)valueDict { DBTEAMLOGProtectActionRemoveCollaboratorType *protectActionRemoveCollaborator = [DBTEAMLOGProtectActionRemoveCollaboratorTypeSerializer deserialize:valueDict]; return [[DBTEAMLOGEventType alloc] initWithProtectActionRemoveCollaborator:protectActionRemoveCollaborator]; + } else if ([tag isEqualToString:@"protect_action_remove_domains"]) { + DBTEAMLOGProtectActionRemoveDomainsType *protectActionRemoveDomains = + [DBTEAMLOGProtectActionRemoveDomainsTypeSerializer deserialize:valueDict]; + return [[DBTEAMLOGEventType alloc] initWithProtectActionRemoveDomains:protectActionRemoveDomains]; } else if ([tag isEqualToString:@"protect_action_remove_link"]) { DBTEAMLOGProtectActionRemoveLinkType *protectActionRemoveLink = [DBTEAMLOGProtectActionRemoveLinkTypeSerializer deserialize:valueDict]; @@ -94194,6 +94274,14 @@ - (instancetype)initWithProtectActionRemoveCollaborator { return self; } +- (instancetype)initWithProtectActionRemoveDomains { + self = [super init]; + if (self) { + _tag = DBTEAMLOGEventTypeArgProtectActionRemoveDomains; + } + return self; +} + - (instancetype)initWithProtectActionRemoveLink { self = [super init]; if (self) { @@ -98142,6 +98230,10 @@ - (BOOL)isProtectActionRemoveCollaborator { return _tag == DBTEAMLOGEventTypeArgProtectActionRemoveCollaborator; } +- (BOOL)isProtectActionRemoveDomains { + return _tag == DBTEAMLOGEventTypeArgProtectActionRemoveDomains; +} + - (BOOL)isProtectActionRemoveLink { return _tag == DBTEAMLOGEventTypeArgProtectActionRemoveLink; } @@ -100116,6 +100208,8 @@ - (NSString *)tagName { return @"DBTEAMLOGEventTypeArgProtectActionExport"; case DBTEAMLOGEventTypeArgProtectActionRemoveCollaborator: return @"DBTEAMLOGEventTypeArgProtectActionRemoveCollaborator"; + case DBTEAMLOGEventTypeArgProtectActionRemoveDomains: + return @"DBTEAMLOGEventTypeArgProtectActionRemoveDomains"; case DBTEAMLOGEventTypeArgProtectActionRemoveLink: return @"DBTEAMLOGEventTypeArgProtectActionRemoveLink"; case DBTEAMLOGEventTypeArgProtectActionStopSharing: @@ -101702,6 +101796,9 @@ - (NSUInteger)hash { case DBTEAMLOGEventTypeArgProtectActionRemoveCollaborator: result = prime * result + [[self tagName] hash]; break; + case DBTEAMLOGEventTypeArgProtectActionRemoveDomains: + result = prime * result + [[self tagName] hash]; + break; case DBTEAMLOGEventTypeArgProtectActionRemoveLink: result = prime * result + [[self tagName] hash]; break; @@ -103347,6 +103444,8 @@ - (BOOL)isEqualToEventTypeArg:(DBTEAMLOGEventTypeArg *)anEventTypeArg { return [[self tagName] isEqual:[anEventTypeArg tagName]]; case DBTEAMLOGEventTypeArgProtectActionRemoveCollaborator: return [[self tagName] isEqual:[anEventTypeArg tagName]]; + case DBTEAMLOGEventTypeArgProtectActionRemoveDomains: + return [[self tagName] isEqual:[anEventTypeArg tagName]]; case DBTEAMLOGEventTypeArgProtectActionRemoveLink: return [[self tagName] isEqual:[anEventTypeArg tagName]]; case DBTEAMLOGEventTypeArgProtectActionStopSharing: @@ -104628,6 +104727,8 @@ @implementation DBTEAMLOGEventTypeArgSerializer jsonDict[@".tag"] = @"protect_action_export"; } else if ([valueObj isProtectActionRemoveCollaborator]) { jsonDict[@".tag"] = @"protect_action_remove_collaborator"; + } else if ([valueObj isProtectActionRemoveDomains]) { + jsonDict[@".tag"] = @"protect_action_remove_domains"; } else if ([valueObj isProtectActionRemoveLink]) { jsonDict[@".tag"] = @"protect_action_remove_link"; } else if ([valueObj isProtectActionStopSharing]) { @@ -105906,6 +106007,8 @@ + (DBTEAMLOGEventTypeArg *)deserialize:(NSDictionary *)valueDict return [[DBTEAMLOGEventTypeArg alloc] initWithProtectActionExport]; } else if ([tag isEqualToString:@"protect_action_remove_collaborator"]) { return [[DBTEAMLOGEventTypeArg alloc] initWithProtectActionRemoveCollaborator]; + } else if ([tag isEqualToString:@"protect_action_remove_domains"]) { + return [[DBTEAMLOGEventTypeArg alloc] initWithProtectActionRemoveDomains]; } else if ([tag isEqualToString:@"protect_action_remove_link"]) { return [[DBTEAMLOGEventTypeArg alloc] initWithProtectActionRemoveLink]; } else if ([tag isEqualToString:@"protect_action_stop_sharing"]) { @@ -172100,6 +172203,206 @@ + (DBTEAMLOGProtectActionRemoveCollaboratorType *)deserialize:(NSDictionary *)serialize:(id)instance { + return [DBTEAMLOGProtectActionRemoveDomainsDetailsSerializer serialize:instance]; +} + ++ (id)deserialize:(NSDictionary *)dict { + return [DBTEAMLOGProtectActionRemoveDomainsDetailsSerializer deserialize:dict]; +} + +#pragma mark - Debug Description method + +- (NSString *)debugDescription { + return [[DBTEAMLOGProtectActionRemoveDomainsDetailsSerializer serialize:self] description]; +} + +#pragma mark - Copyable method + +- (instancetype)copyWithZone:(NSZone *)zone { +#pragma unused(zone) + /// object is immutable + return self; +} + +#pragma mark - Hash method + +- (NSUInteger)hash { + NSUInteger prime = 31; + NSUInteger result = 1; + + result = prime * result + [self.actionId hash]; + + return prime * result; +} + +#pragma mark - Equality method + +- (BOOL)isEqual:(id)other { + if (other == self) { + return YES; + } + if (!other || ![other isKindOfClass:[self class]]) { + return NO; + } + return [self isEqualToProtectActionRemoveDomainsDetails:other]; +} + +- (BOOL)isEqualToProtectActionRemoveDomainsDetails: + (DBTEAMLOGProtectActionRemoveDomainsDetails *)aProtectActionRemoveDomainsDetails { + if (self == aProtectActionRemoveDomainsDetails) { + return YES; + } + if (![self.actionId isEqual:aProtectActionRemoveDomainsDetails.actionId]) { + return NO; + } + return YES; +} + +@end + +#pragma mark - Serializer Object + +@implementation DBTEAMLOGProtectActionRemoveDomainsDetailsSerializer + ++ (NSDictionary *)serialize:(DBTEAMLOGProtectActionRemoveDomainsDetails *)valueObj { + NSMutableDictionary *jsonDict = [[NSMutableDictionary alloc] init]; + + jsonDict[@"action_id"] = valueObj.actionId; + + return jsonDict; +} + ++ (DBTEAMLOGProtectActionRemoveDomainsDetails *)deserialize:(NSDictionary *)valueDict { + NSString *actionId = valueDict[@"action_id"]; + + return [[DBTEAMLOGProtectActionRemoveDomainsDetails alloc] initWithActionId:actionId]; +} + +@end + +#import "DBStoneSerializers.h" +#import "DBStoneValidators.h" +#import "DBTEAMLOGProtectActionRemoveDomainsType.h" + +#pragma mark - API Object + +@implementation DBTEAMLOGProtectActionRemoveDomainsType + +#pragma mark - Constructors + +- (instancetype)initWithDescription_:(NSString *)description_ { + [DBStoneValidators nonnullValidator:nil](description_); + + self = [super init]; + if (self) { + _description_ = description_; + } + return self; +} + +#pragma mark - Serialization methods + ++ (nullable NSDictionary *)serialize:(id)instance { + return [DBTEAMLOGProtectActionRemoveDomainsTypeSerializer serialize:instance]; +} + ++ (id)deserialize:(NSDictionary *)dict { + return [DBTEAMLOGProtectActionRemoveDomainsTypeSerializer deserialize:dict]; +} + +#pragma mark - Debug Description method + +- (NSString *)debugDescription { + return [[DBTEAMLOGProtectActionRemoveDomainsTypeSerializer serialize:self] description]; +} + +#pragma mark - Copyable method + +- (instancetype)copyWithZone:(NSZone *)zone { +#pragma unused(zone) + /// object is immutable + return self; +} + +#pragma mark - Hash method + +- (NSUInteger)hash { + NSUInteger prime = 31; + NSUInteger result = 1; + + result = prime * result + [self.description_ hash]; + + return prime * result; +} + +#pragma mark - Equality method + +- (BOOL)isEqual:(id)other { + if (other == self) { + return YES; + } + if (!other || ![other isKindOfClass:[self class]]) { + return NO; + } + return [self isEqualToProtectActionRemoveDomainsType:other]; +} + +- (BOOL)isEqualToProtectActionRemoveDomainsType: + (DBTEAMLOGProtectActionRemoveDomainsType *)aProtectActionRemoveDomainsType { + if (self == aProtectActionRemoveDomainsType) { + return YES; + } + if (![self.description_ isEqual:aProtectActionRemoveDomainsType.description_]) { + return NO; + } + return YES; +} + +@end + +#pragma mark - Serializer Object + +@implementation DBTEAMLOGProtectActionRemoveDomainsTypeSerializer + ++ (NSDictionary *)serialize:(DBTEAMLOGProtectActionRemoveDomainsType *)valueObj { + NSMutableDictionary *jsonDict = [[NSMutableDictionary alloc] init]; + + jsonDict[@"description"] = valueObj.description_; + + return jsonDict; +} + ++ (DBTEAMLOGProtectActionRemoveDomainsType *)deserialize:(NSDictionary *)valueDict { + NSString *description_ = valueDict[@"description"]; + + return [[DBTEAMLOGProtectActionRemoveDomainsType alloc] initWithDescription_:description_]; +} + +@end + #import "DBStoneSerializers.h" #import "DBStoneValidators.h" #import "DBTEAMLOGProtectActionRemoveLinkDetails.h" diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventDetails.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventDetails.h index 6ee915b38..059b55cff 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventDetails.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventDetails.h @@ -384,6 +384,7 @@ @class DBTEAMLOGProtectActionDeleteDetails; @class DBTEAMLOGProtectActionExportDetails; @class DBTEAMLOGProtectActionRemoveCollaboratorDetails; +@class DBTEAMLOGProtectActionRemoveDomainsDetails; @class DBTEAMLOGProtectActionRemoveLinkDetails; @class DBTEAMLOGProtectActionStopSharingDetails; @class DBTEAMLOGProtectInternalDomainsChangedDetails; @@ -1510,6 +1511,9 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventDetailsTag) { /// (no description). DBTEAMLOGEventDetailsProtectActionRemoveCollaboratorDetails, + /// (no description). + DBTEAMLOGEventDetailsProtectActionRemoveDomainsDetails, + /// (no description). DBTEAMLOGEventDetailsProtectActionRemoveLinkDetails, @@ -3854,6 +3858,11 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventDetailsTag) { /// accessing, otherwise a runtime exception will be raised. @property (nonatomic, readonly) DBTEAMLOGProtectActionRemoveCollaboratorDetails *protectActionRemoveCollaboratorDetails; +/// (no description). @note Ensure the `isProtectActionRemoveDomainsDetails` +/// method returns true before accessing, otherwise a runtime exception will be +/// raised. +@property (nonatomic, readonly) DBTEAMLOGProtectActionRemoveDomainsDetails *protectActionRemoveDomainsDetails; + /// (no description). @note Ensure the `isProtectActionRemoveLinkDetails` method /// returns true before accessing, otherwise a runtime exception will be raised. @property (nonatomic, readonly) DBTEAMLOGProtectActionRemoveLinkDetails *protectActionRemoveLinkDetails; @@ -8430,6 +8439,17 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventDetailsTag) { - (instancetype)initWithProtectActionRemoveCollaboratorDetails: (DBTEAMLOGProtectActionRemoveCollaboratorDetails *)protectActionRemoveCollaboratorDetails; +/// +/// Initializes union class with tag state of +/// "protect_action_remove_domains_details". +/// +/// @param protectActionRemoveDomainsDetails (no description). +/// +/// @return An initialized instance. +/// +- (instancetype)initWithProtectActionRemoveDomainsDetails: + (DBTEAMLOGProtectActionRemoveDomainsDetails *)protectActionRemoveDomainsDetails; + /// /// Initializes union class with tag state of /// "protect_action_remove_link_details". @@ -15767,6 +15787,19 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventDetailsTag) { /// - (BOOL)isProtectActionRemoveCollaboratorDetails; +/// +/// Retrieves whether the union's current tag state has value +/// "protect_action_remove_domains_details". +/// +/// @note Call this method and ensure it returns true before accessing the +/// `protectActionRemoveDomainsDetails` property, otherwise a runtime exception +/// will be thrown. +/// +/// @return Whether the union's current tag state has value +/// "protect_action_remove_domains_details". +/// +- (BOOL)isProtectActionRemoveDomainsDetails; + /// /// Retrieves whether the union's current tag state has value /// "protect_action_remove_link_details". diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventType.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventType.h index 168b0fe1d..ff878ddfe 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventType.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventType.h @@ -383,6 +383,7 @@ @class DBTEAMLOGProtectActionDeleteType; @class DBTEAMLOGProtectActionExportType; @class DBTEAMLOGProtectActionRemoveCollaboratorType; +@class DBTEAMLOGProtectActionRemoveDomainsType; @class DBTEAMLOGProtectActionRemoveLinkType; @class DBTEAMLOGProtectActionStopSharingType; @class DBTEAMLOGProtectInternalDomainsChangedType; @@ -1526,6 +1527,9 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventTypeTag) { /// (protect) Removed collaborators via Dropbox Protect DBTEAMLOGEventTypeProtectActionRemoveCollaborator, + /// (protect) Removed domains via Dropbox Protect + DBTEAMLOGEventTypeProtectActionRemoveDomains, + /// (protect) Removed a link via Dropbox Protect DBTEAMLOGEventTypeProtectActionRemoveLink, @@ -4039,6 +4043,11 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventTypeTag) { /// otherwise a runtime exception will be raised. @property (nonatomic, readonly) DBTEAMLOGProtectActionRemoveCollaboratorType *protectActionRemoveCollaborator; +/// (protect) Removed domains via Dropbox Protect @note Ensure the +/// `isProtectActionRemoveDomains` method returns true before accessing, +/// otherwise a runtime exception will be raised. +@property (nonatomic, readonly) DBTEAMLOGProtectActionRemoveDomainsType *protectActionRemoveDomains; + /// (protect) Removed a link via Dropbox Protect @note Ensure the /// `isProtectActionRemoveLink` method returns true before accessing, otherwise /// a runtime exception will be raised. @@ -9494,6 +9503,20 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventTypeTag) { - (instancetype)initWithProtectActionRemoveCollaborator: (DBTEAMLOGProtectActionRemoveCollaboratorType *)protectActionRemoveCollaborator; +/// +/// Initializes union class with tag state of "protect_action_remove_domains". +/// +/// Description of the "protect_action_remove_domains" tag state: (protect) +/// Removed domains via Dropbox Protect +/// +/// @param protectActionRemoveDomains (protect) Removed domains via Dropbox +/// Protect +/// +/// @return An initialized instance. +/// +- (instancetype)initWithProtectActionRemoveDomains: + (DBTEAMLOGProtectActionRemoveDomainsType *)protectActionRemoveDomains; + /// /// Initializes union class with tag state of "protect_action_remove_link". /// @@ -17824,6 +17847,19 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventTypeTag) { /// - (BOOL)isProtectActionRemoveCollaborator; +/// +/// Retrieves whether the union's current tag state has value +/// "protect_action_remove_domains". +/// +/// @note Call this method and ensure it returns true before accessing the +/// `protectActionRemoveDomains` property, otherwise a runtime exception will be +/// thrown. +/// +/// @return Whether the union's current tag state has value +/// "protect_action_remove_domains". +/// +- (BOOL)isProtectActionRemoveDomains; + /// /// Retrieves whether the union's current tag state has value /// "protect_action_remove_link". diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventTypeArg.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventTypeArg.h index 5ef758a29..e51e4c559 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventTypeArg.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGEventTypeArg.h @@ -893,6 +893,9 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventTypeArgTag) { /// (protect) Removed collaborators via Dropbox Protect DBTEAMLOGEventTypeArgProtectActionRemoveCollaborator, + /// (protect) Removed domains via Dropbox Protect + DBTEAMLOGEventTypeArgProtectActionRemoveDomains, + /// (protect) Removed a link via Dropbox Protect DBTEAMLOGEventTypeArgProtectActionRemoveLink, @@ -4893,6 +4896,16 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventTypeArgTag) { /// - (instancetype)initWithProtectActionRemoveCollaborator; +/// +/// Initializes union class with tag state of "protect_action_remove_domains". +/// +/// Description of the "protect_action_remove_domains" tag state: (protect) +/// Removed domains via Dropbox Protect +/// +/// @return An initialized instance. +/// +- (instancetype)initWithProtectActionRemoveDomains; + /// /// Initializes union class with tag state of "protect_action_remove_link". /// @@ -11048,6 +11061,15 @@ typedef NS_CLOSED_ENUM(NSInteger, DBTEAMLOGEventTypeArgTag) { /// - (BOOL)isProtectActionRemoveCollaborator; +/// +/// Retrieves whether the union's current tag state has value +/// "protect_action_remove_domains". +/// +/// @return Whether the union's current tag state has value +/// "protect_action_remove_domains". +/// +- (BOOL)isProtectActionRemoveDomains; + /// /// Retrieves whether the union's current tag state has value /// "protect_action_remove_link". diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGProtectActionRemoveDomainsDetails.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGProtectActionRemoveDomainsDetails.h new file mode 100644 index 000000000..e56bcecc2 --- /dev/null +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGProtectActionRemoveDomainsDetails.h @@ -0,0 +1,79 @@ +/// +/// Copyright (c) 2016 Dropbox, Inc. All rights reserved. +/// +/// Auto-generated by Stone, do not modify. +/// + +#import + +#import "DBSerializableProtocol.h" + +@class DBTEAMLOGProtectActionRemoveDomainsDetails; + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - API Object + +/// +/// The `ProtectActionRemoveDomainsDetails` struct. +/// +/// Removed domains via Dropbox Protect. +/// +/// This class implements the `DBSerializable` protocol (serialize and +/// deserialize instance methods), which is required for all Obj-C SDK API route +/// objects. +/// +@interface DBTEAMLOGProtectActionRemoveDomainsDetails : NSObject + +#pragma mark - Instance fields + +/// Action ID. +@property (nonatomic, readonly, copy) NSString *actionId; + +#pragma mark - Constructors + +/// +/// Full constructor for the struct (exposes all instance variables). +/// +/// @param actionId Action ID. +/// +/// @return An initialized instance. +/// +- (instancetype)initWithActionId:(NSString *)actionId; + +- (instancetype)init NS_UNAVAILABLE; + +@end + +#pragma mark - Serializer Object + +/// +/// The serialization class for the `ProtectActionRemoveDomainsDetails` struct. +/// +@interface DBTEAMLOGProtectActionRemoveDomainsDetailsSerializer : NSObject + +/// +/// Serializes `DBTEAMLOGProtectActionRemoveDomainsDetails` instances. +/// +/// @param instance An instance of the +/// `DBTEAMLOGProtectActionRemoveDomainsDetails` API object. +/// +/// @return A json-compatible dictionary representation of the +/// `DBTEAMLOGProtectActionRemoveDomainsDetails` API object. +/// ++ (nullable NSDictionary *)serialize:(DBTEAMLOGProtectActionRemoveDomainsDetails *)instance; + +/// +/// Deserializes `DBTEAMLOGProtectActionRemoveDomainsDetails` instances. +/// +/// @param dict A json-compatible dictionary representation of the +/// `DBTEAMLOGProtectActionRemoveDomainsDetails` API object. +/// +/// @return An instantiation of the `DBTEAMLOGProtectActionRemoveDomainsDetails` +/// object. +/// ++ (DBTEAMLOGProtectActionRemoveDomainsDetails *)deserialize:(NSDictionary *)dict; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGProtectActionRemoveDomainsType.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGProtectActionRemoveDomainsType.h new file mode 100644 index 000000000..a65c0517a --- /dev/null +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/ApiObjects/TeamLog/Headers/DBTEAMLOGProtectActionRemoveDomainsType.h @@ -0,0 +1,77 @@ +/// +/// Copyright (c) 2016 Dropbox, Inc. All rights reserved. +/// +/// Auto-generated by Stone, do not modify. +/// + +#import + +#import "DBSerializableProtocol.h" + +@class DBTEAMLOGProtectActionRemoveDomainsType; + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - API Object + +/// +/// The `ProtectActionRemoveDomainsType` struct. +/// +/// This class implements the `DBSerializable` protocol (serialize and +/// deserialize instance methods), which is required for all Obj-C SDK API route +/// objects. +/// +@interface DBTEAMLOGProtectActionRemoveDomainsType : NSObject + +#pragma mark - Instance fields + +/// (no description). +@property (nonatomic, readonly, copy) NSString *description_; + +#pragma mark - Constructors + +/// +/// Full constructor for the struct (exposes all instance variables). +/// +/// @param description_ (no description). +/// +/// @return An initialized instance. +/// +- (instancetype)initWithDescription_:(NSString *)description_; + +- (instancetype)init NS_UNAVAILABLE; + +@end + +#pragma mark - Serializer Object + +/// +/// The serialization class for the `ProtectActionRemoveDomainsType` struct. +/// +@interface DBTEAMLOGProtectActionRemoveDomainsTypeSerializer : NSObject + +/// +/// Serializes `DBTEAMLOGProtectActionRemoveDomainsType` instances. +/// +/// @param instance An instance of the `DBTEAMLOGProtectActionRemoveDomainsType` +/// API object. +/// +/// @return A json-compatible dictionary representation of the +/// `DBTEAMLOGProtectActionRemoveDomainsType` API object. +/// ++ (nullable NSDictionary *)serialize:(DBTEAMLOGProtectActionRemoveDomainsType *)instance; + +/// +/// Deserializes `DBTEAMLOGProtectActionRemoveDomainsType` instances. +/// +/// @param dict A json-compatible dictionary representation of the +/// `DBTEAMLOGProtectActionRemoveDomainsType` API object. +/// +/// @return An instantiation of the `DBTEAMLOGProtectActionRemoveDomainsType` +/// object. +/// ++ (DBTEAMLOGProtectActionRemoveDomainsType *)deserialize:(NSDictionary *)dict; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/DBSDKImportsGenerated.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/DBSDKImportsGenerated.h index d70e7fcca..e4d53c0ab 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/DBSDKImportsGenerated.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/DBSDKImportsGenerated.h @@ -1871,6 +1871,8 @@ #import "DBTEAMLOGProtectActionExportType.h" #import "DBTEAMLOGProtectActionRemoveCollaboratorDetails.h" #import "DBTEAMLOGProtectActionRemoveCollaboratorType.h" +#import "DBTEAMLOGProtectActionRemoveDomainsDetails.h" +#import "DBTEAMLOGProtectActionRemoveDomainsType.h" #import "DBTEAMLOGProtectActionRemoveLinkDetails.h" #import "DBTEAMLOGProtectActionRemoveLinkType.h" #import "DBTEAMLOGProtectActionStopSharingDetails.h" diff --git a/spec b/spec index 21aa90997..8857713f7 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 21aa90997f23ef47910b2555c0d2dadf2ec93863 +Subproject commit 8857713f7d1aef703da1832520a6ec275ebff60c