C# Class Box.V2.Managers.BoxLegalHoldPoliciesManager

Allow create, update, get, delete legal hold and legal hold assignment.
Inheritance: BoxResourceManager
Afficher le fichier Open project: box/box-windows-sdk-v2 Class Usage Examples

Méthodes publiques

Méthode Description
BoxLegalHoldPoliciesManager ( IBoxConfig config, IBoxService service, IBoxConverter converter, IAuthRepository auth, string asUser = null, bool suppressNotifications = null ) : Box.V2.Auth

Create a new BoxLegalHoldPoliciesManager object.

CreateAssignmentAsync ( BoxLegalHoldPolicyAssignmentRequest createRequest ) : Task

Create a new Assignment, which will apply the Legal Hold Policy to the target of the Assignment.

CreateLegalHoldPolicyAsync ( BoxLegalHoldPolicyRequest createRequest ) : Task

Create a new Legal Hold Policy. Optional date filter may be passed. If Policy has a date filter, any Custodian assignments will apply only to file versions created or uploaded inside of the date range. (Other assignment types, such as folders and files, will ignore the date filter).

DeleteAssignmentAsync ( string assignmentId ) : Task

Sends request to delete an existing Assignment. Note that this is an asynchronous process - the Assignment will not be fully deleted yet when the response comes back.

DeleteLegalHoldPolicyAsync ( string legalHoldPolicyId ) : Task

Sends request to delete an existing Legal Hold Policy. Note that this is an asynchronous process - the Policy will not be fully deleted yet when the response comes back.

GetAssignmentAsync ( string assignmentId ) : Task

Get details of a single assignment.

GetAssignmentsAsync ( string legalHoldPolicyId, string fields = null, string assignToType = null, string assignToId = null, int limit = 100, string marker = null, bool autoPaginate = false ) : Task>

Get assignments for a single policy.

GetFileVersionLegalHoldAsync ( string fileVersionLegalHoldId ) : Task

Get details of a single File Version Legal Hold.

GetFileVersionLegalHoldsAsync ( string policyId, List fields = null, int limit = 100, string marker = null, bool autoPaginate = false ) : Task>

Get list of non-deleted Holds for a single Policy.

GetLegalHoldPolicyAsync ( string legalHoldId ) : Task

Get details of a single Legal Hold Policy.

GetListLegalHoldPoliciesAsync ( string policyName = null, string fields = null, int limit = 100, string marker = null, bool autoPaginate = false ) : Task>

Get a list of Legal Hold Policies that belong to your Enterprise.

UpdateLegalHoldPolicyAsync ( string legalHoldPolicyId, BoxLegalHoldPolicyRequest updateRequest ) : Task

Update existing Legal Hold Policy. Only name and description can be modified.

Method Details

BoxLegalHoldPoliciesManager() public méthode

Create a new BoxLegalHoldPoliciesManager object.
public BoxLegalHoldPoliciesManager ( IBoxConfig config, IBoxService service, IBoxConverter converter, IAuthRepository auth, string asUser = null, bool suppressNotifications = null ) : Box.V2.Auth
config IBoxConfig
service IBoxService
converter IBoxConverter
auth IAuthRepository
asUser string
suppressNotifications bool
Résultat Box.V2.Auth

CreateAssignmentAsync() public méthode

Create a new Assignment, which will apply the Legal Hold Policy to the target of the Assignment.
public CreateAssignmentAsync ( BoxLegalHoldPolicyAssignmentRequest createRequest ) : Task
createRequest Box.V2.Models.BoxLegalHoldPolicyAssignmentRequest BoxLegalHoldPolicyAssignmentRequest object.
Résultat Task

CreateLegalHoldPolicyAsync() public méthode

Create a new Legal Hold Policy. Optional date filter may be passed. If Policy has a date filter, any Custodian assignments will apply only to file versions created or uploaded inside of the date range. (Other assignment types, such as folders and files, will ignore the date filter).
public CreateLegalHoldPolicyAsync ( BoxLegalHoldPolicyRequest createRequest ) : Task
createRequest Box.V2.Models.BoxLegalHoldPolicyRequest BoxLegalHoldPolicyRequest object.
Résultat Task

