mirror of
https://github.com/bitwarden/server
synced 2026-01-08 19:43:34 +00:00
21 lines
832 B
C#
21 lines
832 B
C#
// FIXME: Update this file to be null safe and then delete the line below
|
|
#nullable disable
|
|
|
|
using Bit.Core.Entities;
|
|
using Bit.Core.Models.Data;
|
|
|
|
namespace Bit.Core.OrganizationFeatures.OrganizationCollections.Interfaces;
|
|
|
|
public interface ICreateCollectionCommand
|
|
{
|
|
/// <summary>
|
|
/// Creates a new collection.
|
|
/// </summary>
|
|
/// <param name="collection">The collection to create.</param>
|
|
/// <param name="groups">(Optional) The groups that will have access to the collection.</param>
|
|
/// <param name="users">(Optional) The users that will have access to the collection.</param>
|
|
/// <returns>The created collection.</returns>
|
|
Task<Collection> CreateAsync(Collection collection, IEnumerable<CollectionAccessSelection> groups = null,
|
|
IEnumerable<CollectionAccessSelection> users = null);
|
|
}
|