Skip to content

Commit

Permalink
sync to async (#27745)
Browse files Browse the repository at this point in the history
  • Loading branch information
zman-ms committed Feb 17, 2024
1 parent be0e270 commit 5bd23d2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@
},
"eTag": "\"EtagValue\""
}
},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01",
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ interface UpdateRuns {

@doc("Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.")
@added(Versions.v2024_02_02_preview)
skip is ArmResourceActionSync<
skip is ArmResourceActionAsync<
UpdateRun,
SkipProperties,
UpdateRun,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@
},
"eTag": "\"EtagValue\""
}
},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01",
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,20 @@
"$ref": "#/definitions/UpdateRun"
}
},
"202": {
"description": "Resource operation 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": {
Expand All @@ -1266,7 +1280,11 @@
"Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun.": {
"$ref": "./examples/UpdateRuns_Skip.json"
}
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/start": {
Expand Down

0 comments on commit 5bd23d2

Please sign in to comment.