fix: JSON protocol for Batch ops + CMV test (61/61 PASS)
- SendMessageBatch/DeleteMessageBatch: JSON tags Successful/Failed for AWS CLI v2 - Fix CMV test: capture receipt handle from same receive that checks visibility
This commit is contained in:
@@ -255,8 +255,8 @@ type SendMessageBatchResponse struct {
|
||||
}
|
||||
|
||||
type SendMessageBatchResult struct {
|
||||
Entry []SendMessageBatchResultEntry `json:"SendMessageBatchResultEntry" xml:"SendMessageBatchResultEntry"`
|
||||
Error []BatchResultErrorEntry `json:"BatchResultErrorEntry,omitempty" xml:"BatchResultErrorEntry,omitempty"`
|
||||
Entry []SendMessageBatchResultEntry `json:"Successful" xml:"SendMessageBatchResultEntry"`
|
||||
Error []BatchResultErrorEntry `json:"Failed,omitempty" xml:"BatchResultErrorEntry,omitempty"`
|
||||
}
|
||||
|
||||
func (r SendMessageBatchResponse) GetResult() interface{} {
|
||||
@@ -317,24 +317,24 @@ func (r DeleteQueueResponse) GetRequestId() string {
|
||||
|
||||
/*** Delete Message Batch Response ***/
|
||||
type DeleteMessageBatchResultEntry struct {
|
||||
Id string `json:"Id" xml:"Id"`
|
||||
Id string `json:"Id" xml:"Id"`
|
||||
}
|
||||
|
||||
type DeleteMessageBatchResult struct {
|
||||
Successful []DeleteMessageBatchResultEntry `json:"DeleteMessageBatchResultEntry" xml:"DeleteMessageBatchResultEntry"`
|
||||
Failed []BatchResultErrorEntry `json:"BatchResultErrorEntry,omitempty" xml:"BatchResultErrorEntry,omitempty"`
|
||||
Successful []DeleteMessageBatchResultEntry `json:"Successful" xml:"DeleteMessageBatchResultEntry"`
|
||||
Failed []BatchResultErrorEntry `json:"Failed,omitempty" xml:"BatchResultErrorEntry,omitempty"`
|
||||
}
|
||||
|
||||
type DeleteMessageBatchResponse struct {
|
||||
Xmlns string `json:"Xmlns" xml:"xmlns,attr"`
|
||||
Result DeleteMessageBatchResult `json:"DeleteMessageBatchResult" xml:"DeleteMessageBatchResult"`
|
||||
Metadata ResponseMetadata `json:"ResponseMetadata" xml:"ResponseMetadata"`
|
||||
Xmlns string `json:"Xmlns" xml:"xmlns,attr"`
|
||||
Result DeleteMessageBatchResult `json:"DeleteMessageBatchResult" xml:"DeleteMessageBatchResult"`
|
||||
Metadata ResponseMetadata `json:"ResponseMetadata" xml:"ResponseMetadata"`
|
||||
}
|
||||
|
||||
func (r DeleteMessageBatchResponse) GetResult() interface{} {
|
||||
return r.Result
|
||||
return r.Result
|
||||
}
|
||||
|
||||
func (r DeleteMessageBatchResponse) GetRequestId() string {
|
||||
return r.Metadata.RequestId
|
||||
return r.Metadata.RequestId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user