CollaborationWhitelistModule
public class CollaborationWhitelistModule
Provides Collaborations management.
-
Initializer
Declaration
Swift
public init(boxClient: BoxClient)Parameters
boxClientRequired for communicating with Box APIs.
-
Get Collaboration Whitelist Entry by ID.
Declaration
Swift
public func get( id: String, fields: [String]? = nil, completion: @escaping Callback<CollaborationWhitelistEntry> )Parameters
idThe ID of the collaboration whitelist entry to get details
fieldsComma-separated list of fields to include in the response.
completionThe collaboration whitelist entry object is returned or an error
-
Create Collaboration Whitelist Entry.
Declaration
Swift
public func create( domain: String, direction: CollaborationDirection, fields: [String]? = nil, completion: @escaping Callback<CollaborationWhitelistEntry> )Parameters
domainDomain to add to whitelist (e.g. box.com).
directioninbound, outbound, or both.
fieldsComma-separated list of fields to include in the response.
completionThe collaboration whitelist entry object is returned or an error
-
Remove a single item from the Enterprise’s Collaboration Whitelist by id. If there are no longer any entries in the whitelist table, the Collaboration Whitelist feature will be turned off.
Declaration
Swift
public func delete( id: String, completion: @escaping Callback<Void> )Parameters
idThe ID of the collaboration whitelist entry to remove.
completionAn empty response will be returned upon successful deletion. An error is thrown if the collaboration whitelist cannot be deleted.
-
Returns a specific exempt target for the passed in ID.
Declaration
Swift
public func getExemptTarget( id: String, fields: [String]? = nil, completion: @escaping Callback<CollaborationWhitelistExemptTarget> )Parameters
idThe ID of the collaboration whitelist entry to get details
fieldsComma-separated list of fields to include in the response.
completionThe exempt target entry, object is returned or an error
-
Creates the Exempt Target entry.
Declaration
Swift
public func exemptUser( userId: String, fields: [String]? = nil, completion: @escaping Callback<CollaborationWhitelistExemptTarget> )Parameters
userIdThe ID of user to add to exempt target list.
fieldsComma-separated list of fields to include in the response.
completionThe collaboration whitelist entry object is returned or an error
-
Remove a single user from the exempt target list.
Declaration
Swift
public func deleteExemptTarget( id: String, completion: @escaping Callback<Void> )Parameters
idThe ID of the collaboration whitelist exempt target to remove.
completionAn empty response will be returned upon successful deletion. An error is thrown if the exempt target cannot be deleted.
CollaborationWhitelistModule Class Reference