2020-08-13 12:43:47 +00:00
|
|
|
package container
|
2020-08-12 19:06:10 +00:00
|
|
|
|
|
|
|
import (
|
2022-12-09 11:16:24 +00:00
|
|
|
acl "github.com/TrueCloudLab/frostfs-api-go/v2/acl/grpc"
|
|
|
|
refs "github.com/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
|
|
|
|
session "github.com/TrueCloudLab/frostfs-api-go/v2/session/grpc"
|
2020-08-12 19:06:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SetContainer sets container of the request.
|
|
|
|
func (m *PutRequest_Body) SetContainer(v *Container) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Container = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetSignature sets signature of the container structure.
|
2022-03-02 10:15:36 +00:00
|
|
|
func (m *PutRequest_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Signature = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *PutRequest) SetBody(v *PutRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *PutResponse_Body) SetContainerId(v *refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ContainerId = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *PutResponse) SetBody(v *PutResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *DeleteRequest_Body) SetContainerId(v *refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ContainerId = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetSignature sets signature of the container identifier.
|
2022-03-02 10:15:36 +00:00
|
|
|
func (m *DeleteRequest_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Signature = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *DeleteRequest) SetBody(v *DeleteRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *DeleteResponse) SetBody(v *DeleteResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *GetRequest_Body) SetContainerId(v *refs.ContainerID) {
|
|
|
|
m.ContainerId = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *GetRequest) SetBody(v *GetRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainer sets the container structure.
|
|
|
|
func (m *GetResponse_Body) SetContainer(v *Container) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Container = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2021-05-24 18:14:35 +00:00
|
|
|
// SetSessionToken sets token of the session within which requested
|
|
|
|
// container was created.
|
|
|
|
func (m *GetResponse_Body) SetSessionToken(v *session.SessionToken) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.SessionToken = v
|
2021-05-24 18:14:35 +00:00
|
|
|
}
|
|
|
|
|
2022-03-02 10:15:36 +00:00
|
|
|
// SetSignature sets signature of the container structure.
|
|
|
|
func (m *GetResponse_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Signature = v
|
2021-05-24 18:14:35 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *GetResponse) SetBody(v *GetResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetOwnerId sets identifier of the container owner.
|
|
|
|
func (m *ListRequest_Body) SetOwnerId(v *refs.OwnerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.OwnerId = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *ListRequest) SetBody(v *ListRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *ListRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *ListRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerIds sets list of the container identifiers.
|
|
|
|
func (m *ListResponse_Body) SetContainerIds(v []*refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ContainerIds = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *ListResponse) SetBody(v *ListResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *ListResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *ListResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetEacl sets eACL table structure.
|
|
|
|
func (m *SetExtendedACLRequest_Body) SetEacl(v *acl.EACLTable) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Eacl = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2022-03-02 10:15:36 +00:00
|
|
|
// SetSignature sets signature of the eACL table structure.
|
|
|
|
func (m *SetExtendedACLRequest_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Signature = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *SetExtendedACLRequest) SetBody(v *SetExtendedACLRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SetExtendedACLRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SetExtendedACLRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *SetExtendedACLResponse) SetBody(v *SetExtendedACLResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SetExtendedACLResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SetExtendedACLResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *GetExtendedACLRequest_Body) SetContainerId(v *refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ContainerId = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *GetExtendedACLRequest) SetBody(v *GetExtendedACLRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetExtendedACLRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetExtendedACLRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetEacl sets eACL table structure.
|
|
|
|
func (m *GetExtendedACLResponse_Body) SetEacl(v *acl.EACLTable) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Eacl = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2022-03-02 10:15:36 +00:00
|
|
|
// SetSignature sets signature of the eACL table structure.
|
|
|
|
func (m *GetExtendedACLResponse_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Signature = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2021-05-24 18:14:35 +00:00
|
|
|
// SetSessionToken sets token of the session within which requested
|
|
|
|
// eACl table was set.
|
|
|
|
func (m *GetExtendedACLResponse_Body) SetSessionToken(v *session.SessionToken) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.SessionToken = v
|
2021-05-24 18:14:35 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *GetExtendedACLResponse) SetBody(v *GetExtendedACLResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetExtendedACLResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetExtendedACLResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
2021-01-21 14:57:04 +00:00
|
|
|
|
2021-01-26 18:32:33 +00:00
|
|
|
// SetEpoch sets epoch of the size estimation.
|
|
|
|
func (m *AnnounceUsedSpaceRequest_Body_Announcement) SetEpoch(v uint64) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Epoch = v
|
2021-01-26 18:32:33 +00:00
|
|
|
}
|
|
|
|
|
2021-01-21 14:57:04 +00:00
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *AnnounceUsedSpaceRequest_Body_Announcement) SetContainerId(v *refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ContainerId = v
|
2021-01-21 14:57:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetUsedSpace sets used space value of the container.
|
|
|
|
func (m *AnnounceUsedSpaceRequest_Body_Announcement) SetUsedSpace(v uint64) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.UsedSpace = v
|
2021-01-21 14:57:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetAnnouncements sets list of announcement for shared containers between nodes.
|
|
|
|
func (m *AnnounceUsedSpaceRequest_Body) SetAnnouncements(v []*AnnounceUsedSpaceRequest_Body_Announcement) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Announcements = v
|
2021-01-21 14:57:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *AnnounceUsedSpaceRequest) SetBody(v *AnnounceUsedSpaceRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2021-01-21 14:57:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
|
|
|
func (m *AnnounceUsedSpaceRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2021-01-21 14:57:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
|
|
|
func (m *AnnounceUsedSpaceRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2021-01-21 14:57:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *AnnounceUsedSpaceResponse) SetBody(v *AnnounceUsedSpaceResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2021-01-21 14:57:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
|
|
|
func (m *AnnounceUsedSpaceResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2021-01-21 14:57:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
|
|
|
func (m *AnnounceUsedSpaceResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2021-01-21 14:57:04 +00:00
|
|
|
}
|