You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfalse, request, fmt.Errorf("request failed for request with id %s, the response is not valid: the id, the request action or the status are missing", requestId)
195
+
}
196
+
197
+
if*request.RequestId!=requestId {
198
+
returnfalse, request, fmt.Errorf("request failed for request with id %s: the response id doesn't match the request id", requestId)
199
+
}
200
+
201
+
switch*request.RequestAction {
202
+
caseRequestCreateAction:
203
+
if*request.Status==RequestCreatedStatus {
204
+
returntrue, request, nil
205
+
}
206
+
caseRequestUpdateAction:
207
+
if*request.Status==RequestUpdatedStatus {
208
+
returntrue, request, nil
209
+
}
210
+
caseRequestDeleteAction:
211
+
if*request.Status==RequestDeletedStatus {
212
+
returntrue, request, nil
213
+
}
214
+
default:
215
+
returnfalse, request, fmt.Errorf("request failed for request with id %s, the request action %s is not supported", requestId, *request.RequestAction)
216
+
}
217
+
218
+
if*request.Status==RequestFailedStatus {
219
+
returntrue, request, fmt.Errorf("request failed for request with id %s", requestId)
0 commit comments