Skip to content

Commit 73cdb9a

Browse files
mcgallanpshao25
andauthored
add retryafter header (#38875)
Co-authored-by: Pan Shao <97225342+pshao25@users.noreply.github.com>
1 parent 5161e6a commit 73cdb9a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

specification/newrelic/NewRelicObservability.Management/NewRelicMonitorResource.tsp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ interface NewRelicMonitorResources {
112112
switchBilling is ArmResourceActionSync<
113113
NewRelicMonitorResource,
114114
SwitchBillingRequest,
115-
ArmResponse<NewRelicMonitorResource> | AcceptedResponse | NoContentResponse
115+
ArmResponse<NewRelicMonitorResource> | (AcceptedResponse &
116+
Azure.Core.Foundations.RetryAfterHeader) | NoContentResponse
116117
>;
117118

118119
/**

specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/NewRelic.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,14 @@
17861786
}
17871787
},
17881788
"202": {
1789-
"description": "The request has been accepted for processing, but processing has not yet completed."
1789+
"description": "Azure operation completed successfully.",
1790+
"headers": {
1791+
"Retry-After": {
1792+
"type": "integer",
1793+
"format": "int32",
1794+
"description": "The Retry-After header can indicate how long the client should wait before polling the operation status."
1795+
}
1796+
}
17901797
},
17911798
"204": {
17921799
"description": "There is no content to send for this request, but the headers may be useful."

0 commit comments

Comments
 (0)