diff --git a/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json b/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json index 82ef0dd65960..fa097d7b944c 100644 --- a/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json +++ b/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json @@ -46,12 +46,6 @@ "provisioningState": "Succeeded" } } - }, - "202": { - "headers": { - "Retry-After": "20", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" - } } } } diff --git a/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json index ddb7e8f16dec..455ebc78a602 100644 --- a/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json +++ b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json @@ -46,12 +46,6 @@ "provisioningState": "Succeeded" } } - }, - "202": { - "headers": { - "Retry-After": "20", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" - } } } } diff --git a/specification/containerservice/Fleet.Management/fleet.tsp b/specification/containerservice/Fleet.Management/fleet.tsp index 01ebf35a401a..bd588fdd1147 100644 --- a/specification/containerservice/Fleet.Management/fleet.tsp +++ b/specification/containerservice/Fleet.Management/fleet.tsp @@ -174,12 +174,27 @@ interface Fleets { IfNoneMatchParameters >; - update is ArmCustomPatchAsync< + #suppress "@azure-tools/typespec-providerhub/non-breaking-versioning" "Actual breaking change" + @sharedRoute + @removed(Versions.v2023_06_15_preview) + update is ArmCustomPatchSync< Fleet, FleetPatch, BaseParameters & IfMatchParameters >; + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "Use operationId to keep same name as deprecated sync operation" + @added(Versions.v2023_06_15_preview) + @operationId("Fleets_Update") + @sharedRoute + updateAsync is ArmCustomPatchAsync< + Fleet, + FleetPatch, + BaseParameters & IfMatchParameters + >; + + @sharedRoute // why do we need to set shared route on delete? compiler complains with an error + // All shared routes must agree on the value of the shared parameter.TypeSpec(@typespec/http/shared-inconsistency) delete is ArmResourceDeleteAsync< Fleet, BaseParameters & IfMatchParameters diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json index 82ef0dd65960..fa097d7b944c 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json @@ -46,12 +46,6 @@ "provisioningState": "Succeeded" } } - }, - "202": { - "headers": { - "Retry-After": "20", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" - } } } } diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/fleets.json index ead0675e555c..35c7a88998e7 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/fleets.json @@ -355,20 +355,6 @@ "$ref": "#/definitions/Fleet" } }, - "202": { - "description": "Resource update request accepted.", - "headers": { - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - } - } - }, "default": { "description": "An unexpected error response.", "schema": { @@ -380,11 +366,7 @@ "Update a Fleet.": { "$ref": "./examples/Fleets_PatchTags.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, "delete": { "operationId": "Fleets_Delete", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json index ddb7e8f16dec..455ebc78a602 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json @@ -46,12 +46,6 @@ "provisioningState": "Succeeded" } } - }, - "202": { - "headers": { - "Retry-After": "20", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" - } } } } diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/fleets.json index 1116a74960de..86b76a4d9966 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/fleets.json @@ -358,20 +358,6 @@ "$ref": "#/definitions/Fleet" } }, - "202": { - "description": "Resource update request accepted.", - "headers": { - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - } - } - }, "default": { "description": "An unexpected error response.", "schema": { @@ -383,11 +369,7 @@ "Update a Fleet.": { "$ref": "./examples/Fleets_PatchTags.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, "delete": { "operationId": "Fleets_Delete",