diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index b146da432249..844cff89e794 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -458,6 +458,6 @@ 1.0.0-dev.20250805.1 1.0.0-alpha.20250813.2 - 1.0.0-alpha.20250729.4 + 1.0.0-alpha.20250812.2 diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj index 5a64851e3b5c..0b27c3fd6b5f 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj @@ -12,12 +12,6 @@ - - - - - - diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/PaginationVisitor.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/PaginationVisitor.cs index 2fa6d3611ddf..c442374f1d2b 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/PaginationVisitor.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/PaginationVisitor.cs @@ -6,6 +6,7 @@ using Microsoft.TypeSpec.Generator.Providers; using Microsoft.TypeSpec.Generator.Statements; using System; +using System.Collections.Generic; using System.Linq; using static Microsoft.TypeSpec.Generator.Snippets.Snippet; @@ -37,25 +38,54 @@ internal class PaginationVisitor : ScmLibraryVisitor } private static bool IsAsPagesMethod(MethodProvider method) => method.Signature.Name.Equals("AsPages"); - private static bool IsGetNextResponseMethod(MethodProvider method) => method.Signature.Name.Equals("GetNextResponse"); + private static bool IsGetNextResponseMethod(MethodProvider method) + => method.Signature.Name.Equals("GetNextResponseAsync") || method.Signature.Name.Equals("GetNextResponse"); private void DoVisitAsPagesMethodStatements(MethodBodyStatements statements, MethodProvider method) { - var doWhileStatement = statements.OfType().FirstOrDefault(); - if (doWhileStatement is not null) + var whileStatement = statements.OfType().FirstOrDefault(); + if (whileStatement is not null) { // we manually go over the body statements because currently the framework does not do this. // TODO -- we do not have to do this once https://github.com/microsoft/typespec/issues/8177 is fixed. - foreach (var statement in doWhileStatement.Body) + foreach (var statement in whileStatement.Body) { - if (statement is ExpressionStatement { Expression: AssignmentExpression assignment } expressionStatement) + if (statement is YieldReturnStatement + { + Value: InvokeMethodExpression + { + MethodName: "FromValues", + Arguments: [CastExpression castExpression, ..] + } invokeMethodExpression + } && + castExpression.Inner is MemberExpression + { + Inner: CastExpression innerCastExpression, + MemberName: var memberName + } && + IsResponseToModelCastExpression(innerCastExpression)) + { + // convert the implicit cast expression to a method call + var updatedExpression = ConvertCastToMethodCall(innerCastExpression) + .Property(memberName) // wrap back by a MemberExpression + .CastTo(castExpression.Type); // wrap back by the outer CastExpression + // use the above updated expression as the first argument of this method call inside the yield return + IReadOnlyList newArguments = [updatedExpression, .. invokeMethodExpression.Arguments.Skip(1)]; + invokeMethodExpression.Update(arguments: newArguments); + } + else if (statement is ExpressionStatement { - var updatedExpression = DoVisitAssignmentExpressionForAsPagesMethod(assignment, method); - if (updatedExpression is not null) + Expression: AssignmentExpression { - // update the expression in the statement. - expressionStatement.Update(updatedExpression); + Variable: var variable, + Value: MemberExpression { Inner: CastExpression castExpression1, MemberName: var memberName1 } } + } expressionStatement) + { + var updatedExpression = variable.Assign( + ConvertCastToMethodCall(castExpression1) + .Property(memberName1)); // wrap back by a MemberExpression + expressionStatement.Update(updatedExpression); } } } @@ -89,23 +119,17 @@ private void DoVisitAsPagesMethodStatements(MethodBodyStatements statements, Met { if (expression.Value is CastExpression castExpression && IsResponseToModelCastExpression(castExpression)) { - var value = Static(castExpression.Type!).Invoke(SerializationVisitor.FromResponseMethodName, [castExpression.Inner!]); + var value = ConvertCastToMethodCall(castExpression); var variable = expression.Variable; return variable.Assign(value); } // do nothing if nothing is changed. return null; + } - static bool IsResponseToModelCastExpression(CastExpression castExpression) - { - if (castExpression.Inner is VariableExpression variableExpression && - variableExpression.Type is { IsFrameworkType: true, FrameworkType: { } frameworkType } && - frameworkType == typeof(Response)) - { - return true; - } - return false; - } + private static ValueExpression ConvertCastToMethodCall(CastExpression castExpression) + { + return Static(castExpression.Type!).Invoke(SerializationVisitor.FromResponseMethodName, [castExpression.Inner!]); } private ValueExpression? DoVisitAssignmentExpressionForGetNextResponseMethod(AssignmentExpression expression, MethodProvider method) @@ -131,4 +155,9 @@ static bool IsResponseToModelCastExpression(CastExpression castExpression) // do nothing if nothing is changed. return null; } + + private static bool IsResponseToModelCastExpression(CastExpression castExpression) + => castExpression.Inner is VariableExpression variableExpression + && variableExpression.Type is { IsFrameworkType: true, FrameworkType: { } frameworkType } + && frameworkType == typeof(Response); } diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj index c6f1b1cb3e3d..75f055b11508 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj @@ -32,10 +32,4 @@ - - - - - - diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/Azure.Generator.Management.Tests.Common.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/Azure.Generator.Management.Tests.Common.csproj index 60e082cb68c3..85f01df9d0e2 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/Azure.Generator.Management.Tests.Common.csproj +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/Azure.Generator.Management.Tests.Common.csproj @@ -18,10 +18,4 @@ - - - - - - diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputFactory.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputFactory.cs index 25de3b257f1b..46e9ea3137de 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputFactory.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputFactory.cs @@ -221,6 +221,7 @@ public static InputModelProperty Property( access: null, isDiscriminator, serializedName ?? wireName ?? name.ToVariableName(), + false, new(json: new(wireName ?? name))); } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetAsyncCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetAsyncCollectionResult.cs deleted file mode 100644 index 0924fb337517..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetAsyncCollectionResult.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class BarsGetAsyncCollectionResult : AsyncPageable - { - private readonly Bars _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _fooName; - private readonly RequestContext _context; - - /// Initializes a new instance of BarsGetAsyncCollectionResult, which is used to iterate over the pages of a collection. - /// The Bars client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the Foo. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public BarsGetAsyncCollectionResult(Bars client, Guid subscriptionId, string resourceGroupName, string fooName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(fooName, nameof(fooName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _fooName = fooName; - _context = context; - } - - /// Gets the pages of BarsGetAsyncCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of BarsGetAsyncCollectionResult as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - BarListResult responseWithType = BarListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _subscriptionId, _resourceGroupName, _fooName, _context) : _client.CreateGetRequest(_subscriptionId, _resourceGroupName, _fooName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Bars.Get"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetAsyncCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetAsyncCollectionResultOfT.cs index 12913030e787..c8be6c2c0655 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetAsyncCollectionResultOfT.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetAsyncCollectionResultOfT.cs @@ -50,24 +50,26 @@ public BarsGetAsyncCollectionResultOfT(Bars client, Guid subscriptionId, string public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do + while (true) { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); + Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false); if (response is null) { yield break; } - BarListResult responseWithType = BarListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); + yield return Page.FromValues((IReadOnlyList)BarListResult.FromResponse(response).Value, nextPage?.AbsoluteUri, response); + nextPage = BarListResult.FromResponse(response).NextLink; + if (nextPage == null) + { + yield break; + } } - while (nextPage != null); } /// Get next page. /// The number of items per page. /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) + private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink) { HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _subscriptionId, _resourceGroupName, _fooName, _context) : _client.CreateGetRequest(_subscriptionId, _resourceGroupName, _fooName, _context); using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("BarCollection.GetAll"); diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetCollectionResult.cs deleted file mode 100644 index 3fd8752162c1..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetCollectionResult.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class BarsGetCollectionResult : Pageable - { - private readonly Bars _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _fooName; - private readonly RequestContext _context; - - /// Initializes a new instance of BarsGetCollectionResult, which is used to iterate over the pages of a collection. - /// The Bars client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the Foo. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public BarsGetCollectionResult(Bars client, Guid subscriptionId, string resourceGroupName, string fooName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(fooName, nameof(fooName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _fooName = fooName; - _context = context; - } - - /// Gets the pages of BarsGetCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of BarsGetCollectionResult as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - BarListResult responseWithType = BarListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _subscriptionId, _resourceGroupName, _fooName, _context) : _client.CreateGetRequest(_subscriptionId, _resourceGroupName, _fooName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Bars.Get"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetCollectionResultOfT.cs index 24dc305c130c..a6b31d836a5b 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetCollectionResultOfT.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarsGetCollectionResultOfT.cs @@ -49,18 +49,20 @@ public BarsGetCollectionResultOfT(Bars client, Guid subscriptionId, string resou public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do + while (true) { Response response = GetNextResponse(pageSizeHint, nextPage); if (response is null) { yield break; } - BarListResult responseWithType = BarListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); + yield return Page.FromValues((IReadOnlyList)BarListResult.FromResponse(response).Value, nextPage?.AbsoluteUri, response); + nextPage = BarListResult.FromResponse(response).NextLink; + if (nextPage == null) + { + yield break; + } } - while (nextPage != null); } /// Get next page. diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetAsyncCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetAsyncCollectionResult.cs deleted file mode 100644 index 1c3c804d96ba..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetAsyncCollectionResult.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class FoosGetAsyncCollectionResult : AsyncPageable - { - private readonly Foos _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly RequestContext _context; - - /// Initializes a new instance of FoosGetAsyncCollectionResult, which is used to iterate over the pages of a collection. - /// The Foos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. - public FoosGetAsyncCollectionResult(Foos client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _context = context; - } - - /// Gets the pages of FoosGetAsyncCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of FoosGetAsyncCollectionResult as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - FooListResult responseWithType = FooListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetRequest(_subscriptionId, _resourceGroupName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Foos.Get"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetAsyncCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetAsyncCollectionResultOfT.cs index bb19e1ca675f..45493abc32ff 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetAsyncCollectionResultOfT.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetAsyncCollectionResultOfT.cs @@ -46,24 +46,26 @@ public FoosGetAsyncCollectionResultOfT(Foos client, Guid subscriptionId, string public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do + while (true) { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); + Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false); if (response is null) { yield break; } - FooListResult responseWithType = FooListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); + yield return Page.FromValues((IReadOnlyList)FooListResult.FromResponse(response).Value, nextPage?.AbsoluteUri, response); + nextPage = FooListResult.FromResponse(response).NextLink; + if (nextPage == null) + { + yield break; + } } - while (nextPage != null); } /// Get next page. /// The number of items per page. /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) + private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink) { HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetRequest(_subscriptionId, _resourceGroupName, _context); using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("FooCollection.GetAll"); diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetCollectionResult.cs deleted file mode 100644 index f63ee3bb26f0..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetCollectionResult.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class FoosGetCollectionResult : Pageable - { - private readonly Foos _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly RequestContext _context; - - /// Initializes a new instance of FoosGetCollectionResult, which is used to iterate over the pages of a collection. - /// The Foos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. - public FoosGetCollectionResult(Foos client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _context = context; - } - - /// Gets the pages of FoosGetCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of FoosGetCollectionResult as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - FooListResult responseWithType = FooListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetRequest(_subscriptionId, _resourceGroupName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Foos.Get"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetCollectionResultOfT.cs index 8e19c1342b67..d7ad90adb289 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetCollectionResultOfT.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FoosGetCollectionResultOfT.cs @@ -45,18 +45,20 @@ public FoosGetCollectionResultOfT(Foos client, Guid subscriptionId, string resou public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do + while (true) { Response response = GetNextResponse(pageSizeHint, nextPage); if (response is null) { yield break; } - FooListResult responseWithType = FooListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); + yield return Page.FromValues((IReadOnlyList)FooListResult.FromResponse(response).Value, nextPage?.AbsoluteUri, response); + nextPage = FooListResult.FromResponse(response).NextLink; + if (nextPage == null) + { + yield break; + } } - while (nextPage != null); } /// Get next page. diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecModelFactory.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecModelFactory.cs index 6269ef08f47e..b755df5983ee 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecModelFactory.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecModelFactory.cs @@ -152,6 +152,17 @@ public static ZooPatch ZooPatch(IDictionary tags = default, stri return new ZooPatch(tags, zooUpdateSomething is null ? default : new ZooUpdateProperties(zooUpdateSomething, new Dictionary()), additionalBinaryDataProperties: null); } + /// Paged collection of ZooAddress items. + /// The ZooAddress items on this page. + /// The link to the next page of items. + /// A new instance for mocking. + public static ZooAddressListListResult ZooAddressListListResult(IEnumerable value = default, Uri nextLink = default) + { + value ??= new ChangeTrackingList(); + + return new ZooAddressListListResult(value.ToList(), nextLink, additionalBinaryDataProperties: null); + } + /// The FooPreviewAction. /// The action to be performed. /// diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ActionType.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ActionType.cs deleted file mode 100644 index 746df575fdf0..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ActionType.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using MgmtTypeSpec; - -namespace MgmtTypeSpec.Models -{ - /// Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - internal readonly partial struct ActionType : IEquatable - { - private readonly string _value; - /// Actions are for internal-only APIs. - private const string InternalValue = "Internal"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public ActionType(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Actions are for internal-only APIs. - public static ActionType Internal { get; } = new ActionType(InternalValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(ActionType left, ActionType right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(ActionType left, ActionType right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator ActionType(string value) => new ActionType(value); - - /// Converts a string to a . - /// The value. - public static implicit operator ActionType?(string value) => value == null ? null : new ActionType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ActionType other && Equals(other); - - /// - public bool Equals(ActionType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecContext.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecContext.cs index 53aab0cfa192..0ba1cf0b288d 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecContext.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecContext.cs @@ -16,28 +16,17 @@ namespace MgmtTypeSpec /// Context class which will be filled in by the System.ClientModel.SourceGeneration. /// For more information /// - [ModelReaderWriterBuildable(typeof(OperationListResult))] - [ModelReaderWriterBuildable(typeof(Operation))] - [ModelReaderWriterBuildable(typeof(OperationDisplay))] - [ModelReaderWriterBuildable(typeof(PrivateLinkListResult))] - [ModelReaderWriterBuildable(typeof(PrivateLink))] - [ModelReaderWriterBuildable(typeof(MgmtTypeSpecPrivateLinkResourceProperties))] [ModelReaderWriterBuildable(typeof(ManagedServiceIdentity))] - [ModelReaderWriterBuildable(typeof(FooData))] [ModelReaderWriterBuildable(typeof(FooProperties))] [ModelReaderWriterBuildable(typeof(ExtendedLocation))] [ModelReaderWriterBuildable(typeof(FooListResult))] - [ModelReaderWriterBuildable(typeof(FooSettingsData))] [ModelReaderWriterBuildable(typeof(FooSettingsProperties))] [ModelReaderWriterBuildable(typeof(FooSettingsPropertiesMetaData))] [ModelReaderWriterBuildable(typeof(FooSettingsPatch))] [ModelReaderWriterBuildable(typeof(FooSettingsUpdateProperties))] - [ModelReaderWriterBuildable(typeof(BarData))] [ModelReaderWriterBuildable(typeof(BarProperties))] [ModelReaderWriterBuildable(typeof(BarListResult))] - [ModelReaderWriterBuildable(typeof(BarSettingsResourceData))] [ModelReaderWriterBuildable(typeof(BarSettingsProperties))] - [ModelReaderWriterBuildable(typeof(ZooData))] [ModelReaderWriterBuildable(typeof(ZooProperties))] [ModelReaderWriterBuildable(typeof(ZooPatch))] [ModelReaderWriterBuildable(typeof(ZooUpdateProperties))] diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecPrivateLinkResourceProperties.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecPrivateLinkResourceProperties.Serialization.cs deleted file mode 100644 index e5022c0b3666..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecPrivateLinkResourceProperties.Serialization.cs +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using MgmtTypeSpec; - -namespace MgmtTypeSpec.Models -{ - /// Properties of a private link resource. - internal partial class MgmtTypeSpecPrivateLinkResourceProperties : IJsonModel - { - /// The JSON writer. - /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MgmtTypeSpecPrivateLinkResourceProperties)} does not support writing '{format}' format."); - } - if (options.Format != "W" && Optional.IsDefined(GroupId)) - { - writer.WritePropertyName("groupId"u8); - writer.WriteStringValue(GroupId); - } - if (options.Format != "W" && Optional.IsCollectionDefined(RequiredMembers)) - { - writer.WritePropertyName("requiredMembers"u8); - writer.WriteStartArray(); - foreach (string item in RequiredMembers) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsCollectionDefined(RequiredZoneNames)) - { - writer.WritePropertyName("requiredZoneNames"u8); - writer.WriteStartArray(); - foreach (string item in RequiredZoneNames) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - MgmtTypeSpecPrivateLinkResourceProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual MgmtTypeSpecPrivateLinkResourceProperties JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(MgmtTypeSpecPrivateLinkResourceProperties)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeMgmtTypeSpecPrivateLinkResourceProperties(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static MgmtTypeSpecPrivateLinkResourceProperties DeserializeMgmtTypeSpecPrivateLinkResourceProperties(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string groupId = default; - IReadOnlyList requiredMembers = default; - IList requiredZoneNames = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("groupId"u8)) - { - groupId = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("requiredMembers"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - if (item.ValueKind == JsonValueKind.Null) - { - array.Add(null); - } - else - { - array.Add(item.GetString()); - } - } - requiredMembers = array; - continue; - } - if (prop.NameEquals("requiredZoneNames"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - if (item.ValueKind == JsonValueKind.Null) - { - array.Add(null); - } - else - { - array.Add(item.GetString()); - } - } - requiredZoneNames = array; - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new MgmtTypeSpecPrivateLinkResourceProperties(groupId, requiredMembers ?? new ChangeTrackingList(), requiredZoneNames ?? new ChangeTrackingList(), additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, MgmtTypeSpecContext.Default); - default: - throw new FormatException($"The model {nameof(MgmtTypeSpecPrivateLinkResourceProperties)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - MgmtTypeSpecPrivateLinkResourceProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual MgmtTypeSpecPrivateLinkResourceProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data)) - { - return DeserializeMgmtTypeSpecPrivateLinkResourceProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(MgmtTypeSpecPrivateLinkResourceProperties)} does not support reading '{options.Format}' format."); - } - } - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecPrivateLinkResourceProperties.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecPrivateLinkResourceProperties.cs deleted file mode 100644 index 860627a52b0b..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/MgmtTypeSpecPrivateLinkResourceProperties.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using MgmtTypeSpec; - -namespace MgmtTypeSpec.Models -{ - /// Properties of a private link resource. - internal partial class MgmtTypeSpecPrivateLinkResourceProperties - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal MgmtTypeSpecPrivateLinkResourceProperties() - { - RequiredMembers = new ChangeTrackingList(); - RequiredZoneNames = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// The private link resource group id. - /// The private link resource required member names. - /// The private link resource private link DNS zone name. - /// Keeps track of any properties unknown to the library. - internal MgmtTypeSpecPrivateLinkResourceProperties(string groupId, IReadOnlyList requiredMembers, IList requiredZoneNames, IDictionary additionalBinaryDataProperties) - { - GroupId = groupId; - RequiredMembers = requiredMembers; - RequiredZoneNames = requiredZoneNames; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The private link resource group id. - public string GroupId { get; } - - /// The private link resource required member names. - public IReadOnlyList RequiredMembers { get; } - - /// The private link resource private link DNS zone name. - public IList RequiredZoneNames { get; } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/Operation.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/Operation.Serialization.cs deleted file mode 100644 index 9178ba91917c..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/Operation.Serialization.cs +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using MgmtTypeSpec; - -namespace MgmtTypeSpec.Models -{ - /// REST API Operation. - internal partial class Operation : IJsonModel - { - /// The JSON writer. - /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(Operation)} does not support writing '{format}' format."); - } - if (options.Format != "W" && Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (options.Format != "W" && Optional.IsDefined(IsDataAction)) - { - writer.WritePropertyName("isDataAction"u8); - writer.WriteBooleanValue(IsDataAction.Value); - } - if (Optional.IsDefined(Display)) - { - writer.WritePropertyName("display"u8); - writer.WriteObjectValue(Display, options); - } - if (options.Format != "W" && Optional.IsDefined(Origin)) - { - writer.WritePropertyName("origin"u8); - writer.WriteStringValue(Origin.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(ActionType)) - { - writer.WritePropertyName("actionType"u8); - writer.WriteStringValue(ActionType.Value.ToString()); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - Operation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual Operation JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(Operation)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeOperation(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static Operation DeserializeOperation(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string name = default; - bool? isDataAction = default; - OperationDisplay display = default; - Origin? origin = default; - ActionType? actionType = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("name"u8)) - { - name = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("isDataAction"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isDataAction = prop.Value.GetBoolean(); - continue; - } - if (prop.NameEquals("display"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - display = OperationDisplay.DeserializeOperationDisplay(prop.Value, options); - continue; - } - if (prop.NameEquals("origin"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - origin = new Origin(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("actionType"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - actionType = new ActionType(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new Operation( - name, - isDataAction, - display, - origin, - actionType, - additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, MgmtTypeSpecContext.Default); - default: - throw new FormatException($"The model {nameof(Operation)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - Operation IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual Operation PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data)) - { - return DeserializeOperation(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(Operation)} does not support reading '{options.Format}' format."); - } - } - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/Operation.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/Operation.cs deleted file mode 100644 index ab686c8f85fc..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/Operation.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace MgmtTypeSpec.Models -{ - /// REST API Operation. - internal partial class Operation - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal Operation() - { - } - - /// Initializes a new instance of . - /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". - /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. - /// Localized display information for this particular operation. - /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". - /// Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - /// Keeps track of any properties unknown to the library. - internal Operation(string name, bool? isDataAction, OperationDisplay display, Origin? origin, ActionType? actionType, IDictionary additionalBinaryDataProperties) - { - Name = name; - IsDataAction = isDataAction; - Display = display; - Origin = origin; - ActionType = actionType; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". - public string Name { get; } - - /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. - public bool? IsDataAction { get; } - - /// Localized display information for this particular operation. - public OperationDisplay Display { get; } - - /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". - public Origin? Origin { get; } - - /// Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - public ActionType? ActionType { get; } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationDisplay.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationDisplay.Serialization.cs deleted file mode 100644 index 7e8401702ecf..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationDisplay.Serialization.cs +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using MgmtTypeSpec; - -namespace MgmtTypeSpec.Models -{ - /// Localized display information for and operation. - internal partial class OperationDisplay : IJsonModel - { - /// The JSON writer. - /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(OperationDisplay)} does not support writing '{format}' format."); - } - if (options.Format != "W" && Optional.IsDefined(Provider)) - { - writer.WritePropertyName("provider"u8); - writer.WriteStringValue(Provider); - } - if (options.Format != "W" && Optional.IsDefined(Resource)) - { - writer.WritePropertyName("resource"u8); - writer.WriteStringValue(Resource); - } - if (options.Format != "W" && Optional.IsDefined(Operation)) - { - writer.WritePropertyName("operation"u8); - writer.WriteStringValue(Operation); - } - if (options.Format != "W" && Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - OperationDisplay IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual OperationDisplay JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(OperationDisplay)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeOperationDisplay(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static OperationDisplay DeserializeOperationDisplay(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string provider = default; - string resource = default; - string operation = default; - string description = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("provider"u8)) - { - provider = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("resource"u8)) - { - resource = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("operation"u8)) - { - operation = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("description"u8)) - { - description = prop.Value.GetString(); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new OperationDisplay(provider, resource, operation, description, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, MgmtTypeSpecContext.Default); - default: - throw new FormatException($"The model {nameof(OperationDisplay)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - OperationDisplay IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual OperationDisplay PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data)) - { - return DeserializeOperationDisplay(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(OperationDisplay)} does not support reading '{options.Format}' format."); - } - } - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationDisplay.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationDisplay.cs deleted file mode 100644 index 3fc5966834d7..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationDisplay.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace MgmtTypeSpec.Models -{ - /// Localized display information for and operation. - internal partial class OperationDisplay - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal OperationDisplay() - { - } - - /// Initializes a new instance of . - /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. - /// Keeps track of any properties unknown to the library. - internal OperationDisplay(string provider, string resource, string operation, string description, IDictionary additionalBinaryDataProperties) - { - Provider = provider; - Resource = resource; - Operation = operation; - Description = description; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - public string Provider { get; } - - /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - public string Resource { get; } - - /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - public string Operation { get; } - - /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. - public string Description { get; } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationListResult.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationListResult.Serialization.cs deleted file mode 100644 index 61de1cad24e7..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationListResult.Serialization.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using MgmtTypeSpec; - -namespace MgmtTypeSpec.Models -{ - /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. - internal partial class OperationListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal OperationListResult() - { - } - - /// The JSON writer. - /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(OperationListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (Operation item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - OperationListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual OperationListResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(OperationListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeOperationListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static OperationListResult DeserializeOperationListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(Operation.DeserializeOperation(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = new Uri(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new OperationListResult(value, nextLink, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, MgmtTypeSpecContext.Default); - default: - throw new FormatException($"The model {nameof(OperationListResult)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - OperationListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual OperationListResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data)) - { - return DeserializeOperationListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(OperationListResult)} does not support reading '{options.Format}' format."); - } - } - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static OperationListResult FromResponse(Response result) - { - using Response response = result; - using JsonDocument document = JsonDocument.Parse(response.Content); - return DeserializeOperationListResult(document.RootElement, ModelSerializationExtensions.WireOptions); - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationListResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationListResult.cs deleted file mode 100644 index d565b2932eed..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/OperationListResult.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace MgmtTypeSpec.Models -{ - /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. - internal partial class OperationListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The Operation items on this page. - internal OperationListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The Operation items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal OperationListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The Operation items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/Origin.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/Origin.cs deleted file mode 100644 index ce10e48c4a6e..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/Origin.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; -using MgmtTypeSpec; - -namespace MgmtTypeSpec.Models -{ - /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system". - internal readonly partial struct Origin : IEquatable - { - private readonly string _value; - /// Indicates the operation is initiated by a user. - private const string UserValue = "user"; - /// Indicates the operation is initiated by a system. - private const string SystemValue = "system"; - /// Indicates the operation is initiated by a user or system. - private const string UserSystemValue = "user,system"; - - /// Initializes a new instance of . - /// The value. - /// is null. - public Origin(string value) - { - Argument.AssertNotNull(value, nameof(value)); - - _value = value; - } - - /// Indicates the operation is initiated by a user. - public static Origin User { get; } = new Origin(UserValue); - - /// Indicates the operation is initiated by a system. - public static Origin System { get; } = new Origin(SystemValue); - - /// Indicates the operation is initiated by a user or system. - public static Origin UserSystem { get; } = new Origin(UserSystemValue); - - /// Determines if two values are the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator ==(Origin left, Origin right) => left.Equals(right); - - /// Determines if two values are not the same. - /// The left value to compare. - /// The right value to compare. - public static bool operator !=(Origin left, Origin right) => !left.Equals(right); - - /// Converts a string to a . - /// The value. - public static implicit operator Origin(string value) => new Origin(value); - - /// Converts a string to a . - /// The value. - public static implicit operator Origin?(string value) => value == null ? null : new Origin(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Origin other && Equals(other); - - /// - public bool Equals(Origin other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - - /// - public override string ToString() => _value; - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLink.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLink.Serialization.cs deleted file mode 100644 index 00040035bb9a..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLink.Serialization.cs +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; -using MgmtTypeSpec; - -namespace MgmtTypeSpec.Models -{ - /// Concrete proxy resource types can be created by aliasing this type using a specific property type. - internal partial class PrivateLink : IJsonModel - { - /// The JSON writer. - /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(PrivateLink)} does not support writing '{format}' format."); - } - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties, options); - } - if (Optional.IsDefined(Identity)) - { - writer.WritePropertyName("identity"u8); - ((IJsonModel)Identity).Write(writer, options); - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - PrivateLink IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (PrivateLink)JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual ResourceData JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(PrivateLink)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateLink(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static PrivateLink DeserializePrivateLink(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier id = default; - string name = default; - ResourceType resourceType = default; - SystemData systemData = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - MgmtTypeSpecPrivateLinkResourceProperties properties = default; - ManagedServiceIdentity identity = default; - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("id"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - id = new ResourceIdentifier(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("name"u8)) - { - name = prop.Value.GetString(); - continue; - } - if (prop.NameEquals("type"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - resourceType = new ResourceType(prop.Value.GetString()); - continue; - } - if (prop.NameEquals("systemData"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, MgmtTypeSpecContext.Default); - continue; - } - if (prop.NameEquals("properties"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = MgmtTypeSpecPrivateLinkResourceProperties.DeserializeMgmtTypeSpecPrivateLinkResourceProperties(prop.Value, options); - continue; - } - if (prop.NameEquals("identity"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, MgmtTypeSpecContext.Default); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new PrivateLink( - id, - name, - resourceType, - systemData, - additionalBinaryDataProperties, - properties, - identity); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, MgmtTypeSpecContext.Default); - default: - throw new FormatException($"The model {nameof(PrivateLink)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - PrivateLink IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (PrivateLink)PersistableModelCreateCore(data, options); - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual ResourceData PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data)) - { - return DeserializePrivateLink(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(PrivateLink)} does not support reading '{options.Format}' format."); - } - } - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLink.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLink.cs deleted file mode 100644 index 702308b04fdd..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLink.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace MgmtTypeSpec.Models -{ - /// Concrete proxy resource types can be created by aliasing this type using a specific property type. - internal partial class PrivateLink : ResourceData - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - internal PrivateLink() - { - } - - /// Initializes a new instance of . - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - /// The name of the resource. - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". - /// Azure Resource Manager metadata containing createdBy and modifiedBy information. - /// Keeps track of any properties unknown to the library. - /// The resource-specific properties for this resource. - /// The managed service identities assigned to this resource. - internal PrivateLink(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, MgmtTypeSpecPrivateLinkResourceProperties properties, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData) - { - _additionalBinaryDataProperties = additionalBinaryDataProperties; - Properties = properties; - Identity = identity; - } - - /// The resource-specific properties for this resource. - public MgmtTypeSpecPrivateLinkResourceProperties Properties { get; } - - /// The managed service identities assigned to this resource. - public ManagedServiceIdentity Identity { get; } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLinkListResult.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLinkListResult.Serialization.cs deleted file mode 100644 index 80d7f9058a95..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLinkListResult.Serialization.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure; -using MgmtTypeSpec; - -namespace MgmtTypeSpec.Models -{ - /// The response of a PrivateLink list operation. - internal partial class PrivateLinkListResult : IJsonModel - { - /// Initializes a new instance of for deserialization. - internal PrivateLinkListResult() - { - } - - /// The JSON writer. - /// The client options for reading and writing models. - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(PrivateLinkListResult)} does not support writing '{format}' format."); - } - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (PrivateLink item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - if (Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink.AbsoluteUri); - } - if (options.Format != "W" && _additionalBinaryDataProperties != null) - { - foreach (var item in _additionalBinaryDataProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - /// The JSON reader. - /// The client options for reading and writing models. - PrivateLinkListResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); - - /// The JSON reader. - /// The client options for reading and writing models. - protected virtual PrivateLinkListResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(PrivateLinkListResult)} does not support reading '{format}' format."); - } - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializePrivateLinkListResult(document.RootElement, options); - } - - /// The JSON element to deserialize. - /// The client options for reading and writing models. - internal static PrivateLinkListResult DeserializePrivateLinkListResult(JsonElement element, ModelReaderWriterOptions options) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IList value = default; - Uri nextLink = default; - IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); - foreach (var prop in element.EnumerateObject()) - { - if (prop.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in prop.Value.EnumerateArray()) - { - array.Add(PrivateLink.DeserializePrivateLink(item, options)); - } - value = array; - continue; - } - if (prop.NameEquals("nextLink"u8)) - { - if (prop.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - nextLink = new Uri(prop.Value.GetString()); - continue; - } - if (options.Format != "W") - { - additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); - } - } - return new PrivateLinkListResult(value, nextLink, additionalBinaryDataProperties); - } - - /// The client options for reading and writing models. - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - - /// The client options for reading and writing models. - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, MgmtTypeSpecContext.Default); - default: - throw new FormatException($"The model {nameof(PrivateLinkListResult)} does not support writing '{options.Format}' format."); - } - } - - /// The data to parse. - /// The client options for reading and writing models. - PrivateLinkListResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); - - /// The data to parse. - /// The client options for reading and writing models. - protected virtual PrivateLinkListResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) - { - string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - switch (format) - { - case "J": - using (JsonDocument document = JsonDocument.Parse(data)) - { - return DeserializePrivateLinkListResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(PrivateLinkListResult)} does not support reading '{options.Format}' format."); - } - } - - /// The client options for reading and writing models. - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// The to deserialize the from. - internal static PrivateLinkListResult FromResponse(Response result) - { - using Response response = result; - using JsonDocument document = JsonDocument.Parse(response.Content); - return DeserializePrivateLinkListResult(document.RootElement, ModelSerializationExtensions.WireOptions); - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLinkListResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLinkListResult.cs deleted file mode 100644 index 2dd0037af4c5..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PrivateLinkListResult.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace MgmtTypeSpec.Models -{ - /// The response of a PrivateLink list operation. - internal partial class PrivateLinkListResult - { - /// Keeps track of any properties unknown to the library. - private protected readonly IDictionary _additionalBinaryDataProperties; - - /// Initializes a new instance of . - /// The PrivateLink items on this page. - internal PrivateLinkListResult(IEnumerable value) - { - Value = value.ToList(); - } - - /// Initializes a new instance of . - /// The PrivateLink items on this page. - /// The link to the next page of items. - /// Keeps track of any properties unknown to the library. - internal PrivateLinkListResult(IList value, Uri nextLink, IDictionary additionalBinaryDataProperties) - { - Value = value; - NextLink = nextLink; - _additionalBinaryDataProperties = additionalBinaryDataProperties; - } - - /// The PrivateLink items on this page. - public IList Value { get; } - - /// The link to the next page of items. - public Uri NextLink { get; } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ZooAddressListListResult.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ZooAddressListListResult.Serialization.cs index d5aff1d140a8..5cb44c394161 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ZooAddressListListResult.Serialization.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ZooAddressListListResult.Serialization.cs @@ -17,7 +17,7 @@ namespace MgmtTypeSpec.Models { /// Paged collection of ZooAddress items. - internal partial class ZooAddressListListResult : IJsonModel + public partial class ZooAddressListListResult : IJsonModel { /// Initializes a new instance of for deserialization. internal ZooAddressListListResult() diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ZooAddressListListResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ZooAddressListListResult.cs index d0ec8d2ae49d..3f327f6db5c6 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ZooAddressListListResult.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/ZooAddressListListResult.cs @@ -13,7 +13,7 @@ namespace MgmtTypeSpec.Models { /// Paged collection of ZooAddress items. - internal partial class ZooAddressListListResult + public partial class ZooAddressListListResult { /// Keeps track of any properties unknown to the library. private protected readonly IDictionary _additionalBinaryDataProperties; diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetAsyncCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetAsyncCollectionResult.cs deleted file mode 100644 index fee1c8f21eb3..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetAsyncCollectionResult.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class OperationsGetAsyncCollectionResult : AsyncPageable - { - private readonly Operations _client; - private readonly RequestContext _context; - - /// Initializes a new instance of OperationsGetAsyncCollectionResult, which is used to iterate over the pages of a collection. - /// The Operations client used to send requests. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - public OperationsGetAsyncCollectionResult(Operations client, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _context = context; - } - - /// Gets the pages of OperationsGetAsyncCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of OperationsGetAsyncCollectionResult as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - OperationListResult responseWithType = OperationListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _context) : _client.CreateGetRequest(_context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Operations.Get"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetAsyncCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetAsyncCollectionResultOfT.cs deleted file mode 100644 index bda7cfbf4d0b..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class OperationsGetAsyncCollectionResultOfT : AsyncPageable - { - private readonly Operations _client; - private readonly RequestContext _context; - - /// Initializes a new instance of OperationsGetAsyncCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The Operations client used to send requests. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - public OperationsGetAsyncCollectionResultOfT(Operations client, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _context = context; - } - - /// Gets the pages of OperationsGetAsyncCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of OperationsGetAsyncCollectionResultOfT as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - OperationListResult responseWithType = OperationListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _context) : _client.CreateGetRequest(_context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Operations.Get"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetCollectionResult.cs deleted file mode 100644 index a50d741ef6f0..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetCollectionResult.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class OperationsGetCollectionResult : Pageable - { - private readonly Operations _client; - private readonly RequestContext _context; - - /// Initializes a new instance of OperationsGetCollectionResult, which is used to iterate over the pages of a collection. - /// The Operations client used to send requests. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - public OperationsGetCollectionResult(Operations client, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _context = context; - } - - /// Gets the pages of OperationsGetCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of OperationsGetCollectionResult as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - OperationListResult responseWithType = OperationListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _context) : _client.CreateGetRequest(_context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Operations.Get"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetCollectionResultOfT.cs deleted file mode 100644 index 6ad1957b1b5e..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/OperationsGetCollectionResultOfT.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class OperationsGetCollectionResultOfT : Pageable - { - private readonly Operations _client; - private readonly RequestContext _context; - - /// Initializes a new instance of OperationsGetCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The Operations client used to send requests. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - public OperationsGetCollectionResultOfT(Operations client, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _context = context; - } - - /// Gets the pages of OperationsGetCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of OperationsGetCollectionResultOfT as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - OperationListResult responseWithType = OperationListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _context) : _client.CreateGetRequest(_context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Operations.Get"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResult.cs deleted file mode 100644 index 485969e2aff2..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResult.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResult : AsyncPageable - { - private readonly PrivateLinks _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly RequestContext _context; - - /// Initializes a new instance of PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResult, which is used to iterate over the pages of a collection. - /// The PrivateLinks client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. - public PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResult(PrivateLinks client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _context = context; - } - - /// Gets the pages of PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResult as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - PrivateLinkListResult responseWithType = PrivateLinkListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetAllPrivateLinkResourcesRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetAllPrivateLinkResourcesRequest(_subscriptionId, _resourceGroupName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("PrivateLinks.GetAllPrivateLinkResources"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResultOfT.cs deleted file mode 100644 index d39a7935f640..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResultOfT : AsyncPageable - { - private readonly PrivateLinks _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly RequestContext _context; - - /// Initializes a new instance of PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The PrivateLinks client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. - public PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResultOfT(PrivateLinks client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _context = context; - } - - /// Gets the pages of PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of PrivateLinksGetAllPrivateLinkResourcesAsyncCollectionResultOfT as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - PrivateLinkListResult responseWithType = PrivateLinkListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetAllPrivateLinkResourcesRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetAllPrivateLinkResourcesRequest(_subscriptionId, _resourceGroupName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("PrivateLinks.GetAllPrivateLinkResources"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesCollectionResult.cs deleted file mode 100644 index eda6cb4ea22f..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesCollectionResult.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class PrivateLinksGetAllPrivateLinkResourcesCollectionResult : Pageable - { - private readonly PrivateLinks _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly RequestContext _context; - - /// Initializes a new instance of PrivateLinksGetAllPrivateLinkResourcesCollectionResult, which is used to iterate over the pages of a collection. - /// The PrivateLinks client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. - public PrivateLinksGetAllPrivateLinkResourcesCollectionResult(PrivateLinks client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _context = context; - } - - /// Gets the pages of PrivateLinksGetAllPrivateLinkResourcesCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of PrivateLinksGetAllPrivateLinkResourcesCollectionResult as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - PrivateLinkListResult responseWithType = PrivateLinkListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetAllPrivateLinkResourcesRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetAllPrivateLinkResourcesRequest(_subscriptionId, _resourceGroupName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("PrivateLinks.GetAllPrivateLinkResources"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesCollectionResultOfT.cs deleted file mode 100644 index b83dc4ffe516..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PrivateLinksGetAllPrivateLinkResourcesCollectionResultOfT.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class PrivateLinksGetAllPrivateLinkResourcesCollectionResultOfT : Pageable - { - private readonly PrivateLinks _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly RequestContext _context; - - /// Initializes a new instance of PrivateLinksGetAllPrivateLinkResourcesCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The PrivateLinks client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. - public PrivateLinksGetAllPrivateLinkResourcesCollectionResultOfT(PrivateLinks client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _context = context; - } - - /// Gets the pages of PrivateLinksGetAllPrivateLinkResourcesCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of PrivateLinksGetAllPrivateLinkResourcesCollectionResultOfT as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - PrivateLinkListResult responseWithType = PrivateLinkListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetAllPrivateLinkResourcesRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetAllPrivateLinkResourcesRequest(_subscriptionId, _resourceGroupName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("PrivateLinks.GetAllPrivateLinkResources"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/BarsRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/BarsRestOperations.cs index 919db8a488fd..6b28962221b7 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/BarsRestOperations.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/BarsRestOperations.cs @@ -102,7 +102,6 @@ internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGro uri.AppendPath(barName, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - request.Headers.SetValue("Accept", "application/json"); return message; } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/FooSettingsOperationsRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/FooSettingsOperationsRestOperations.cs index 529129794c15..00b80ecf5329 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/FooSettingsOperationsRestOperations.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/FooSettingsOperationsRestOperations.cs @@ -113,7 +113,6 @@ internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGro uri.AppendPath("/providers/MgmtTypeSpec/FooSettings/default", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - request.Headers.SetValue("Accept", "application/json"); return message; } } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/FoosRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/FoosRestOperations.cs index 7925c1a6ad3a..f8185e1f1a50 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/FoosRestOperations.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/FoosRestOperations.cs @@ -96,7 +96,6 @@ internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGro uri.AppendPath(fooName, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - request.Headers.SetValue("Accept", "application/json"); return message; } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/OperationsRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/OperationsRestOperations.cs deleted file mode 100644 index 4f43b8013a8b..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/OperationsRestOperations.cs +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace MgmtTypeSpec -{ - internal partial class Operations - { - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of Operations for mocking. - protected Operations() - { - } - - /// Initializes a new instance of Operations. - /// The ClientDiagnostics is used to provide tracing support for the client library. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// Service endpoint. - /// - internal Operations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _endpoint = endpoint; - Pipeline = pipeline; - _apiVersion = apiVersion; - } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - internal HttpMessage CreateGetRequest(RequestContext context) - { - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Method = RequestMethod.Get; - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/MgmtTypeSpec/operations", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetRequest(Uri nextPage, RequestContext context) - { - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Method = RequestMethod.Get; - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(nextPage); - request.Uri = uri; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/PrivateLinksRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/PrivateLinksRestOperations.cs deleted file mode 100644 index c71b5d3d610b..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/PrivateLinksRestOperations.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace MgmtTypeSpec -{ - internal partial class PrivateLinks - { - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of PrivateLinks for mocking. - protected PrivateLinks() - { - } - - /// Initializes a new instance of PrivateLinks. - /// The ClientDiagnostics is used to provide tracing support for the client library. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// Service endpoint. - /// - internal PrivateLinks(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _endpoint = endpoint; - Pipeline = pipeline; - _apiVersion = apiVersion; - } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - internal HttpMessage CreateGetAllPrivateLinkResourcesRequest(Guid subscriptionId, string resourceGroupName, RequestContext context) - { - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Method = RequestMethod.Get; - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/MgmtTypeSpec/privateLinkResources", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateNextGetAllPrivateLinkResourcesRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, RequestContext context) - { - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Method = RequestMethod.Get; - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(nextPage); - request.Uri = uri; - request.Headers.SetValue("Accept", "application/json"); - return message; - } - - internal HttpMessage CreateStartRequest(Guid subscriptionId, string resourceGroupName, string privateLinkResourceName, RequestContent content, RequestContext context) - { - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Method = RequestMethod.Post; - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId.ToString(), true); - uri.AppendPath("/resourceGroups/", false); - uri.AppendPath(resourceGroupName, true); - uri.AppendPath("/providers/MgmtTypeSpec/privateLinkResources/", false); - uri.AppendPath(privateLinkResourceName, true); - uri.AppendPath("/start", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - if ("application/json" != null) - { - request.Headers.SetValue("Content-Type", "application/json"); - } - request.Headers.SetValue("Accept", "application/json"); - request.Content = content; - return message; - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/ZoosRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/ZoosRestOperations.cs index 930bfe56c071..6c268ccce8c2 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/ZoosRestOperations.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/ZoosRestOperations.cs @@ -96,7 +96,6 @@ internal HttpMessage CreateDeleteRequest(Guid subscriptionId, string resourceGro uri.AppendPath(zooName, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; - request.Headers.SetValue("Accept", "application/json"); return message; } @@ -202,17 +201,5 @@ internal HttpMessage CreateZooAddressListRequest(Guid subscriptionId, string res request.Headers.SetValue("Accept", "application/json"); return message; } - - internal HttpMessage CreateNextZooAddressListRequest(Uri nextPage, Guid subscriptionId, string resourceGroupName, string zooName, int? maxpagesize, RequestContext context) - { - HttpMessage message = Pipeline.CreateMessage(); - Request request = message.Request; - request.Method = RequestMethod.Get; - RawRequestUriBuilder uri = new RawRequestUriBuilder(); - uri.Reset(nextPage); - request.Uri = uri; - request.Headers.SetValue("Accept", "application/json"); - return message; - } } } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZooResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZooResource.cs index a33d80b56d36..cceadd7a541c 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZooResource.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZooResource.cs @@ -15,7 +15,6 @@ using Azure.Core.Pipeline; using Azure.ResourceManager; using Azure.ResourceManager.Resources; -using Azure.ResourceManager.Resources.Models; using MgmtTypeSpec.Models; namespace MgmtTypeSpec @@ -293,39 +292,59 @@ public virtual ArmOperation Update(WaitUntil waitUntil, ZooPatch pa /// A synchronous resource action. /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable ZooAddressListAsync(int? maxpagesize = default, CancellationToken cancellationToken = default) + public virtual async Task> ZooAddressListAsync(int? maxpagesize = default, CancellationToken cancellationToken = default) { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new ZoosZooAddressListAsyncCollectionResultOfT( - _zoosRestClient, - Guid.Parse(Id.SubscriptionId), - Id.ResourceGroupName, - Id.Name, - maxpagesize, - context); + using DiagnosticScope scope = _zoosClientDiagnostics.CreateScope("ZooResource.ZooAddressList"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _zoosRestClient.CreateZooAddressListRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, maxpagesize, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(ZooAddressListListResult.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// A synchronous resource action. /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable ZooAddressList(int? maxpagesize = default, CancellationToken cancellationToken = default) + public virtual Response ZooAddressList(int? maxpagesize = default, CancellationToken cancellationToken = default) { - RequestContext context = new RequestContext - { - CancellationToken = cancellationToken - }; - return new ZoosZooAddressListCollectionResultOfT( - _zoosRestClient, - Guid.Parse(Id.SubscriptionId), - Id.ResourceGroupName, - Id.Name, - maxpagesize, - context); + using DiagnosticScope scope = _zoosClientDiagnostics.CreateScope("ZooResource.ZooAddressList"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _zoosRestClient.CreateZooAddressListRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, maxpagesize, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(ZooAddressListListResult.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// A synchronous resource action. diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetAsyncCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetAsyncCollectionResult.cs deleted file mode 100644 index 720d3fe91e77..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetAsyncCollectionResult.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class ZoosGetAsyncCollectionResult : AsyncPageable - { - private readonly Zoos _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly RequestContext _context; - - /// Initializes a new instance of ZoosGetAsyncCollectionResult, which is used to iterate over the pages of a collection. - /// The Zoos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. - public ZoosGetAsyncCollectionResult(Zoos client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _context = context; - } - - /// Gets the pages of ZoosGetAsyncCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ZoosGetAsyncCollectionResult as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - ZooListResult responseWithType = ZooListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetRequest(_subscriptionId, _resourceGroupName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Zoos.Get"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetAsyncCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetAsyncCollectionResultOfT.cs index a32a7cbc140a..463e39a6ce6c 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetAsyncCollectionResultOfT.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetAsyncCollectionResultOfT.cs @@ -46,24 +46,26 @@ public ZoosGetAsyncCollectionResultOfT(Zoos client, Guid subscriptionId, string public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do + while (true) { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); + Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false); if (response is null) { yield break; } - ZooListResult responseWithType = ZooListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); + yield return Page.FromValues((IReadOnlyList)ZooListResult.FromResponse(response).Value, nextPage?.AbsoluteUri, response); + nextPage = ZooListResult.FromResponse(response).NextLink; + if (nextPage == null) + { + yield break; + } } - while (nextPage != null); } /// Get next page. /// The number of items per page. /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) + private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink) { HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetRequest(_subscriptionId, _resourceGroupName, _context); using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("ZooCollection.GetAll"); diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionAsyncCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionAsyncCollectionResult.cs deleted file mode 100644 index 113b37cb5ed1..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionAsyncCollectionResult.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class ZoosGetBySubscriptionAsyncCollectionResult : AsyncPageable - { - private readonly Zoos _client; - private readonly Guid _subscriptionId; - private readonly RequestContext _context; - - /// Initializes a new instance of ZoosGetBySubscriptionAsyncCollectionResult, which is used to iterate over the pages of a collection. - /// The Zoos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - public ZoosGetBySubscriptionAsyncCollectionResult(Zoos client, Guid subscriptionId, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _subscriptionId = subscriptionId; - _context = context; - } - - /// Gets the pages of ZoosGetBySubscriptionAsyncCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ZoosGetBySubscriptionAsyncCollectionResult as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - ZooListResult responseWithType = ZooListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetBySubscriptionRequest(nextLink, _subscriptionId, _context) : _client.CreateGetBySubscriptionRequest(_subscriptionId, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Zoos.GetBySubscription"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionAsyncCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionAsyncCollectionResultOfT.cs index 2c81cc6b0ead..99c02db362ef 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionAsyncCollectionResultOfT.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionAsyncCollectionResultOfT.cs @@ -39,24 +39,26 @@ public ZoosGetBySubscriptionAsyncCollectionResultOfT(Zoos client, Guid subscript public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do + while (true) { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); + Response response = await GetNextResponseAsync(pageSizeHint, nextPage).ConfigureAwait(false); if (response is null) { yield break; } - ZooListResult responseWithType = ZooListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); + yield return Page.FromValues((IReadOnlyList)ZooListResult.FromResponse(response).Value, nextPage?.AbsoluteUri, response); + nextPage = ZooListResult.FromResponse(response).NextLink; + if (nextPage == null) + { + yield break; + } } - while (nextPage != null); } /// Get next page. /// The number of items per page. /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) + private async ValueTask GetNextResponseAsync(int? pageSizeHint, Uri nextLink) { HttpMessage message = nextLink != null ? _client.CreateNextGetBySubscriptionRequest(nextLink, _subscriptionId, _context) : _client.CreateGetBySubscriptionRequest(_subscriptionId, _context); using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("MockableMgmtTypeSpecSubscriptionResource.GetBySubscription"); diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionCollectionResult.cs deleted file mode 100644 index bf9a2ac18d3c..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionCollectionResult.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class ZoosGetBySubscriptionCollectionResult : Pageable - { - private readonly Zoos _client; - private readonly Guid _subscriptionId; - private readonly RequestContext _context; - - /// Initializes a new instance of ZoosGetBySubscriptionCollectionResult, which is used to iterate over the pages of a collection. - /// The Zoos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - public ZoosGetBySubscriptionCollectionResult(Zoos client, Guid subscriptionId, RequestContext context) : base(context?.CancellationToken ?? default) - { - _client = client; - _subscriptionId = subscriptionId; - _context = context; - } - - /// Gets the pages of ZoosGetBySubscriptionCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ZoosGetBySubscriptionCollectionResult as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - ZooListResult responseWithType = ZooListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetBySubscriptionRequest(nextLink, _subscriptionId, _context) : _client.CreateGetBySubscriptionRequest(_subscriptionId, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Zoos.GetBySubscription"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionCollectionResultOfT.cs index b8aa6bc9972a..d5d911d843a6 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionCollectionResultOfT.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetBySubscriptionCollectionResultOfT.cs @@ -38,18 +38,20 @@ public ZoosGetBySubscriptionCollectionResultOfT(Zoos client, Guid subscriptionId public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do + while (true) { Response response = GetNextResponse(pageSizeHint, nextPage); if (response is null) { yield break; } - ZooListResult responseWithType = ZooListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); + yield return Page.FromValues((IReadOnlyList)ZooListResult.FromResponse(response).Value, nextPage?.AbsoluteUri, response); + nextPage = ZooListResult.FromResponse(response).NextLink; + if (nextPage == null) + { + yield break; + } } - while (nextPage != null); } /// Get next page. diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetCollectionResult.cs deleted file mode 100644 index e3d17a2fdbfe..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetCollectionResult.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class ZoosGetCollectionResult : Pageable - { - private readonly Zoos _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly RequestContext _context; - - /// Initializes a new instance of ZoosGetCollectionResult, which is used to iterate over the pages of a collection. - /// The Zoos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// is null. - /// is an empty string, and was expected to be non-empty. - public ZoosGetCollectionResult(Zoos client, Guid subscriptionId, string resourceGroupName, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _context = context; - } - - /// Gets the pages of ZoosGetCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ZoosGetCollectionResult as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - ZooListResult responseWithType = ZooListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextGetRequest(nextLink, _subscriptionId, _resourceGroupName, _context) : _client.CreateGetRequest(_subscriptionId, _resourceGroupName, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Zoos.Get"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetCollectionResultOfT.cs index 85468eb38adf..204427375053 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetCollectionResultOfT.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosGetCollectionResultOfT.cs @@ -45,18 +45,20 @@ public ZoosGetCollectionResultOfT(Zoos client, Guid subscriptionId, string resou public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) { Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do + while (true) { Response response = GetNextResponse(pageSizeHint, nextPage); if (response is null) { yield break; } - ZooListResult responseWithType = ZooListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); + yield return Page.FromValues((IReadOnlyList)ZooListResult.FromResponse(response).Value, nextPage?.AbsoluteUri, response); + nextPage = ZooListResult.FromResponse(response).NextLink; + if (nextPage == null) + { + yield break; + } } - while (nextPage != null); } /// Get next page. diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListAsyncCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListAsyncCollectionResult.cs deleted file mode 100644 index 6b7f8aaa7ec7..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListAsyncCollectionResult.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class ZoosZooAddressListAsyncCollectionResult : AsyncPageable - { - private readonly Zoos _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _zooName; - private readonly int? _maxpagesize; - private readonly RequestContext _context; - - /// Initializes a new instance of ZoosZooAddressListAsyncCollectionResult, which is used to iterate over the pages of a collection. - /// The Zoos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the Zoo. - /// - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public ZoosZooAddressListAsyncCollectionResult(Zoos client, Guid subscriptionId, string resourceGroupName, string zooName, int? maxpagesize, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(zooName, nameof(zooName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _zooName = zooName; - _maxpagesize = maxpagesize; - _context = context; - } - - /// Gets the pages of ZoosZooAddressListAsyncCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ZoosZooAddressListAsyncCollectionResult as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - ZooAddressListListResult responseWithType = ZooAddressListListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextZooAddressListRequest(nextLink, _subscriptionId, _resourceGroupName, _zooName, _maxpagesize, _context) : _client.CreateZooAddressListRequest(_subscriptionId, _resourceGroupName, _zooName, _maxpagesize, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Zoos.ZooAddressList"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListAsyncCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListAsyncCollectionResultOfT.cs deleted file mode 100644 index 409746c03eb5..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListAsyncCollectionResultOfT.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.Resources.Models; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class ZoosZooAddressListAsyncCollectionResultOfT : AsyncPageable - { - private readonly Zoos _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _zooName; - private readonly int? _maxpagesize; - private readonly RequestContext _context; - - /// Initializes a new instance of ZoosZooAddressListAsyncCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The Zoos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the Zoo. - /// - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public ZoosZooAddressListAsyncCollectionResultOfT(Zoos client, Guid subscriptionId, string resourceGroupName, string zooName, int? maxpagesize, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(zooName, nameof(zooName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _zooName = zooName; - _maxpagesize = maxpagesize; - _context = context; - } - - /// Gets the pages of ZoosZooAddressListAsyncCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ZoosZooAddressListAsyncCollectionResultOfT as an enumerable collection. - public override async IAsyncEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = await GetNextResponse(pageSizeHint, nextPage).ConfigureAwait(false); - if (response is null) - { - yield break; - } - ZooAddressListListResult responseWithType = ZooAddressListListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private async ValueTask GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextZooAddressListRequest(nextLink, _subscriptionId, _resourceGroupName, _zooName, _maxpagesize, _context) : _client.CreateZooAddressListRequest(_subscriptionId, _resourceGroupName, _zooName, _maxpagesize, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("ZooResource.ZooAddressList"); - scope.Start(); - try - { - return await _client.Pipeline.ProcessMessageAsync(message, _context).ConfigureAwait(false); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListCollectionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListCollectionResult.cs deleted file mode 100644 index 1e7e792a038e..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListCollectionResult.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class ZoosZooAddressListCollectionResult : Pageable - { - private readonly Zoos _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _zooName; - private readonly int? _maxpagesize; - private readonly RequestContext _context; - - /// Initializes a new instance of ZoosZooAddressListCollectionResult, which is used to iterate over the pages of a collection. - /// The Zoos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the Zoo. - /// - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public ZoosZooAddressListCollectionResult(Zoos client, Guid subscriptionId, string resourceGroupName, string zooName, int? maxpagesize, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(zooName, nameof(zooName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _zooName = zooName; - _maxpagesize = maxpagesize; - _context = context; - } - - /// Gets the pages of ZoosZooAddressListCollectionResult as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ZoosZooAddressListCollectionResult as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - ZooAddressListListResult responseWithType = ZooAddressListListResult.FromResponse(response); - List items = new List(); - foreach (var item in responseWithType.Value) - { - items.Add(BinaryData.FromObjectAsJson(item)); - } - nextPage = responseWithType.NextLink; - yield return Page.FromValues(items, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextZooAddressListRequest(nextLink, _subscriptionId, _resourceGroupName, _zooName, _maxpagesize, _context) : _client.CreateZooAddressListRequest(_subscriptionId, _resourceGroupName, _zooName, _maxpagesize, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("Zoos.ZooAddressList"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListCollectionResultOfT.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListCollectionResultOfT.cs deleted file mode 100644 index dc51fcdf9644..000000000000 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZoosZooAddressListCollectionResultOfT.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.Resources.Models; -using MgmtTypeSpec.Models; - -namespace MgmtTypeSpec -{ - internal partial class ZoosZooAddressListCollectionResultOfT : Pageable - { - private readonly Zoos _client; - private readonly Guid _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _zooName; - private readonly int? _maxpagesize; - private readonly RequestContext _context; - - /// Initializes a new instance of ZoosZooAddressListCollectionResultOfT, which is used to iterate over the pages of a collection. - /// The Zoos client used to send requests. - /// The ID of the target subscription. The value must be an UUID. - /// The name of the resource group. The name is case insensitive. - /// The name of the Zoo. - /// - /// The request options, which can override default behaviors of the client pipeline on a per-call basis. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - public ZoosZooAddressListCollectionResultOfT(Zoos client, Guid subscriptionId, string resourceGroupName, string zooName, int? maxpagesize, RequestContext context) : base(context?.CancellationToken ?? default) - { - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(zooName, nameof(zooName)); - - _client = client; - _subscriptionId = subscriptionId; - _resourceGroupName = resourceGroupName; - _zooName = zooName; - _maxpagesize = maxpagesize; - _context = context; - } - - /// Gets the pages of ZoosZooAddressListCollectionResultOfT as an enumerable collection. - /// A continuation token indicating where to resume paging. - /// The number of items per page. - /// The pages of ZoosZooAddressListCollectionResultOfT as an enumerable collection. - public override IEnumerable> AsPages(string continuationToken, int? pageSizeHint) - { - Uri nextPage = continuationToken != null ? new Uri(continuationToken) : null; - do - { - Response response = GetNextResponse(pageSizeHint, nextPage); - if (response is null) - { - yield break; - } - ZooAddressListListResult responseWithType = ZooAddressListListResult.FromResponse(response); - nextPage = responseWithType.NextLink; - yield return Page.FromValues((IReadOnlyList)responseWithType.Value, nextPage?.AbsoluteUri, response); - } - while (nextPage != null); - } - - /// Get next page. - /// The number of items per page. - /// The next link to use for the next page of results. - private Response GetNextResponse(int? pageSizeHint, Uri nextLink) - { - HttpMessage message = nextLink != null ? _client.CreateNextZooAddressListRequest(nextLink, _subscriptionId, _resourceGroupName, _zooName, _maxpagesize, _context) : _client.CreateZooAddressListRequest(_subscriptionId, _resourceGroupName, _zooName, _maxpagesize, _context); - using DiagnosticScope scope = _client.ClientDiagnostics.CreateScope("ZooResource.ZooAddressList"); - scope.Start(); - try - { - return _client.Pipeline.ProcessMessage(message, _context); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json index 8acb50a0d9a3..5d4e7cc7cc35 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json @@ -584,7 +584,7 @@ { "$id": "55", "kind": "constant", - "name": "deleteContentType", + "name": "updateContentType", "namespace": "", "usage": "None", "valueType": { @@ -600,7 +600,7 @@ { "$id": "57", "kind": "constant", - "name": "deleteContentType1", + "name": "updateContentType1", "namespace": "", "usage": "None", "valueType": { @@ -616,7 +616,7 @@ { "$id": "59", "kind": "constant", - "name": "updateContentType", + "name": "updateContentType2", "namespace": "", "usage": "None", "valueType": { @@ -632,7 +632,7 @@ { "$id": "61", "kind": "constant", - "name": "updateContentType1", + "name": "updateContentType3", "namespace": "", "usage": "None", "valueType": { @@ -648,7 +648,7 @@ { "$id": "63", "kind": "constant", - "name": "updateContentType2", + "name": "listContentType1", "namespace": "", "usage": "None", "valueType": { @@ -664,7 +664,7 @@ { "$id": "65", "kind": "constant", - "name": "updateContentType3", + "name": "getContentType1", "namespace": "", "usage": "None", "valueType": { @@ -680,7 +680,7 @@ { "$id": "67", "kind": "constant", - "name": "listContentType1", + "name": "createOrUpdateContentType4", "namespace": "", "usage": "None", "valueType": { @@ -696,7 +696,7 @@ { "$id": "69", "kind": "constant", - "name": "getContentType1", + "name": "createOrUpdateContentType5", "namespace": "", "usage": "None", "valueType": { @@ -712,7 +712,7 @@ { "$id": "71", "kind": "constant", - "name": "createOrUpdateContentType4", + "name": "updateContentType4", "namespace": "", "usage": "None", "valueType": { @@ -728,7 +728,7 @@ { "$id": "73", "kind": "constant", - "name": "createOrUpdateContentType5", + "name": "updateContentType5", "namespace": "", "usage": "None", "valueType": { @@ -744,7 +744,7 @@ { "$id": "75", "kind": "constant", - "name": "updateContentType4", + "name": "createOrUpdateContentType6", "namespace": "", "usage": "None", "valueType": { @@ -760,7 +760,7 @@ { "$id": "77", "kind": "constant", - "name": "updateContentType5", + "name": "createOrUpdateContentType7", "namespace": "", "usage": "None", "valueType": { @@ -776,7 +776,7 @@ { "$id": "79", "kind": "constant", - "name": "deleteContentType2", + "name": "createOrUpdateContentType8", "namespace": "", "usage": "None", "valueType": { @@ -792,7 +792,7 @@ { "$id": "81", "kind": "constant", - "name": "createOrUpdateContentType6", + "name": "createOrUpdateContentType9", "namespace": "", "usage": "None", "valueType": { @@ -808,7 +808,7 @@ { "$id": "83", "kind": "constant", - "name": "createOrUpdateContentType7", + "name": "getContentType2", "namespace": "", "usage": "None", "valueType": { @@ -824,7 +824,7 @@ { "$id": "85", "kind": "constant", - "name": "createOrUpdateContentType8", + "name": "updateContentType6", "namespace": "", "usage": "None", "valueType": { @@ -840,7 +840,7 @@ { "$id": "87", "kind": "constant", - "name": "createOrUpdateContentType9", + "name": "updateContentType7", "namespace": "", "usage": "None", "valueType": { @@ -856,7 +856,7 @@ { "$id": "89", "kind": "constant", - "name": "getContentType2", + "name": "updateContentType8", "namespace": "", "usage": "None", "valueType": { @@ -872,7 +872,7 @@ { "$id": "91", "kind": "constant", - "name": "deleteContentType3", + "name": "updateContentType9", "namespace": "", "usage": "None", "valueType": { @@ -888,7 +888,7 @@ { "$id": "93", "kind": "constant", - "name": "deleteContentType4", + "name": "listContentType2", "namespace": "", "usage": "None", "valueType": { @@ -904,7 +904,7 @@ { "$id": "95", "kind": "constant", - "name": "updateContentType6", + "name": "createOrUpdateContentType10", "namespace": "", "usage": "None", "valueType": { @@ -920,7 +920,7 @@ { "$id": "97", "kind": "constant", - "name": "updateContentType7", + "name": "createOrUpdateContentType11", "namespace": "", "usage": "None", "valueType": { @@ -936,7 +936,7 @@ { "$id": "99", "kind": "constant", - "name": "updateContentType8", + "name": "createOrUpdateContentType12", "namespace": "", "usage": "None", "valueType": { @@ -952,7 +952,7 @@ { "$id": "101", "kind": "constant", - "name": "updateContentType9", + "name": "createOrUpdateContentType13", "namespace": "", "usage": "None", "valueType": { @@ -968,7 +968,7 @@ { "$id": "103", "kind": "constant", - "name": "listContentType2", + "name": "getContentType3", "namespace": "", "usage": "None", "valueType": { @@ -984,7 +984,7 @@ { "$id": "105", "kind": "constant", - "name": "createOrUpdateContentType10", + "name": "createOrUpdateContentType14", "namespace": "", "usage": "None", "valueType": { @@ -1000,7 +1000,7 @@ { "$id": "107", "kind": "constant", - "name": "createOrUpdateContentType11", + "name": "createOrUpdateContentType15", "namespace": "", "usage": "None", "valueType": { @@ -1016,7 +1016,7 @@ { "$id": "109", "kind": "constant", - "name": "createOrUpdateContentType12", + "name": "createOrUpdateContentType16", "namespace": "", "usage": "None", "valueType": { @@ -1032,7 +1032,7 @@ { "$id": "111", "kind": "constant", - "name": "createOrUpdateContentType13", + "name": "createOrUpdateContentType17", "namespace": "", "usage": "None", "valueType": { @@ -1048,7 +1048,7 @@ { "$id": "113", "kind": "constant", - "name": "getContentType3", + "name": "getContentType4", "namespace": "", "usage": "None", "valueType": { @@ -1064,7 +1064,7 @@ { "$id": "115", "kind": "constant", - "name": "createOrUpdateContentType14", + "name": "updateContentType10", "namespace": "", "usage": "None", "valueType": { @@ -1080,7 +1080,7 @@ { "$id": "117", "kind": "constant", - "name": "createOrUpdateContentType15", + "name": "updateContentType11", "namespace": "", "usage": "None", "valueType": { @@ -1096,7 +1096,7 @@ { "$id": "119", "kind": "constant", - "name": "createOrUpdateContentType16", + "name": "updateContentType12", "namespace": "", "usage": "None", "valueType": { @@ -1112,7 +1112,7 @@ { "$id": "121", "kind": "constant", - "name": "createOrUpdateContentType17", + "name": "updateContentType13", "namespace": "", "usage": "None", "valueType": { @@ -1128,7 +1128,7 @@ { "$id": "123", "kind": "constant", - "name": "getContentType4", + "name": "listContentType3", "namespace": "", "usage": "None", "valueType": { @@ -1144,7 +1144,7 @@ { "$id": "125", "kind": "constant", - "name": "deleteContentType5", + "name": "listBySubscriptionContentType", "namespace": "", "usage": "None", "valueType": { @@ -1160,7 +1160,7 @@ { "$id": "127", "kind": "constant", - "name": "deleteContentType6", + "name": "zooAddressListContentType", "namespace": "", "usage": "None", "valueType": { @@ -1176,7 +1176,7 @@ { "$id": "129", "kind": "constant", - "name": "updateContentType10", + "name": "previewActionsContentType", "namespace": "", "usage": "None", "valueType": { @@ -1192,7 +1192,7 @@ { "$id": "131", "kind": "constant", - "name": "updateContentType11", + "name": "previewActionsContentType1", "namespace": "", "usage": "None", "valueType": { @@ -1208,123 +1208,11 @@ { "$id": "133", "kind": "constant", - "name": "updateContentType12", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "135", - "kind": "constant", - "name": "updateContentType13", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "137", - "kind": "constant", - "name": "listContentType3", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "139", - "kind": "constant", - "name": "listBySubscriptionContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "141", - "kind": "constant", - "name": "zooAddressListContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "143", - "kind": "constant", - "name": "previewActionsContentType", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "145", - "kind": "constant", - "name": "previewActionsContentType1", - "namespace": "", - "usage": "None", - "valueType": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - { - "$id": "147", - "kind": "constant", "name": "recommendContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "148", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1336,7 +1224,7 @@ ], "models": [ { - "$id": "149", + "$id": "135", "kind": "model", "name": "OperationListResult", "namespace": "MgmtTypeSpec", @@ -1346,17 +1234,17 @@ "decorators": [], "properties": [ { - "$id": "150", + "$id": "136", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Operation items on this page", "type": { - "$id": "151", + "$id": "137", "kind": "array", "name": "ArrayOperation", "valueType": { - "$id": "152", + "$id": "138", "kind": "model", "name": "Operation", "namespace": "MgmtTypeSpec", @@ -1367,13 +1255,13 @@ "decorators": [], "properties": [ { - "$id": "153", + "$id": "139", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"", "type": { - "$id": "154", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1389,16 +1277,17 @@ "json": { "name": "name" } - } + }, + "isHttpMetadata": false }, { - "$id": "155", + "$id": "141", "kind": "property", "name": "isDataAction", "serializedName": "isDataAction", "doc": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations.", "type": { - "$id": "156", + "$id": "142", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1414,16 +1303,17 @@ "json": { "name": "isDataAction" } - } + }, + "isHttpMetadata": false }, { - "$id": "157", + "$id": "143", "kind": "property", "name": "display", "serializedName": "display", "doc": "Localized display information for this particular operation.", "type": { - "$id": "158", + "$id": "144", "kind": "model", "name": "OperationDisplay", "namespace": "MgmtTypeSpec", @@ -1433,13 +1323,13 @@ "decorators": [], "properties": [ { - "$id": "159", + "$id": "145", "kind": "property", "name": "provider", "serializedName": "provider", "doc": "The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".", "type": { - "$id": "160", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1455,16 +1345,17 @@ "json": { "name": "provider" } - } + }, + "isHttpMetadata": false }, { - "$id": "161", + "$id": "147", "kind": "property", "name": "resource", "serializedName": "resource", "doc": "The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".", "type": { - "$id": "162", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1480,16 +1371,17 @@ "json": { "name": "resource" } - } + }, + "isHttpMetadata": false }, { - "$id": "163", + "$id": "149", "kind": "property", "name": "operation", "serializedName": "operation", "doc": "The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".", "type": { - "$id": "164", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1505,16 +1397,17 @@ "json": { "name": "operation" } - } + }, + "isHttpMetadata": false }, { - "$id": "165", + "$id": "151", "kind": "property", "name": "description", "serializedName": "description", "doc": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.", "type": { - "$id": "166", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1530,7 +1423,8 @@ "json": { "name": "description" } - } + }, + "isHttpMetadata": false } ] }, @@ -1544,10 +1438,11 @@ "json": { "name": "display" } - } + }, + "isHttpMetadata": false }, { - "$id": "167", + "$id": "153", "kind": "property", "name": "origin", "serializedName": "origin", @@ -1565,10 +1460,11 @@ "json": { "name": "origin" } - } + }, + "isHttpMetadata": false }, { - "$id": "168", + "$id": "154", "kind": "property", "name": "actionType", "serializedName": "actionType", @@ -1586,7 +1482,8 @@ "json": { "name": "actionType" } - } + }, + "isHttpMetadata": false } ] }, @@ -1603,21 +1500,22 @@ "json": { "name": "value" } - } + }, + "isHttpMetadata": false }, { - "$id": "169", + "$id": "155", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "170", + "$id": "156", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "171", + "$id": "157", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1635,18 +1533,19 @@ "json": { "name": "nextLink" } - } + }, + "isHttpMetadata": false } ] }, { - "$ref": "152" + "$ref": "138" }, { - "$ref": "158" + "$ref": "144" }, { - "$id": "172", + "$id": "158", "kind": "model", "name": "ErrorResponse", "namespace": "MgmtTypeSpec", @@ -1657,13 +1556,13 @@ "decorators": [], "properties": [ { - "$id": "173", + "$id": "159", "kind": "property", "name": "error", "serializedName": "error", "doc": "The error object.", "type": { - "$id": "174", + "$id": "160", "kind": "model", "name": "ErrorDetail", "namespace": "MgmtTypeSpec", @@ -1673,13 +1572,13 @@ "decorators": [], "properties": [ { - "$id": "175", + "$id": "161", "kind": "property", "name": "code", "serializedName": "code", "doc": "The error code.", "type": { - "$id": "176", + "$id": "162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1695,16 +1594,17 @@ "json": { "name": "code" } - } + }, + "isHttpMetadata": false }, { - "$id": "177", + "$id": "163", "kind": "property", "name": "message", "serializedName": "message", "doc": "The error message.", "type": { - "$id": "178", + "$id": "164", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1720,16 +1620,17 @@ "json": { "name": "message" } - } + }, + "isHttpMetadata": false }, { - "$id": "179", + "$id": "165", "kind": "property", "name": "target", "serializedName": "target", "doc": "The error target.", "type": { - "$id": "180", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1745,20 +1646,21 @@ "json": { "name": "target" } - } + }, + "isHttpMetadata": false }, { - "$id": "181", + "$id": "167", "kind": "property", "name": "details", "serializedName": "details", "doc": "The error details.", "type": { - "$id": "182", + "$id": "168", "kind": "array", "name": "ArrayErrorDetail", "valueType": { - "$ref": "174" + "$ref": "160" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -1773,20 +1675,21 @@ "json": { "name": "details" } - } + }, + "isHttpMetadata": false }, { - "$id": "183", + "$id": "169", "kind": "property", "name": "additionalInfo", "serializedName": "additionalInfo", "doc": "The error additional info.", "type": { - "$id": "184", + "$id": "170", "kind": "array", "name": "ArrayErrorAdditionalInfo", "valueType": { - "$id": "185", + "$id": "171", "kind": "model", "name": "ErrorAdditionalInfo", "namespace": "MgmtTypeSpec", @@ -1796,13 +1699,13 @@ "decorators": [], "properties": [ { - "$id": "186", + "$id": "172", "kind": "property", "name": "type", "serializedName": "type", "doc": "The additional info type.", "type": { - "$id": "187", + "$id": "173", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1818,16 +1721,17 @@ "json": { "name": "type" } - } + }, + "isHttpMetadata": false }, { - "$id": "188", + "$id": "174", "kind": "property", "name": "info", "serializedName": "info", "doc": "The additional info.", "type": { - "$id": "189", + "$id": "175", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1843,7 +1747,8 @@ "json": { "name": "info" } - } + }, + "isHttpMetadata": false } ] }, @@ -1860,7 +1765,8 @@ "json": { "name": "additionalInfo" } - } + }, + "isHttpMetadata": false } ] }, @@ -1874,18 +1780,19 @@ "json": { "name": "error" } - } + }, + "isHttpMetadata": false } ] }, { - "$ref": "174" + "$ref": "160" }, { - "$ref": "185" + "$ref": "171" }, { - "$id": "190", + "$id": "176", "kind": "model", "name": "PrivateLinkListResult", "namespace": "MgmtTypeSpec", @@ -1895,17 +1802,17 @@ "decorators": [], "properties": [ { - "$id": "191", + "$id": "177", "kind": "property", "name": "value", "serializedName": "value", "doc": "The PrivateLink items on this page", "type": { - "$id": "192", + "$id": "178", "kind": "array", "name": "ArrayPrivateLink", "valueType": { - "$id": "193", + "$id": "179", "kind": "model", "name": "PrivateLink", "namespace": "MgmtTypeSpec", @@ -1919,7 +1826,7 @@ } ], "baseModel": { - "$id": "194", + "$id": "180", "kind": "model", "name": "ProxyResource", "namespace": "MgmtTypeSpec", @@ -1929,7 +1836,7 @@ "summary": "Proxy Resource", "decorators": [], "baseModel": { - "$id": "195", + "$id": "181", "kind": "model", "name": "Resource", "namespace": "MgmtTypeSpec", @@ -1940,18 +1847,18 @@ "decorators": [], "properties": [ { - "$id": "196", + "$id": "182", "kind": "property", "name": "id", "serializedName": "id", "doc": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", "type": { - "$id": "197", + "$id": "183", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "198", + "$id": "184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1969,16 +1876,17 @@ "json": { "name": "id" } - } + }, + "isHttpMetadata": false }, { - "$id": "199", + "$id": "185", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the resource", "type": { - "$id": "200", + "$id": "186", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1994,21 +1902,22 @@ "json": { "name": "name" } - } + }, + "isHttpMetadata": false }, { - "$id": "201", + "$id": "187", "kind": "property", "name": "type", "serializedName": "type", "doc": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"", "type": { - "$id": "202", + "$id": "188", "kind": "string", "name": "armResourceType", "crossLanguageDefinitionId": "Azure.Core.armResourceType", "baseType": { - "$id": "203", + "$id": "189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2026,16 +1935,17 @@ "json": { "name": "type" } - } + }, + "isHttpMetadata": false }, { - "$id": "204", + "$id": "190", "kind": "property", "name": "systemData", "serializedName": "systemData", "doc": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", "type": { - "$id": "205", + "$id": "191", "kind": "model", "name": "SystemData", "namespace": "MgmtTypeSpec", @@ -2045,13 +1955,13 @@ "decorators": [], "properties": [ { - "$id": "206", + "$id": "192", "kind": "property", "name": "createdBy", "serializedName": "createdBy", "doc": "The identity that created the resource.", "type": { - "$id": "207", + "$id": "193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2067,10 +1977,11 @@ "json": { "name": "createdBy" } - } + }, + "isHttpMetadata": false }, { - "$id": "208", + "$id": "194", "kind": "property", "name": "createdByType", "serializedName": "createdByType", @@ -2088,21 +1999,22 @@ "json": { "name": "createdByType" } - } + }, + "isHttpMetadata": false }, { - "$id": "209", + "$id": "195", "kind": "property", "name": "createdAt", "serializedName": "createdAt", "doc": "The timestamp of resource creation (UTC).", "type": { - "$id": "210", + "$id": "196", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "211", + "$id": "197", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2121,16 +2033,17 @@ "json": { "name": "createdAt" } - } + }, + "isHttpMetadata": false }, { - "$id": "212", + "$id": "198", "kind": "property", "name": "lastModifiedBy", "serializedName": "lastModifiedBy", "doc": "The identity that last modified the resource.", "type": { - "$id": "213", + "$id": "199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2146,10 +2059,11 @@ "json": { "name": "lastModifiedBy" } - } + }, + "isHttpMetadata": false }, { - "$id": "214", + "$id": "200", "kind": "property", "name": "lastModifiedByType", "serializedName": "lastModifiedByType", @@ -2167,21 +2081,22 @@ "json": { "name": "lastModifiedByType" } - } + }, + "isHttpMetadata": false }, { - "$id": "215", + "$id": "201", "kind": "property", "name": "lastModifiedAt", "serializedName": "lastModifiedAt", "doc": "The timestamp of resource last modification (UTC)", "type": { - "$id": "216", + "$id": "202", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "217", + "$id": "203", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2200,7 +2115,8 @@ "json": { "name": "lastModifiedAt" } - } + }, + "isHttpMetadata": false } ] }, @@ -2214,7 +2130,8 @@ "json": { "name": "systemData" } - } + }, + "isHttpMetadata": false } ] }, @@ -2222,13 +2139,13 @@ }, "properties": [ { - "$id": "218", + "$id": "204", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "219", + "$id": "205", "kind": "model", "name": "PrivateLinkResourceProperties", "namespace": "MgmtTypeSpec", @@ -2238,13 +2155,13 @@ "decorators": [], "properties": [ { - "$id": "220", + "$id": "206", "kind": "property", "name": "groupId", "serializedName": "groupId", "doc": "The private link resource group id.", "type": { - "$id": "221", + "$id": "207", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2260,20 +2177,21 @@ "json": { "name": "groupId" } - } + }, + "isHttpMetadata": false }, { - "$id": "222", + "$id": "208", "kind": "property", "name": "requiredMembers", "serializedName": "requiredMembers", "doc": "The private link resource required member names.", "type": { - "$id": "223", + "$id": "209", "kind": "array", "name": "Array", "valueType": { - "$id": "224", + "$id": "210", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2292,16 +2210,17 @@ "json": { "name": "requiredMembers" } - } + }, + "isHttpMetadata": false }, { - "$id": "225", + "$id": "211", "kind": "property", "name": "requiredZoneNames", "serializedName": "requiredZoneNames", "doc": "The private link resource private link DNS zone name.", "type": { - "$ref": "223" + "$ref": "209" }, "optional": true, "readOnly": false, @@ -2313,7 +2232,8 @@ "json": { "name": "requiredZoneNames" } - } + }, + "isHttpMetadata": false } ] }, @@ -2327,16 +2247,17 @@ "json": { "name": "properties" } - } + }, + "isHttpMetadata": false }, { - "$id": "226", - "kind": "path", + "$id": "212", + "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "227", + "$id": "213", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2344,21 +2265,25 @@ }, "optional": false, "readOnly": true, + "discriminator": false, + "flatten": false, "decorators": [], "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLink.name", - "explode": false, - "style": "simple", - "allowReserved": false, - "correspondingMethodParams": [] + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true }, { - "$id": "228", + "$id": "214", "kind": "property", "name": "identity", "serializedName": "identity", "doc": "The managed service identities assigned to this resource.", "type": { - "$id": "229", + "$id": "215", "kind": "model", "name": "ManagedServiceIdentity", "namespace": "MgmtTypeSpec", @@ -2368,18 +2293,18 @@ "decorators": [], "properties": [ { - "$id": "230", + "$id": "216", "kind": "property", "name": "principalId", "serializedName": "principalId", "doc": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", "type": { - "$id": "231", + "$id": "217", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "232", + "$id": "218", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2397,21 +2322,22 @@ "json": { "name": "principalId" } - } + }, + "isHttpMetadata": false }, { - "$id": "233", + "$id": "219", "kind": "property", "name": "tenantId", "serializedName": "tenantId", "doc": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", "type": { - "$id": "234", + "$id": "220", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "235", + "$id": "221", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2429,10 +2355,11 @@ "json": { "name": "tenantId" } - } + }, + "isHttpMetadata": false }, { - "$id": "236", + "$id": "222", "kind": "property", "name": "type", "serializedName": "type", @@ -2450,29 +2377,30 @@ "json": { "name": "type" } - } + }, + "isHttpMetadata": false }, { - "$id": "237", + "$id": "223", "kind": "property", "name": "userAssignedIdentities", "serializedName": "userAssignedIdentities", "doc": "The identities assigned to this resource by the user.", "type": { - "$id": "238", + "$id": "224", "kind": "dict", "keyType": { - "$id": "239", + "$id": "225", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "240", + "$id": "226", "kind": "nullable", "type": { - "$id": "241", + "$id": "227", "kind": "model", "name": "UserAssignedIdentity", "namespace": "MgmtTypeSpec", @@ -2482,18 +2410,18 @@ "decorators": [], "properties": [ { - "$id": "242", + "$id": "228", "kind": "property", "name": "principalId", "serializedName": "principalId", "doc": "The principal ID of the assigned identity.", "type": { - "$id": "243", + "$id": "229", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "244", + "$id": "230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2511,21 +2439,22 @@ "json": { "name": "principalId" } - } + }, + "isHttpMetadata": false }, { - "$id": "245", + "$id": "231", "kind": "property", "name": "clientId", "serializedName": "clientId", "doc": "The client ID of the assigned identity.", "type": { - "$id": "246", + "$id": "232", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "247", + "$id": "233", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2543,11 +2472,12 @@ "json": { "name": "clientId" } - } + }, + "isHttpMetadata": false } ] }, - "namespace": "" + "namespace": "MgmtTypeSpec" }, "decorators": [] }, @@ -2561,7 +2491,8 @@ "json": { "name": "userAssignedIdentities" } - } + }, + "isHttpMetadata": false } ] }, @@ -2575,7 +2506,8 @@ "json": { "name": "identity" } - } + }, + "isHttpMetadata": false } ] }, @@ -2592,21 +2524,22 @@ "json": { "name": "value" } - } + }, + "isHttpMetadata": false }, { - "$id": "248", + "$id": "234", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "249", + "$id": "235", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "250", + "$id": "236", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -2624,80 +2557,100 @@ "json": { "name": "nextLink" } - } + }, + "isHttpMetadata": false } ] }, { - "$ref": "193" + "$ref": "179" }, { - "$ref": "219" + "$ref": "205" }, { - "$ref": "229" + "$ref": "215" }, { - "$ref": "241" + "$ref": "227" }, { - "$ref": "194" + "$ref": "180" }, { - "$ref": "195" + "$ref": "181" }, { - "$ref": "205" + "$ref": "191" }, { - "$id": "251", + "$id": "237", "kind": "model", "name": "StartParameterBody", "namespace": "MgmtTypeSpec", "crossLanguageDefinitionId": "MgmtTypeSpec.start.Parameter.body.anonymous", "usage": "Input", "decorators": [], - "properties": [] - }, - { - "$id": "252", - "kind": "model", - "name": "StartRequest", - "namespace": "MgmtTypeSpec", - "crossLanguageDefinitionId": "MgmtTypeSpec.StartRequest", - "usage": "Input,Json", - "doc": "Start SAP instance(s) request body.", - "decorators": [], "properties": [ { - "$id": "253", + "$id": "238", "kind": "property", - "name": "startVm", - "serializedName": "startVm", - "doc": "The boolean value indicates whether to start the virtual machines before starting the SAP instances.", + "name": "body", + "doc": "SAP Application server instance start request body.", "type": { - "$id": "254", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "$id": "239", + "kind": "model", + "name": "StartRequest", + "namespace": "MgmtTypeSpec", + "crossLanguageDefinitionId": "MgmtTypeSpec.StartRequest", + "usage": "Input,Json", + "doc": "Start SAP instance(s) request body.", + "decorators": [], + "properties": [ + { + "$id": "240", + "kind": "property", + "name": "startVm", + "serializedName": "startVm", + "doc": "The boolean value indicates whether to start the virtual machines before starting the SAP instances.", + "type": { + "$id": "241", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.StartRequest.startVm", + "serializationOptions": { + "json": { + "name": "startVm" + } + }, + "isHttpMetadata": false + } + ] }, "optional": true, "readOnly": false, "discriminator": false, "flatten": false, "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.StartRequest.startVm", - "serializationOptions": { - "json": { - "name": "startVm" - } - } + "crossLanguageDefinitionId": "MgmtTypeSpec.start.Parameter.body.anonymous.body", + "serializationOptions": {}, + "isHttpMetadata": false } ] }, { - "$id": "255", + "$ref": "239" + }, + { + "$id": "242", "kind": "model", "name": "OperationStatusResult", "namespace": "MgmtTypeSpec", @@ -2707,18 +2660,18 @@ "decorators": [], "properties": [ { - "$id": "256", + "$id": "243", "kind": "property", "name": "id", "serializedName": "id", "doc": "Fully qualified ID for the async operation.", "type": { - "$id": "257", + "$id": "244", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "258", + "$id": "245", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2736,16 +2689,17 @@ "json": { "name": "id" } - } + }, + "isHttpMetadata": false }, { - "$id": "259", + "$id": "246", "kind": "property", "name": "name", "serializedName": "name", "doc": "Name of the async operation.", "type": { - "$id": "260", + "$id": "247", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2761,16 +2715,17 @@ "json": { "name": "name" } - } + }, + "isHttpMetadata": false }, { - "$id": "261", + "$id": "248", "kind": "property", "name": "status", "serializedName": "status", "doc": "Operation status.", "type": { - "$id": "262", + "$id": "249", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2786,16 +2741,17 @@ "json": { "name": "status" } - } + }, + "isHttpMetadata": false }, { - "$id": "263", + "$id": "250", "kind": "property", "name": "percentComplete", "serializedName": "percentComplete", "doc": "Percent of the operation that is complete.", "type": { - "$id": "264", + "$id": "251", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -2811,21 +2767,22 @@ "json": { "name": "percentComplete" } - } + }, + "isHttpMetadata": false }, { - "$id": "265", + "$id": "252", "kind": "property", "name": "startTime", "serializedName": "startTime", "doc": "The start time of the operation.", "type": { - "$id": "266", + "$id": "253", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "267", + "$id": "254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2844,21 +2801,22 @@ "json": { "name": "startTime" } - } + }, + "isHttpMetadata": false }, { - "$id": "268", + "$id": "255", "kind": "property", "name": "endTime", "serializedName": "endTime", "doc": "The end time of the operation.", "type": { - "$id": "269", + "$id": "256", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "270", + "$id": "257", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2877,20 +2835,21 @@ "json": { "name": "endTime" } - } + }, + "isHttpMetadata": false }, { - "$id": "271", + "$id": "258", "kind": "property", "name": "operations", "serializedName": "operations", "doc": "The operations list.", "type": { - "$id": "272", + "$id": "259", "kind": "array", "name": "ArrayOperationStatusResult", "valueType": { - "$ref": "255" + "$ref": "242" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2905,16 +2864,17 @@ "json": { "name": "operations" } - } + }, + "isHttpMetadata": false }, { - "$id": "273", + "$id": "260", "kind": "property", "name": "error", "serializedName": "error", "doc": "If present, details of the operation error.", "type": { - "$ref": "174" + "$ref": "160" }, "optional": true, "readOnly": false, @@ -2926,21 +2886,22 @@ "json": { "name": "error" } - } + }, + "isHttpMetadata": false }, { - "$id": "274", + "$id": "261", "kind": "property", "name": "resourceId", "serializedName": "resourceId", "doc": "Fully qualified ID of the resource against which the original async operation was started.", "type": { - "$id": "275", + "$id": "262", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "276", + "$id": "263", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2958,12 +2919,13 @@ "json": { "name": "resourceId" } - } + }, + "isHttpMetadata": false } ] }, { - "$id": "277", + "$id": "264", "kind": "model", "name": "ArmOperationStatusResourceProvisioningState", "namespace": "MgmtTypeSpec", @@ -2973,7 +2935,7 @@ "decorators": [], "properties": [ { - "$id": "278", + "$id": "265", "kind": "property", "name": "status", "serializedName": "status", @@ -2991,16 +2953,17 @@ "json": { "name": "status" } - } + }, + "isHttpMetadata": false }, { - "$id": "279", - "kind": "path", + "$id": "266", + "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique identifier for the operationStatus resource", "type": { - "$id": "280", + "$id": "267", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3008,21 +2971,25 @@ }, "optional": false, "readOnly": false, + "discriminator": false, + "flatten": false, "decorators": [], "crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.id", - "explode": false, - "style": "simple", - "allowReserved": false, - "correspondingMethodParams": [] + "serializationOptions": { + "json": { + "name": "id" + } + }, + "isHttpMetadata": true }, { - "$id": "281", + "$id": "268", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the operationStatus resource", "type": { - "$id": "282", + "$id": "269", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3038,21 +3005,22 @@ "json": { "name": "name" } - } + }, + "isHttpMetadata": false }, { - "$id": "283", + "$id": "270", "kind": "property", "name": "startTime", "serializedName": "startTime", "doc": "Operation start time", "type": { - "$id": "284", + "$id": "271", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "285", + "$id": "272", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3071,21 +3039,22 @@ "json": { "name": "startTime" } - } + }, + "isHttpMetadata": false }, { - "$id": "286", + "$id": "273", "kind": "property", "name": "endTime", "serializedName": "endTime", "doc": "Operation complete time", "type": { - "$id": "287", + "$id": "274", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "288", + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3104,16 +3073,17 @@ "json": { "name": "endTime" } - } + }, + "isHttpMetadata": false }, { - "$id": "289", + "$id": "276", "kind": "property", "name": "percentComplete", "serializedName": "percentComplete", "doc": "The progress made toward completing the operation", "type": { - "$id": "290", + "$id": "277", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -3129,16 +3099,17 @@ "json": { "name": "percentComplete" } - } + }, + "isHttpMetadata": false }, { - "$id": "291", + "$id": "278", "kind": "property", "name": "error", "serializedName": "error", "doc": "Errors that occurred if the operation ended with Canceled or Failed status", "type": { - "$ref": "174" + "$ref": "160" }, "optional": true, "readOnly": true, @@ -3150,12 +3121,13 @@ "json": { "name": "error" } - } + }, + "isHttpMetadata": false } ] }, { - "$id": "292", + "$id": "279", "kind": "model", "name": "Foo", "namespace": "MgmtTypeSpec", @@ -3174,7 +3146,7 @@ "resourceType": "MgmtTypeSpec/foos", "methods": [ { - "$id": "293", + "$id": "280", "methodId": "MgmtTypeSpec.Foos.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -3182,7 +3154,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "294", + "$id": "281", "methodId": "MgmtTypeSpec.Foos.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -3190,7 +3162,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "295", + "$id": "282", "methodId": "MgmtTypeSpec.Foos.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -3198,7 +3170,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "296", + "$id": "283", "methodId": "MgmtTypeSpec.Foos.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -3206,7 +3178,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "297", + "$id": "284", "methodId": "MgmtTypeSpec.Foos.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos", @@ -3219,7 +3191,7 @@ } ], "baseModel": { - "$id": "298", + "$id": "285", "kind": "model", "name": "TrackedResource", "namespace": "MgmtTypeSpec", @@ -3229,27 +3201,27 @@ "summary": "Tracked Resource", "decorators": [], "baseModel": { - "$ref": "195" + "$ref": "181" }, "properties": [ { - "$id": "299", + "$id": "286", "kind": "property", "name": "tags", "serializedName": "tags", "doc": "Resource tags.", "type": { - "$id": "300", + "$id": "287", "kind": "dict", "keyType": { - "$id": "301", + "$id": "288", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "302", + "$id": "289", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3267,16 +3239,17 @@ "json": { "name": "tags" } - } + }, + "isHttpMetadata": false }, { - "$id": "303", + "$id": "290", "kind": "property", "name": "location", "serializedName": "location", "doc": "The geo-location where the resource lives", "type": { - "$id": "304", + "$id": "291", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3292,19 +3265,20 @@ "json": { "name": "location" } - } + }, + "isHttpMetadata": false } ] }, "properties": [ { - "$id": "305", + "$id": "292", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "306", + "$id": "293", "kind": "model", "name": "FooProperties", "namespace": "MgmtTypeSpec", @@ -3320,13 +3294,13 @@ ], "properties": [ { - "$id": "307", + "$id": "294", "kind": "property", "name": "serviceUrl", "serializedName": "serviceUrl", "doc": "the service url", "type": { - "$id": "308", + "$id": "295", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3342,16 +3316,17 @@ "json": { "name": "serviceUrl" } - } + }, + "isHttpMetadata": false }, { - "$id": "309", + "$id": "296", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "310", + "$id": "297", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3367,16 +3342,17 @@ "json": { "name": "something" } - } + }, + "isHttpMetadata": false }, { - "$id": "311", + "$id": "298", "kind": "property", "name": "boolValue", "serializedName": "boolValue", "doc": "boolean value", "type": { - "$id": "312", + "$id": "299", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3392,16 +3368,17 @@ "json": { "name": "boolValue" } - } + }, + "isHttpMetadata": false }, { - "$id": "313", + "$id": "300", "kind": "property", "name": "floatValue", "serializedName": "floatValue", "doc": "float value", "type": { - "$id": "314", + "$id": "301", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -3417,16 +3394,17 @@ "json": { "name": "floatValue" } - } + }, + "isHttpMetadata": false }, { - "$id": "315", + "$id": "302", "kind": "property", "name": "doubleValue", "serializedName": "doubleValue", "doc": "double value", "type": { - "$id": "316", + "$id": "303", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -3442,7 +3420,8 @@ "json": { "name": "doubleValue" } - } + }, + "isHttpMetadata": false } ] }, @@ -3456,16 +3435,17 @@ "json": { "name": "properties" } - } + }, + "isHttpMetadata": false }, { - "$id": "317", - "kind": "path", + "$id": "304", + "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Foo", "type": { - "$id": "318", + "$id": "305", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3473,20 +3453,24 @@ }, "optional": false, "readOnly": true, + "discriminator": false, + "flatten": false, "decorators": [], "crossLanguageDefinitionId": "MgmtTypeSpec.Foo.name", - "explode": false, - "style": "simple", - "allowReserved": false, - "correspondingMethodParams": [] + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true }, { - "$id": "319", + "$id": "306", "kind": "property", "name": "extendedLocation", "serializedName": "extendedLocation", "type": { - "$id": "320", + "$id": "307", "kind": "model", "name": "ExtendedLocation", "namespace": "MgmtTypeSpec", @@ -3496,13 +3480,13 @@ "decorators": [], "properties": [ { - "$id": "321", + "$id": "308", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the extended location.", "type": { - "$id": "322", + "$id": "309", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3518,10 +3502,11 @@ "json": { "name": "name" } - } + }, + "isHttpMetadata": false }, { - "$id": "323", + "$id": "310", "kind": "property", "name": "type", "serializedName": "type", @@ -3539,7 +3524,8 @@ "json": { "name": "type" } - } + }, + "isHttpMetadata": false } ] }, @@ -3553,21 +3539,22 @@ "json": { "name": "extendedLocation" } - } + }, + "isHttpMetadata": false } ] }, { - "$ref": "306" + "$ref": "293" }, { - "$ref": "320" + "$ref": "307" }, { - "$ref": "298" + "$ref": "285" }, { - "$id": "324", + "$id": "311", "kind": "model", "name": "FooListResult", "namespace": "MgmtTypeSpec", @@ -3577,17 +3564,17 @@ "decorators": [], "properties": [ { - "$id": "325", + "$id": "312", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Foo items on this page", "type": { - "$id": "326", + "$id": "313", "kind": "array", "name": "ArrayFoo", "valueType": { - "$ref": "292" + "$ref": "279" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -3602,21 +3589,22 @@ "json": { "name": "value" } - } + }, + "isHttpMetadata": false }, { - "$id": "327", + "$id": "314", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "328", + "$id": "315", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "329", + "$id": "316", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3634,12 +3622,13 @@ "json": { "name": "nextLink" } - } + }, + "isHttpMetadata": false } ] }, { - "$id": "330", + "$id": "317", "kind": "model", "name": "FooSettings", "namespace": "MgmtTypeSpec", @@ -3662,7 +3651,7 @@ "resourceType": "MgmtTypeSpec/FooSettings", "methods": [ { - "$id": "331", + "$id": "318", "methodId": "MgmtTypeSpec.FooSettingsOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -3670,7 +3659,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "332", + "$id": "319", "methodId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -3678,7 +3667,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "333", + "$id": "320", "methodId": "MgmtTypeSpec.FooSettingsOperations.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -3686,7 +3675,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "334", + "$id": "321", "methodId": "MgmtTypeSpec.FooSettingsOperations.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -3701,17 +3690,17 @@ } ], "baseModel": { - "$ref": "194" + "$ref": "180" }, "properties": [ { - "$id": "335", + "$id": "322", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "336", + "$id": "323", "kind": "model", "name": "FooSettingsProperties", "namespace": "MgmtTypeSpec", @@ -3720,12 +3709,12 @@ "decorators": [], "properties": [ { - "$id": "337", + "$id": "324", "kind": "property", "name": "accessControlEnabled", "serializedName": "accessControlEnabled", "type": { - "$id": "338", + "$id": "325", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3741,10 +3730,11 @@ "json": { "name": "accessControlEnabled" } - } + }, + "isHttpMetadata": false }, { - "$id": "339", + "$id": "326", "kind": "property", "name": "provisioningState", "serializedName": "provisioningState", @@ -3761,15 +3751,16 @@ "json": { "name": "provisioningState" } - } + }, + "isHttpMetadata": false }, { - "$id": "340", + "$id": "327", "kind": "property", "name": "metaData", "serializedName": "metaData", "type": { - "$id": "341", + "$id": "328", "kind": "model", "name": "FooSettingsPropertiesMetaData", "namespace": "MgmtTypeSpec", @@ -3778,12 +3769,12 @@ "decorators": [], "properties": [ { - "$id": "342", + "$id": "329", "kind": "property", "name": "metaDatas", "serializedName": "metaDatas", "type": { - "$ref": "223" + "$ref": "209" }, "optional": true, "readOnly": false, @@ -3795,7 +3786,8 @@ "json": { "name": "metaDatas" } - } + }, + "isHttpMetadata": false } ] }, @@ -3809,7 +3801,8 @@ "json": { "name": "metaData" } - } + }, + "isHttpMetadata": false } ] }, @@ -3823,16 +3816,17 @@ "json": { "name": "properties" } - } + }, + "isHttpMetadata": false }, { - "$id": "343", - "kind": "path", + "$id": "330", + "kind": "property", "name": "name", "serializedName": "name", "doc": "The default Foo settings.", "type": { - "$id": "344", + "$id": "331", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3840,23 +3834,27 @@ }, "optional": false, "readOnly": true, + "discriminator": false, + "flatten": false, "decorators": [], "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettings.name", - "explode": false, - "style": "simple", - "allowReserved": false, - "correspondingMethodParams": [] + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true } ] }, { - "$ref": "336" + "$ref": "323" }, { - "$ref": "341" + "$ref": "328" }, { - "$id": "345", + "$id": "332", "kind": "model", "name": "FooSettingsUpdate", "namespace": "MgmtTypeSpec", @@ -3866,13 +3864,13 @@ "decorators": [], "properties": [ { - "$id": "346", + "$id": "333", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "347", + "$id": "334", "kind": "model", "name": "FooSettingsUpdateProperties", "namespace": "MgmtTypeSpec", @@ -3882,12 +3880,12 @@ "decorators": [], "properties": [ { - "$id": "348", + "$id": "335", "kind": "property", "name": "accessControlEnabled", "serializedName": "accessControlEnabled", "type": { - "$id": "349", + "$id": "336", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3903,7 +3901,8 @@ "json": { "name": "accessControlEnabled" } - } + }, + "isHttpMetadata": false } ] }, @@ -3917,15 +3916,16 @@ "json": { "name": "properties" } - } + }, + "isHttpMetadata": false } ] }, { - "$ref": "347" + "$ref": "334" }, { - "$id": "350", + "$id": "337", "kind": "model", "name": "Bar", "namespace": "MgmtTypeSpec", @@ -3948,7 +3948,7 @@ "resourceType": "MgmtTypeSpec/foos/bars", "methods": [ { - "$id": "351", + "$id": "338", "methodId": "MgmtTypeSpec.Bars.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -3956,7 +3956,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "352", + "$id": "339", "methodId": "MgmtTypeSpec.Bars.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -3964,7 +3964,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "353", + "$id": "340", "methodId": "MgmtTypeSpec.Bars.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -3972,7 +3972,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "354", + "$id": "341", "methodId": "MgmtTypeSpec.Bars.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -3980,7 +3980,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "355", + "$id": "342", "methodId": "MgmtTypeSpec.Bars.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars", @@ -3995,17 +3995,17 @@ } ], "baseModel": { - "$ref": "298" + "$ref": "285" }, "properties": [ { - "$id": "356", + "$id": "343", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "357", + "$id": "344", "kind": "model", "name": "BarProperties", "namespace": "MgmtTypeSpec", @@ -4014,13 +4014,13 @@ "decorators": [], "properties": [ { - "$id": "358", + "$id": "345", "kind": "property", "name": "serviceUrl", "serializedName": "serviceUrl", "doc": "the service url", "type": { - "$id": "359", + "$id": "346", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -4036,16 +4036,17 @@ "json": { "name": "serviceUrl" } - } + }, + "isHttpMetadata": false }, { - "$id": "360", + "$id": "347", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "361", + "$id": "348", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4061,16 +4062,17 @@ "json": { "name": "something" } - } + }, + "isHttpMetadata": false }, { - "$id": "362", + "$id": "349", "kind": "property", "name": "boolValue", "serializedName": "boolValue", "doc": "boolean value", "type": { - "$id": "363", + "$id": "350", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4086,16 +4088,17 @@ "json": { "name": "boolValue" } - } + }, + "isHttpMetadata": false }, { - "$id": "364", + "$id": "351", "kind": "property", "name": "floatValue", "serializedName": "floatValue", "doc": "float value", "type": { - "$id": "365", + "$id": "352", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -4111,16 +4114,17 @@ "json": { "name": "floatValue" } - } + }, + "isHttpMetadata": false }, { - "$id": "366", + "$id": "353", "kind": "property", "name": "doubleValue", "serializedName": "doubleValue", "doc": "double value", "type": { - "$id": "367", + "$id": "354", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -4136,7 +4140,8 @@ "json": { "name": "doubleValue" } - } + }, + "isHttpMetadata": false } ] }, @@ -4150,16 +4155,17 @@ "json": { "name": "properties" } - } + }, + "isHttpMetadata": false }, { - "$id": "368", - "kind": "path", + "$id": "355", + "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Bar", "type": { - "$id": "369", + "$id": "356", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4167,20 +4173,24 @@ }, "optional": false, "readOnly": true, + "discriminator": false, + "flatten": false, "decorators": [], "crossLanguageDefinitionId": "MgmtTypeSpec.Bar.name", - "explode": false, - "style": "simple", - "allowReserved": false, - "correspondingMethodParams": [] + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true } ] }, { - "$ref": "357" + "$ref": "344" }, { - "$id": "370", + "$id": "357", "kind": "model", "name": "BarListResult", "namespace": "MgmtTypeSpec", @@ -4190,17 +4200,17 @@ "decorators": [], "properties": [ { - "$id": "371", + "$id": "358", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Bar items on this page", "type": { - "$id": "372", + "$id": "359", "kind": "array", "name": "ArrayBar", "valueType": { - "$ref": "350" + "$ref": "337" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4215,21 +4225,22 @@ "json": { "name": "value" } - } + }, + "isHttpMetadata": false }, { - "$id": "373", + "$id": "360", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "374", + "$id": "361", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "375", + "$id": "362", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -4247,12 +4258,13 @@ "json": { "name": "nextLink" } - } + }, + "isHttpMetadata": false } ] }, { - "$id": "376", + "$id": "363", "kind": "model", "name": "BarSettingsResource", "namespace": "MgmtTypeSpec", @@ -4281,7 +4293,7 @@ "resourceType": "MgmtTypeSpec/foos/bars/settings", "methods": [ { - "$id": "377", + "$id": "364", "methodId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current", @@ -4289,7 +4301,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current" }, { - "$id": "378", + "$id": "365", "methodId": "MgmtTypeSpec.BarSettingsOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current", @@ -4305,17 +4317,17 @@ } ], "baseModel": { - "$ref": "194" + "$ref": "180" }, "properties": [ { - "$id": "379", + "$id": "366", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "380", + "$id": "367", "kind": "model", "name": "BarSettingsProperties", "namespace": "MgmtTypeSpec", @@ -4324,13 +4336,13 @@ "decorators": [], "properties": [ { - "$id": "381", + "$id": "368", "kind": "property", "name": "isEnabled", "serializedName": "isEnabled", "doc": "enabled", "type": { - "$id": "382", + "$id": "369", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4346,7 +4358,8 @@ "json": { "name": "isEnabled" } - } + }, + "isHttpMetadata": false } ] }, @@ -4360,16 +4373,17 @@ "json": { "name": "properties" } - } + }, + "isHttpMetadata": false }, { - "$id": "383", - "kind": "path", + "$id": "370", + "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the BarSettingsResource", "type": { - "$id": "384", + "$id": "371", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4377,20 +4391,24 @@ }, "optional": false, "readOnly": true, + "discriminator": false, + "flatten": false, "decorators": [], "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsResource.name", - "explode": false, - "style": "simple", - "allowReserved": false, - "correspondingMethodParams": [] + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true }, { - "$id": "385", + "$id": "372", "kind": "property", "name": "stringArray", "serializedName": "stringArray", "type": { - "$ref": "223" + "$ref": "209" }, "optional": true, "readOnly": false, @@ -4402,15 +4420,16 @@ "json": { "name": "stringArray" } - } + }, + "isHttpMetadata": false } ] }, { - "$ref": "380" + "$ref": "367" }, { - "$id": "386", + "$id": "373", "kind": "model", "name": "Zoo", "namespace": "MgmtTypeSpec", @@ -4429,7 +4448,7 @@ "resourceType": "MgmtTypeSpec/zoos", "methods": [ { - "$id": "387", + "$id": "374", "methodId": "MgmtTypeSpec.Zoos.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -4437,7 +4456,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "388", + "$id": "375", "methodId": "MgmtTypeSpec.Zoos.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -4445,7 +4464,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "389", + "$id": "376", "methodId": "MgmtTypeSpec.Zoos.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -4453,7 +4472,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "390", + "$id": "377", "methodId": "MgmtTypeSpec.Zoos.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -4461,21 +4480,21 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "391", + "$id": "378", "methodId": "MgmtTypeSpec.Zoos.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos", "operationScope": "ResourceGroup" }, { - "$id": "392", + "$id": "379", "methodId": "MgmtTypeSpec.Zoos.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/zoos", "operationScope": "Subscription" }, { - "$id": "393", + "$id": "380", "methodId": "MgmtTypeSpec.Zoos.zooAddressList", "kind": "Action", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/zooAddressList", @@ -4483,7 +4502,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "394", + "$id": "381", "methodId": "MgmtTypeSpec.Zoos.recommend", "kind": "Action", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/recommend", @@ -4497,17 +4516,17 @@ } ], "baseModel": { - "$ref": "298" + "$ref": "285" }, "properties": [ { - "$id": "395", + "$id": "382", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "396", + "$id": "383", "kind": "model", "name": "ZooProperties", "namespace": "MgmtTypeSpec", @@ -4523,13 +4542,13 @@ ], "properties": [ { - "$id": "397", + "$id": "384", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "398", + "$id": "385", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4545,7 +4564,8 @@ "json": { "name": "something" } - } + }, + "isHttpMetadata": false } ] }, @@ -4559,16 +4579,17 @@ "json": { "name": "properties" } - } + }, + "isHttpMetadata": false }, { - "$id": "399", - "kind": "path", + "$id": "386", + "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Zoo", "type": { - "$id": "400", + "$id": "387", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4576,20 +4597,24 @@ }, "optional": false, "readOnly": true, + "discriminator": false, + "flatten": false, "decorators": [], "crossLanguageDefinitionId": "MgmtTypeSpec.Zoo.name", - "explode": false, - "style": "simple", - "allowReserved": false, - "correspondingMethodParams": [] + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true }, { - "$id": "401", + "$id": "388", "kind": "property", "name": "extendedLocation", "serializedName": "extendedLocation", "type": { - "$ref": "320" + "$ref": "307" }, "optional": true, "readOnly": false, @@ -4601,15 +4626,16 @@ "json": { "name": "extendedLocation" } - } + }, + "isHttpMetadata": false } ] }, { - "$ref": "396" + "$ref": "383" }, { - "$id": "402", + "$id": "389", "kind": "model", "name": "ZooUpdate", "namespace": "MgmtTypeSpec", @@ -4619,13 +4645,13 @@ "decorators": [], "properties": [ { - "$id": "403", + "$id": "390", "kind": "property", "name": "tags", "serializedName": "tags", "doc": "Resource tags.", "type": { - "$ref": "300" + "$ref": "287" }, "optional": true, "readOnly": false, @@ -4637,16 +4663,17 @@ "json": { "name": "tags" } - } + }, + "isHttpMetadata": false }, { - "$id": "404", + "$id": "391", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "405", + "$id": "392", "kind": "model", "name": "ZooUpdateProperties", "namespace": "MgmtTypeSpec", @@ -4656,13 +4683,13 @@ "decorators": [], "properties": [ { - "$id": "406", + "$id": "393", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "407", + "$id": "394", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4678,7 +4705,8 @@ "json": { "name": "something" } - } + }, + "isHttpMetadata": false } ] }, @@ -4692,15 +4720,16 @@ "json": { "name": "properties" } - } + }, + "isHttpMetadata": false } ] }, { - "$ref": "405" + "$ref": "392" }, { - "$id": "408", + "$id": "395", "kind": "model", "name": "ZooListResult", "namespace": "MgmtTypeSpec", @@ -4710,17 +4739,17 @@ "decorators": [], "properties": [ { - "$id": "409", + "$id": "396", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Zoo items on this page", "type": { - "$id": "410", + "$id": "397", "kind": "array", "name": "ArrayZoo", "valueType": { - "$ref": "386" + "$ref": "373" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4735,21 +4764,22 @@ "json": { "name": "value" } - } + }, + "isHttpMetadata": false }, { - "$id": "411", + "$id": "398", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "412", + "$id": "399", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "413", + "$id": "400", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -4767,12 +4797,13 @@ "json": { "name": "nextLink" } - } + }, + "isHttpMetadata": false } ] }, { - "$id": "414", + "$id": "401", "kind": "model", "name": "ZooAddressListListResult", "namespace": "MgmtTypeSpec", @@ -4782,17 +4813,17 @@ "decorators": [], "properties": [ { - "$id": "415", + "$id": "402", "kind": "property", "name": "value", "serializedName": "value", "doc": "The ZooAddress items on this page", "type": { - "$id": "416", + "$id": "403", "kind": "array", "name": "ArraySubResource", "valueType": { - "$id": "417", + "$id": "404", "kind": "model", "name": "SubResource", "namespace": "MgmtTypeSpec", @@ -4814,21 +4845,22 @@ "json": { "name": "value" } - } + }, + "isHttpMetadata": false }, { - "$id": "418", + "$id": "405", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "419", + "$id": "406", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "420", + "$id": "407", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -4846,15 +4878,16 @@ "json": { "name": "nextLink" } - } + }, + "isHttpMetadata": false } ] }, { - "$ref": "417" + "$ref": "404" }, { - "$id": "421", + "$id": "408", "kind": "model", "name": "FooPreviewAction", "namespace": "MgmtTypeSpec", @@ -4863,13 +4896,13 @@ "decorators": [], "properties": [ { - "$id": "422", + "$id": "409", "kind": "property", "name": "action", "serializedName": "action", "doc": "The action to be performed.", "type": { - "$id": "423", + "$id": "410", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4885,15 +4918,16 @@ "json": { "name": "action" } - } + }, + "isHttpMetadata": false }, { - "$id": "424", + "$id": "411", "kind": "property", "name": "result", "serializedName": "result", "type": { - "$id": "425", + "$id": "412", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4909,12 +4943,13 @@ "json": { "name": "result" } - } + }, + "isHttpMetadata": false } ] }, { - "$id": "426", + "$id": "413", "kind": "model", "name": "ZooRecommendation", "namespace": "MgmtTypeSpec", @@ -4923,13 +4958,13 @@ "decorators": [], "properties": [ { - "$id": "427", + "$id": "414", "kind": "property", "name": "recommendedValue", "serializedName": "recommendedValue", "doc": "The recommended value", "type": { - "$id": "428", + "$id": "415", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4945,16 +4980,17 @@ "json": { "name": "recommendedValue" } - } + }, + "isHttpMetadata": false }, { - "$id": "429", + "$id": "416", "kind": "property", "name": "reason", "serializedName": "reason", "doc": "The reason for the recommendation", "type": { - "$id": "430", + "$id": "417", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4970,26 +5006,27 @@ "json": { "name": "reason" } - } + }, + "isHttpMetadata": false } ] } ], "clients": [ { - "$id": "431", + "$id": "418", "kind": "client", "name": "MgmtTypeSpecClient", "namespace": "MgmtTypeSpec", "methods": [], "parameters": [ { - "$id": "432", + "$id": "419", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "433", + "$id": "420", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5004,7 +5041,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "434", + "$id": "421", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5043,13 +5080,13 @@ ], "children": [ { - "$id": "435", + "$id": "422", "kind": "client", "name": "Operations", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "436", + "$id": "423", "kind": "paging", "name": "list", "accessibility": "public", @@ -5058,19 +5095,19 @@ ], "doc": "List the operations for the provider", "operation": { - "$id": "437", + "$id": "424", "name": "list", "resourceName": "Operations", "doc": "List the operations for the provider", "accessibility": "public", "parameters": [ { - "$id": "438", + "$id": "425", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "439", + "$id": "426", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5085,7 +5122,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "440", + "$id": "427", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5096,7 +5133,7 @@ "skipUrlEncoding": false }, { - "$id": "441", + "$id": "428", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5119,7 +5156,7 @@ 200 ], "bodyType": { - "$ref": "149" + "$ref": "135" }, "headers": [], "isErrorResponse": false, @@ -5139,9 +5176,9 @@ }, "parameters": [ { - "$id": "442", + "$id": "429", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { "$ref": "33" }, @@ -5158,7 +5195,7 @@ ], "response": { "type": { - "$ref": "151" + "$ref": "137" }, "resultSegments": [ "value" @@ -5183,12 +5220,12 @@ ], "parameters": [ { - "$id": "443", + "$id": "430", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "444", + "$id": "431", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5203,7 +5240,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "445", + "$id": "432", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5219,17 +5256,17 @@ "2024-05-01" ], "parent": { - "$ref": "431" + "$ref": "418" } }, { - "$id": "446", + "$id": "433", "kind": "client", "name": "PrivateLinks", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "447", + "$id": "434", "kind": "paging", "name": "GetAllPrivateLinkResources", "accessibility": "public", @@ -5238,19 +5275,19 @@ ], "doc": "list private links on the given resource", "operation": { - "$id": "448", + "$id": "435", "name": "GetAllPrivateLinkResources", "resourceName": "PrivateLink", "doc": "list private links on the given resource", "accessibility": "public", "parameters": [ { - "$id": "449", + "$id": "436", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "450", + "$id": "437", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5265,7 +5302,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "451", + "$id": "438", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5276,17 +5313,17 @@ "skipUrlEncoding": false }, { - "$id": "452", + "$id": "439", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "453", + "$id": "440", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "454", + "$id": "441", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5305,12 +5342,12 @@ "skipUrlEncoding": false }, { - "$id": "455", + "$id": "442", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "456", + "$id": "443", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5327,7 +5364,7 @@ "skipUrlEncoding": false }, { - "$id": "457", + "$id": "444", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5350,7 +5387,7 @@ 200 ], "bodyType": { - "$ref": "190" + "$ref": "176" }, "headers": [], "isErrorResponse": false, @@ -5375,12 +5412,12 @@ }, "parameters": [ { - "$id": "458", + "$id": "445", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "459", + "$id": "446", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5397,9 +5434,9 @@ "skipUrlEncoding": false }, { - "$id": "460", + "$id": "447", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { "$ref": "35" }, @@ -5416,7 +5453,7 @@ ], "response": { "type": { - "$ref": "192" + "$ref": "178" }, "resultSegments": [ "value" @@ -5439,7 +5476,7 @@ } }, { - "$id": "461", + "$id": "448", "kind": "lro", "name": "start", "accessibility": "public", @@ -5448,19 +5485,19 @@ ], "doc": "Starts the SAP Application Server Instance.", "operation": { - "$id": "462", + "$id": "449", "name": "start", "resourceName": "PrivateLinks", "doc": "Starts the SAP Application Server Instance.", "accessibility": "public", "parameters": [ { - "$id": "463", + "$id": "450", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "464", + "$id": "451", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5475,7 +5512,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "465", + "$id": "452", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5486,17 +5523,17 @@ "skipUrlEncoding": false }, { - "$id": "466", + "$id": "453", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "467", + "$id": "454", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "468", + "$id": "455", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5515,12 +5552,12 @@ "skipUrlEncoding": false }, { - "$id": "469", + "$id": "456", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "470", + "$id": "457", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5537,12 +5574,12 @@ "skipUrlEncoding": false }, { - "$id": "471", + "$id": "458", "name": "privateLinkResourceName", "nameInRequest": "privateLinkResourceName", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "472", + "$id": "459", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5559,7 +5596,7 @@ "skipUrlEncoding": false }, { - "$id": "473", + "$id": "460", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5577,7 +5614,7 @@ "skipUrlEncoding": false }, { - "$id": "474", + "$id": "461", "name": "accept", "nameInRequest": "Accept", "type": { @@ -5594,12 +5631,12 @@ "skipUrlEncoding": false }, { - "$id": "475", + "$id": "462", "name": "body", "nameInRequest": "body", "doc": "SAP Application server instance start request body.", "type": { - "$ref": "252" + "$ref": "239" }, "location": "Body", "isApiVersion": false, @@ -5623,7 +5660,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "476", + "$id": "463", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5635,7 +5672,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "477", + "$id": "464", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5650,7 +5687,7 @@ 200 ], "bodyType": { - "$ref": "255" + "$ref": "242" }, "headers": [], "isErrorResponse": false, @@ -5678,12 +5715,12 @@ }, "parameters": [ { - "$id": "478", + "$id": "465", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "479", + "$id": "466", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5700,12 +5737,12 @@ "skipUrlEncoding": false }, { - "$id": "480", + "$id": "467", "name": "privateLinkResourceName", "nameInRequest": "privateLinkResourceName", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "481", + "$id": "468", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5722,12 +5759,12 @@ "skipUrlEncoding": false }, { - "$id": "482", + "$id": "469", "name": "body", "nameInRequest": "body", "doc": "The content of the action request", "type": { - "$ref": "251" + "$ref": "237" }, "location": "", "isApiVersion": false, @@ -5740,16 +5777,16 @@ "skipUrlEncoding": false }, { - "$id": "483", + "$id": "470", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { "$ref": "41" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": false, @@ -5758,9 +5795,9 @@ "skipUrlEncoding": false }, { - "$id": "484", + "$id": "471", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { "$ref": "43" }, @@ -5777,7 +5814,7 @@ ], "response": { "type": { - "$ref": "255" + "$ref": "242" } }, "isOverride": false, @@ -5791,7 +5828,7 @@ 200 ], "bodyType": { - "$ref": "255" + "$ref": "242" } } } @@ -5799,12 +5836,12 @@ ], "parameters": [ { - "$id": "485", + "$id": "472", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "486", + "$id": "473", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5819,7 +5856,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "487", + "$id": "474", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5840,17 +5877,17 @@ "2024-05-01" ], "parent": { - "$ref": "431" + "$ref": "418" } }, { - "$id": "488", + "$id": "475", "kind": "client", "name": "Foos", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "489", + "$id": "476", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -5859,19 +5896,19 @@ ], "doc": "Create a Foo", "operation": { - "$id": "490", + "$id": "477", "name": "createOrUpdate", "resourceName": "Foo", "doc": "Create a Foo", "accessibility": "public", "parameters": [ { - "$id": "491", + "$id": "478", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "492", + "$id": "479", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5886,7 +5923,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "493", + "$id": "480", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5897,17 +5934,17 @@ "skipUrlEncoding": false }, { - "$id": "494", + "$id": "481", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "495", + "$id": "482", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "496", + "$id": "483", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5926,12 +5963,12 @@ "skipUrlEncoding": false }, { - "$id": "497", + "$id": "484", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "498", + "$id": "485", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5948,12 +5985,12 @@ "skipUrlEncoding": false }, { - "$id": "499", + "$id": "486", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "500", + "$id": "487", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5970,7 +6007,7 @@ "skipUrlEncoding": false }, { - "$id": "501", + "$id": "488", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", @@ -5988,7 +6025,7 @@ "skipUrlEncoding": false }, { - "$id": "502", + "$id": "489", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6005,12 +6042,12 @@ "skipUrlEncoding": false }, { - "$id": "503", + "$id": "490", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "292" + "$ref": "279" }, "location": "Body", "isApiVersion": false, @@ -6029,7 +6066,7 @@ 200 ], "bodyType": { - "$ref": "292" + "$ref": "279" }, "headers": [], "isErrorResponse": false, @@ -6042,7 +6079,7 @@ 201 ], "bodyType": { - "$ref": "292" + "$ref": "279" }, "headers": [ { @@ -6050,7 +6087,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "504", + "$id": "491", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6062,7 +6099,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "505", + "$id": "492", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6095,12 +6132,12 @@ }, "parameters": [ { - "$id": "506", + "$id": "493", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "507", + "$id": "494", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6117,12 +6154,12 @@ "skipUrlEncoding": false }, { - "$id": "508", + "$id": "495", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "509", + "$id": "496", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6139,12 +6176,12 @@ "skipUrlEncoding": false }, { - "$id": "510", + "$id": "497", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "292" + "$ref": "279" }, "location": "Body", "isApiVersion": false, @@ -6157,16 +6194,16 @@ "skipUrlEncoding": false }, { - "$id": "511", + "$id": "498", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { "$ref": "49" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -6175,9 +6212,9 @@ "skipUrlEncoding": false }, { - "$id": "512", + "$id": "499", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { "$ref": "51" }, @@ -6194,7 +6231,7 @@ ], "response": { "type": { - "$ref": "292" + "$ref": "279" } }, "isOverride": false, @@ -6208,13 +6245,13 @@ 200 ], "bodyType": { - "$ref": "292" + "$ref": "279" } } } }, { - "$id": "513", + "$id": "500", "kind": "basic", "name": "get", "accessibility": "public", @@ -6223,19 +6260,19 @@ ], "doc": "Get a Foo", "operation": { - "$id": "514", + "$id": "501", "name": "get", "resourceName": "Foo", "doc": "Get a Foo", "accessibility": "public", "parameters": [ { - "$id": "515", + "$id": "502", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "516", + "$id": "503", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6250,7 +6287,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "517", + "$id": "504", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6261,17 +6298,17 @@ "skipUrlEncoding": false }, { - "$id": "518", + "$id": "505", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "519", + "$id": "506", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "520", + "$id": "507", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6290,12 +6327,12 @@ "skipUrlEncoding": false }, { - "$id": "521", + "$id": "508", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "522", + "$id": "509", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6312,12 +6349,12 @@ "skipUrlEncoding": false }, { - "$id": "523", + "$id": "510", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "524", + "$id": "511", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6334,7 +6371,7 @@ "skipUrlEncoding": false }, { - "$id": "525", + "$id": "512", "name": "accept", "nameInRequest": "Accept", "type": { @@ -6357,7 +6394,7 @@ 200 ], "bodyType": { - "$ref": "292" + "$ref": "279" }, "headers": [], "isErrorResponse": false, @@ -6382,12 +6419,12 @@ }, "parameters": [ { - "$id": "526", + "$id": "513", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "527", + "$id": "514", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6404,12 +6441,12 @@ "skipUrlEncoding": false }, { - "$id": "528", + "$id": "515", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "529", + "$id": "516", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6426,9 +6463,9 @@ "skipUrlEncoding": false }, { - "$id": "530", + "$id": "517", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { "$ref": "53" }, @@ -6445,7 +6482,7 @@ ], "response": { "type": { - "$ref": "292" + "$ref": "279" } }, "isOverride": false, @@ -6454,7 +6491,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get" }, { - "$id": "531", + "$id": "518", "kind": "lro", "name": "delete", "accessibility": "public", @@ -6463,19 +6500,19 @@ ], "doc": "Delete a Foo", "operation": { - "$id": "532", + "$id": "519", "name": "delete", "resourceName": "Foo", "doc": "Delete a Foo", "accessibility": "public", "parameters": [ { - "$id": "533", + "$id": "520", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "534", + "$id": "521", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6490,7 +6527,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "535", + "$id": "522", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6501,17 +6538,17 @@ "skipUrlEncoding": false }, { - "$id": "536", + "$id": "523", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "537", + "$id": "524", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "538", + "$id": "525", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6530,12 +6567,12 @@ "skipUrlEncoding": false }, { - "$id": "539", + "$id": "526", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "540", + "$id": "527", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6552,12 +6589,12 @@ "skipUrlEncoding": false }, { - "$id": "541", + "$id": "528", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "542", + "$id": "529", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6572,23 +6609,6 @@ "kind": "Method", "decorators": [], "skipUrlEncoding": false - }, - { - "$id": "543", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "55" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false } ], "responses": [ @@ -6602,7 +6622,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "544", + "$id": "530", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6614,7 +6634,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "545", + "$id": "531", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6648,12 +6668,12 @@ }, "parameters": [ { - "$id": "546", + "$id": "532", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "547", + "$id": "533", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6670,12 +6690,12 @@ "skipUrlEncoding": false }, { - "$id": "548", + "$id": "534", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "549", + "$id": "535", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6690,23 +6710,6 @@ "kind": "Method", "decorators": [], "skipUrlEncoding": false - }, - { - "$id": "550", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "57" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false } ], "response": {}, @@ -6724,7 +6727,7 @@ } }, { - "$id": "551", + "$id": "536", "kind": "lro", "name": "update", "accessibility": "public", @@ -6733,19 +6736,19 @@ ], "doc": "Update a Foo", "operation": { - "$id": "552", + "$id": "537", "name": "update", "resourceName": "Foo", "doc": "Update a Foo", "accessibility": "public", "parameters": [ { - "$id": "553", + "$id": "538", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "554", + "$id": "539", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6760,7 +6763,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "555", + "$id": "540", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6771,17 +6774,17 @@ "skipUrlEncoding": false }, { - "$id": "556", + "$id": "541", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "557", + "$id": "542", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "558", + "$id": "543", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6800,12 +6803,12 @@ "skipUrlEncoding": false }, { - "$id": "559", + "$id": "544", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "560", + "$id": "545", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6822,12 +6825,12 @@ "skipUrlEncoding": false }, { - "$id": "561", + "$id": "546", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "562", + "$id": "547", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6844,12 +6847,12 @@ "skipUrlEncoding": false }, { - "$id": "563", + "$id": "548", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "59" + "$ref": "55" }, "location": "Header", "isApiVersion": false, @@ -6862,11 +6865,11 @@ "skipUrlEncoding": false }, { - "$id": "564", + "$id": "549", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "61" + "$ref": "57" }, "location": "Header", "isApiVersion": false, @@ -6879,12 +6882,12 @@ "skipUrlEncoding": false }, { - "$id": "565", + "$id": "550", "name": "properties", "nameInRequest": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "292" + "$ref": "279" }, "location": "Body", "isApiVersion": false, @@ -6903,7 +6906,7 @@ 200 ], "bodyType": { - "$ref": "292" + "$ref": "279" }, "headers": [], "isErrorResponse": false, @@ -6921,7 +6924,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "566", + "$id": "551", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6933,7 +6936,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "567", + "$id": "552", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6963,12 +6966,12 @@ }, "parameters": [ { - "$id": "568", + "$id": "553", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "569", + "$id": "554", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6985,12 +6988,12 @@ "skipUrlEncoding": false }, { - "$id": "570", + "$id": "555", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "571", + "$id": "556", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7007,12 +7010,12 @@ "skipUrlEncoding": false }, { - "$id": "572", + "$id": "557", "name": "properties", "nameInRequest": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "292" + "$ref": "279" }, "location": "Body", "isApiVersion": false, @@ -7025,16 +7028,16 @@ "skipUrlEncoding": false }, { - "$id": "573", + "$id": "558", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "63" + "$ref": "59" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -7043,11 +7046,11 @@ "skipUrlEncoding": false }, { - "$id": "574", + "$id": "559", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "65" + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -7062,7 +7065,7 @@ ], "response": { "type": { - "$ref": "292" + "$ref": "279" } }, "isOverride": false, @@ -7076,13 +7079,13 @@ 200 ], "bodyType": { - "$ref": "292" + "$ref": "279" } } } }, { - "$id": "575", + "$id": "560", "kind": "paging", "name": "list", "accessibility": "public", @@ -7091,19 +7094,19 @@ ], "doc": "List Foo resources by resource group", "operation": { - "$id": "576", + "$id": "561", "name": "list", "resourceName": "Foo", "doc": "List Foo resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "577", + "$id": "562", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "578", + "$id": "563", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7118,7 +7121,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "579", + "$id": "564", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7129,17 +7132,17 @@ "skipUrlEncoding": false }, { - "$id": "580", + "$id": "565", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "581", + "$id": "566", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "582", + "$id": "567", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7158,12 +7161,12 @@ "skipUrlEncoding": false }, { - "$id": "583", + "$id": "568", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "584", + "$id": "569", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7180,11 +7183,11 @@ "skipUrlEncoding": false }, { - "$id": "585", + "$id": "570", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "67" + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -7203,7 +7206,7 @@ 200 ], "bodyType": { - "$ref": "324" + "$ref": "311" }, "headers": [], "isErrorResponse": false, @@ -7228,12 +7231,12 @@ }, "parameters": [ { - "$id": "586", + "$id": "571", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "587", + "$id": "572", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7250,11 +7253,11 @@ "skipUrlEncoding": false }, { - "$id": "588", + "$id": "573", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "67" + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -7269,7 +7272,7 @@ ], "response": { "type": { - "$ref": "326" + "$ref": "313" }, "resultSegments": [ "value" @@ -7294,12 +7297,12 @@ ], "parameters": [ { - "$id": "589", + "$id": "574", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "590", + "$id": "575", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7314,7 +7317,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "591", + "$id": "576", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7335,17 +7338,17 @@ "2024-05-01" ], "parent": { - "$ref": "431" + "$ref": "418" } }, { - "$id": "592", + "$id": "577", "kind": "client", "name": "FooSettingsOperations", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "593", + "$id": "578", "kind": "basic", "name": "get", "accessibility": "public", @@ -7354,19 +7357,19 @@ ], "doc": "Get a FooSettings", "operation": { - "$id": "594", + "$id": "579", "name": "get", "resourceName": "FooSettings", "doc": "Get a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "595", + "$id": "580", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "596", + "$id": "581", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7381,7 +7384,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "597", + "$id": "582", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7392,17 +7395,17 @@ "skipUrlEncoding": false }, { - "$id": "598", + "$id": "583", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "599", + "$id": "584", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "600", + "$id": "585", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7421,12 +7424,12 @@ "skipUrlEncoding": false }, { - "$id": "601", + "$id": "586", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "602", + "$id": "587", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7443,11 +7446,11 @@ "skipUrlEncoding": false }, { - "$id": "603", + "$id": "588", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "69" + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -7466,7 +7469,7 @@ 200 ], "bodyType": { - "$ref": "330" + "$ref": "317" }, "headers": [], "isErrorResponse": false, @@ -7491,12 +7494,12 @@ }, "parameters": [ { - "$id": "604", + "$id": "589", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "605", + "$id": "590", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7513,11 +7516,11 @@ "skipUrlEncoding": false }, { - "$id": "606", + "$id": "591", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "69" + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -7532,7 +7535,7 @@ ], "response": { "type": { - "$ref": "330" + "$ref": "317" } }, "isOverride": false, @@ -7541,7 +7544,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get" }, { - "$id": "607", + "$id": "592", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -7550,19 +7553,19 @@ ], "doc": "Create a FooSettings", "operation": { - "$id": "608", + "$id": "593", "name": "createOrUpdate", "resourceName": "FooSettings", "doc": "Create a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "609", + "$id": "594", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "610", + "$id": "595", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7577,7 +7580,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "611", + "$id": "596", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7588,17 +7591,17 @@ "skipUrlEncoding": false }, { - "$id": "612", + "$id": "597", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "613", + "$id": "598", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "614", + "$id": "599", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7617,12 +7620,12 @@ "skipUrlEncoding": false }, { - "$id": "615", + "$id": "600", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "616", + "$id": "601", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7639,12 +7642,12 @@ "skipUrlEncoding": false }, { - "$id": "617", + "$id": "602", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "71" + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -7657,11 +7660,11 @@ "skipUrlEncoding": false }, { - "$id": "618", + "$id": "603", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "73" + "$ref": "69" }, "location": "Header", "isApiVersion": false, @@ -7674,12 +7677,12 @@ "skipUrlEncoding": false }, { - "$id": "619", + "$id": "604", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "330" + "$ref": "317" }, "location": "Body", "isApiVersion": false, @@ -7698,7 +7701,7 @@ 200 ], "bodyType": { - "$ref": "330" + "$ref": "317" }, "headers": [], "isErrorResponse": false, @@ -7711,7 +7714,7 @@ 201 ], "bodyType": { - "$ref": "330" + "$ref": "317" }, "headers": [], "isErrorResponse": false, @@ -7739,12 +7742,12 @@ }, "parameters": [ { - "$id": "620", + "$id": "605", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "621", + "$id": "606", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7761,12 +7764,12 @@ "skipUrlEncoding": false }, { - "$id": "622", + "$id": "607", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "330" + "$ref": "317" }, "location": "Body", "isApiVersion": false, @@ -7779,16 +7782,16 @@ "skipUrlEncoding": false }, { - "$id": "623", + "$id": "608", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "71" + "$ref": "67" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -7797,11 +7800,11 @@ "skipUrlEncoding": false }, { - "$id": "624", + "$id": "609", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "73" + "$ref": "69" }, "location": "Header", "isApiVersion": false, @@ -7816,7 +7819,7 @@ ], "response": { "type": { - "$ref": "330" + "$ref": "317" } }, "isOverride": false, @@ -7825,7 +7828,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate" }, { - "$id": "625", + "$id": "610", "kind": "basic", "name": "update", "accessibility": "public", @@ -7834,19 +7837,19 @@ ], "doc": "Update a FooSettings", "operation": { - "$id": "626", + "$id": "611", "name": "update", "resourceName": "FooSettings", "doc": "Update a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "627", + "$id": "612", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "628", + "$id": "613", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7861,7 +7864,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "629", + "$id": "614", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7872,17 +7875,17 @@ "skipUrlEncoding": false }, { - "$id": "630", + "$id": "615", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "631", + "$id": "616", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "632", + "$id": "617", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7901,12 +7904,12 @@ "skipUrlEncoding": false }, { - "$id": "633", + "$id": "618", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "634", + "$id": "619", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7923,12 +7926,12 @@ "skipUrlEncoding": false }, { - "$id": "635", + "$id": "620", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "75" + "$ref": "71" }, "location": "Header", "isApiVersion": false, @@ -7941,11 +7944,11 @@ "skipUrlEncoding": false }, { - "$id": "636", + "$id": "621", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "77" + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -7958,12 +7961,12 @@ "skipUrlEncoding": false }, { - "$id": "637", + "$id": "622", "name": "properties", "nameInRequest": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "345" + "$ref": "332" }, "location": "Body", "isApiVersion": false, @@ -7982,7 +7985,7 @@ 200 ], "bodyType": { - "$ref": "330" + "$ref": "317" }, "headers": [], "isErrorResponse": false, @@ -8010,12 +8013,12 @@ }, "parameters": [ { - "$id": "638", + "$id": "623", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "639", + "$id": "624", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8032,12 +8035,12 @@ "skipUrlEncoding": false }, { - "$id": "640", + "$id": "625", "name": "properties", "nameInRequest": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "345" + "$ref": "332" }, "location": "Body", "isApiVersion": false, @@ -8050,16 +8053,16 @@ "skipUrlEncoding": false }, { - "$id": "641", + "$id": "626", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "75" + "$ref": "71" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -8068,11 +8071,11 @@ "skipUrlEncoding": false }, { - "$id": "642", + "$id": "627", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "77" + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -8087,7 +8090,7 @@ ], "response": { "type": { - "$ref": "330" + "$ref": "317" } }, "isOverride": false, @@ -8096,7 +8099,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update" }, { - "$id": "643", + "$id": "628", "kind": "basic", "name": "delete", "accessibility": "public", @@ -8105,19 +8108,19 @@ ], "doc": "Delete a FooSettings", "operation": { - "$id": "644", + "$id": "629", "name": "delete", "resourceName": "FooSettings", "doc": "Delete a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "645", + "$id": "630", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "646", + "$id": "631", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8132,7 +8135,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "647", + "$id": "632", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8143,17 +8146,17 @@ "skipUrlEncoding": false }, { - "$id": "648", + "$id": "633", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "649", + "$id": "634", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "650", + "$id": "635", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8172,12 +8175,12 @@ "skipUrlEncoding": false }, { - "$id": "651", + "$id": "636", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "652", + "$id": "637", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8192,23 +8195,6 @@ "kind": "Method", "decorators": [], "skipUrlEncoding": false - }, - { - "$id": "653", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "79" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false } ], "responses": [ @@ -8243,12 +8229,12 @@ }, "parameters": [ { - "$id": "654", + "$id": "638", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "655", + "$id": "639", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8263,23 +8249,6 @@ "kind": "Method", "decorators": [], "skipUrlEncoding": false - }, - { - "$id": "656", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "79" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false } ], "response": {}, @@ -8291,12 +8260,12 @@ ], "parameters": [ { - "$id": "657", + "$id": "640", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "658", + "$id": "641", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8311,7 +8280,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "659", + "$id": "642", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8332,17 +8301,17 @@ "2024-05-01" ], "parent": { - "$ref": "431" + "$ref": "418" } }, { - "$id": "660", + "$id": "643", "kind": "client", "name": "Bars", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "661", + "$id": "644", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -8351,19 +8320,19 @@ ], "doc": "Create a Bar", "operation": { - "$id": "662", + "$id": "645", "name": "createOrUpdate", "resourceName": "Bar", "doc": "Create a Bar", "accessibility": "public", "parameters": [ { - "$id": "663", + "$id": "646", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "664", + "$id": "647", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8378,7 +8347,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "665", + "$id": "648", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8389,17 +8358,17 @@ "skipUrlEncoding": false }, { - "$id": "666", + "$id": "649", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "667", + "$id": "650", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "668", + "$id": "651", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8418,12 +8387,12 @@ "skipUrlEncoding": false }, { - "$id": "669", + "$id": "652", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "670", + "$id": "653", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8440,12 +8409,12 @@ "skipUrlEncoding": false }, { - "$id": "671", + "$id": "654", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "672", + "$id": "655", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8462,12 +8431,12 @@ "skipUrlEncoding": false }, { - "$id": "673", + "$id": "656", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "674", + "$id": "657", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8484,12 +8453,12 @@ "skipUrlEncoding": false }, { - "$id": "675", + "$id": "658", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "81" + "$ref": "75" }, "location": "Header", "isApiVersion": false, @@ -8502,11 +8471,11 @@ "skipUrlEncoding": false }, { - "$id": "676", + "$id": "659", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "83" + "$ref": "77" }, "location": "Header", "isApiVersion": false, @@ -8519,12 +8488,12 @@ "skipUrlEncoding": false }, { - "$id": "677", + "$id": "660", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "350" + "$ref": "337" }, "location": "Body", "isApiVersion": false, @@ -8543,7 +8512,7 @@ 200 ], "bodyType": { - "$ref": "350" + "$ref": "337" }, "headers": [], "isErrorResponse": false, @@ -8556,7 +8525,7 @@ 201 ], "bodyType": { - "$ref": "350" + "$ref": "337" }, "headers": [ { @@ -8564,7 +8533,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "678", + "$id": "661", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8576,7 +8545,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "679", + "$id": "662", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -8609,12 +8578,12 @@ }, "parameters": [ { - "$id": "680", + "$id": "663", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "681", + "$id": "664", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8631,12 +8600,12 @@ "skipUrlEncoding": false }, { - "$id": "682", + "$id": "665", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "683", + "$id": "666", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8653,12 +8622,12 @@ "skipUrlEncoding": false }, { - "$id": "684", + "$id": "667", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "685", + "$id": "668", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8675,12 +8644,12 @@ "skipUrlEncoding": false }, { - "$id": "686", + "$id": "669", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "350" + "$ref": "337" }, "location": "Body", "isApiVersion": false, @@ -8693,16 +8662,16 @@ "skipUrlEncoding": false }, { - "$id": "687", + "$id": "670", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "85" + "$ref": "79" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -8711,11 +8680,11 @@ "skipUrlEncoding": false }, { - "$id": "688", + "$id": "671", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "87" + "$ref": "81" }, "location": "Header", "isApiVersion": false, @@ -8730,7 +8699,7 @@ ], "response": { "type": { - "$ref": "350" + "$ref": "337" } }, "isOverride": false, @@ -8744,13 +8713,13 @@ 200 ], "bodyType": { - "$ref": "350" + "$ref": "337" } } } }, { - "$id": "689", + "$id": "672", "kind": "basic", "name": "get", "accessibility": "public", @@ -8759,19 +8728,19 @@ ], "doc": "Get a Bar", "operation": { - "$id": "690", + "$id": "673", "name": "get", "resourceName": "Bar", "doc": "Get a Bar", "accessibility": "public", "parameters": [ { - "$id": "691", + "$id": "674", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "692", + "$id": "675", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8786,7 +8755,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "693", + "$id": "676", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8797,17 +8766,17 @@ "skipUrlEncoding": false }, { - "$id": "694", + "$id": "677", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "695", + "$id": "678", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "696", + "$id": "679", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8826,12 +8795,12 @@ "skipUrlEncoding": false }, { - "$id": "697", + "$id": "680", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "698", + "$id": "681", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8848,12 +8817,12 @@ "skipUrlEncoding": false }, { - "$id": "699", + "$id": "682", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "700", + "$id": "683", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8870,12 +8839,12 @@ "skipUrlEncoding": false }, { - "$id": "701", + "$id": "684", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "702", + "$id": "685", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8892,11 +8861,11 @@ "skipUrlEncoding": false }, { - "$id": "703", + "$id": "686", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "89" + "$ref": "83" }, "location": "Header", "isApiVersion": false, @@ -8915,7 +8884,7 @@ 200 ], "bodyType": { - "$ref": "350" + "$ref": "337" }, "headers": [], "isErrorResponse": false, @@ -8940,12 +8909,12 @@ }, "parameters": [ { - "$id": "704", + "$id": "687", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "705", + "$id": "688", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8962,12 +8931,12 @@ "skipUrlEncoding": false }, { - "$id": "706", + "$id": "689", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "707", + "$id": "690", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8984,12 +8953,12 @@ "skipUrlEncoding": false }, { - "$id": "708", + "$id": "691", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "709", + "$id": "692", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9006,11 +8975,11 @@ "skipUrlEncoding": false }, { - "$id": "710", + "$id": "693", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "89" + "$ref": "83" }, "location": "Header", "isApiVersion": false, @@ -9025,7 +8994,7 @@ ], "response": { "type": { - "$ref": "350" + "$ref": "337" } }, "isOverride": false, @@ -9034,7 +9003,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get" }, { - "$id": "711", + "$id": "694", "kind": "lro", "name": "delete", "accessibility": "public", @@ -9043,19 +9012,19 @@ ], "doc": "Delete a Bar", "operation": { - "$id": "712", + "$id": "695", "name": "delete", "resourceName": "Bar", "doc": "Delete a Bar", "accessibility": "public", "parameters": [ { - "$id": "713", + "$id": "696", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "714", + "$id": "697", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9070,7 +9039,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "715", + "$id": "698", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9081,17 +9050,17 @@ "skipUrlEncoding": false }, { - "$id": "716", + "$id": "699", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "717", + "$id": "700", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "718", + "$id": "701", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9110,12 +9079,12 @@ "skipUrlEncoding": false }, { - "$id": "719", + "$id": "702", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "720", + "$id": "703", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9132,12 +9101,12 @@ "skipUrlEncoding": false }, { - "$id": "721", + "$id": "704", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "722", + "$id": "705", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9154,41 +9123,24 @@ "skipUrlEncoding": false }, { - "$id": "723", + "$id": "706", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "724", + "$id": "707", "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "725", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "91" + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "location": "Header", + "location": "Path", "isApiVersion": false, "isContentType": false, "isEndpoint": false, "explode": false, "isRequired": true, - "kind": "Constant", + "kind": "Method", "decorators": [], "skipUrlEncoding": false } @@ -9204,7 +9156,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "726", + "$id": "708", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9216,7 +9168,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "727", + "$id": "709", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -9250,12 +9202,12 @@ }, "parameters": [ { - "$id": "728", + "$id": "710", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "729", + "$id": "711", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9272,12 +9224,12 @@ "skipUrlEncoding": false }, { - "$id": "730", + "$id": "712", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "731", + "$id": "713", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9294,12 +9246,12 @@ "skipUrlEncoding": false }, { - "$id": "732", + "$id": "714", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "733", + "$id": "715", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9314,23 +9266,6 @@ "kind": "Method", "decorators": [], "skipUrlEncoding": false - }, - { - "$id": "734", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "93" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false } ], "response": {}, @@ -9348,7 +9283,7 @@ } }, { - "$id": "735", + "$id": "716", "kind": "lro", "name": "update", "accessibility": "public", @@ -9357,19 +9292,19 @@ ], "doc": "Update a Bar", "operation": { - "$id": "736", + "$id": "717", "name": "update", "resourceName": "Bar", "doc": "Update a Bar", "accessibility": "public", "parameters": [ { - "$id": "737", + "$id": "718", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "738", + "$id": "719", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9384,7 +9319,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "739", + "$id": "720", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9395,17 +9330,17 @@ "skipUrlEncoding": false }, { - "$id": "740", + "$id": "721", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "741", + "$id": "722", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "742", + "$id": "723", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9424,12 +9359,12 @@ "skipUrlEncoding": false }, { - "$id": "743", + "$id": "724", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "744", + "$id": "725", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9446,12 +9381,12 @@ "skipUrlEncoding": false }, { - "$id": "745", + "$id": "726", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "746", + "$id": "727", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9468,12 +9403,12 @@ "skipUrlEncoding": false }, { - "$id": "747", + "$id": "728", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "748", + "$id": "729", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9490,12 +9425,12 @@ "skipUrlEncoding": false }, { - "$id": "749", + "$id": "730", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "95" + "$ref": "85" }, "location": "Header", "isApiVersion": false, @@ -9508,11 +9443,11 @@ "skipUrlEncoding": false }, { - "$id": "750", + "$id": "731", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "97" + "$ref": "87" }, "location": "Header", "isApiVersion": false, @@ -9525,12 +9460,12 @@ "skipUrlEncoding": false }, { - "$id": "751", + "$id": "732", "name": "properties", "nameInRequest": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "350" + "$ref": "337" }, "location": "Body", "isApiVersion": false, @@ -9549,7 +9484,7 @@ 200 ], "bodyType": { - "$ref": "350" + "$ref": "337" }, "headers": [], "isErrorResponse": false, @@ -9567,7 +9502,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "752", + "$id": "733", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9579,7 +9514,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "753", + "$id": "734", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -9609,12 +9544,12 @@ }, "parameters": [ { - "$id": "754", + "$id": "735", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "755", + "$id": "736", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9631,12 +9566,12 @@ "skipUrlEncoding": false }, { - "$id": "756", + "$id": "737", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "757", + "$id": "738", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9653,12 +9588,12 @@ "skipUrlEncoding": false }, { - "$id": "758", + "$id": "739", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "759", + "$id": "740", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9675,12 +9610,12 @@ "skipUrlEncoding": false }, { - "$id": "760", + "$id": "741", "name": "properties", "nameInRequest": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "350" + "$ref": "337" }, "location": "Body", "isApiVersion": false, @@ -9693,16 +9628,16 @@ "skipUrlEncoding": false }, { - "$id": "761", + "$id": "742", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "99" + "$ref": "89" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -9711,11 +9646,11 @@ "skipUrlEncoding": false }, { - "$id": "762", + "$id": "743", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "101" + "$ref": "91" }, "location": "Header", "isApiVersion": false, @@ -9730,7 +9665,7 @@ ], "response": { "type": { - "$ref": "350" + "$ref": "337" } }, "isOverride": false, @@ -9744,13 +9679,13 @@ 200 ], "bodyType": { - "$ref": "350" + "$ref": "337" } } } }, { - "$id": "763", + "$id": "744", "kind": "paging", "name": "list", "accessibility": "public", @@ -9759,19 +9694,19 @@ ], "doc": "List Bar resources by Foo", "operation": { - "$id": "764", + "$id": "745", "name": "list", "resourceName": "Bar", "doc": "List Bar resources by Foo", "accessibility": "public", "parameters": [ { - "$id": "765", + "$id": "746", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "766", + "$id": "747", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9786,7 +9721,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "767", + "$id": "748", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9797,17 +9732,17 @@ "skipUrlEncoding": false }, { - "$id": "768", + "$id": "749", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "769", + "$id": "750", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "770", + "$id": "751", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9826,12 +9761,12 @@ "skipUrlEncoding": false }, { - "$id": "771", + "$id": "752", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "772", + "$id": "753", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9848,12 +9783,12 @@ "skipUrlEncoding": false }, { - "$id": "773", + "$id": "754", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "774", + "$id": "755", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9870,11 +9805,11 @@ "skipUrlEncoding": false }, { - "$id": "775", + "$id": "756", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "103" + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -9893,7 +9828,7 @@ 200 ], "bodyType": { - "$ref": "370" + "$ref": "357" }, "headers": [], "isErrorResponse": false, @@ -9918,12 +9853,12 @@ }, "parameters": [ { - "$id": "776", + "$id": "757", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "777", + "$id": "758", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9940,12 +9875,12 @@ "skipUrlEncoding": false }, { - "$id": "778", + "$id": "759", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "779", + "$id": "760", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9962,11 +9897,11 @@ "skipUrlEncoding": false }, { - "$id": "780", + "$id": "761", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "103" + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -9981,7 +9916,7 @@ ], "response": { "type": { - "$ref": "372" + "$ref": "359" }, "resultSegments": [ "value" @@ -10006,12 +9941,12 @@ ], "parameters": [ { - "$id": "781", + "$id": "762", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "782", + "$id": "763", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10026,7 +9961,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "783", + "$id": "764", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10047,17 +9982,17 @@ "2024-05-01" ], "parent": { - "$ref": "431" + "$ref": "418" } }, { - "$id": "784", + "$id": "765", "kind": "client", "name": "BarSettingsOperations", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "785", + "$id": "766", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -10066,19 +10001,19 @@ ], "doc": "Create a BarSettingsResource", "operation": { - "$id": "786", + "$id": "767", "name": "createOrUpdate", "resourceName": "BarSettingsResource", "doc": "Create a BarSettingsResource", "accessibility": "public", "parameters": [ { - "$id": "787", + "$id": "768", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "788", + "$id": "769", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10093,7 +10028,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "789", + "$id": "770", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10104,17 +10039,17 @@ "skipUrlEncoding": false }, { - "$id": "790", + "$id": "771", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "791", + "$id": "772", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "792", + "$id": "773", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10133,12 +10068,12 @@ "skipUrlEncoding": false }, { - "$id": "793", + "$id": "774", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "794", + "$id": "775", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10155,12 +10090,12 @@ "skipUrlEncoding": false }, { - "$id": "795", + "$id": "776", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "796", + "$id": "777", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10177,12 +10112,12 @@ "skipUrlEncoding": false }, { - "$id": "797", + "$id": "778", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "798", + "$id": "779", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10199,12 +10134,12 @@ "skipUrlEncoding": false }, { - "$id": "799", + "$id": "780", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "105" + "$ref": "95" }, "location": "Header", "isApiVersion": false, @@ -10217,11 +10152,11 @@ "skipUrlEncoding": false }, { - "$id": "800", + "$id": "781", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "107" + "$ref": "97" }, "location": "Header", "isApiVersion": false, @@ -10234,12 +10169,12 @@ "skipUrlEncoding": false }, { - "$id": "801", + "$id": "782", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "376" + "$ref": "363" }, "location": "Body", "isApiVersion": false, @@ -10258,7 +10193,7 @@ 200 ], "bodyType": { - "$ref": "376" + "$ref": "363" }, "headers": [], "isErrorResponse": false, @@ -10271,7 +10206,7 @@ 201 ], "bodyType": { - "$ref": "376" + "$ref": "363" }, "headers": [ { @@ -10279,7 +10214,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "802", + "$id": "783", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10291,7 +10226,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "803", + "$id": "784", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -10324,12 +10259,12 @@ }, "parameters": [ { - "$id": "804", + "$id": "785", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "805", + "$id": "786", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10346,12 +10281,12 @@ "skipUrlEncoding": false }, { - "$id": "806", + "$id": "787", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "807", + "$id": "788", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10368,12 +10303,12 @@ "skipUrlEncoding": false }, { - "$id": "808", + "$id": "789", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "809", + "$id": "790", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10390,12 +10325,12 @@ "skipUrlEncoding": false }, { - "$id": "810", + "$id": "791", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "376" + "$ref": "363" }, "location": "Body", "isApiVersion": false, @@ -10408,16 +10343,16 @@ "skipUrlEncoding": false }, { - "$id": "811", + "$id": "792", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "109" + "$ref": "99" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -10426,11 +10361,11 @@ "skipUrlEncoding": false }, { - "$id": "812", + "$id": "793", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "111" + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -10445,7 +10380,7 @@ ], "response": { "type": { - "$ref": "376" + "$ref": "363" } }, "isOverride": false, @@ -10459,13 +10394,13 @@ 200 ], "bodyType": { - "$ref": "376" + "$ref": "363" } } } }, { - "$id": "813", + "$id": "794", "kind": "basic", "name": "get", "accessibility": "public", @@ -10474,19 +10409,19 @@ ], "doc": "Get a BarSettingsResource", "operation": { - "$id": "814", + "$id": "795", "name": "get", "resourceName": "BarSettingsResource", "doc": "Get a BarSettingsResource", "accessibility": "public", "parameters": [ { - "$id": "815", + "$id": "796", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "816", + "$id": "797", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10501,7 +10436,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "817", + "$id": "798", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10512,17 +10447,17 @@ "skipUrlEncoding": false }, { - "$id": "818", + "$id": "799", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "819", + "$id": "800", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "820", + "$id": "801", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10541,12 +10476,12 @@ "skipUrlEncoding": false }, { - "$id": "821", + "$id": "802", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "822", + "$id": "803", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10563,12 +10498,12 @@ "skipUrlEncoding": false }, { - "$id": "823", + "$id": "804", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "824", + "$id": "805", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10585,12 +10520,12 @@ "skipUrlEncoding": false }, { - "$id": "825", + "$id": "806", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "826", + "$id": "807", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10607,11 +10542,11 @@ "skipUrlEncoding": false }, { - "$id": "827", + "$id": "808", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "113" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -10630,7 +10565,7 @@ 200 ], "bodyType": { - "$ref": "376" + "$ref": "363" }, "headers": [], "isErrorResponse": false, @@ -10655,12 +10590,12 @@ }, "parameters": [ { - "$id": "828", + "$id": "809", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "829", + "$id": "810", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10677,12 +10612,12 @@ "skipUrlEncoding": false }, { - "$id": "830", + "$id": "811", "name": "fooName", "nameInRequest": "fooName", "doc": "The name of the Foo", "type": { - "$id": "831", + "$id": "812", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10699,12 +10634,12 @@ "skipUrlEncoding": false }, { - "$id": "832", + "$id": "813", "name": "barName", "nameInRequest": "barName", "doc": "The name of the Bar", "type": { - "$id": "833", + "$id": "814", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10721,11 +10656,11 @@ "skipUrlEncoding": false }, { - "$id": "834", + "$id": "815", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "113" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -10740,7 +10675,7 @@ ], "response": { "type": { - "$ref": "376" + "$ref": "363" } }, "isOverride": false, @@ -10751,12 +10686,12 @@ ], "parameters": [ { - "$id": "835", + "$id": "816", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "836", + "$id": "817", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10771,7 +10706,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "837", + "$id": "818", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10792,17 +10727,17 @@ "2024-05-01" ], "parent": { - "$ref": "431" + "$ref": "418" } }, { - "$id": "838", + "$id": "819", "kind": "client", "name": "Zoos", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "839", + "$id": "820", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -10811,19 +10746,19 @@ ], "doc": "Create a Zoo", "operation": { - "$id": "840", + "$id": "821", "name": "createOrUpdate", "resourceName": "Zoo", "doc": "Create a Zoo", "accessibility": "public", "parameters": [ { - "$id": "841", + "$id": "822", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "842", + "$id": "823", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10838,7 +10773,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "843", + "$id": "824", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10849,17 +10784,17 @@ "skipUrlEncoding": false }, { - "$id": "844", + "$id": "825", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "845", + "$id": "826", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "846", + "$id": "827", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10878,12 +10813,12 @@ "skipUrlEncoding": false }, { - "$id": "847", + "$id": "828", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "848", + "$id": "829", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10900,12 +10835,12 @@ "skipUrlEncoding": false }, { - "$id": "849", + "$id": "830", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "850", + "$id": "831", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10922,12 +10857,12 @@ "skipUrlEncoding": false }, { - "$id": "851", + "$id": "832", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "115" + "$ref": "105" }, "location": "Header", "isApiVersion": false, @@ -10940,11 +10875,11 @@ "skipUrlEncoding": false }, { - "$id": "852", + "$id": "833", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "117" + "$ref": "107" }, "location": "Header", "isApiVersion": false, @@ -10957,12 +10892,12 @@ "skipUrlEncoding": false }, { - "$id": "853", + "$id": "834", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "386" + "$ref": "373" }, "location": "Body", "isApiVersion": false, @@ -10981,7 +10916,7 @@ 200 ], "bodyType": { - "$ref": "386" + "$ref": "373" }, "headers": [], "isErrorResponse": false, @@ -10994,7 +10929,7 @@ 201 ], "bodyType": { - "$ref": "386" + "$ref": "373" }, "headers": [ { @@ -11002,7 +10937,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "854", + "$id": "835", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11014,7 +10949,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "855", + "$id": "836", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -11047,12 +10982,12 @@ }, "parameters": [ { - "$id": "856", + "$id": "837", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "857", + "$id": "838", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11069,12 +11004,12 @@ "skipUrlEncoding": false }, { - "$id": "858", + "$id": "839", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "859", + "$id": "840", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11091,12 +11026,12 @@ "skipUrlEncoding": false }, { - "$id": "860", + "$id": "841", "name": "resource", "nameInRequest": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "386" + "$ref": "373" }, "location": "Body", "isApiVersion": false, @@ -11109,16 +11044,16 @@ "skipUrlEncoding": false }, { - "$id": "861", + "$id": "842", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "119" + "$ref": "109" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -11127,11 +11062,11 @@ "skipUrlEncoding": false }, { - "$id": "862", + "$id": "843", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "121" + "$ref": "111" }, "location": "Header", "isApiVersion": false, @@ -11146,7 +11081,7 @@ ], "response": { "type": { - "$ref": "386" + "$ref": "373" } }, "isOverride": false, @@ -11160,13 +11095,13 @@ 200 ], "bodyType": { - "$ref": "386" + "$ref": "373" } } } }, { - "$id": "863", + "$id": "844", "kind": "basic", "name": "get", "accessibility": "public", @@ -11175,19 +11110,19 @@ ], "doc": "Get a Zoo", "operation": { - "$id": "864", + "$id": "845", "name": "get", "resourceName": "Zoo", "doc": "Get a Zoo", "accessibility": "public", "parameters": [ { - "$id": "865", + "$id": "846", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "866", + "$id": "847", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11202,7 +11137,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "867", + "$id": "848", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11213,17 +11148,17 @@ "skipUrlEncoding": false }, { - "$id": "868", + "$id": "849", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "869", + "$id": "850", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "870", + "$id": "851", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11242,12 +11177,12 @@ "skipUrlEncoding": false }, { - "$id": "871", + "$id": "852", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "872", + "$id": "853", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11264,12 +11199,12 @@ "skipUrlEncoding": false }, { - "$id": "873", + "$id": "854", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "874", + "$id": "855", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11286,11 +11221,11 @@ "skipUrlEncoding": false }, { - "$id": "875", + "$id": "856", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "123" + "$ref": "113" }, "location": "Header", "isApiVersion": false, @@ -11309,7 +11244,7 @@ 200 ], "bodyType": { - "$ref": "386" + "$ref": "373" }, "headers": [], "isErrorResponse": false, @@ -11334,12 +11269,12 @@ }, "parameters": [ { - "$id": "876", + "$id": "857", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "877", + "$id": "858", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11356,12 +11291,12 @@ "skipUrlEncoding": false }, { - "$id": "878", + "$id": "859", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "879", + "$id": "860", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11378,11 +11313,11 @@ "skipUrlEncoding": false }, { - "$id": "880", + "$id": "861", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "123" + "$ref": "113" }, "location": "Header", "isApiVersion": false, @@ -11397,7 +11332,7 @@ ], "response": { "type": { - "$ref": "386" + "$ref": "373" } }, "isOverride": false, @@ -11406,7 +11341,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get" }, { - "$id": "881", + "$id": "862", "kind": "lro", "name": "delete", "accessibility": "public", @@ -11415,19 +11350,19 @@ ], "doc": "Delete a Zoo", "operation": { - "$id": "882", + "$id": "863", "name": "delete", "resourceName": "Zoo", "doc": "Delete a Zoo", "accessibility": "public", "parameters": [ { - "$id": "883", + "$id": "864", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "884", + "$id": "865", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11442,7 +11377,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "885", + "$id": "866", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11453,17 +11388,17 @@ "skipUrlEncoding": false }, { - "$id": "886", + "$id": "867", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "887", + "$id": "868", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "888", + "$id": "869", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11482,12 +11417,12 @@ "skipUrlEncoding": false }, { - "$id": "889", + "$id": "870", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "890", + "$id": "871", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11504,12 +11439,12 @@ "skipUrlEncoding": false }, { - "$id": "891", + "$id": "872", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "892", + "$id": "873", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11524,23 +11459,6 @@ "kind": "Method", "decorators": [], "skipUrlEncoding": false - }, - { - "$id": "893", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$ref": "125" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false } ], "responses": [ @@ -11554,7 +11472,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "894", + "$id": "874", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11566,7 +11484,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "895", + "$id": "875", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -11600,12 +11518,12 @@ }, "parameters": [ { - "$id": "896", + "$id": "876", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "897", + "$id": "877", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11622,12 +11540,12 @@ "skipUrlEncoding": false }, { - "$id": "898", + "$id": "878", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "899", + "$id": "879", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11642,23 +11560,6 @@ "kind": "Method", "decorators": [], "skipUrlEncoding": false - }, - { - "$id": "900", - "name": "accept", - "nameInRequest": "accept", - "type": { - "$ref": "127" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false } ], "response": {}, @@ -11676,7 +11577,7 @@ } }, { - "$id": "901", + "$id": "880", "kind": "lro", "name": "update", "accessibility": "public", @@ -11685,19 +11586,19 @@ ], "doc": "Update a Zoo", "operation": { - "$id": "902", + "$id": "881", "name": "update", "resourceName": "Zoo", "doc": "Update a Zoo", "accessibility": "public", "parameters": [ { - "$id": "903", + "$id": "882", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "904", + "$id": "883", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11712,7 +11613,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "905", + "$id": "884", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11723,17 +11624,17 @@ "skipUrlEncoding": false }, { - "$id": "906", + "$id": "885", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "907", + "$id": "886", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "908", + "$id": "887", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11752,12 +11653,12 @@ "skipUrlEncoding": false }, { - "$id": "909", + "$id": "888", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "910", + "$id": "889", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11774,12 +11675,12 @@ "skipUrlEncoding": false }, { - "$id": "911", + "$id": "890", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "912", + "$id": "891", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11796,12 +11697,12 @@ "skipUrlEncoding": false }, { - "$id": "913", + "$id": "892", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "129" + "$ref": "115" }, "location": "Header", "isApiVersion": false, @@ -11814,11 +11715,11 @@ "skipUrlEncoding": false }, { - "$id": "914", + "$id": "893", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "131" + "$ref": "117" }, "location": "Header", "isApiVersion": false, @@ -11831,12 +11732,12 @@ "skipUrlEncoding": false }, { - "$id": "915", + "$id": "894", "name": "properties", "nameInRequest": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "402" + "$ref": "389" }, "location": "Body", "isApiVersion": false, @@ -11855,7 +11756,7 @@ 200 ], "bodyType": { - "$ref": "386" + "$ref": "373" }, "headers": [], "isErrorResponse": false, @@ -11873,7 +11774,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "916", + "$id": "895", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11885,7 +11786,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "917", + "$id": "896", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -11915,12 +11816,12 @@ }, "parameters": [ { - "$id": "918", + "$id": "897", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "919", + "$id": "898", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11937,12 +11838,12 @@ "skipUrlEncoding": false }, { - "$id": "920", + "$id": "899", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "921", + "$id": "900", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11959,12 +11860,12 @@ "skipUrlEncoding": false }, { - "$id": "922", + "$id": "901", "name": "properties", "nameInRequest": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "402" + "$ref": "389" }, "location": "Body", "isApiVersion": false, @@ -11977,16 +11878,16 @@ "skipUrlEncoding": false }, { - "$id": "923", + "$id": "902", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "133" + "$ref": "119" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -11995,11 +11896,11 @@ "skipUrlEncoding": false }, { - "$id": "924", + "$id": "903", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "135" + "$ref": "121" }, "location": "Header", "isApiVersion": false, @@ -12014,7 +11915,7 @@ ], "response": { "type": { - "$ref": "386" + "$ref": "373" } }, "isOverride": false, @@ -12028,13 +11929,13 @@ 200 ], "bodyType": { - "$ref": "386" + "$ref": "373" } } } }, { - "$id": "925", + "$id": "904", "kind": "paging", "name": "list", "accessibility": "public", @@ -12043,19 +11944,19 @@ ], "doc": "List Zoo resources by resource group", "operation": { - "$id": "926", + "$id": "905", "name": "list", "resourceName": "Zoo", "doc": "List Zoo resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "927", + "$id": "906", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "928", + "$id": "907", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12070,7 +11971,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "929", + "$id": "908", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12081,17 +11982,17 @@ "skipUrlEncoding": false }, { - "$id": "930", + "$id": "909", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "931", + "$id": "910", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "932", + "$id": "911", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12110,12 +12011,12 @@ "skipUrlEncoding": false }, { - "$id": "933", + "$id": "912", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "934", + "$id": "913", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12132,11 +12033,11 @@ "skipUrlEncoding": false }, { - "$id": "935", + "$id": "914", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "137" + "$ref": "123" }, "location": "Header", "isApiVersion": false, @@ -12155,7 +12056,7 @@ 200 ], "bodyType": { - "$ref": "408" + "$ref": "395" }, "headers": [], "isErrorResponse": false, @@ -12180,12 +12081,12 @@ }, "parameters": [ { - "$id": "936", + "$id": "915", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "937", + "$id": "916", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12202,11 +12103,11 @@ "skipUrlEncoding": false }, { - "$id": "938", + "$id": "917", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "137" + "$ref": "123" }, "location": "Header", "isApiVersion": false, @@ -12221,7 +12122,7 @@ ], "response": { "type": { - "$ref": "410" + "$ref": "397" }, "resultSegments": [ "value" @@ -12244,7 +12145,7 @@ } }, { - "$id": "939", + "$id": "918", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -12253,19 +12154,19 @@ ], "doc": "List Zoo resources by subscription ID", "operation": { - "$id": "940", + "$id": "919", "name": "listBySubscription", "resourceName": "Zoo", "doc": "List Zoo resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "941", + "$id": "920", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "942", + "$id": "921", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12280,7 +12181,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "943", + "$id": "922", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12291,17 +12192,17 @@ "skipUrlEncoding": false }, { - "$id": "944", + "$id": "923", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "945", + "$id": "924", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "946", + "$id": "925", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12320,11 +12221,11 @@ "skipUrlEncoding": false }, { - "$id": "947", + "$id": "926", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "139" + "$ref": "125" }, "location": "Header", "isApiVersion": false, @@ -12343,7 +12244,7 @@ 200 ], "bodyType": { - "$ref": "408" + "$ref": "395" }, "headers": [], "isErrorResponse": false, @@ -12368,11 +12269,11 @@ }, "parameters": [ { - "$id": "948", + "$id": "927", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "139" + "$ref": "125" }, "location": "Header", "isApiVersion": false, @@ -12387,7 +12288,7 @@ ], "response": { "type": { - "$ref": "410" + "$ref": "397" }, "resultSegments": [ "value" @@ -12410,8 +12311,8 @@ } }, { - "$id": "949", - "kind": "paging", + "$id": "928", + "kind": "basic", "name": "zooAddressList", "accessibility": "public", "apiVersions": [ @@ -12419,19 +12320,19 @@ ], "doc": "A synchronous resource action.", "operation": { - "$id": "950", + "$id": "929", "name": "zooAddressList", "resourceName": "Zoos", "doc": "A synchronous resource action.", "accessibility": "public", "parameters": [ { - "$id": "951", + "$id": "930", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "952", + "$id": "931", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12446,7 +12347,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "953", + "$id": "932", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12457,17 +12358,17 @@ "skipUrlEncoding": false }, { - "$id": "954", + "$id": "933", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "955", + "$id": "934", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "956", + "$id": "935", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12486,12 +12387,12 @@ "skipUrlEncoding": false }, { - "$id": "957", + "$id": "936", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "958", + "$id": "937", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12508,12 +12409,12 @@ "skipUrlEncoding": false }, { - "$id": "959", + "$id": "938", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "960", + "$id": "939", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12530,11 +12431,11 @@ "skipUrlEncoding": false }, { - "$id": "961", + "$id": "940", "name": "$maxpagesize", "nameInRequest": "$maxpagesize", "type": { - "$id": "962", + "$id": "941", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -12551,11 +12452,11 @@ "skipUrlEncoding": false }, { - "$id": "963", + "$id": "942", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "141" + "$ref": "127" }, "location": "Header", "isApiVersion": false, @@ -12574,7 +12475,7 @@ 200 ], "bodyType": { - "$ref": "414" + "$ref": "401" }, "headers": [], "isErrorResponse": false, @@ -12599,12 +12500,12 @@ }, "parameters": [ { - "$id": "964", + "$id": "943", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "965", + "$id": "944", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12621,12 +12522,12 @@ "skipUrlEncoding": false }, { - "$id": "966", + "$id": "945", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "967", + "$id": "946", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12643,11 +12544,11 @@ "skipUrlEncoding": false }, { - "$id": "968", + "$id": "947", "name": "$maxpagesize", "nameInRequest": "$maxpagesize", "type": { - "$id": "969", + "$id": "948", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -12664,11 +12565,11 @@ "skipUrlEncoding": false }, { - "$id": "970", + "$id": "949", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "141" + "$ref": "127" }, "location": "Header", "isApiVersion": false, @@ -12683,79 +12584,23 @@ ], "response": { "type": { - "$id": "971", - "kind": "array", - "name": "ArrayZooAddress", - "valueType": { - "$id": "972", - "kind": "model", - "name": "ZooAddress", - "namespace": "MgmtTypeSpec", - "crossLanguageDefinitionId": "MgmtTypeSpec.ZooAddress", - "usage": "None", - "decorators": [], - "properties": [ - { - "$id": "973", - "kind": "property", - "name": "id", - "serializedName": "id", - "type": { - "$id": "974", - "kind": "string", - "name": "armResourceIdentifier", - "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", - "baseType": { - "$id": "975", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": true, - "readOnly": true, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.ZooAddress.id", - "serializationOptions": {} - } - ] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "resultSegments": [ - "value" - ] + "$ref": "401" + } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList", - "pagingMetadata": { - "itemPropertySegments": [ - "value" - ], - "nextLink": { - "responseSegments": [ - "nextLink" - ], - "responseLocation": "Body" - } - } + "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList" } ], "parameters": [ { - "$id": "976", + "$id": "950", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "977", + "$id": "951", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -12770,7 +12615,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "978", + "$id": "952", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12791,17 +12636,17 @@ "2024-05-01" ], "parent": { - "$ref": "431" + "$ref": "418" } }, { - "$id": "979", + "$id": "953", "kind": "client", "name": "FooTasks", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "980", + "$id": "954", "kind": "basic", "name": "previewActions", "accessibility": "public", @@ -12810,19 +12655,19 @@ ], "doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.", "operation": { - "$id": "981", + "$id": "955", "name": "previewActions", "resourceName": "FooTasks", "doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.", "accessibility": "public", "parameters": [ { - "$id": "982", + "$id": "956", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "983", + "$id": "957", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12837,7 +12682,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "984", + "$id": "958", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12848,17 +12693,17 @@ "skipUrlEncoding": false }, { - "$id": "985", + "$id": "959", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "986", + "$id": "960", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "987", + "$id": "961", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12877,16 +12722,16 @@ "skipUrlEncoding": false }, { - "$id": "988", + "$id": "962", "name": "location", "nameInRequest": "location", "type": { - "$id": "989", + "$id": "963", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "990", + "$id": "964", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12905,12 +12750,12 @@ "skipUrlEncoding": false }, { - "$id": "991", + "$id": "965", "name": "contentType", "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "143" + "$ref": "129" }, "location": "Header", "isApiVersion": false, @@ -12923,11 +12768,11 @@ "skipUrlEncoding": false }, { - "$id": "992", + "$id": "966", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "145" + "$ref": "131" }, "location": "Header", "isApiVersion": false, @@ -12940,12 +12785,12 @@ "skipUrlEncoding": false }, { - "$id": "993", + "$id": "967", "name": "body", "nameInRequest": "body", "doc": "The request body", "type": { - "$ref": "421" + "$ref": "408" }, "location": "Body", "isApiVersion": false, @@ -12964,7 +12809,7 @@ 200 ], "bodyType": { - "$ref": "421" + "$ref": "408" }, "headers": [], "isErrorResponse": false, @@ -12987,16 +12832,16 @@ }, "parameters": [ { - "$id": "994", + "$id": "968", "name": "location", "nameInRequest": "location", "type": { - "$id": "995", + "$id": "969", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "996", + "$id": "970", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13015,12 +12860,12 @@ "skipUrlEncoding": false }, { - "$id": "997", + "$id": "971", "name": "body", "nameInRequest": "body", "doc": "The request body", "type": { - "$ref": "421" + "$ref": "408" }, "location": "Body", "isApiVersion": false, @@ -13033,16 +12878,16 @@ "skipUrlEncoding": false }, { - "$id": "998", + "$id": "972", "name": "contentType", - "nameInRequest": "contentType", + "nameInRequest": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "143" + "$ref": "129" }, "location": "Header", "isApiVersion": false, - "isContentType": false, + "isContentType": true, "isEndpoint": false, "explode": false, "isRequired": true, @@ -13051,11 +12896,11 @@ "skipUrlEncoding": false }, { - "$id": "999", + "$id": "973", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "145" + "$ref": "131" }, "location": "Header", "isApiVersion": false, @@ -13070,7 +12915,7 @@ ], "response": { "type": { - "$ref": "421" + "$ref": "408" } }, "isOverride": false, @@ -13081,12 +12926,12 @@ ], "parameters": [ { - "$id": "1000", + "$id": "974", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "1001", + "$id": "975", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -13101,7 +12946,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "1002", + "$id": "976", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13117,17 +12962,17 @@ "2024-05-01" ], "parent": { - "$ref": "431" + "$ref": "418" } }, { - "$id": "1003", + "$id": "977", "kind": "client", "name": "ZooRecommendation", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "1004", + "$id": "978", "kind": "basic", "name": "recommend", "accessibility": "public", @@ -13136,19 +12981,19 @@ ], "doc": "A synchronous resource action.", "operation": { - "$id": "1005", + "$id": "979", "name": "recommend", "resourceName": "Zoos", "doc": "A synchronous resource action.", "accessibility": "public", "parameters": [ { - "$id": "1006", + "$id": "980", "name": "apiVersion", "nameInRequest": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1007", + "$id": "981", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13163,7 +13008,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "1008", + "$id": "982", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13174,17 +13019,17 @@ "skipUrlEncoding": false }, { - "$id": "1009", + "$id": "983", "name": "subscriptionId", "nameInRequest": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1010", + "$id": "984", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1011", + "$id": "985", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13203,12 +13048,12 @@ "skipUrlEncoding": false }, { - "$id": "1012", + "$id": "986", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1013", + "$id": "987", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13225,12 +13070,12 @@ "skipUrlEncoding": false }, { - "$id": "1014", + "$id": "988", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1015", + "$id": "989", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13247,11 +13092,11 @@ "skipUrlEncoding": false }, { - "$id": "1016", + "$id": "990", "name": "accept", "nameInRequest": "Accept", "type": { - "$ref": "147" + "$ref": "133" }, "location": "Header", "isApiVersion": false, @@ -13270,7 +13115,7 @@ 200 ], "bodyType": { - "$ref": "426" + "$ref": "413" }, "headers": [], "isErrorResponse": false, @@ -13295,12 +13140,12 @@ }, "parameters": [ { - "$id": "1017", + "$id": "991", "name": "resourceGroupName", "nameInRequest": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1018", + "$id": "992", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13317,12 +13162,12 @@ "skipUrlEncoding": false }, { - "$id": "1019", + "$id": "993", "name": "zooName", "nameInRequest": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1020", + "$id": "994", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13339,11 +13184,11 @@ "skipUrlEncoding": false }, { - "$id": "1021", + "$id": "995", "name": "accept", - "nameInRequest": "accept", + "nameInRequest": "Accept", "type": { - "$ref": "147" + "$ref": "133" }, "location": "Header", "isApiVersion": false, @@ -13358,7 +13203,7 @@ ], "response": { "type": { - "$ref": "426" + "$ref": "413" } }, "isOverride": false, @@ -13369,12 +13214,12 @@ ], "parameters": [ { - "$id": "1022", + "$id": "996", "name": "endpoint", "nameInRequest": "endpoint", "doc": "Service host", "type": { - "$id": "1023", + "$id": "997", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -13389,7 +13234,7 @@ "kind": "Client", "defaultValue": { "type": { - "$id": "1024", + "$id": "998", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13405,7 +13250,7 @@ "2024-05-01" ], "parent": { - "$ref": "431" + "$ref": "418" } } ] diff --git a/eng/packages/http-client-csharp-mgmt/package-lock.json b/eng/packages/http-client-csharp-mgmt/package-lock.json index 050b8331746b..522aeb9e8fc6 100644 --- a/eng/packages/http-client-csharp-mgmt/package-lock.json +++ b/eng/packages/http-client-csharp-mgmt/package-lock.json @@ -9,25 +9,25 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250729.4" + "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250812.2" }, "devDependencies": { - "@azure-tools/azure-http-specs": "0.1.0-alpha.19", - "@azure-tools/typespec-azure-core": "0.57.0", - "@azure-tools/typespec-azure-resource-manager": "0.57.0", - "@azure-tools/typespec-azure-rulesets": "0.57.0", - "@azure-tools/typespec-client-generator-core": "0.57.1", + "@azure-tools/azure-http-specs": "0.1.0-alpha.25", + "@azure-tools/typespec-azure-core": "0.59.0", + "@azure-tools/typespec-azure-resource-manager": "0.59.0", + "@azure-tools/typespec-azure-rulesets": "0.59.0", + "@azure-tools/typespec-client-generator-core": "0.59.0", "@azure-tools/typespec-liftr-base": "0.8.0", "@eslint/js": "^9.2.0", "@types/node": "~22.7.5", "@types/prettier": "^2.6.3", - "@typespec/compiler": "1.1.0", - "@typespec/http": "1.1.0", - "@typespec/http-specs": "0.1.0-alpha.23", - "@typespec/openapi": "1.1.0", - "@typespec/rest": "0.71.0", - "@typespec/tspd": "0.71.0", - "@typespec/versioning": "0.71.0", + "@typespec/compiler": "1.3.0", + "@typespec/http": "1.3.0", + "@typespec/http-specs": "0.1.0-alpha.25", + "@typespec/openapi": "1.3.0", + "@typespec/rest": "0.73.0", + "@typespec/tspd": "0.72.2", + "@typespec/versioning": "0.73.0", "@vitest/coverage-v8": "^3.0.5", "@vitest/ui": "^3.0.5", "c8": "^10.1.2", @@ -42,9 +42,9 @@ } }, "node_modules/@alloy-js/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@alloy-js/core/-/core-0.17.0.tgz", - "integrity": "sha512-ydVGcbdKfvazkbUDrmeoQAzCQDzSudJDtk/nzubnQjGJmLlq62RLKR5eKj1l9sope4L7UX98DLclJxiwiF5WAA==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@alloy-js/core/-/core-0.19.0.tgz", + "integrity": "sha512-Od92r7UgX7kRLJWfGD3+lLZBhrRQ5M2pV5Fqm1CuCKhFUV5CrfoW46DQy2gdSDLD4AE+N7oPo6DTkLqrxACHFA==", "dev": true, "license": "MIT", "dependencies": { @@ -56,9 +56,9 @@ } }, "node_modules/@alloy-js/core/node_modules/prettier": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", - "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, "license": "MIT", "bin": { @@ -72,24 +72,24 @@ } }, "node_modules/@alloy-js/markdown": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@alloy-js/markdown/-/markdown-0.17.0.tgz", - "integrity": "sha512-Z3D2NXKjWh/izImih4lG0crigk4JWb//eJBTpeyRJ6c2HQOi7j++eZNoABNlTPwHfh3aYyijyoQjVdnnxRLAmQ==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@alloy-js/markdown/-/markdown-0.19.0.tgz", + "integrity": "sha512-IKwzO6+ggXtl+bVy33wa5iBJx6KkMD7lzN3RJrKTvBPml7iuP21TwLjhUa1rmRQLekUZlbRuTYWaeWVEyrPYyw==", "dev": true, "license": "MIT", "dependencies": { - "@alloy-js/core": "~0.17.0", + "@alloy-js/core": "~0.19.0", "yaml": "^2.7.1" } }, "node_modules/@alloy-js/typescript": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@alloy-js/typescript/-/typescript-0.17.0.tgz", - "integrity": "sha512-7gmxjda6romnR+DYb5NYUfRNM2jOJnXweIG9tVzzT5ivEaizFdKQwY3tdbITupzMKoWIkhHpycGYpwXBHGy9Kw==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@alloy-js/typescript/-/typescript-0.19.0.tgz", + "integrity": "sha512-feYhirsNsKADZYWTwN+TrwD88cgdwQP1shDyBJuUgHPX2/LxSR2p5bace6Nw/qYOg44d1VVjf2pe+JFWNkShXw==", "dev": true, "license": "MIT", "dependencies": { - "@alloy-js/core": "~0.17.0", + "@alloy-js/core": "~0.19.0", "change-case": "^5.4.4", "pathe": "^2.0.3" } @@ -109,45 +109,45 @@ } }, "node_modules/@azure-tools/azure-http-specs": { - "version": "0.1.0-alpha.19", - "resolved": "https://registry.npmjs.org/@azure-tools/azure-http-specs/-/azure-http-specs-0.1.0-alpha.19.tgz", - "integrity": "sha512-zxBtxdBaGo5n8OvZmYiE3IXJB1X+8CS0CfrcqwqfYB+kAgXOHLKWnMkGE1Yx0UZdbrkFio0bnZRZRtu2E0tYdg==", + "version": "0.1.0-alpha.25", + "resolved": "https://registry.npmjs.org/@azure-tools/azure-http-specs/-/azure-http-specs-0.1.0-alpha.25.tgz", + "integrity": "sha512-fvexvGbDUUcd6su+RCln/hrOosbWYvl1FaycaifX0NVJub/ne492G2dvHLgp2N8rnUJ9uIenXYjHZHYsrjyGHQ==", "dev": true, "license": "MIT", "dependencies": { - "@typespec/spec-api": "^0.1.0-alpha.6", - "@typespec/spector": "^0.1.0-alpha.15" + "@typespec/spec-api": "^0.1.0-alpha.8", + "@typespec/spector": "^0.1.0-alpha.17" }, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.57.0", - "@typespec/compiler": "^1.1.0", - "@typespec/http": "^1.1.0", - "@typespec/rest": "^0.71.0", - "@typespec/versioning": "^0.71.0", - "@typespec/xml": "^0.71.0" + "@azure-tools/typespec-azure-core": "^0.59.0", + "@typespec/compiler": "^1.3.0", + "@typespec/http": "^1.3.0", + "@typespec/rest": "^0.73.0", + "@typespec/versioning": "^0.73.0", + "@typespec/xml": "^0.73.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.57.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.57.0.tgz", - "integrity": "sha512-O+F3axrJOJHjYGrQLRWoydHtWjWiXeAlaaILncS0I0xe6kinyFkpn7VIVKxH9ZZ+hPmkDAZybO53656R3PRfUA==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.59.0.tgz", + "integrity": "sha512-3vTWDTSR+P0qeyFcOKTgXortNOeA3nsyKTPpZqfFZVTtNFiiO17UWAM2Eg3i0IpNQ3qxMMAksIkwt1bqltTDqA==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0", - "@typespec/http": "^1.1.0", - "@typespec/rest": "^0.71.0" + "@typespec/compiler": "^1.3.0", + "@typespec/http": "^1.3.0", + "@typespec/rest": "^0.73.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.57.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.57.0.tgz", - "integrity": "sha512-KWDEzPTt6ifRjiUiugLyLUiGSSyQLoXxLmz/wpfmxIfvFK5oM0UL+l7K8eC5dob993r2LQvp/2c8EJugeAZ4Ug==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.59.0.tgz", + "integrity": "sha512-q0UkBnwWE4+9ivAkwAOOrDF9kvSb+qRIvMXJdUlqGfwFqDkOvQFwHSzSDeL/mBNK2fB9NIePKPFjDGP9lpC0vQ==", "dev": true, "license": "MIT", "dependencies": { @@ -158,54 +158,54 @@ "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.57.0", - "@typespec/compiler": "^1.1.0", - "@typespec/http": "^1.1.0", - "@typespec/openapi": "^1.1.0", - "@typespec/rest": "^0.71.0", - "@typespec/versioning": "^0.71.0" + "@azure-tools/typespec-azure-core": "^0.59.0", + "@typespec/compiler": "^1.3.0", + "@typespec/http": "^1.3.0", + "@typespec/openapi": "^1.3.0", + "@typespec/rest": "^0.73.0", + "@typespec/versioning": "^0.73.0" } }, "node_modules/@azure-tools/typespec-azure-rulesets": { - "version": "0.57.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.57.0.tgz", - "integrity": "sha512-O3Qw/RFIkNoJCWfwbg57hmj/GtnfNg3ZpBG6qCrSJSJLt6XG6EZ3yWujCqjx17nOsvAwB/J1+f/t/pFizQhWaw==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.59.0.tgz", + "integrity": "sha512-+eKYH25ptj6SZHT+/YfxrX+g6HMAQQTphmHmqOoRCbbfPaE8l855OaDrwEgh5NDLV8WXnHpzTNI0dsYipEp10g==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.57.0", - "@azure-tools/typespec-azure-resource-manager": "^0.57.0", - "@azure-tools/typespec-client-generator-core": "^0.57.0", - "@typespec/compiler": "^1.1.0" + "@azure-tools/typespec-azure-core": "^0.59.0", + "@azure-tools/typespec-azure-resource-manager": "^0.59.0", + "@azure-tools/typespec-client-generator-core": "^0.59.0", + "@typespec/compiler": "^1.3.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.57.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.57.1.tgz", - "integrity": "sha512-R91xwSVDQrAf7wk/u2aJDz/zthGjp+RpziVbFeg4+u4BdPP1+fY4WwXCb3wG4fF8GdlkvYZAE0q+HVPsu15gYg==", + "version": "0.59.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.59.0.tgz", + "integrity": "sha512-5+pVcOr7Uyq4IaZ3oLjLi8jnBuR+t/B8hQF4CZo+goe/uK+WkmDfw1TlY14G2ve7W7v8m9+Sk2nil6bN1uHWEQ==", "license": "MIT", "dependencies": { "change-case": "~5.4.4", "pluralize": "^8.0.0", - "yaml": "~2.7.0" + "yaml": "~2.8.0" }, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "^0.57.0", - "@typespec/compiler": "^1.1.0", - "@typespec/events": "^0.71.0", - "@typespec/http": "^1.1.0", - "@typespec/openapi": "^1.1.0", - "@typespec/rest": "^0.71.0", - "@typespec/sse": "^0.71.0", - "@typespec/streams": "^0.71.0", - "@typespec/versioning": "^0.71.0", - "@typespec/xml": "^0.71.0" + "@azure-tools/typespec-azure-core": "^0.59.0", + "@typespec/compiler": "^1.3.0", + "@typespec/events": "^0.73.0", + "@typespec/http": "^1.3.0", + "@typespec/openapi": "^1.3.0", + "@typespec/rest": "^0.73.0", + "@typespec/sse": "^0.73.0", + "@typespec/streams": "^0.73.0", + "@typespec/versioning": "^0.73.0", + "@typespec/xml": "^0.73.0" } }, "node_modules/@azure-tools/typespec-liftr-base": { @@ -215,12 +215,12 @@ "dev": true }, "node_modules/@azure-typespec/http-client-csharp": { - "version": "1.0.0-alpha.20250729.4", - "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250729.4.tgz", - "integrity": "sha512-UU0Se/4iRvb2rzOIvR4BGw8VA9Sz/bcb+8WUSRuLO4/lsWmc6TShogA+ereMHkvH2+K5x0EnZD93ISEQyZvl8A==", + "version": "1.0.0-alpha.20250812.2", + "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250812.2.tgz", + "integrity": "sha512-twOe9hWVrkZyaeGZ9CeHRSbC+Gvaiy3GtUYU+tiF/jvBVIwRrTPxCOngd+r147kP5fBlGSRo1WVT3Ns0VOsJow==", "license": "MIT", "dependencies": { - "@typespec/http-client-csharp": "1.0.0-alpha.20250729.1" + "@typespec/http-client-csharp": "1.0.0-alpha.20250811.4" } }, "node_modules/@azure/abort-controller": { @@ -237,9 +237,9 @@ } }, "node_modules/@azure/core-auth": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.9.0.tgz", - "integrity": "sha512-FPwHpZywuyasDSLMqJ6fhbOK3TqUdviZNF8OqRGA4W5Ewib2lEEZ+pBsYcBa88B2NGO/SEnYPGhyBqNlE8ilSw==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.10.0.tgz", + "integrity": "sha512-88Djs5vBvGbHQHf5ZZcaoNHo6Y8BKZkt3cw2iuJIQzLEgH4Ox6Tm4hjFhbqOxyYsgIG/eJbFEHpxRIfEEWv5Ow==", "dev": true, "license": "MIT", "dependencies": { @@ -248,13 +248,13 @@ "tslib": "^2.6.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@azure/core-client": { - "version": "1.9.4", - "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.9.4.tgz", - "integrity": "sha512-f7IxTD15Qdux30s2qFARH+JxgwxWLG2Rlr4oSkPGuLWm+1p5y1+C04XGLA0vmX6EtqfutmjvpNmAfgwVIS5hpw==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.10.0.tgz", + "integrity": "sha512-O4aP3CLFNodg8eTHXECaH3B3CjicfzkxVtnrfLkOq0XNP7TIECGfHpK/C6vADZkWP75wzmdBnsIA8ksuJMk18g==", "dev": true, "license": "MIT", "dependencies": { @@ -267,7 +267,7 @@ "tslib": "^2.6.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@azure/core-http-compat": { @@ -315,9 +315,9 @@ } }, "node_modules/@azure/core-rest-pipeline": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.21.0.tgz", - "integrity": "sha512-a4MBwe/5WKbq9MIxikzgxLBbruC5qlkFYlBdI7Ev50Y7ib5Vo/Jvt5jnJo7NaWeJ908LCHL0S1Us4UMf1VoTfg==", + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.22.0.tgz", + "integrity": "sha512-OKHmb3/Kpm06HypvB3g6Q3zJuvyXcpxDpCS1PnU8OV6AJgSFaee/covXBcPbWc6XDDxtEPlbi3EMQ6nUiPaQtw==", "dev": true, "license": "MIT", "dependencies": { @@ -326,45 +326,45 @@ "@azure/core-tracing": "^1.0.1", "@azure/core-util": "^1.11.0", "@azure/logger": "^1.0.0", - "@typespec/ts-http-runtime": "^0.2.3", + "@typespec/ts-http-runtime": "^0.3.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@azure/core-tracing": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.2.0.tgz", - "integrity": "sha512-UKTiEJPkWcESPYJz3X5uKRYyOcJD+4nYph+KpfdPRnQJVrZfk0KJgdnaAWKfhsBBtAf/D58Az4AvCJEmWgIBAg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.3.0.tgz", + "integrity": "sha512-+XvmZLLWPe67WXNZo9Oc9CrPj/Tm8QnHR92fFAFdnbzwNdCH1h+7UdpaQgRSBsMY+oW1kHXNUZQLdZ1gHX3ROw==", "dev": true, "license": "MIT", "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@azure/core-util": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.12.0.tgz", - "integrity": "sha512-13IyjTQgABPARvG90+N2dXpC+hwp466XCdQXPCRlbWHgd3SJd5Q1VvaBGv6k1BIa4MQm6hAF1UBU1m8QUxV8sQ==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.13.0.tgz", + "integrity": "sha512-o0psW8QWQ58fq3i24Q1K2XfS/jYTxr7O1HRcyUE9bV9NttLU+kYOH82Ixj8DGlMTOWgxm1Sss2QAfKK5UkSPxw==", "dev": true, "license": "MIT", "dependencies": { "@azure/abort-controller": "^2.0.0", - "@typespec/ts-http-runtime": "^0.2.2", + "@typespec/ts-http-runtime": "^0.3.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@azure/core-xml": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/@azure/core-xml/-/core-xml-1.4.5.tgz", - "integrity": "sha512-gT4H8mTaSXRz7eGTuQyq1aIJnJqeXzpOe9Ay7Z3FrCouer14CbV3VzjnJrNrQfbBpGBLO9oy8BmrY75A0p53cA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@azure/core-xml/-/core-xml-1.5.0.tgz", + "integrity": "sha512-D/sdlJBMJfx7gqoj66PKVmhDDaU6TKA49ptcolxdas29X7AfvLTmfAGLjAcIMBK7UZ2o4lygHIqVckOlQU3xWw==", "dev": true, "license": "MIT", "dependencies": { @@ -372,13 +372,13 @@ "tslib": "^2.8.1" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@azure/identity": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.9.1.tgz", - "integrity": "sha512-986D7Cf1AOwYqSDtO/FnMAyk/Jc8qpftkGsxuehoh4F85MhQ4fICBGX/44+X1y78lN4Sqib3Bsoaoh/FvOGgmg==", + "version": "4.10.2", + "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.10.2.tgz", + "integrity": "sha512-Uth4vz0j+fkXCkbvutChUj03PDCokjbC6Wk9JT8hHEUtpy/EurNKAseb3+gO6Zi9VYBvwt61pgbzn1ovk942Qg==", "dev": true, "license": "MIT", "dependencies": { @@ -395,40 +395,40 @@ "tslib": "^2.2.0" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@azure/logger": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.2.0.tgz", - "integrity": "sha512-0hKEzLhpw+ZTAfNJyRrn6s+V0nDWzXk9OjBr2TiGIu0OfMr5s2V4FpKLTAK3Ca5r5OKLbf4hkOGDPyiRjie/jA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.3.0.tgz", + "integrity": "sha512-fCqPIfOcLE+CGqGPd66c8bZpwAji98tZ4JI9i/mlTNTlsIWslCfpg48s/ypyLxZTump5sypjrKn2/kY7q8oAbA==", "dev": true, "license": "MIT", "dependencies": { - "@typespec/ts-http-runtime": "^0.2.2", + "@typespec/ts-http-runtime": "^0.3.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@azure/msal-browser": { - "version": "4.13.2", - "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.13.2.tgz", - "integrity": "sha512-lS75bF6FYZRwsacKLXc8UYu/jb+gOB7dtZq5938chCvV/zKTFDnzuXxCXhsSUh0p8s/P8ztgbfdueD9lFARQlQ==", + "version": "4.19.0", + "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-4.19.0.tgz", + "integrity": "sha512-g6Ea+sJmK7l5NUyrPhtD7DNj/tZcsr6VTNNLNuYs8yPvL3HNiIpO/0kzXntF9AqJ/6L+uz9aHmoT1x+RNq6zBQ==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "15.7.1" + "@azure/msal-common": "15.10.0" }, "engines": { "node": ">=0.8.0" } }, "node_modules/@azure/msal-common": { - "version": "15.7.1", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.7.1.tgz", - "integrity": "sha512-a0eowoYfRfKZEjbiCoA5bPT3IlWRAdGSvi63OU23Hv+X6EI8gbvXCoeqokUceFMoT9NfRUWTJSx5FiuzruqT8g==", + "version": "15.10.0", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-15.10.0.tgz", + "integrity": "sha512-+cGnma71NV3jzl6DdgdHsqriN4ZA7puBIzObSYCvcIVGMULGb2NrcOGV6IJxO06HoVRHFKijkxd9lcBvS063KQ==", "dev": true, "license": "MIT", "engines": { @@ -436,13 +436,13 @@ } }, "node_modules/@azure/msal-node": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.6.1.tgz", - "integrity": "sha512-ctcVz4xS+st5KxOlQqgpvA+uDFAa59CvkmumnuhlD2XmNczloKBdCiMQG7/TigSlaeHe01qoOlDjz3TyUAmKUg==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-3.7.0.tgz", + "integrity": "sha512-WsL11pT0hnoIr/4NCjG6uJswkmNA/9AgEre4mSQZS2e+ZPKUWwUdA5nCTnr4n1FMT1O5ezSEiJushnPW25Y+dA==", "dev": true, "license": "MIT", "dependencies": { - "@azure/msal-common": "15.7.1", + "@azure/msal-common": "15.10.0", "jsonwebtoken": "^9.0.0", "uuid": "^8.3.0" }, @@ -1430,6 +1430,29 @@ } } }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -1608,18 +1631,109 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@microsoft/api-extractor": { + "version": "7.52.10", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.52.10.tgz", + "integrity": "sha512-LhKytJM5ZJkbHQVfW/3o747rZUNs/MGg6j/wt/9qwwqEOfvUDTYXXxIBuMgrRXhJ528p41iyz4zjBVHZU74Odg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@microsoft/api-extractor-model": "7.30.7", + "@microsoft/tsdoc": "~0.15.1", + "@microsoft/tsdoc-config": "~0.17.1", + "@rushstack/node-core-library": "5.14.0", + "@rushstack/rig-package": "0.5.3", + "@rushstack/terminal": "0.15.4", + "@rushstack/ts-command-line": "5.0.2", + "lodash": "~4.17.15", + "minimatch": "10.0.3", + "resolve": "~1.22.1", + "semver": "~7.5.4", + "source-map": "~0.6.1", + "typescript": "5.8.2" + }, + "bin": { + "api-extractor": "bin/api-extractor" + } + }, "node_modules/@microsoft/api-extractor-model": { - "version": "7.30.6", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.30.6.tgz", - "integrity": "sha512-znmFn69wf/AIrwHya3fxX6uB5etSIn6vg4Q4RB/tb5VDDs1rqREc+AvMC/p19MUN13CZ7+V/8pkYPTj7q8tftg==", + "version": "7.30.7", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.30.7.tgz", + "integrity": "sha512-TBbmSI2/BHpfR9YhQA7nH0nqVmGgJ0xH0Ex4D99/qBDAUpnhA2oikGmdXanbw9AWWY/ExBYIpkmY8dBHdla3YQ==", "dev": true, "license": "MIT", "dependencies": { "@microsoft/tsdoc": "~0.15.1", "@microsoft/tsdoc-config": "~0.17.1", - "@rushstack/node-core-library": "5.13.1" + "@rushstack/node-core-library": "5.14.0" } }, + "node_modules/@microsoft/api-extractor/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@microsoft/api-extractor/node_modules/minimatch": { + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", + "dev": true, + "license": "ISC", + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@microsoft/api-extractor/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@microsoft/api-extractor/node_modules/typescript": { + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/@microsoft/api-extractor/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true, + "license": "ISC" + }, "node_modules/@microsoft/tsdoc": { "version": "0.15.1", "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.15.1.tgz", @@ -1991,9 +2105,9 @@ ] }, "node_modules/@rushstack/node-core-library": { - "version": "5.13.1", - "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-5.13.1.tgz", - "integrity": "sha512-5yXhzPFGEkVc9Fu92wsNJ9jlvdwz4RNb2bMso+/+TH0nMm1jDDDsOIf4l8GAkPxGuwPw5DH24RliWVfSPhlW/Q==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-5.14.0.tgz", + "integrity": "sha512-eRong84/rwQUlATGFW3TMTYVyqL1vfW9Lf10PH+mVGfIb9HzU3h5AASNIw+axnBLjnD0n3rT5uQBwu9fvzATrg==", "dev": true, "license": "MIT", "dependencies": { @@ -2068,6 +2182,75 @@ "dev": true, "license": "ISC" }, + "node_modules/@rushstack/rig-package": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@rushstack/rig-package/-/rig-package-0.5.3.tgz", + "integrity": "sha512-olzSSjYrvCNxUFZowevC3uz8gvKr3WTpHQ7BkpjtRpA3wK+T0ybep/SRUMfr195gBzJm5gaXw0ZMgjIyHqJUow==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve": "~1.22.1", + "strip-json-comments": "~3.1.1" + } + }, + "node_modules/@rushstack/terminal": { + "version": "0.15.4", + "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.15.4.tgz", + "integrity": "sha512-OQSThV0itlwVNHV6thoXiAYZlQh4Fgvie2CzxFABsbO2MWQsI4zOh3LRNigYSTrmS+ba2j0B3EObakPzf/x6Zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rushstack/node-core-library": "5.14.0", + "supports-color": "~8.1.1" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/terminal/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/@rushstack/ts-command-line": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-5.0.2.tgz", + "integrity": "sha512-+AkJDbu1GFMPIU8Sb7TLVXDv/Q7Mkvx+wAjEl8XiXVVq+p1FmWW6M3LYpJMmoHNckSofeMecgWg5lfMwNAAsEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rushstack/terminal": "0.15.4", + "@types/argparse": "1.0.38", + "argparse": "~1.0.9", + "string-argv": "~0.3.1" + } + }, + "node_modules/@rushstack/ts-command-line/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/@shikijs/engine-oniguruma": { "version": "3.4.2", "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.4.2.tgz", @@ -2129,6 +2312,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@types/argparse": { + "version": "1.0.38", + "resolved": "https://registry.npmjs.org/@types/argparse/-/argparse-1.0.38.tgz", + "integrity": "sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/estree": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", @@ -2435,9 +2625,9 @@ } }, "node_modules/@typespec/compiler": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.1.0.tgz", - "integrity": "sha512-dtwosIqd2UUEEIVBR+oDiUtN4n1lP8/9GxQVno+wbkijQgKDj4Hg0Vaq6HG4BduF7RptDdtzkdGQCS9CgOIdRA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.3.0.tgz", + "integrity": "sha512-OqpoNP3C2y8riA6C5RofPMvmj9jNiGyyhde0tM2ZE7IBOv7BBaTDqw4CJD22YnC8JEilRfPmvdVCViNrPHEjrA==", "license": "MIT", "dependencies": { "@babel/code-frame": "~7.27.1", @@ -2449,14 +2639,14 @@ "is-unicode-supported": "^2.1.0", "mustache": "~4.2.0", "picocolors": "~1.1.1", - "prettier": "~3.5.3", + "prettier": "~3.6.2", "semver": "^7.7.1", "tar": "^7.4.3", "temporal-polyfill": "^0.3.0", "vscode-languageserver": "~9.0.1", "vscode-languageserver-textdocument": "~1.0.12", - "yaml": "~2.7.0", - "yargs": "~17.7.2" + "yaml": "~2.8.0", + "yargs": "~18.0.0" }, "bin": { "tsp": "cmd/tsp.js", @@ -2466,10 +2656,54 @@ "node": ">=20.0.0" } }, + "node_modules/@typespec/compiler/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@typespec/compiler/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@typespec/compiler/node_modules/cliui": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", + "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", + "license": "ISC", + "dependencies": { + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@typespec/compiler/node_modules/emoji-regex": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", + "license": "MIT" + }, "node_modules/@typespec/compiler/node_modules/prettier": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", - "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" @@ -2481,30 +2715,105 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/@typespec/compiler/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@typespec/compiler/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@typespec/compiler/node_modules/wrap-ansi": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", + "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/@typespec/compiler/node_modules/yargs": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz", + "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==", + "license": "MIT", + "dependencies": { + "cliui": "^9.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "string-width": "^7.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^22.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/@typespec/compiler/node_modules/yargs-parser": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "license": "ISC", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, "node_modules/@typespec/events": { - "version": "0.71.0", - "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.71.0.tgz", - "integrity": "sha512-dJeyqBGqTTSlFDVWpdqeMjDpEyRmenH3yDABK3T/30MrO94sdXigxmeBnPCcOaaqst6pV3anFuKwfAqEN3GnbA==", + "version": "0.73.0", + "resolved": "https://registry.npmjs.org/@typespec/events/-/events-0.73.0.tgz", + "integrity": "sha512-etlhp86amDaElD/UX27u9I4O58zREov73HkkV3xbdTWpv2RqOKyD3mkyGAWsW3hKaGVIxwHOvKcOZ2j+b07Gpw==", "license": "MIT", "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0" + "@typespec/compiler": "^1.3.0" } }, "node_modules/@typespec/http": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.1.0.tgz", - "integrity": "sha512-1doVGmkv3N8l57fVuci4jGMZ61EZBlDzuNZO2b9o0+mexCOs/P96CIpFkaNVvTQgjpyFsW1DlXiUKAvUC9zQfg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.3.0.tgz", + "integrity": "sha512-4W3KsmBHZGgECVbvyh7S7KQG06948XyVVzae+UbVDDxoUj/x4Ry0AXw3q4HmzB2BVhxw6JBrwBuVa5mxjVMzdw==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0", - "@typespec/streams": "^0.71.0" + "@typespec/compiler": "^1.3.0", + "@typespec/streams": "^0.73.0" }, "peerDependenciesMeta": { "@typespec/streams": { @@ -2513,72 +2822,73 @@ } }, "node_modules/@typespec/http-client-csharp": { - "version": "1.0.0-alpha.20250729.1", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250729.1.tgz", - "integrity": "sha512-HTuVjFMp0HjnpngjZARIwplShUmz9ENe3jNoHvCR2Fg6sGm8LPTPhQD0LfBHIOMykMBmoZIGLwIPaXT/YRaVfg==", + "version": "1.0.0-alpha.20250811.4", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250811.4.tgz", + "integrity": "sha512-FFRNFiLnWQHbIOtWkqNBObcOeTwL7Ur6kpzafxao4X8ABTpqEaZF34oXk3LTAdJPczQdk8RGiKpEVoQEn6FP2g==", "license": "MIT", "peerDependencies": { - "@azure-tools/typespec-azure-core": ">=0.57.0 <0.58.0 || ~0.58.0-0", - "@azure-tools/typespec-client-generator-core": ">=0.57.0 <0.58.0 || ~0.58.0-0", - "@typespec/compiler": "^1.1.0", - "@typespec/http": "^1.1.0", - "@typespec/openapi": "^1.1.0", - "@typespec/rest": ">=0.71.0 <0.72.0 || ~0.72.0-0", - "@typespec/versioning": ">=0.71.0 <0.72.0 || ~0.72.0-0" + "@azure-tools/typespec-azure-core": ">=0.59.0 <0.60.0 || ~0.60.0-0", + "@azure-tools/typespec-client-generator-core": ">=0.59.0 <0.60.0 || ~0.60.0-0", + "@typespec/compiler": "^1.3.0", + "@typespec/http": "^1.3.0", + "@typespec/openapi": "^1.3.0", + "@typespec/rest": ">=0.73.0 <0.74.0 || ~0.74.0-0", + "@typespec/streams": ">=0.73.0 <0.74.0 || ~0.74.0-0", + "@typespec/versioning": ">=0.73.0 <0.74.0 || ~0.74.0-0" } }, "node_modules/@typespec/http-specs": { - "version": "0.1.0-alpha.23", - "resolved": "https://registry.npmjs.org/@typespec/http-specs/-/http-specs-0.1.0-alpha.23.tgz", - "integrity": "sha512-WapMMNIjGiEdojZ7xXcVAK5WrK08qG1ks4Xl//DRsuFFAJD8wihb8V1WMUaqDpgb7MUe7cJpHYWiPiI17yR9VQ==", + "version": "0.1.0-alpha.25", + "resolved": "https://registry.npmjs.org/@typespec/http-specs/-/http-specs-0.1.0-alpha.25.tgz", + "integrity": "sha512-3/3uMaWSLjc5wP0gT5K8O7s0bgW/6dJiFpKhFR1HT7y8/rFguVRVXRn/SC43F00ADjE3VVlxWqeSeYK59uuAHw==", "dev": true, "license": "MIT", "dependencies": { - "@typespec/spec-api": "^0.1.0-alpha.6", - "@typespec/spector": "^0.1.0-alpha.15", + "@typespec/spec-api": "^0.1.0-alpha.8", + "@typespec/spector": "^0.1.0-alpha.17", "deep-equal": "^2.2.0" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0", - "@typespec/http": "^1.1.0", - "@typespec/rest": "^0.71.0", - "@typespec/versioning": "^0.71.0", - "@typespec/xml": "^0.71.0" + "@typespec/compiler": "^1.3.0", + "@typespec/http": "^1.3.0", + "@typespec/rest": "^0.73.0", + "@typespec/versioning": "^0.73.0", + "@typespec/xml": "^0.73.0" } }, "node_modules/@typespec/openapi": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.1.0.tgz", - "integrity": "sha512-HPvrpSS7eSVk3fEkWndcDTrAZssWRYv3FyDTqVqljildc7FAiXdo88+r5CCK8endmgIrES7uJdHLkcIGUZx1pg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.3.0.tgz", + "integrity": "sha512-BSeshjCZQodVGyVHn7ytcUeIcUGjqbG2Ac0NLOQaaKnISVrhTWNcgo5aFTqxAa24ZL/EuhqlSauLyYce2EV9fw==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0", - "@typespec/http": "^1.1.0" + "@typespec/compiler": "^1.3.0", + "@typespec/http": "^1.3.0" } }, "node_modules/@typespec/rest": { - "version": "0.71.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.71.0.tgz", - "integrity": "sha512-5qX+nWO5Jx4P1iTTT2REgdCtHsTMjlv/gL90u8cO1ih3yHDtf18a41UL6jSYaVUIvIj6rlmrgopActf0FhhUcw==", + "version": "0.73.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.73.0.tgz", + "integrity": "sha512-28hgFGvreBg34Xuguw+E++pQC/kbRxy1Bpx/9nU7x87Ly6ykns3lpx74gjY9ByE8VYKVbXtC7lzdnp19DRSjIQ==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0", - "@typespec/http": "^1.1.0" + "@typespec/compiler": "^1.3.0", + "@typespec/http": "^1.3.0" } }, "node_modules/@typespec/spec-api": { - "version": "0.1.0-alpha.6", - "resolved": "https://registry.npmjs.org/@typespec/spec-api/-/spec-api-0.1.0-alpha.6.tgz", - "integrity": "sha512-wHEFLrmj0lCwUSacE3pqMsPJxQbBdNuNqvjYrEGbl0+8Zck8tkCVzqITOcbYow7iemiqDnLKIS9Kp+L5Snyy+A==", + "version": "0.1.0-alpha.8", + "resolved": "https://registry.npmjs.org/@typespec/spec-api/-/spec-api-0.1.0-alpha.8.tgz", + "integrity": "sha512-WEnnx/Ts53wruj8WL5oR/aAFxTO2gkb8uzhdjZtiGkEy2iJGTus/bETh+aIIzRcoTJ3+o8JucrTvAUMauCOICQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2591,52 +2901,52 @@ } }, "node_modules/@typespec/spec-coverage-sdk": { - "version": "0.1.0-alpha.7", - "resolved": "https://registry.npmjs.org/@typespec/spec-coverage-sdk/-/spec-coverage-sdk-0.1.0-alpha.7.tgz", - "integrity": "sha512-IP70aXZ8NQkJj13bNPQytlvrD69T7hkeNV4vqKDTQTl6zVK2mUDl3RFknK6JVukopnYyrHLy4ZTd64iILby+jQ==", + "version": "0.1.0-alpha.9", + "resolved": "https://registry.npmjs.org/@typespec/spec-coverage-sdk/-/spec-coverage-sdk-0.1.0-alpha.9.tgz", + "integrity": "sha512-8L2c2r9Z7wrChaAyuuo9Ix3++urtjoyfLTvxRd8PNWJLL8nPYAmetDngmSg3J4Sfxq4nHP5pxIIVBG0axFiGwA==", "dev": true, "license": "MIT", "dependencies": { - "@azure/identity": "~4.9.1", + "@azure/identity": "~4.10.1", "@azure/storage-blob": "~12.27.0", - "@types/node": "~22.13.11" + "@types/node": "~24.1.0" }, "engines": { "node": ">=16.0.0" } }, "node_modules/@typespec/spec-coverage-sdk/node_modules/@types/node": { - "version": "22.13.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.17.tgz", - "integrity": "sha512-nAJuQXoyPj04uLgu+obZcSmsfOenUg6DxPKogeUy6yNCFwWaj5sBF8/G/pNo8EtBJjAfSVgfIlugR/BCOleO+g==", + "version": "24.1.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.1.0.tgz", + "integrity": "sha512-ut5FthK5moxFKH2T1CUOC6ctR67rQRvvHdFLCD2Ql6KXmMuCrjsSsRI9UsLCm9M18BMwClv4pn327UvB7eeO1w==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.20.0" + "undici-types": "~7.8.0" } }, "node_modules/@typespec/spec-coverage-sdk/node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", "dev": true, "license": "MIT" }, "node_modules/@typespec/spector": { - "version": "0.1.0-alpha.15", - "resolved": "https://registry.npmjs.org/@typespec/spector/-/spector-0.1.0-alpha.15.tgz", - "integrity": "sha512-FAd27pm0PGAmsv2H7wzCMd4Wb+21yyoIYAhN8lgfme1EW8QckdiN/uBNXKtt62RDOFFwoUI5x69M5wwvi5la2A==", + "version": "0.1.0-alpha.17", + "resolved": "https://registry.npmjs.org/@typespec/spector/-/spector-0.1.0-alpha.17.tgz", + "integrity": "sha512-N1jfnrOKUlm09cuZ9W54gRVfoti7D36+hs/FaOlgXrFMjpFzBydkHY005CpgsdBJhSZN/ae1rizdZ5dkJpN6Aw==", "dev": true, "license": "MIT", "dependencies": { - "@azure/identity": "~4.9.1", + "@azure/identity": "~4.10.1", "@types/js-yaml": "^4.0.5", - "@typespec/compiler": "^1.1.0", - "@typespec/http": "^1.1.0", - "@typespec/rest": "^0.71.0", - "@typespec/spec-api": "^0.1.0-alpha.6", - "@typespec/spec-coverage-sdk": "^0.1.0-alpha.7", - "@typespec/versioning": "^0.71.0", + "@typespec/compiler": "^1.3.0", + "@typespec/http": "^1.3.0", + "@typespec/rest": "^0.73.0", + "@typespec/spec-api": "^0.1.0-alpha.8", + "@typespec/spec-coverage-sdk": "^0.1.0-alpha.9", + "@typespec/versioning": "^0.73.0", "ajv": "~8.17.1", "body-parser": "^2.2.0", "deep-equal": "^2.2.0", @@ -2649,7 +2959,7 @@ "picocolors": "~1.1.1", "source-map-support": "~0.5.21", "xml2js": "^0.6.2", - "yargs": "~17.7.2" + "yargs": "~18.0.0" }, "bin": { "tsp-spector": "cmd/cli.mjs" @@ -2658,39 +2968,167 @@ "node": ">=16.0.0" } }, + "node_modules/@typespec/spector/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@typespec/spector/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@typespec/spector/node_modules/cliui": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", + "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@typespec/spector/node_modules/emoji-regex": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typespec/spector/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@typespec/spector/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@typespec/spector/node_modules/wrap-ansi": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", + "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/@typespec/spector/node_modules/yargs": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz", + "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^9.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "string-width": "^7.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^22.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/@typespec/spector/node_modules/yargs-parser": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, "node_modules/@typespec/sse": { - "version": "0.71.0", - "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.71.0.tgz", - "integrity": "sha512-4lAwDMj8h/50s6zp/8IX8CLW+H3P+od5O32Bb8+fyTabEo7+H3PbdBbIJGv9Sj7+l8+bZXsyfRXa+aJxR9o2ZA==", + "version": "0.73.0", + "resolved": "https://registry.npmjs.org/@typespec/sse/-/sse-0.73.0.tgz", + "integrity": "sha512-WTnRJ1b1M3RPzlHxhnK9sh6+AGKPKWpuA0TSAqzyxb/uRHFYLNeoDKPOnlQ749SJ8lJz71Oh0nUsP3vB0EzO6Q==", "license": "MIT", "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0", - "@typespec/events": "^0.71.0", - "@typespec/http": "^1.1.0", - "@typespec/streams": "^0.71.0" + "@typespec/compiler": "^1.3.0", + "@typespec/events": "^0.73.0", + "@typespec/http": "^1.3.0", + "@typespec/streams": "^0.73.0" } }, "node_modules/@typespec/streams": { - "version": "0.71.0", - "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.71.0.tgz", - "integrity": "sha512-ofyAcg8GnO6uTffGo00D6MMfRkqie4QtnUUSGNC1Bam2WG+wkeSG/huP0WNRT8GofzK1N0M6QqQwAW/vdq9ymQ==", + "version": "0.73.0", + "resolved": "https://registry.npmjs.org/@typespec/streams/-/streams-0.73.0.tgz", + "integrity": "sha512-pL4xffHXEIhBQKPlB9L4AKuM0bn44WsGKjnz91wa6wBtP/CbsPrGQicof0Z7GPGdddtDi4G8PWGmJtVFw53V9g==", "license": "MIT", "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0" + "@typespec/compiler": "^1.3.0" } }, "node_modules/@typespec/ts-http-runtime": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.2.3.tgz", - "integrity": "sha512-oRhjSzcVjX8ExyaF8hC0zzTqxlVuRlgMHL/Bh4w3xB9+wjbm0FpXylVU/lBrn+kgphwYTrOk3tp+AVShGmlYCg==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.0.tgz", + "integrity": "sha512-sOx1PKSuFwnIl7z4RN0Ls7N9AQawmR9r66eI5rFCzLDIs8HTIYrIpH9QjYWoX0lkgGrkLxXhi4QnK7MizPRrIg==", "dev": true, "license": "MIT", "dependencies": { @@ -2699,29 +3137,30 @@ "tslib": "^2.6.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.0.0" } }, "node_modules/@typespec/tspd": { - "version": "0.71.0", - "resolved": "https://registry.npmjs.org/@typespec/tspd/-/tspd-0.71.0.tgz", - "integrity": "sha512-r/K0DicVsMrdZYCigG3X7c0mVhzWz0p+jtke/gl2L8rAEfsvNxwQUbRQ2CCvZNpt9w474trgKDG8JGjQjIXAeQ==", + "version": "0.72.2", + "resolved": "https://registry.npmjs.org/@typespec/tspd/-/tspd-0.72.2.tgz", + "integrity": "sha512-rDj0wVpE4ypHaTCdqbmkxIo5PrDxY80YZ4bBKuGN3gXDMLn5J6mMyHQVeJ+MXGY+p0xBN3VlgpllDiRDHNK9VQ==", "dev": true, "license": "MIT", "dependencies": { - "@alloy-js/core": "^0.17.0", - "@alloy-js/markdown": "^0.17.0", - "@alloy-js/typescript": "^0.17.0", + "@alloy-js/core": "^0.19.0", + "@alloy-js/markdown": "^0.19.0", + "@alloy-js/typescript": "^0.19.0", + "@microsoft/api-extractor": "^7.52.1", "@microsoft/api-extractor-model": "^7.30.6", "@microsoft/tsdoc": "^0.15.1", "@microsoft/tsdoc-config": "^0.17.1", - "@typespec/compiler": "^1.1.0", + "@typespec/compiler": "^1.3.0", "picocolors": "~1.1.1", - "prettier": "~3.5.3", + "prettier": "~3.6.2", "typedoc": "^0.28.1", "typedoc-plugin-markdown": "^4.5.2", - "yaml": "~2.7.0", - "yargs": "~17.7.2" + "yaml": "~2.8.0", + "yargs": "~18.0.0" }, "bin": { "tspd": "cmd/tspd.js" @@ -2730,10 +3169,58 @@ "node": ">=20.0.0" } }, + "node_modules/@typespec/tspd/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@typespec/tspd/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@typespec/tspd/node_modules/cliui": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", + "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@typespec/tspd/node_modules/emoji-regex": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", + "dev": true, + "license": "MIT" + }, "node_modules/@typespec/tspd/node_modules/prettier": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", - "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, "license": "MIT", "bin": { @@ -2746,29 +3233,109 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/@typespec/tspd/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@typespec/tspd/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@typespec/tspd/node_modules/wrap-ansi": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", + "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/@typespec/tspd/node_modules/yargs": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz", + "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^9.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "string-width": "^7.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^22.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/@typespec/tspd/node_modules/yargs-parser": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, "node_modules/@typespec/versioning": { - "version": "0.71.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.71.0.tgz", - "integrity": "sha512-8qknFLOpZTVzQ+SveXg9G7WJV8P80yxLlj0nOc3ZLBKiPgM6FF7vGWHRNtnh7s3gSXvWyxopaJ9fZSLZSJmbww==", + "version": "0.73.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.73.0.tgz", + "integrity": "sha512-cfFvzTsvsu4VpdwZcRULr3p/fawKZnjiJClQxlLcYW0dLs/5k5jh7l0YyPkYvgkOcncUrIB6hIu82tQhKrMDKQ==", "license": "MIT", "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0" + "@typespec/compiler": "^1.3.0" } }, "node_modules/@typespec/xml": { - "version": "0.71.0", - "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.71.0.tgz", - "integrity": "sha512-IcBM4fd5li+hfaUoxeiFrUJx+gCGwIJ+LojdbAZPP3Kbdv12RS+8+CHH6d9qGV3qExgWGCny6WDUrUIaVCLonw==", + "version": "0.73.0", + "resolved": "https://registry.npmjs.org/@typespec/xml/-/xml-0.73.0.tgz", + "integrity": "sha512-vlMM8/L22O/PbI3ovj3qoww/3Z8wNwn7og4jzlGRM93jZBJvrOeDSwZo1Dc4rMJyU6KfjPkP3/l5TLbgW8x0zA==", "license": "MIT", "peer": true, "engines": { "node": ">=20.0.0" }, "peerDependencies": { - "@typespec/compiler": "^1.1.0" + "@typespec/compiler": "^1.3.0" } }, "node_modules/@ungap/structured-clone": { @@ -2947,19 +3514,19 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.5.17", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.17.tgz", - "integrity": "sha512-l/rmw2STIscWi7SNJp708FK4Kofs97zc/5aEPQh4bOsReD/8ICuBcEmS7KGwDj5ODQLYWVN2lNibKJL1z5b+Lw==", + "version": "3.5.18", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.18.tgz", + "integrity": "sha512-x0vPO5Imw+3sChLM5Y+B6G1zPjwdOri9e8V21NnTnlEvkxatHEH5B5KEAJcjuzQ7BsjGrKtfzuQ5eQwXh8HXBg==", "dev": true, "license": "MIT", "dependencies": { - "@vue/shared": "3.5.17" + "@vue/shared": "3.5.18" } }, "node_modules/@vue/shared": { - "version": "3.5.17", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.17.tgz", - "integrity": "sha512-CabR+UN630VnsJO/jHWYBC1YVXyMq94KKp6iF5MQgZJs5I8cmjw6oVMO1oDbtBkENSHSSn/UadWlW/OAgdmKrg==", + "version": "3.5.18", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.18.tgz", + "integrity": "sha512-cZy8Dq+uuIXbxCZpuLd2GJdeSO/lIzIspC2WtkqIpje5QyFbvLaI5wZtdUjLHjGZrlVX6GilejatWwVYYRc8tA==", "dev": true, "license": "MIT" }, @@ -3001,9 +3568,9 @@ } }, "node_modules/agent-base": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", - "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", "dev": true, "license": "MIT", "engines": { @@ -3499,6 +4066,7 @@ "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, "license": "ISC", "dependencies": { "string-width": "^4.2.0", @@ -3513,6 +4081,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", @@ -4592,9 +5161,9 @@ } }, "node_modules/fs-extra": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz", - "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==", + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz", + "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==", "dev": true, "license": "MIT", "dependencies": { @@ -4657,6 +5226,18 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-east-asian-width": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", + "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", @@ -4946,6 +5527,16 @@ "node": ">= 0.8" } }, + "node_modules/http-errors/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/http-proxy-agent": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", @@ -5692,6 +6283,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true, + "license": "MIT" + }, "node_modules/lodash.includes": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", @@ -5971,9 +6569,9 @@ } }, "node_modules/morgan": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", - "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz", + "integrity": "sha512-223dMRJtI/l25dJKWpgij2cMtywuG/WiUKXdvwfbhGKBhy1puASqXwFzmWZ7+K73vUPoR7SS2Qz2cI/g9MKw0A==", "dev": true, "license": "MIT", "dependencies": { @@ -5981,7 +6579,7 @@ "debug": "2.6.9", "depd": "~2.0.0", "on-finished": "~2.3.0", - "on-headers": "~1.0.2" + "on-headers": "~1.1.0" }, "engines": { "node": ">= 0.8.0" @@ -6035,9 +6633,9 @@ "license": "MIT" }, "node_modules/multer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/multer/-/multer-2.0.1.tgz", - "integrity": "sha512-Ug8bXeTIUlxurg8xLTEskKShvcKDZALo1THEX5E41pYCD2sCVub5/kIRIGqWNoqV6szyLyQKV6mD4QUrWE5GCQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/multer/-/multer-2.0.2.tgz", + "integrity": "sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==", "dev": true, "license": "MIT", "dependencies": { @@ -6239,9 +6837,9 @@ } }, "node_modules/on-headers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz", + "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==", "dev": true, "license": "MIT", "engines": { @@ -6259,16 +6857,16 @@ } }, "node_modules/open": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/open/-/open-10.1.2.tgz", - "integrity": "sha512-cxN6aIDPz6rm8hbebcP7vrQNhvRcveZoJU72Y7vskh4oIm+BZwBECnx5nTmrlres1Qapvx27Qo1Auukpf8PKXw==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/open/-/open-10.2.0.tgz", + "integrity": "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==", "dev": true, "license": "MIT", "dependencies": { "default-browser": "^5.2.1", "define-lazy-prop": "^3.0.0", "is-inside-container": "^1.0.0", - "is-wsl": "^3.1.0" + "wsl-utils": "^0.1.0" }, "engines": { "node": ">=18" @@ -6700,6 +7298,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -7188,6 +7787,13 @@ "source-map": "^0.6.0" } }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" + }, "node_modules/stackback": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", @@ -7196,9 +7802,9 @@ "license": "MIT" }, "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", "dev": true, "license": "MIT", "engines": { @@ -7245,6 +7851,16 @@ "safe-buffer": "~5.2.0" } }, + "node_modules/string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.6.19" + } + }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -8295,6 +8911,22 @@ "dev": true, "license": "ISC" }, + "node_modules/wsl-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.1.0.tgz", + "integrity": "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/xml2js": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", @@ -8348,21 +8980,22 @@ } }, "node_modules/yaml": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", - "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", + "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", "license": "ISC", "bin": { "yaml": "bin.mjs" }, "engines": { - "node": ">= 14" + "node": ">= 14.6" } }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, "license": "MIT", "dependencies": { "cliui": "^8.0.1", @@ -8381,6 +9014,7 @@ "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, "license": "ISC", "engines": { "node": ">=12" diff --git a/eng/packages/http-client-csharp-mgmt/package.json b/eng/packages/http-client-csharp-mgmt/package.json index 1d0b1ad37c4b..02212a10edd4 100644 --- a/eng/packages/http-client-csharp-mgmt/package.json +++ b/eng/packages/http-client-csharp-mgmt/package.json @@ -37,25 +37,25 @@ "dist/**" ], "dependencies": { - "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250729.4" + "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250812.2" }, "devDependencies": { - "@azure-tools/azure-http-specs": "0.1.0-alpha.19", - "@azure-tools/typespec-azure-core": "0.57.0", - "@azure-tools/typespec-azure-resource-manager": "0.57.0", - "@azure-tools/typespec-azure-rulesets": "0.57.0", - "@azure-tools/typespec-client-generator-core": "0.57.1", + "@azure-tools/azure-http-specs": "0.1.0-alpha.25", + "@azure-tools/typespec-azure-core": "0.59.0", + "@azure-tools/typespec-azure-resource-manager": "0.59.0", + "@azure-tools/typespec-azure-rulesets": "0.59.0", + "@azure-tools/typespec-client-generator-core": "0.59.0", "@azure-tools/typespec-liftr-base": "0.8.0", "@eslint/js": "^9.2.0", "@types/node": "~22.7.5", "@types/prettier": "^2.6.3", - "@typespec/compiler": "1.1.0", - "@typespec/http": "1.1.0", - "@typespec/http-specs": "0.1.0-alpha.23", - "@typespec/openapi": "1.1.0", - "@typespec/rest": "0.71.0", - "@typespec/tspd": "0.71.0", - "@typespec/versioning": "0.71.0", + "@typespec/compiler": "1.3.0", + "@typespec/http": "1.3.0", + "@typespec/http-specs": "0.1.0-alpha.25", + "@typespec/openapi": "1.3.0", + "@typespec/rest": "0.73.0", + "@typespec/tspd": "0.72.2", + "@typespec/versioning": "0.73.0", "@vitest/coverage-v8": "^3.0.5", "@vitest/ui": "^3.0.5", "c8": "^10.1.2",