forked from TrueCloudLab/frostfs-api-go
[#110] object: Add getter and setter for PatchResponseBody
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
ca33fc4adb
commit
eba18f6e67
1 changed files with 12 additions and 0 deletions
|
@ -1615,6 +1615,18 @@ func (r *PatchResponse) SetBody(v *PatchResponseBody) {
|
|||
r.Body = v
|
||||
}
|
||||
|
||||
func (r *PatchResponseBody) GetObjectID() *refs.ObjectID {
|
||||
if r != nil {
|
||||
return r.ObjectID
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *PatchResponseBody) SetObjectID(objectID *refs.ObjectID) {
|
||||
r.ObjectID = objectID
|
||||
}
|
||||
|
||||
func (r *PatchRequestBodyPatch) GetChunk() []byte {
|
||||
if r != nil {
|
||||
return r.Chunk
|
||||
|
|
Loading…
Reference in a new issue