DeleteAssignmentAsync() public méthode

Sends request to delete an existing Assignment. Note that this is an asynchronous process - the Assignment will not be fully deleted yet when the response comes back.
public DeleteAssignmentAsync ( string assignmentId ) : Task
assignmentId string ID of the legal holds assignment.
Résultat Task

DeleteLegalHoldPolicyAsync() public méthode

Sends request to delete an existing Legal Hold Policy. Note that this is an asynchronous process - the Policy will not be fully deleted yet when the response comes back.
public DeleteLegalHoldPolicyAsync ( string legalHoldPolicyId ) : Task
legalHoldPolicyId string Id of the legal hold policy.
Résultat Task

GetAssignmentAsync() public méthode

Get details of a single assignment.
public GetAssignmentAsync ( string assignmentId ) : Task
assignmentId string Id of the assignment.
Résultat Task

GetAssignmentsAsync() public méthode

Get assignments for a single policy.
public GetAssignmentsAsync ( string legalHoldPolicyId, string fields = null, string assignToType = null, string assignToId = null, int limit = 100, string marker = null, bool autoPaginate = false ) : Task>
legalHoldPolicyId string ID of Policy to get Assignments for.
fields string Attribute(s) to include in the response.
assignToType string Filter assignments of this type only. Can be file_version, file, folder, or user.
assignToId string Filter assignments to this ID only. Note that this will only show assignments applied directly to this entity.
limit int Limit result size to this number. Defaults to 100, maximum is 1,000.
marker string Take from "next_marker" column of a prior call to get the next page.
autoPaginate bool Whether or not to auto-paginate to fetch all items; defaults to false.
Résultat Task>

GetFileVersionLegalHoldAsync() public méthode

Get details of a single File Version Legal Hold.
public GetFileVersionLegalHoldAsync ( string fileVersionLegalHoldId ) : Task
fileVersionLegalHoldId string ID of the file version legal hold.
Résultat Task

GetFileVersionLegalHoldsAsync() public méthode

Get list of non-deleted Holds for a single Policy.
public GetFileVersionLegalHoldsAsync ( string policyId, List fields = null, int limit = 100, string marker = null, bool autoPaginate = false ) : Task>
policyId string ID of Legal Hold Policy to get File Version Legal Holds for.
fields List Attribute(s) to include in the response.
limit int Limit result size to this number. Defaults to 100, maximum is 1,000.
marker string Take from "next_marker" column of a prior call to get the next page.
autoPaginate bool Whether or not to auto-paginate to fetch all items; defaults to false.
Résultat Task>

GetLegalHoldPolicyAsync() public méthode

Get details of a single Legal Hold Policy.
public GetLegalHoldPolicyAsync ( string legalHoldId ) : Task
legalHoldId string Id of the legal hold policy.
Résultat Task

GetListLegalHoldPoliciesAsync() public méthode

Get a list of Legal Hold Policies that belong to your Enterprise.
public GetListLegalHoldPoliciesAsync ( string policyName = null, string fields = null, int limit = 100, string marker = null, bool autoPaginate = false ) : Task>
policyName string Case insensitive prefix-match filter on Policy name.
fields string Attribute(s) to include in the response.
limit int Limit result size to this number. Defaults to 100, maximum is 1,000.
marker string Take from "next_marker" column of a prior call to get the next page.
autoPaginate bool Whether or not to auto-paginate to fetch all items; defaults to false.
Résultat Task>

UpdateLegalHoldPolicyAsync() public méthode

Update existing Legal Hold Policy. Only name and description can be modified.
public UpdateLegalHoldPolicyAsync ( string legalHoldPolicyId, BoxLegalHoldPolicyRequest updateRequest ) : Task
legalHoldPolicyId string Id of the legal hold policy.
updateRequest Box.V2.Models.BoxLegalHoldPolicyRequest BoxLegalHoldPolicyRequest object.
Résultat Task