Skip to content

Commit

Permalink
Add is_collaboration_restricted_to_enterprise flag support for `Fol…
Browse files Browse the repository at this point in the history
…der` update (#732)
  • Loading branch information
Christian-Oleson authored Jun 16, 2021
1 parent 3b6915d commit 2027b7b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Box.V2.Test/BoxFoldersManagerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,8 @@ public async Task UpdateFolderInformation_ValidResponse_ValidFolder()
{
Id = "fakeId",
Name = "New Folder Name!",
FolderUploadEmail = new BoxEmailRequest() { Access = "open" }
FolderUploadEmail = new BoxEmailRequest() { Access = "open" },
CollaborationRestricted = true
};

BoxFolder f = await _foldersManager.UpdateInformationAsync(folderReq);
Expand Down
9 changes: 7 additions & 2 deletions Box.V2/Models/Request/BoxFolderRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class BoxFolderRequest : BoxItemRequest
public BoxEmailRequest FolderUploadEmail { get; set; }

/// <summary>
/// The user who owns the folder. Only used when moving a collaborated folder that you are not the owner of to a folder you are the owner of.
/// The user who owns the folder. Only used when moving a collaborated folder that you are not the owner of to a folder you are the owner of.
/// Not a substitute for changing folder owners, please reference collaborations <see cref="http://developers.box.com/docs/#collaborations"/>
/// to accomplish folder ownership changes.
/// </summary>
Expand All @@ -38,6 +38,11 @@ public class BoxFolderRequest : BoxItemRequest
/// </summary>
[JsonProperty(PropertyName = "can_non_owners_invite")]
public bool? CanNonOwnersInvite { get; set; }
}

/// <summary>
/// Setting to determine if collaboration on a folder is restricted to be within an enterprise only.
/// </summary>
[JsonProperty(PropertyName = "is_collaboration_restricted_to_enterprise")]
public bool? CollaborationRestricted { get; set; }
}
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Changelog

## Next release

**Breaking changes:**
- Extract interfaces for BoxClient and Managers to improve testability ([#603](https://github.com/box/box-windows-sdk-v2/pull/603))

**New Features and Enhancements:**
- Add ability to get files under retention for assignment and file versions under retention for assignment ([#734](https://github.com/box/box-windows-sdk-v2/pull/734))
- Add `is_collaboration_restricted_to_enterprise` flag support for `Folder` update ([#732](https://github.com/box/box-windows-sdk-v2/pull/732))

## 3.26.0 [2021-04-01]

Expand Down

0 comments on commit 2027b7b

Please sign in to comment.