Skip to content

Commit

Permalink
fix the final-state-via options for LRO (#27574)
Browse files Browse the repository at this point in the history
  • Loading branch information
serbrech authored Jan 30, 2024
1 parent 22d8bef commit d912b56
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 8 deletions.
6 changes: 6 additions & 0 deletions specification/containerservice/Fleet.Management/fleet.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ interface Fleets {
#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")
@extension(
"x-ms-long-running-operation-options",
{
`final-state-via`: "original-uri",
}
)
@sharedRoute
updateAsync is ArmCustomPatchAsync<
Fleet,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ interface FleetMembers {
@sharedRoute
@added(Versions.v2023_06_15_preview)
@operationId("FleetMembers_Update")
@extension(
"x-ms-long-running-operation-options",
{
`final-state-via`: "original-uri",
}
)
updateAsync is ArmResourcePatchAsync<
FleetMember,
FleetMemberProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
"final-state-via": "original-uri"
},
"x-ms-long-running-operation": true
},
Expand Down Expand Up @@ -809,7 +809,7 @@
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
"final-state-via": "original-uri"
},
"x-ms-long-running-operation": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
"final-state-via": "original-uri"
},
"x-ms-long-running-operation": true
},
Expand Down Expand Up @@ -812,7 +812,7 @@
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
"final-state-via": "original-uri"
},
"x-ms-long-running-operation": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
"final-state-via": "original-uri"
},
"x-ms-long-running-operation": true
},
Expand Down Expand Up @@ -812,7 +812,7 @@
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
"final-state-via": "original-uri"
},
"x-ms-long-running-operation": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
"final-state-via": "original-uri"
},
"x-ms-long-running-operation": true
},
Expand Down Expand Up @@ -812,7 +812,7 @@
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
"final-state-via": "original-uri"
},
"x-ms-long-running-operation": true
},
Expand Down

0 comments on commit d912b56

Please sign in to comment.