DBSHARINGUpdateFolderPolicyError

Objective-C

@interface DBSHARINGUpdateFolderPolicyError
    : NSObject <DBSerializable, NSCopying>

Swift

class DBSHARINGUpdateFolderPolicyError : NSObject, DBSerializable, NSCopying

The UpdateFolderPolicyError union.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Initializes union class with tag state of “access_error”.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAccessError:
        (nonnull DBSHARINGSharedFolderAccessError *)accessError;

    Swift

    init(accessError: DBSHARINGSharedFolderAccessError)

    Parameters

    accessError

    (no description).

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “not_on_team”.

    Description of the “not_on_team” tag state: memberPolicy in DBSHARINGUpdateFolderPolicyArg was set even though user is not on a team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNotOnTeam;

    Swift

    init(notOnTeam: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “team_policy_disallows_member_policy”.

    Description of the “team_policy_disallows_member_policy” tag state: Team policy is more restrictive than memberPolicy in DBSHARINGShareFolderArg.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTeamPolicyDisallowsMemberPolicy;

    Swift

    init(teamPolicyDisallowsMemberPolicy: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “disallowed_shared_link_policy”.

    Description of the “disallowed_shared_link_policy” tag state: The current account is not allowed to select the specified sharedLinkPolicy in DBSHARINGShareFolderArg.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDisallowedSharedLinkPolicy;

    Swift

    init(disallowedSharedLinkPolicy: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “no_permission”.

    Description of the “no_permission” tag state: The current user does not have permission to perform this action.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNoPermission;

    Swift

    init(noPermission: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “team_folder”.

    Description of the “team_folder” tag state: This action cannot be performed on a team shared folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTeamFolder;

    Swift

    init(teamFolder: ())

    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.

Tag state methods

  • Retrieves whether the union’s current tag state has value “access_error”.

    Note

    Call this method and ensure it returns true before accessing the accessError property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isAccessError;

    Swift

    func isAccessError() -> Bool

    Return Value

    Whether the union’s current tag state has value “access_error”.

  • Retrieves whether the union’s current tag state has value “not_on_team”.

    Declaration

    Objective-C

    - (BOOL)isNotOnTeam;

    Swift

    func isNotOnTeam() -> Bool

    Return Value

    Whether the union’s current tag state has value “not_on_team”.

  • Retrieves whether the union’s current tag state has value “team_policy_disallows_member_policy”.

    Declaration

    Objective-C

    - (BOOL)isTeamPolicyDisallowsMemberPolicy;

    Swift

    func isTeamPolicyDisallowsMemberPolicy() -> Bool

    Return Value

    Whether the union’s current tag state has value “team_policy_disallows_member_policy”.

  • Retrieves whether the union’s current tag state has value “disallowed_shared_link_policy”.

    Declaration

    Objective-C

    - (BOOL)isDisallowedSharedLinkPolicy;

    Swift

    func isDisallowedSharedLinkPolicy() -> Bool

    Return Value

    Whether the union’s current tag state has value “disallowed_shared_link_policy”.

  • Retrieves whether the union’s current tag state has value “no_permission”.

    Declaration

    Objective-C

    - (BOOL)isNoPermission;

    Swift

    func isNoPermission() -> Bool

    Return Value

    Whether the union’s current tag state has value “no_permission”.

  • Retrieves whether the union’s current tag state has value “team_folder”.

    Declaration

    Objective-C

    - (BOOL)isTeamFolder;

    Swift

    func isTeamFolder() -> Bool

    Return Value

    Whether the union’s current tag state has value “team_folder”.

  • Retrieves whether the union’s current tag state has value “other”.

    Declaration

    Objective-C

    - (BOOL)isOther;

    Swift

    func isOther() -> Bool

    Return Value

    Whether the union’s current tag state has value “other”.

  • Retrieves string value of union’s current tag state.

    Declaration

    Objective-C

    - (nonnull NSString *)tagName;

    Swift

    func tagName() -> String

    Return Value

    A human-readable string representing the union’s current tag state.