"responses": {
"200": {
"description": "The request was successful; the request was well-formed and received properly.",
"schema": {
"$ref": "#/definitions/Workspace"
}
},
"201": {
"description": "The request was successful; the request was well-formed and received properly.",
"schema": {
"$ref": "#/definitions/Workspace"
}
},
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/MachineLearningServiceError"
}
}
}
},
But the call of rest api returns status code 202 as following:
This will be handled as failure in generated SDK since this status code is not among the expected ones. For instance, in go SDK:
machinelearningservices.WorkspacesClient#CreateOrUpdate: Failure responding to request: StatusCode=202 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
The
responds
now reads:But the call of rest api returns status code
202
as following: This will be handled as failure in generated SDK since this status code is not among the expected ones. For instance, in go SDK: