diff --git a/specification/fileshares/FileShares.Management/fileshares.tsp b/specification/fileshares/FileShares.Management/fileshares.tsp index dbbfd2eed2ff..e3126cc289e1 100644 --- a/specification/fileshares/FileShares.Management/fileshares.tsp +++ b/specification/fileshares/FileShares.Management/fileshares.tsp @@ -298,23 +298,14 @@ interface FileShareSnapshots { #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "RP doesn't support 201 Created pattern for proxy resources in public preview. To be addressed in GA." @operationId("FileShareSnapshot_CreateOrUpdate") @doc("Create a FileShareSnapshot.") - createOrUpdateFileShareSnapshot is ArmResourceCreateOrReplaceAsync< - FileShareSnapshot, - BaseParameters, - Response = ArmAcceptedLroResponse & - Azure.Core.Foundations.RetryAfterHeader> - >; + createOrUpdateFileShareSnapshot is ArmResourceCreateOrReplaceSync; @operationId("FileShareSnapshot_Update") @doc("Update a FileShareSnapshot.") updateFileShareSnapshot is ArmCustomPatchAsync< FileShareSnapshot, ResourceUpdateModel, - BaseParameters, - Response = ArmAcceptedLroResponse & - Azure.Core.Foundations.RetryAfterHeader> + BaseParameters >; @operationId("FileShareSnapshot_Delete") diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2025-06-01-preview/fileshares.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2025-06-01-preview/fileshares.json index 1a6c0b1cd2b8..19079db9bce5 100644 --- a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2025-06-01-preview/fileshares.json +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2025-06-01-preview/fileshares.json @@ -760,22 +760,16 @@ } ], "responses": { - "202": { - "description": "Resource operation accepted.", - "headers": { - "Azure-AsyncOperation": { - "type": "string", - "description": "A link to the status monitor" - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - }, - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - } + "200": { + "description": "Resource 'FileShareSnapshot' update operation succeeded", + "schema": { + "$ref": "#/definitions/FileShareSnapshot" + } + }, + "201": { + "description": "Resource 'FileShareSnapshot' create operation succeeded", + "schema": { + "$ref": "#/definitions/FileShareSnapshot" } }, "default": { @@ -789,11 +783,7 @@ "FileShareSnapshot_CreateOrUpdate_MaximumSet": { "$ref": "./examples/FileShareSnapshot_CreateOrUpdate_MaximumSet_Gen.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, "patch": { "operationId": "FileShareSnapshot_Update", @@ -838,13 +828,15 @@ } ], "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShareSnapshot" + } + }, "202": { - "description": "Resource operation accepted.", + "description": "Resource update request accepted.", "headers": { - "Azure-AsyncOperation": { - "type": "string", - "description": "A link to the status monitor" - }, "Location": { "type": "string", "description": "The Location header contains the URL where the status of the long running operation can be checked."