[#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
|
@ -52,7 +52,7 @@ internal sealed class ObjectServiceProvider(ObjectService.ObjectServiceClient cl
|
|||
{
|
||||
Address = new Address
|
||||
{
|
||||
ContainerId = args.ContainerId.ContainerID,
|
||||
ContainerId = args.ContainerId.GetContainerID(),
|
||||
ObjectId = args.ObjectId.ToMessage()
|
||||
},
|
||||
Raw = args.Raw
|
||||
|
@ -435,7 +435,10 @@ internal sealed class ObjectServiceProvider(ObjectService.ObjectServiceClient cl
|
|||
// send the last part and create linkObject
|
||||
if (sentObjectIds.Count > 0)
|
||||
{
|
||||
var largeObjectHeader = new FrostFsObjectHeader(header.ContainerId, FrostFsObjectType.Regular, [.. attributes])
|
||||
var largeObjectHeader = new FrostFsObjectHeader(
|
||||
header.ContainerId,
|
||||
FrostFsObjectType.Regular,
|
||||
attributes != null ? [.. attributes] : [])
|
||||
{
|
||||
PayloadLength = args.PutObjectContext.FullLength,
|
||||
};
|
||||
|
@ -581,7 +584,7 @@ internal sealed class ObjectServiceProvider(ObjectService.ObjectServiceClient cl
|
|||
}
|
||||
};
|
||||
|
||||
var sessionToken = (args.SessionToken ?? await GetDefaultSession(args, ctx).ConfigureAwait(false));
|
||||
var sessionToken = args.SessionToken ?? await GetDefaultSession(args, ctx).ConfigureAwait(false);
|
||||
|
||||
var protoToken = sessionToken.CreateObjectTokenContext(
|
||||
new Address { ContainerId = grpcHeader.ContainerId, ObjectId = oid },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue