using System.ComponentModel.DataAnnotations;
namespace Bit.Api.AdminConsole.Public.Models;
public abstract class AssociationWithPermissionsBaseModel
{
///
/// The associated object's unique identifier.
///
/// bfbc8338-e329-4dc0-b0c9-317c2ebf1a09
[Required]
public Guid? Id { get; set; }
///
/// When true, the read only permission will not allow the user or group to make changes to items.
///
[Required]
public bool? ReadOnly { get; set; }
///
/// When true, the hide passwords permission will not allow the user or group to view passwords.
/// This prevents easy copy-and-paste of hidden items, however it may not completely prevent user access.
///
public bool? HidePasswords { get; set; }
///
/// When true, the manage permission allows a user to both edit the ciphers within a collection and edit the users/groups that are assigned to the collection.
/// This field will not affect behavior until your organization is using the latest collection enhancements (Releasing Q1, 2024)
///
public bool? Manage { get; set; }
}