2024-04-24 13:00:37 +00:00
|
|
|
package apemanager
|
|
|
|
|
|
|
|
import (
|
2024-05-28 08:04:07 +00:00
|
|
|
ape "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/ape/grpc"
|
|
|
|
session "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session/grpc"
|
2024-04-24 13:00:37 +00:00
|
|
|
)
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *AddChainRequest_Body) SetTarget(t *ape.ChainTarget) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.Target = t
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *AddChainRequest_Body) SetChain(chain *ape.Chain) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.Chain = chain
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AddChainRequest) SetBody(rb *AddChainRequest_Body) {
|
|
|
|
r.Body = rb
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *AddChainRequest) SetMetaHeader(mh *session.RequestMetaHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.MetaHeader = mh
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *AddChainRequest) SetVerifyHeader(vh *session.RequestVerificationHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.VerifyHeader = vh
|
|
|
|
}
|
|
|
|
|
2024-04-26 08:54:35 +00:00
|
|
|
func (rb *AddChainResponse_Body) SetChainId(chainID []byte) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.ChainId = chainID
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AddChainResponse) SetBody(rb *AddChainResponse_Body) {
|
|
|
|
r.Body = rb
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *AddChainResponse) SetMetaHeader(mh *session.ResponseMetaHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.MetaHeader = mh
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *AddChainResponse) SetVerifyHeader(vh *session.ResponseVerificationHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.VerifyHeader = vh
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *RemoveChainRequest_Body) SetTarget(t *ape.ChainTarget) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.Target = t
|
|
|
|
}
|
|
|
|
|
2024-04-26 08:54:35 +00:00
|
|
|
func (rb *RemoveChainRequest_Body) SetChainId(chainID []byte) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.ChainId = chainID
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *RemoveChainRequest) SetBody(rb *RemoveChainRequest_Body) {
|
|
|
|
r.Body = rb
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *RemoveChainRequest) SetMetaHeader(mh *session.RequestMetaHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.MetaHeader = mh
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *RemoveChainRequest) SetVerifyHeader(vh *session.RequestVerificationHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.VerifyHeader = vh
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *RemoveChainResponse) SetBody(rb *RemoveChainResponse_Body) {
|
|
|
|
r.Body = rb
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *RemoveChainResponse) SetMetaHeader(mh *session.ResponseMetaHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.MetaHeader = mh
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *RemoveChainResponse) SetVerifyHeader(vh *session.ResponseVerificationHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.VerifyHeader = vh
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *ListChainsRequest_Body) SetTarget(t *ape.ChainTarget) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.Target = t
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListChainsRequest) SetBody(rb *ListChainsRequest_Body) {
|
|
|
|
r.Body = rb
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *ListChainsRequest) SetMetaHeader(mh *session.RequestMetaHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.MetaHeader = mh
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *ListChainsRequest) SetVerifyHeader(vh *session.RequestVerificationHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.VerifyHeader = vh
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *ListChainsResponse_Body) SetChains(chains []*ape.Chain) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.Chains = chains
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListChainsResponse) SetBody(rb *ListChainsResponse_Body) {
|
|
|
|
r.Body = rb
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *ListChainsResponse) SetMetaHeader(mh *session.ResponseMetaHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.MetaHeader = mh
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *ListChainsResponse) SetVerifyHeader(vh *session.ResponseVerificationHeader) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.VerifyHeader = vh
|
|
|
|
}
|