mirror of
https://github.com/bitwarden/server
synced 2025-12-25 04:33:26 +00:00
23 lines
491 B
C#
23 lines
491 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.SecretsManager.Entities;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Api.SecretsManager.Models.Request;
|
|
|
|
public class ServiceAccountUpdateRequestModel
|
|
{
|
|
[Required]
|
|
[EncryptedString]
|
|
[EncryptedStringLength(1000)]
|
|
public string Name { get; set; }
|
|
|
|
public ServiceAccount ToServiceAccount(Guid id)
|
|
{
|
|
return new ServiceAccount()
|
|
{
|
|
Id = id,
|
|
Name = Name,
|
|
};
|
|
}
|
|
}
|