-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
Autorest
[v2] Backport "Add operation-location to final-state-via options" (#4404) (Azure/autorest#4927)
Error
ERROR: Schema violation: No enum match for: operation-location
- specification/cognitiveservices/data-plane/Speech/TextToSpeech/preview/
2023-12-01-preview/texttospeech.json:479:10 ($.paths["/consents/{id}"]
.post["x-ms-long-running-operation-options"]["final-state-via"])
Spec
"x-ms-long-running-operation-options": {
"final-state-via": "operation-location"
},
V2 Schema
"final-state-via": {
"description": "How to determine the final state of the operation. Possible Values:\n- `azure-async-operation` - poll until terminal state, the final response will be available at the uri pointed to by the header `Azure-AsyncOperation`\n- `location` - poll until terminal state, the final response will be available at the uri pointed to by the header `Location`\n- `original-uri` - poll until terminal state, the final response will be available via GET at the original resource URI. Very common for PUT operations",
"type": "string",
"enum": ["azure-async-operation", "location", "original-uri"]
}
V3 Schema
"final-state-via": {
"description": "How to determine the final state of the operation. Possible Values:\n- `azure-async-operation` - poll until terminal state, the final response will be available at the uri pointed to by the header `Azure-AsyncOperation`\n- `location` - poll until terminal state, the final response will be available at the uri pointed to by the header `Location`\n- `operation-location` - poll until terminal state, the final response will be available at the uri pointed to by the header `Operation-Location`",
"type": "string",
"enum": ["azure-async-operation", "location", "original-uri", "operation-location"]
},
Metadata
Metadata
Assignees
Labels
No labels