[#30] Client: Add object model for Rules
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
43e300c773
commit
195854a45b
27 changed files with 677 additions and 155 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace FrostFS.SDK.Client.Mappers.GRPC;
|
||||
|
||||
|
@ -13,6 +14,9 @@ public static class StatusMapper
|
|||
|
||||
return codeName is null
|
||||
? throw new ArgumentException($"Unknown StatusCode. Value: '{status.Code}'.")
|
||||
: new FrostFsResponseStatus((FrostFsStatusCode)status.Code, status.Message);
|
||||
: new FrostFsResponseStatus(
|
||||
(FrostFsStatusCode)status.Code,
|
||||
status.Message,
|
||||
string.Join(", ", status.Details.Select(d => System.Text.Encoding.UTF8.GetString([.. d.Value]))));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue