@azure-tools/typespec-azure-core 0.37.0 → 0.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/models.tsp +13 -1
  2. package/package.json +1 -1
package/lib/models.tsp CHANGED
@@ -187,7 +187,19 @@ model RepeatabilityResponseHeaders {
187
187
  @visibility("read")
188
188
  @header("Repeatability-Result")
189
189
  @doc("Indicates whether the repeatable request was accepted or rejected.")
190
- repeatabilityResult?: "accepted" | "rejected";
190
+ repeatabilityResult?: RepeatabilityResult;
191
+ }
192
+
193
+ /** Repeatability Result header options */
194
+ union RepeatabilityResult {
195
+ /** If the request was accepted and the server guarantees that the server state reflects a single execution of the operation. */
196
+ "accepted",
197
+
198
+ /**
199
+ * If the request was rejected because the combination of Repeatability-First-Sent and Repeatability-Request-ID were invalid
200
+ * or because the Repeatability-First-Sent value was outside the range of values held by the server.
201
+ */
202
+ "rejected",
191
203
  }
192
204
 
193
205
  // https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#distributed-tracing--telemetry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-core",
3
- "version": "0.37.0",
3
+ "version": "0.37.1",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Core library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",