DBFILEPROPERTIESRemovePropertiesError
Objective-C
@interface DBFILEPROPERTIESRemovePropertiesError
: NSObject <DBSerializable, NSCopying>
Swift
class DBFILEPROPERTIESRemovePropertiesError : NSObject, DBSerializable, NSCopying
The RemovePropertiesError union.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBFILEPROPERTIESRemovePropertiesErrorTag tag;Swift
var tag: DBFILEPROPERTIESRemovePropertiesErrorTag { get } -
Template does not exist for the given identifier. - note: Ensure the
isTemplateNotFoundmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull templateNotFound;Swift
var templateNotFound: String { get } -
(no description). - note: Ensure the
isPathmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBFILEPROPERTIESLookupError *_Nonnull path;Swift
var path: DBFILEPROPERTIESLookupError { get } -
(no description). - note: Ensure the
isPropertyGroupLookupmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBFILEPROPERTIESLookUpPropertiesError *_Nonnull propertyGroupLookup;Swift
var propertyGroupLookup: DBFILEPROPERTIESLookUpPropertiesError { get }
-
Initializes union class with tag state of “template_not_found”.
Description of the “template_not_found” tag state: Template does not exist for the given identifier.
Declaration
Objective-C
- (nonnull instancetype)initWithTemplateNotFound: (nonnull NSString *)templateNotFound;Swift
init(templateNotFound: String)Parameters
templateNotFoundTemplate does not exist for the given identifier.
Return Value
An initialized instance.
-
Initializes union class with tag state of “restricted_content”.
Description of the “restricted_content” tag state: You do not have permission to modify this template.
Declaration
Objective-C
- (nonnull instancetype)initWithRestrictedContent;Swift
init(restrictedContent: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;Swift
init(other: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “path”.
Declaration
Objective-C
- (nonnull instancetype)initWithPath: (nonnull DBFILEPROPERTIESLookupError *)path;Swift
init(path: DBFILEPROPERTIESLookupError)Parameters
path(no description).
Return Value
An initialized instance.
-
Initializes union class with tag state of “unsupported_folder”.
Description of the “unsupported_folder” tag state: This folder cannot be tagged. Tagging folders is not supported for team-owned templates.
Declaration
Objective-C
- (nonnull instancetype)initWithUnsupportedFolder;Swift
init(unsupportedFolder: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “property_group_lookup”.
Declaration
Objective-C
- (nonnull instancetype)initWithPropertyGroupLookup: (nonnull DBFILEPROPERTIESLookUpPropertiesError *)propertyGroupLookup;Swift
init(propertyGroupLookup: DBFILEPROPERTIESLookUpPropertiesError)Parameters
propertyGroupLookup(no description).
Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “template_not_found”.
Note
Call this method and ensure it returns true before accessing the
templateNotFoundproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isTemplateNotFound;Swift
func isTemplateNotFound() -> BoolReturn Value
Whether the union’s current tag state has value “template_not_found”.
-
Retrieves whether the union’s current tag state has value “restricted_content”.
Declaration
Objective-C
- (BOOL)isRestrictedContent;Swift
func isRestrictedContent() -> BoolReturn Value
Whether the union’s current tag state has value “restricted_content”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn Value
Whether the union’s current tag state has value “other”.
-
Retrieves whether the union’s current tag state has value “path”.
Note
Call this method and ensure it returns true before accessing the
pathproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isPath;Swift
func isPath() -> BoolReturn Value
Whether the union’s current tag state has value “path”.
-
Retrieves whether the union’s current tag state has value “unsupported_folder”.
Declaration
Objective-C
- (BOOL)isUnsupportedFolder;Swift
func isUnsupportedFolder() -> BoolReturn Value
Whether the union’s current tag state has value “unsupported_folder”.
-
Retrieves whether the union’s current tag state has value “property_group_lookup”.
Note
Call this method and ensure it returns true before accessing the
propertyGroupLookupproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isPropertyGroupLookup;Swift
func isPropertyGroupLookup() -> BoolReturn Value
Whether the union’s current tag state has value “property_group_lookup”.
-
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;Swift
func tagName() -> StringReturn Value
A human-readable string representing the union’s current tag state.
View on GitHub
DBFILEPROPERTIESRemovePropertiesError Class Reference