@azure-tools/typespec-azure-core 0.30.0-dev.15 → 0.30.0-dev.16

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.
@@ -58,6 +58,13 @@ model LocationOfCreatedResourceResponse<T extends object> is TypeSpec.Http.Creat
58
58
  location: ResourceLocation<T>;
59
59
  }
60
60
 
61
+ model LocationOfCreatedResourceWithServiceProvidedNameResponse<T extends object>
62
+ is TypeSpec.Http.AcceptedResponse {
63
+ @finalLocation
64
+ @TypeSpec.Http.header("Location")
65
+ location: ResourceLocation<T>;
66
+ }
67
+
61
68
  @doc("Metadata for long running operation status monitor locations")
62
69
  model LongRunningStatusLocation<TStatusResult = never> {
63
70
  @pollingLocation
@@ -188,7 +188,7 @@ interface ResourceOperations<
188
188
  TResource,
189
189
  Foundations.ResourceBody<TResource> &
190
190
  TraitProperties<Traits & InterfaceTraits, TraitLocation.Parameters, TraitContext.Create>,
191
- Foundations.LocationOfCreatedResourceResponse<TResource> &
191
+ Foundations.LocationOfCreatedResourceWithServiceProvidedNameResponse<TResource> &
192
192
  TraitProperties<Traits & InterfaceTraits, TraitLocation.Response, TraitContext.Create>,
193
193
  Traits & InterfaceTraits,
194
194
  TErrorResponse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-core",
3
- "version": "0.30.0-dev.15",
3
+ "version": "0.30.0-dev.16",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Core library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",