DBSHARINGFolderPolicy
Objective-C
@interface DBSHARINGFolderPolicy : NSObject <DBSerializable, NSCopying>
                Swift
class DBSHARINGFolderPolicy : NSObject, DBSerializable, NSCopying
                The FolderPolicy struct.
A set of policies governing membership and privileges for a shared folder.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
- 
                  
                  
Who can be a member of this shared folder, as set on the folder itself. The effective policy may differ from this value if the team-wide policy is more restrictive. Present only if the folder is owned by a team.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGMemberPolicy *memberPolicy;Swift
var memberPolicy: DBSHARINGMemberPolicy? { get } - 
                  
                  
Who can be a member of this shared folder, taking into account both the folder and the team-wide policy. This value may differ from that of member_policy if the team-wide policy is more restrictive than the folder policy. Present only if the folder is owned by a team.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGMemberPolicy *resolvedMemberPolicy;Swift
var resolvedMemberPolicy: DBSHARINGMemberPolicy? { get } - 
                  
                  
Who can add and remove members from this shared folder.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGAclUpdatePolicy *_Nonnull aclUpdatePolicy;Swift
var aclUpdatePolicy: DBSHARINGAclUpdatePolicy { get } - 
                  
                  
Who links can be shared with.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGSharedLinkPolicy *_Nonnull sharedLinkPolicy;Swift
var sharedLinkPolicy: DBSHARINGSharedLinkPolicy { get } - 
                  
                  
Who can enable/disable viewer info for this shared folder.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGViewerInfoPolicy *viewerInfoPolicy;Swift
var viewerInfoPolicy: DBSHARINGViewerInfoPolicy? { get } 
- 
                  
                  
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithAclUpdatePolicy:(nonnull DBSHARINGAclUpdatePolicy *)aclUpdatePolicy sharedLinkPolicy: (nonnull DBSHARINGSharedLinkPolicy *)sharedLinkPolicy memberPolicy:(nullable DBSHARINGMemberPolicy *)memberPolicy resolvedMemberPolicy: (nullable DBSHARINGMemberPolicy *)resolvedMemberPolicy viewerInfoPolicy: (nullable DBSHARINGViewerInfoPolicy *)viewerInfoPolicy;Swift
init(aclUpdatePolicy: DBSHARINGAclUpdatePolicy, sharedLinkPolicy: DBSHARINGSharedLinkPolicy, memberPolicy: DBSHARINGMemberPolicy?, resolvedMemberPolicy: DBSHARINGMemberPolicy?, viewerInfoPolicy: DBSHARINGViewerInfoPolicy?)Parameters
aclUpdatePolicyWho can add and remove members from this shared folder.
sharedLinkPolicyWho links can be shared with.
memberPolicyWho can be a member of this shared folder, as set on the folder itself. The effective policy may differ from this value if the team-wide policy is more restrictive. Present only if the folder is owned by a team.
resolvedMemberPolicyWho can be a member of this shared folder, taking into account both the folder and the team-wide policy. This value may differ from that of member_policy if the team-wide policy is more restrictive than the folder policy. Present only if the folder is owned by a team.
viewerInfoPolicyWho can enable/disable viewer info for this shared folder.
Return Value
An initialized instance.
 - 
                  
                  
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype) initWithAclUpdatePolicy:(nonnull DBSHARINGAclUpdatePolicy *)aclUpdatePolicy sharedLinkPolicy: (nonnull DBSHARINGSharedLinkPolicy *)sharedLinkPolicy;Swift
init(aclUpdatePolicy: DBSHARINGAclUpdatePolicy, sharedLinkPolicy: DBSHARINGSharedLinkPolicy)Parameters
aclUpdatePolicyWho can add and remove members from this shared folder.
sharedLinkPolicyWho links can be shared with.
Return Value
An initialized instance.
 
View on GitHub
        DBSHARINGFolderPolicy Class Reference