diff --git a/v2/container/grpc/types.go b/v2/container/grpc/types.go index 3678b561..5e51e3c7 100644 --- a/v2/container/grpc/types.go +++ b/v2/container/grpc/types.go @@ -3,6 +3,7 @@ package container import ( netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap/grpc" refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc" + service "github.com/nspcc-dev/neofs-api-go/v2/service/grpc" ) // SetKey sets key to the container attribute. @@ -47,9 +48,16 @@ func (m *Container) SetAttributes(v []*Container_Attribute) { } } -// SetRules sets placement rules of the container. -func (m *Container) SetRules(v *netmap.PlacementPolicy) { +// SetPlacementPolicy sets placement policy of the container. +func (m *Container) SetPlacementPolicy(v *netmap.PlacementPolicy) { if m != nil { m.PlacementPolicy = v } } + +// SetVersion sets version of the container. +func (m *Container) SetVersion(v *service.Version) { + if m != nil { + m.Version = v + } +}