Skip to content

Commit 7b1f263

Browse files
committed
Updating ClearSuspectBlobDs3Targets to accept request payload
1 parent 8cc367f commit 7b1f263

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ds3/ds3Deletes.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ func (client *Client) ClearSuspectBlobDs3TargetsSpectraS3(request *models.ClearS
305305
WithHttpVerb(HTTP_VERB_DELETE).
306306
WithPath("/_rest_/suspect_blob_ds3_target").
307307
WithOptionalVoidQueryParam("force", request.Force).
308+
WithReadCloser(buildIdListPayload(request.Ids)).
308309
Build(client.connectionInfo)
309310

310311
if err != nil {

ds3/models/clearSuspectBlobDs3TargetsSpectraS3Request.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ package models
1515

1616
type ClearSuspectBlobDs3TargetsSpectraS3Request struct {
1717
Force bool
18+
Ids []string
1819
}
1920

20-
func NewClearSuspectBlobDs3TargetsSpectraS3Request() *ClearSuspectBlobDs3TargetsSpectraS3Request {
21+
func NewClearSuspectBlobDs3TargetsSpectraS3Request(ids []string) *ClearSuspectBlobDs3TargetsSpectraS3Request {
2122
return &ClearSuspectBlobDs3TargetsSpectraS3Request{
23+
Ids: ids,
2224
}
2325
}
2426

0 commit comments

Comments
 (0)