/// <summary> /// Create trust group update model /// </summary> /// <param name="model"></param> public TrustGroupUpdateRequestApiModel(TrustGroupRegistrationUpdateModel model) { Name = model.Name; IssuedKeySize = model.IssuedKeySize; IssuedLifetime = model.IssuedLifetime; IssuedSignatureAlgorithm = model.IssuedSignatureAlgorithm; }
/// <inheritdoc/> public async Task UpdateGroupAsync(string groupId, TrustGroupRegistrationUpdateModel request, CancellationToken ct) { if (request == null) { throw new ArgumentNullException(nameof(request)); } if (string.IsNullOrEmpty(groupId)) { throw new ArgumentNullException(nameof(groupId)); } await _groups.UpdateAsync(groupId, group => { group.Group.Patch(request); return(true); }, ct); _logger.Information("Group {groupId} updated.", groupId); }