From eb242782fc10c3e769b2a8c5972f0de1ef8ca202 Mon Sep 17 00:00:00 2001 From: haiyuan_zhang Date: Wed, 17 Sep 2025 02:28:19 +0800 Subject: [PATCH 1/2] fix issue in populate rest opearation arguments. --- .../BaseTagMethodProvider.cs | 3 +- .../Utilities/RequestPathPatternExtensions.cs | 11 +- .../Local/Mgmt-TypeSpec/databox.tsp | 56 + .../TestProjects/Local/Mgmt-TypeSpec/main.tsp | 1 + .../src/Generated/BarResource.cs | 12 +- .../src/Generated/BazResource.cs | 12 +- .../Extensions/MgmtTypeSpecExtensions.cs | 51 + .../MockableMgmtTypeSpecArmClient.cs | 9 + ...ckableMgmtTypeSpecResourceGroupResource.cs | 35 + .../src/Generated/FooResource.cs | 12 +- .../Generated/JobResource.Serialization.cs | 39 + .../src/Generated/JobResource.cs | 506 +++ .../src/Generated/JobResourceCollection.cs | 252 ++ .../JobResourceData.Serialization.cs | 213 + .../src/Generated/JobResourceData.cs | 57 + .../JobResourceOperationSource.cs | 49 + .../src/Generated/MgmtTypeSpecModelFactory.cs | 33 + .../Models/JobProperties.Serialization.cs | 143 + .../src/Generated/Models/JobProperties.cs | 42 + .../Models/JobResourcePatch.Serialization.cs | 196 + .../src/Generated/Models/JobResourcePatch.cs | 56 + .../Generated/Models/MgmtTypeSpecContext.cs | 4 + .../JobResourcesRestOperations.cs | 88 + .../src/Generated/ZooResource.cs | 12 +- .../Local/Mgmt-TypeSpec/tspCodeModel.json | 3957 ++++++++++------- 25 files changed, 4334 insertions(+), 1515 deletions(-) create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/databox.tsp create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResource.Serialization.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResource.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceCollection.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceData.Serialization.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceData.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/LongRunningOperation/JobResourceOperationSource.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobProperties.Serialization.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobProperties.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobResourcePatch.Serialization.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobResourcePatch.cs create mode 100644 eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/JobResourcesRestOperations.cs diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/TagMethodProviders/BaseTagMethodProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/TagMethodProviders/BaseTagMethodProvider.cs index 7c7404d029d0..c3ebd94d95a9 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/TagMethodProviders/BaseTagMethodProvider.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/TagMethodProviders/BaseTagMethodProvider.cs @@ -3,6 +3,7 @@ using Azure.Generator.Management.Extensions; using Azure.Generator.Management.Models; +using Azure.Generator.Management.Primitives; using Azure.Generator.Management.Providers.OperationMethodProviders; using Azure.Generator.Management.Snippets; using Azure.Generator.Management.Utilities; @@ -170,7 +171,7 @@ protected static MethodBodyStatement GetResourceDataStatements( return Declare( variableName, resourceClientProvider.ResourceData.Type, - new TupleExpression(This.Invoke(getMethod, [cancellationTokenParam], null, isAsync)) + new TupleExpression(This.Invoke(getMethod, [KnownAzureParameters.CancellationTokenWithoutDefault.PositionalReference(cancellationTokenParam)], null, isAsync)) .Property("Value").Property("Data"), out currentVar); } diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/RequestPathPatternExtensions.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/RequestPathPatternExtensions.cs index 3ab0409edfbd..09d8d4fd5195 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/RequestPathPatternExtensions.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/RequestPathPatternExtensions.cs @@ -59,8 +59,15 @@ public static IReadOnlyList PopulateArguments( } else { - var methodParam = methodParameters.Single(p => p.WireInfo.SerializedName == parameter.WireInfo.SerializedName); - arguments.Add(Convert(methodParam, methodParam.Type, parameter.Type)); + var methodParam = methodParameters.SingleOrDefault(p => p.WireInfo.SerializedName == parameter.WireInfo.SerializedName); + if (methodParam != null) + { + arguments.Add(Convert(methodParam, methodParam.Type, parameter.Type)); + } + else + { + arguments.Add(Null); + } } } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/databox.tsp b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/databox.tsp new file mode 100644 index 000000000000..c056ec5dcf07 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/databox.tsp @@ -0,0 +1,56 @@ +import "@typespec/rest"; +import "@typespec/openapi"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +namespace MgmtTypeSpec; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + + +model JobResource + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = JobResource, + KeyName = "jobName", + SegmentName = "jobs", + NamePattern = "^[-\\w\\.]+$" + >; +} + +model JobProperties { + jobName: string; +} + +@armResourceOperations +interface JobResources { + /** + * Gets information about the specified job. + */ + get is ArmResourceRead< + JobResource, + Parameters = { + /** + * $expand is supported on details parameter for job, which provides details on the job stages. + */ + @query("$expand") + $expand?: string; + }, + >; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-patch" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + JobResource, + PatchModel = JobResourceUpdateParameter, + >; +} + +model JobResourceUpdateParameter { + properties?: JobProperties; + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + tags?: Record; +} \ No newline at end of file diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/main.tsp b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/main.tsp index 27379a4664f6..39a5860551d4 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/main.tsp +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/main.tsp @@ -9,6 +9,7 @@ import "./routes.tsp"; import "./endpoint.tsp"; import "./selfhelp.tsp"; import "./playwright.tsp"; +import "./databox.tsp"; using TypeSpec.Versioning; using Azure.ClientGenerator.Core; using Azure.ResourceManager; diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarResource.cs index c37df128d954..630ec7b4f696 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarResource.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarResource.cs @@ -305,7 +305,7 @@ public virtual async Task> AddTagAsync(string key, string } else { - BarData current = (await GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + BarData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; BarData patch = new BarData(); foreach (KeyValuePair tag in current.Tags) { @@ -353,7 +353,7 @@ public virtual Response AddTag(string key, string value, Cancellati } else { - BarData current = Get(cancellationToken).Value.Data; + BarData current = Get(cancellationToken: cancellationToken).Value.Data; BarData patch = new BarData(); foreach (KeyValuePair tag in current.Tags) { @@ -400,7 +400,7 @@ public virtual async Task> SetTagsAsync(IDictionary result = await UpdateAsync(patch, cancellationToken).ConfigureAwait(false); @@ -443,7 +443,7 @@ public virtual Response SetTags(IDictionary tags, C } else { - BarData current = Get(cancellationToken).Value.Data; + BarData current = Get(cancellationToken: cancellationToken).Value.Data; BarData patch = new BarData(); patch.Tags.ReplaceWith(tags); Response result = Update(patch, cancellationToken); @@ -485,7 +485,7 @@ public virtual async Task> RemoveTagAsync(string key, Canc } else { - BarData current = (await GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + BarData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; BarData patch = new BarData(); foreach (KeyValuePair tag in current.Tags) { @@ -531,7 +531,7 @@ public virtual Response RemoveTag(string key, CancellationToken can } else { - BarData current = Get(cancellationToken).Value.Data; + BarData current = Get(cancellationToken: cancellationToken).Value.Data; BarData patch = new BarData(); foreach (KeyValuePair tag in current.Tags) { diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BazResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BazResource.cs index a493c7add159..741f96823210 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BazResource.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BazResource.cs @@ -314,7 +314,7 @@ public virtual async Task> AddTagAsync(string key, string } else { - BazData current = (await GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + BazData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; BazData patch = new BazData(); foreach (KeyValuePair tag in current.Tags) { @@ -362,7 +362,7 @@ public virtual Response AddTag(string key, string value, Cancellati } else { - BazData current = Get(cancellationToken).Value.Data; + BazData current = Get(cancellationToken: cancellationToken).Value.Data; BazData patch = new BazData(); foreach (KeyValuePair tag in current.Tags) { @@ -409,7 +409,7 @@ public virtual async Task> SetTagsAsync(IDictionary result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken).ConfigureAwait(false); @@ -452,7 +452,7 @@ public virtual Response SetTags(IDictionary tags, C } else { - BazData current = Get(cancellationToken).Value.Data; + BazData current = Get(cancellationToken: cancellationToken).Value.Data; BazData patch = new BazData(); patch.Tags.ReplaceWith(tags); ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken); @@ -494,7 +494,7 @@ public virtual async Task> RemoveTagAsync(string key, Canc } else { - BazData current = (await GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + BazData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; BazData patch = new BazData(); foreach (KeyValuePair tag in current.Tags) { @@ -540,7 +540,7 @@ public virtual Response RemoveTag(string key, CancellationToken can } else { - BazData current = Get(cancellationToken).Value.Data; + BazData current = Get(cancellationToken: cancellationToken).Value.Data; BazData patch = new BazData(); foreach (KeyValuePair tag in current.Tags) { diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MgmtTypeSpecExtensions.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MgmtTypeSpecExtensions.cs index 3cce94714eef..0a97588f3d1c 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MgmtTypeSpecExtensions.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MgmtTypeSpecExtensions.cs @@ -238,6 +238,18 @@ public static PlaywrightQuotaResource GetPlaywrightQuotaResource(this ArmClient return GetMockableMgmtTypeSpecArmClient(client).GetPlaywrightQuotaResource(id); } + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// The the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static JobResource GetJobResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableMgmtTypeSpecArmClient(client).GetJobResource(id); + } + /// Gets a collection of Foos in the . /// The the method will execute against. /// is null. @@ -360,6 +372,45 @@ public static Response GetZoo(this ResourceGroupResource resourceGr return GetMockableMgmtTypeSpecResourceGroupResource(resourceGroupResource).GetZoo(zooName, cancellationToken); } + /// Gets a collection of JobResources in the . + /// The the method will execute against. + /// is null. + /// An object representing collection of JobResources and their operations over a JobResource. + public static JobResourceCollection GetJobResources(this ResourceGroupResource resourceGroupResource) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return GetMockableMgmtTypeSpecResourceGroupResource(resourceGroupResource).GetJobResources(); + } + + /// Gets information about the specified job. + /// The the method will execute against. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + [ForwardsClientCalls] + public static async Task> GetJobResourceAsync(this ResourceGroupResource resourceGroupResource, string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return await GetMockableMgmtTypeSpecResourceGroupResource(resourceGroupResource).GetJobResourceAsync(jobName, expand, cancellationToken).ConfigureAwait(false); + } + + /// Gets information about the specified job. + /// The the method will execute against. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + [ForwardsClientCalls] + public static Response GetJobResource(this ResourceGroupResource resourceGroupResource, string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return GetMockableMgmtTypeSpecResourceGroupResource(resourceGroupResource).GetJobResource(jobName, expand, cancellationToken); + } + /// Gets a collection of PlaywrightQuotas in the . /// The the method will execute against. /// The location for the resource. diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableMgmtTypeSpecArmClient.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableMgmtTypeSpecArmClient.cs index d09aaab38110..5386fab3e0b8 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableMgmtTypeSpecArmClient.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableMgmtTypeSpecArmClient.cs @@ -191,5 +191,14 @@ public virtual PlaywrightQuotaResource GetPlaywrightQuotaResource(ResourceIdenti PlaywrightQuotaResource.ValidateResourceId(id); return new PlaywrightQuotaResource(Client, id); } + + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// The resource ID of the resource to get. + /// Returns a object. + public virtual JobResource GetJobResource(ResourceIdentifier id) + { + JobResource.ValidateResourceId(id); + return new JobResource(Client, id); + } } } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableMgmtTypeSpecResourceGroupResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableMgmtTypeSpecResourceGroupResource.cs index 837b9657e948..c1225fcdfcbb 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableMgmtTypeSpecResourceGroupResource.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableMgmtTypeSpecResourceGroupResource.cs @@ -136,5 +136,40 @@ public virtual Response GetZoo(string zooName, CancellationToken ca return GetZoos().Get(zooName, cancellationToken); } + + /// Gets a collection of JobResources in the . + /// An object representing collection of JobResources and their operations over a JobResource. + public virtual JobResourceCollection GetJobResources() + { + return GetCachedClient(client => new JobResourceCollection(client, Id)); + } + + /// Gets information about the specified job. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetJobResourceAsync(string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + + return await GetJobResources().GetAsync(jobName, expand, cancellationToken).ConfigureAwait(false); + } + + /// Gets information about the specified job. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetJobResource(string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + + return GetJobResources().Get(jobName, expand, cancellationToken); + } } } diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooResource.cs index d97900b140f6..44b20d66dc62 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooResource.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooResource.cs @@ -314,7 +314,7 @@ public virtual async Task> AddTagAsync(string key, string } else { - FooData current = (await GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + FooData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; FooData patch = new FooData(); foreach (KeyValuePair tag in current.Tags) { @@ -362,7 +362,7 @@ public virtual Response AddTag(string key, string value, Cancellati } else { - FooData current = Get(cancellationToken).Value.Data; + FooData current = Get(cancellationToken: cancellationToken).Value.Data; FooData patch = new FooData(); foreach (KeyValuePair tag in current.Tags) { @@ -409,7 +409,7 @@ public virtual async Task> SetTagsAsync(IDictionary result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken).ConfigureAwait(false); @@ -452,7 +452,7 @@ public virtual Response SetTags(IDictionary tags, C } else { - FooData current = Get(cancellationToken).Value.Data; + FooData current = Get(cancellationToken: cancellationToken).Value.Data; FooData patch = new FooData(); patch.Tags.ReplaceWith(tags); ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken); @@ -494,7 +494,7 @@ public virtual async Task> RemoveTagAsync(string key, Canc } else { - FooData current = (await GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + FooData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; FooData patch = new FooData(); foreach (KeyValuePair tag in current.Tags) { @@ -540,7 +540,7 @@ public virtual Response RemoveTag(string key, CancellationToken can } else { - FooData current = Get(cancellationToken).Value.Data; + FooData current = Get(cancellationToken: cancellationToken).Value.Data; FooData patch = new FooData(); foreach (KeyValuePair tag in current.Tags) { diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResource.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResource.Serialization.cs new file mode 100644 index 000000000000..8bf8ef080092 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResource.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace MgmtTypeSpec +{ + /// + public partial class JobResource : IJsonModel + { + private static IJsonModel s_dataDeserializationInstance; + + private static IJsonModel DataDeserializationInstance => s_dataDeserializationInstance ??= new JobResourceData(); + + /// The writer to serialize the model to. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + /// The reader for deserializing the model. + /// The client options for reading and writing models. + JobResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => DataDeserializationInstance.Create(ref reader, options); + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, MgmtTypeSpecContext.Default); + + /// The binary data to be processed. + /// The client options for reading and writing models. + JobResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, MgmtTypeSpecContext.Default); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => DataDeserializationInstance.GetFormatFromOptions(options); + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResource.cs new file mode 100644 index 000000000000..9405c87ac5e8 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResource.cs @@ -0,0 +1,506 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; +using MgmtTypeSpec.Models; + +namespace MgmtTypeSpec +{ + /// + /// A class representing a JobResource along with the instance operations that can be performed on it. + /// If you have a you can construct a from an instance of using the GetResource method. + /// Otherwise you can get one from its parent resource using the GetJobResources method. + /// + public partial class JobResource : ArmResource + { + private readonly ClientDiagnostics _jobResourcesClientDiagnostics; + private readonly JobResources _jobResourcesRestClient; + private readonly JobResourceData _data; + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "MgmtTypeSpec/jobs"; + + /// Initializes a new instance of JobResource for mocking. + protected JobResource() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal JobResource(ArmClient client, JobResourceData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal JobResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(ResourceType, out string jobResourceApiVersion); + _jobResourcesClientDiagnostics = new ClientDiagnostics("MgmtTypeSpec", ResourceType.Namespace, Diagnostics); + _jobResourcesRestClient = new JobResources(_jobResourcesClientDiagnostics, Pipeline, Endpoint, jobResourceApiVersion ?? "2024-05-01"); + ValidateResourceId(id); + } + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + public virtual JobResourceData Data + { + get + { + if (!HasData) + { + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + } + return _data; + } + } + + /// Generate the resource identifier for this resource. + /// The subscriptionId. + /// The resourceGroupName. + /// The jobName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string jobName) + { + string resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}"; + return new ResourceIdentifier(resourceId); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), id); + } + } + + /// Gets information about the specified job. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + public virtual async Task> GetAsync(string expand = default, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, expand, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets information about the specified job. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + public virtual Response Get(string expand = default, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, expand, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update a JobResource. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The resource properties to be updated. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, JobResourcePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, JobResourcePatch.ToRequestContent(patch), context); + Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + MgmtTypeSpecArmOperation operation = new MgmtTypeSpecArmOperation( + new JobResourceOperationSource(Client), + _jobResourcesClientDiagnostics, + Pipeline, + message.Request, + response, + OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update a JobResource. + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The resource properties to be updated. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, JobResourcePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.Update"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, JobResourcePatch.ToRequestContent(patch), context); + Response response = Pipeline.ProcessMessage(message, context); + MgmtTypeSpecArmOperation operation = new MgmtTypeSpecArmOperation( + new JobResourceOperationSource(Client), + _jobResourcesClientDiagnostics, + Pipeline, + message.Request, + response, + OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + { + operation.WaitForCompletion(cancellationToken); + } + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Add a tag to the current resource. + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken).ConfigureAwait(false)) + { + Response originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken).ConfigureAwait(false); + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, null, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + else + { + JobResourceData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + JobResourcePatch patch = new JobResourcePatch(); + foreach (KeyValuePair tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + ArmOperation result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Add a tag to the current resource. + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken)) + { + Response originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken); + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, null, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + else + { + JobResourceData current = Get(cancellationToken: cancellationToken).Value.Data; + JobResourcePatch patch = new JobResourcePatch(); + foreach (KeyValuePair tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Replace the tags on the resource with the given set. + /// The tags to set on the resource. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken).ConfigureAwait(false); + Response originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken).ConfigureAwait(false); + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, null, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + else + { + JobResourceData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + JobResourcePatch patch = new JobResourcePatch(); + patch.Tags.ReplaceWith(tags); + ArmOperation result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Replace the tags on the resource with the given set. + /// The tags to set on the resource. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken); + Response originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken); + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, null, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + else + { + JobResourceData current = Get(cancellationToken: cancellationToken).Value.Data; + JobResourcePatch patch = new JobResourcePatch(); + patch.Tags.ReplaceWith(tags); + ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Removes a tag by key from the resource. + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken).ConfigureAwait(false)) + { + Response originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken).ConfigureAwait(false); + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, null, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + else + { + JobResourceData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + JobResourcePatch patch = new JobResourcePatch(); + foreach (KeyValuePair tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + ArmOperation result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Removes a tag by key from the resource. + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken)) + { + Response originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken); + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Name, null, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + else + { + JobResourceData current = Get(cancellationToken: cancellationToken).Value.Data; + JobResourcePatch patch = new JobResourcePatch(); + foreach (KeyValuePair tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken); + return Response.FromValue(result.Value, result.GetRawResponse()); + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceCollection.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceCollection.cs new file mode 100644 index 000000000000..cabe1dd88a54 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceCollection.cs @@ -0,0 +1,252 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; +using Azure.ResourceManager.Resources; + +namespace MgmtTypeSpec +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of a parent resource (TODO: add parent resource information). + /// To get a instance call the GetJobResources method from an instance of the parent resource. + /// + public partial class JobResourceCollection : ArmCollection + { + private readonly ClientDiagnostics _jobResourcesClientDiagnostics; + private readonly JobResources _jobResourcesRestClient; + + /// Initializes a new instance of JobResourceCollection for mocking. + protected JobResourceCollection() + { + } + + /// Initializes a new instance of class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal JobResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + TryGetApiVersion(JobResource.ResourceType, out string jobResourceApiVersion); + _jobResourcesClientDiagnostics = new ClientDiagnostics("MgmtTypeSpec", JobResource.ResourceType.Namespace, Diagnostics); + _jobResourcesRestClient = new JobResources(_jobResourcesClientDiagnostics, Pipeline, Endpoint, jobResourceApiVersion ?? "2024-05-01"); + ValidateResourceId(id); + } + + /// + [Conditional("DEBUG")] + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceGroupResource.ResourceType) + { + throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, ResourceGroupResource.ResourceType), id); + } + } + + /// Gets information about the specified job. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetAsync(string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, jobName, expand, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets information about the specified job. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Get(string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResourceCollection.Get"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, jobName, expand, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + if (response.Value == null) + { + throw new RequestFailedException(response.GetRawResponse()); + } + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks to see if the resource exists in azure. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> ExistsAsync(string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, jobName, expand, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks to see if the resource exists in azure. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual Response Exists(string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResourceCollection.Exists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, jobName, expand, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Tries to get details for this resource from the service. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual async Task> GetIfExistsAsync(string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, jobName, expand, context); + Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Tries to get details for this resource from the service. + /// The name of the JobResource. + /// $expand is supported on details parameter for job, which provides details on the job stages. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public virtual NullableResponse GetIfExists(string jobName, string expand = default, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + + using DiagnosticScope scope = _jobResourcesClientDiagnostics.CreateScope("JobResourceCollection.GetIfExists"); + scope.Start(); + try + { + RequestContext context = new RequestContext + { + CancellationToken = cancellationToken + }; + HttpMessage message = _jobResourcesRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, jobName, expand, context); + Response result = Pipeline.ProcessMessage(message, context); + Response response = Response.FromValue(JobResourceData.FromResponse(result), result); + if (response.Value == null) + { + return new NoValueResponse(response.GetRawResponse()); + } + return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceData.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceData.Serialization.cs new file mode 100644 index 000000000000..be632a3402a6 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceData.Serialization.cs @@ -0,0 +1,213 @@ +// 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; +using Azure.Core; +using Azure.ResourceManager.Models; +using MgmtTypeSpec.Models; + +namespace MgmtTypeSpec +{ + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. + public partial class JobResourceData : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal JobResourceData() + { + } + + /// 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(JobResourceData)} does not support writing '{format}' format."); + } + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + + /// The JSON reader. + /// The client options for reading and writing models. + JobResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (JobResourceData)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(JobResourceData)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeJobResourceData(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static JobResourceData DeserializeJobResourceData(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(); + IDictionary tags = default; + AzureLocation location = default; + JobProperties properties = 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("tags"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var prop0 in prop.Value.EnumerateObject()) + { + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + if (prop.NameEquals("location"u8)) + { + location = new AzureLocation(prop.Value.GetString()); + continue; + } + if (prop.NameEquals("properties"u8)) + { + properties = JobProperties.DeserializeJobProperties(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new JobResourceData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties, + tags ?? new ChangeTrackingDictionary(), + location, + properties); + } + + /// 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(JobResourceData)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + JobResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (JobResourceData)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 DeserializeJobResourceData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(JobResourceData)} 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 JobResourceData FromResponse(Response result) + { + using Response response = result; + using JsonDocument document = JsonDocument.Parse(response.Content); + return DeserializeJobResourceData(document.RootElement, ModelSerializationExtensions.WireOptions); + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceData.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceData.cs new file mode 100644 index 000000000000..e4567333712b --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/JobResourceData.cs @@ -0,0 +1,57 @@ +// 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; +using MgmtTypeSpec.Models; + +namespace MgmtTypeSpec +{ + /// Concrete tracked resource types can be created by aliasing this type using a specific property type. + public partial class JobResourceData : TrackedResourceData + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// The geo-location where the resource lives. + /// The resource-specific properties for this resource. + internal JobResourceData(AzureLocation location, JobProperties properties) : base(location) + { + Properties = properties; + } + + /// 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. + /// Resource tags. + /// The geo-location where the resource lives. + /// The resource-specific properties for this resource. + internal JobResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary additionalBinaryDataProperties, IDictionary tags, AzureLocation location, JobProperties properties) : base(id, name, resourceType, systemData, tags, location) + { + _additionalBinaryDataProperties = additionalBinaryDataProperties; + Properties = properties; + } + + /// The resource-specific properties for this resource. + internal JobProperties Properties { get; } + + /// Gets or sets the JobName. + public string JobName + { + get + { + return Properties.JobName; + } + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/LongRunningOperation/JobResourceOperationSource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/LongRunningOperation/JobResourceOperationSource.cs new file mode 100644 index 000000000000..f40569b6629e --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/LongRunningOperation/JobResourceOperationSource.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace MgmtTypeSpec +{ + /// + internal partial class JobResourceOperationSource : IOperationSource + { + private readonly ArmClient _client; + + /// + /// + internal JobResourceOperationSource(ArmClient client) + { + _client = client; + } + + /// The response from the service. + /// The cancellation token to use. + /// + JobResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = JsonDocument.Parse(response.ContentStream); + JobResourceData data = JobResourceData.DeserializeJobResourceData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new JobResource(_client, data); + } + + /// The response from the service. + /// The cancellation token to use. + /// + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using JsonDocument document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + JobResourceData data = JobResourceData.DeserializeJobResourceData(document.RootElement, ModelSerializationExtensions.WireOptions); + return new JobResource(_client, data); + } + } +} 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 6718fd478b58..81915b197492 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 @@ -294,6 +294,39 @@ public static PlaywrightQuotaProperties PlaywrightQuotaProperties(string freeTri return new PlaywrightQuotaProperties(freeTrial, provisioningState, additionalBinaryDataProperties: null); } + /// 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. + /// Resource tags. + /// The geo-location where the resource lives. + /// Gets or sets the JobName. + /// A new instance for mocking. + public static JobResourceData JobResourceData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, string jobName = default) + { + tags ??= new ChangeTrackingDictionary(); + + return new JobResourceData( + id, + name, + resourceType, + systemData, + additionalBinaryDataProperties: null, + tags, + location, + jobName is null ? default : new JobProperties(jobName, new Dictionary())); + } + + /// Gets or sets the JobName. + /// + /// A new instance for mocking. + public static JobResourcePatch JobResourcePatch(string jobName, IDictionary tags = default) + { + tags ??= new ChangeTrackingDictionary(); + + return new JobResourcePatch(jobName is null ? default : new JobProperties(jobName, new Dictionary()), tags, additionalBinaryDataProperties: null); + } + /// The ZooRecommendation. /// The recommended value. /// The reason for the recommendation. diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobProperties.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobProperties.Serialization.cs new file mode 100644 index 000000000000..df65b7253116 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobProperties.Serialization.cs @@ -0,0 +1,143 @@ +// 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 +{ + /// The JobProperties. + internal partial class JobProperties : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal JobProperties() + { + } + + /// 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(JobProperties)} does not support writing '{format}' format."); + } + writer.WritePropertyName("jobName"u8); + writer.WriteStringValue(JobName); + 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. + JobProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual JobProperties 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(JobProperties)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeJobProperties(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static JobProperties DeserializeJobProperties(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string jobName = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("jobName"u8)) + { + jobName = prop.Value.GetString(); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new JobProperties(jobName, 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(JobProperties)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + JobProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual JobProperties 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 DeserializeJobProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(JobProperties)} 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/JobProperties.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobProperties.cs new file mode 100644 index 000000000000..9c812b6f99be --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobProperties.cs @@ -0,0 +1,42 @@ +// 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 +{ + /// The JobProperties. + internal partial class JobProperties + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// + /// is null. + public JobProperties(string jobName) + { + Argument.AssertNotNull(jobName, nameof(jobName)); + + JobName = jobName; + } + + /// Initializes a new instance of . + /// + /// Keeps track of any properties unknown to the library. + internal JobProperties(string jobName, IDictionary additionalBinaryDataProperties) + { + JobName = jobName; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Gets or sets the JobName. + public string JobName { get; set; } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobResourcePatch.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobResourcePatch.Serialization.cs new file mode 100644 index 000000000000..7aed2315bb51 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobResourcePatch.Serialization.cs @@ -0,0 +1,196 @@ +// 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.Core; +using MgmtTypeSpec; + +namespace MgmtTypeSpec.Models +{ + /// The JobResourcePatch. + public partial class JobResourcePatch : 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(JobResourcePatch)} does not support writing '{format}' format."); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + if (item.Value == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + 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. + JobResourcePatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual JobResourcePatch 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(JobResourcePatch)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeJobResourcePatch(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static JobResourcePatch DeserializeJobResourcePatch(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + JobProperties properties = default; + IDictionary tags = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("properties"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = JobProperties.DeserializeJobProperties(prop.Value, options); + continue; + } + if (prop.NameEquals("tags"u8)) + { + if (prop.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var prop0 in prop.Value.EnumerateObject()) + { + if (prop0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(prop0.Name, null); + } + else + { + dictionary.Add(prop0.Name, prop0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new JobResourcePatch(properties, tags ?? new ChangeTrackingDictionary(), 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(JobResourcePatch)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + JobResourcePatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual JobResourcePatch 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 DeserializeJobResourcePatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(JobResourcePatch)} does not support reading '{options.Format}' format."); + } + } + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// The to serialize into . + internal static RequestContent ToRequestContent(JobResourcePatch patch) + { + if (patch == null) + { + return null; + } + Utf8JsonRequestContent content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobResourcePatch.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobResourcePatch.cs new file mode 100644 index 000000000000..84278d17e384 --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/JobResourcePatch.cs @@ -0,0 +1,56 @@ +// 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 +{ + /// The JobResourcePatch. + public partial class JobResourcePatch + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + public JobResourcePatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// + /// + /// Keeps track of any properties unknown to the library. + internal JobResourcePatch(JobProperties properties, IDictionary tags, IDictionary additionalBinaryDataProperties) + { + Properties = properties; + Tags = tags; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// Gets or sets the Properties. + internal JobProperties Properties { get; set; } + + /// Gets the Tags. + public IDictionary Tags { get; } + + /// Gets or sets the JobName. + public string JobName + { + get + { + return Properties is null ? default : Properties.JobName; + } + set + { + Properties = new JobProperties(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 a175c0541c6d..d173d03cb268 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 @@ -48,6 +48,10 @@ namespace MgmtTypeSpec [ModelReaderWriterBuildable(typeof(FooSettingsPropertiesMetaData))] [ModelReaderWriterBuildable(typeof(FooSettingsResource))] [ModelReaderWriterBuildable(typeof(FooSettingsUpdateProperties))] + [ModelReaderWriterBuildable(typeof(JobProperties))] + [ModelReaderWriterBuildable(typeof(JobResource))] + [ModelReaderWriterBuildable(typeof(JobResourceData))] + [ModelReaderWriterBuildable(typeof(JobResourcePatch))] [ModelReaderWriterBuildable(typeof(ManagedServiceIdentity))] [ModelReaderWriterBuildable(typeof(OptionalFlattenPropertyType))] [ModelReaderWriterBuildable(typeof(PlaywrightQuotaData))] diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/JobResourcesRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/JobResourcesRestOperations.cs new file mode 100644 index 000000000000..3cccfb8b2b1c --- /dev/null +++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/JobResourcesRestOperations.cs @@ -0,0 +1,88 @@ +// 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 JobResources + { + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of JobResources for mocking. + protected JobResources() + { + } + + /// Initializes a new instance of JobResources. + /// 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 JobResources(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(Guid subscriptionId, string resourceGroupName, string jobName, string expand, RequestContext context) + { + 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/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Get; + request.Headers.SetValue("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateUpdateRequest(Guid subscriptionId, string resourceGroupName, string jobName, RequestContent content, RequestContext context) + { + 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/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendQuery("api-version", _apiVersion, true); + HttpMessage message = Pipeline.CreateMessage(); + Request request = message.Request; + request.Uri = uri; + request.Method = RequestMethod.Patch; + 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/ZooResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/ZooResource.cs index 9e923bd436dc..eb0733bd1cc6 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 @@ -433,7 +433,7 @@ public virtual async Task> AddTagAsync(string key, string } else { - ZooData current = (await GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + ZooData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; ZooPatch patch = new ZooPatch(); foreach (KeyValuePair tag in current.Tags) { @@ -481,7 +481,7 @@ public virtual Response AddTag(string key, string value, Cancellati } else { - ZooData current = Get(cancellationToken).Value.Data; + ZooData current = Get(cancellationToken: cancellationToken).Value.Data; ZooPatch patch = new ZooPatch(); foreach (KeyValuePair tag in current.Tags) { @@ -528,7 +528,7 @@ public virtual async Task> SetTagsAsync(IDictionary result = await UpdateAsync(WaitUntil.Completed, patch, cancellationToken).ConfigureAwait(false); @@ -571,7 +571,7 @@ public virtual Response SetTags(IDictionary tags, C } else { - ZooData current = Get(cancellationToken).Value.Data; + ZooData current = Get(cancellationToken: cancellationToken).Value.Data; ZooPatch patch = new ZooPatch(); patch.Tags.ReplaceWith(tags); ArmOperation result = Update(WaitUntil.Completed, patch, cancellationToken); @@ -613,7 +613,7 @@ public virtual async Task> RemoveTagAsync(string key, Canc } else { - ZooData current = (await GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + ZooData current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; ZooPatch patch = new ZooPatch(); foreach (KeyValuePair tag in current.Tags) { @@ -659,7 +659,7 @@ public virtual Response RemoveTag(string key, CancellationToken can } else { - ZooData current = Get(cancellationToken).Value.Data; + ZooData current = Get(cancellationToken: cancellationToken).Value.Data; ZooPatch patch = new ZooPatch(); foreach (KeyValuePair tag in current.Tags) { 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 5e251c00ec09..8121084b81f7 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 @@ -1646,7 +1646,7 @@ { "$id": "185", "kind": "constant", - "name": "recommendContentType", + "name": "updateContentType22", "namespace": "", "usage": "None", "valueType": { @@ -1658,11 +1658,91 @@ }, "value": "application/json", "decorators": [] + }, + { + "$id": "187", + "kind": "constant", + "name": "updateContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "188", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "189", + "kind": "constant", + "name": "getContentType10", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "190", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "191", + "kind": "constant", + "name": "updateContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "192", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "193", + "kind": "constant", + "name": "updateContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "195", + "kind": "constant", + "name": "recommendContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "196", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] } ], "models": [ { - "$id": "187", + "$id": "197", "kind": "model", "name": "FooPreviewAction", "namespace": "MgmtTypeSpec", @@ -1676,13 +1756,13 @@ ], "properties": [ { - "$id": "188", + "$id": "198", "kind": "property", "name": "action", "serializedName": "action", "doc": "The action to be performed.", "type": { - "$id": "189", + "$id": "199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1702,12 +1782,12 @@ "isHttpMetadata": false }, { - "$id": "190", + "$id": "200", "kind": "property", "name": "result", "serializedName": "result", "type": { - "$id": "191", + "$id": "201", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1729,7 +1809,7 @@ ] }, { - "$id": "192", + "$id": "202", "kind": "model", "name": "ErrorResponse", "namespace": "MgmtTypeSpec", @@ -1745,13 +1825,13 @@ ], "properties": [ { - "$id": "193", + "$id": "203", "kind": "property", "name": "error", "serializedName": "error", "doc": "The error object.", "type": { - "$id": "194", + "$id": "204", "kind": "model", "name": "ErrorDetail", "namespace": "MgmtTypeSpec", @@ -1766,13 +1846,13 @@ ], "properties": [ { - "$id": "195", + "$id": "205", "kind": "property", "name": "code", "serializedName": "code", "doc": "The error code.", "type": { - "$id": "196", + "$id": "206", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1792,13 +1872,13 @@ "isHttpMetadata": false }, { - "$id": "197", + "$id": "207", "kind": "property", "name": "message", "serializedName": "message", "doc": "The error message.", "type": { - "$id": "198", + "$id": "208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1818,13 +1898,13 @@ "isHttpMetadata": false }, { - "$id": "199", + "$id": "209", "kind": "property", "name": "target", "serializedName": "target", "doc": "The error target.", "type": { - "$id": "200", + "$id": "210", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1844,17 +1924,17 @@ "isHttpMetadata": false }, { - "$id": "201", + "$id": "211", "kind": "property", "name": "details", "serializedName": "details", "doc": "The error details.", "type": { - "$id": "202", + "$id": "212", "kind": "array", "name": "ArrayErrorDetail", "valueType": { - "$ref": "194" + "$ref": "204" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -1873,17 +1953,17 @@ "isHttpMetadata": false }, { - "$id": "203", + "$id": "213", "kind": "property", "name": "additionalInfo", "serializedName": "additionalInfo", "doc": "The error additional info.", "type": { - "$id": "204", + "$id": "214", "kind": "array", "name": "ArrayErrorAdditionalInfo", "valueType": { - "$id": "205", + "$id": "215", "kind": "model", "name": "ErrorAdditionalInfo", "namespace": "MgmtTypeSpec", @@ -1898,13 +1978,13 @@ ], "properties": [ { - "$id": "206", + "$id": "216", "kind": "property", "name": "type", "serializedName": "type", "doc": "The additional info type.", "type": { - "$id": "207", + "$id": "217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1924,13 +2004,13 @@ "isHttpMetadata": false }, { - "$id": "208", + "$id": "218", "kind": "property", "name": "info", "serializedName": "info", "doc": "The additional info.", "type": { - "$id": "209", + "$id": "219", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1985,13 +2065,13 @@ ] }, { - "$ref": "194" + "$ref": "204" }, { - "$ref": "205" + "$ref": "215" }, { - "$id": "210", + "$id": "220", "kind": "model", "name": "OperationListResult", "namespace": "MgmtTypeSpec", @@ -2006,17 +2086,17 @@ ], "properties": [ { - "$id": "211", + "$id": "221", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Operation items on this page", "type": { - "$id": "212", + "$id": "222", "kind": "array", "name": "ArrayOperation", "valueType": { - "$id": "213", + "$id": "223", "kind": "model", "name": "Operation", "namespace": "MgmtTypeSpec", @@ -2032,13 +2112,13 @@ ], "properties": [ { - "$id": "214", + "$id": "224", "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": "215", + "$id": "225", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2058,13 +2138,13 @@ "isHttpMetadata": false }, { - "$id": "216", + "$id": "226", "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": "217", + "$id": "227", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -2084,13 +2164,13 @@ "isHttpMetadata": false }, { - "$id": "218", + "$id": "228", "kind": "property", "name": "display", "serializedName": "display", "doc": "Localized display information for this particular operation.", "type": { - "$id": "219", + "$id": "229", "kind": "model", "name": "OperationDisplay", "namespace": "MgmtTypeSpec", @@ -2105,13 +2185,13 @@ ], "properties": [ { - "$id": "220", + "$id": "230", "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": "221", + "$id": "231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2131,13 +2211,13 @@ "isHttpMetadata": false }, { - "$id": "222", + "$id": "232", "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": "223", + "$id": "233", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2157,13 +2237,13 @@ "isHttpMetadata": false }, { - "$id": "224", + "$id": "234", "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": "225", + "$id": "235", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2183,13 +2263,13 @@ "isHttpMetadata": false }, { - "$id": "226", + "$id": "236", "kind": "property", "name": "description", "serializedName": "description", "doc": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.", "type": { - "$id": "227", + "$id": "237", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2224,7 +2304,7 @@ "isHttpMetadata": false }, { - "$id": "228", + "$id": "238", "kind": "property", "name": "origin", "serializedName": "origin", @@ -2246,7 +2326,7 @@ "isHttpMetadata": false }, { - "$id": "229", + "$id": "239", "kind": "property", "name": "actionType", "serializedName": "actionType", @@ -2286,18 +2366,18 @@ "isHttpMetadata": false }, { - "$id": "230", + "$id": "240", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "231", + "$id": "241", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "232", + "$id": "242", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -2321,13 +2401,13 @@ ] }, { - "$ref": "213" + "$ref": "223" }, { - "$ref": "219" + "$ref": "229" }, { - "$id": "233", + "$id": "243", "kind": "model", "name": "PrivateLinkListResult", "namespace": "MgmtTypeSpec", @@ -2342,17 +2422,17 @@ ], "properties": [ { - "$id": "234", + "$id": "244", "kind": "property", "name": "value", "serializedName": "value", "doc": "The PrivateLink items on this page", "type": { - "$id": "235", + "$id": "245", "kind": "array", "name": "ArrayPrivateLink", "valueType": { - "$id": "236", + "$id": "246", "kind": "model", "name": "PrivateLink", "namespace": "MgmtTypeSpec", @@ -2370,7 +2450,7 @@ } ], "baseModel": { - "$id": "237", + "$id": "247", "kind": "model", "name": "ProxyResource", "namespace": "MgmtTypeSpec", @@ -2385,7 +2465,7 @@ } ], "baseModel": { - "$id": "238", + "$id": "248", "kind": "model", "name": "Resource", "namespace": "MgmtTypeSpec", @@ -2401,18 +2481,18 @@ ], "properties": [ { - "$id": "239", + "$id": "249", "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": "240", + "$id": "250", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "241", + "$id": "251", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2434,13 +2514,13 @@ "isHttpMetadata": false }, { - "$id": "242", + "$id": "252", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the resource", "type": { - "$id": "243", + "$id": "253", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2460,18 +2540,18 @@ "isHttpMetadata": false }, { - "$id": "244", + "$id": "254", "kind": "property", "name": "type", "serializedName": "type", "doc": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"", "type": { - "$id": "245", + "$id": "255", "kind": "string", "name": "armResourceType", "crossLanguageDefinitionId": "Azure.Core.armResourceType", "baseType": { - "$id": "246", + "$id": "256", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2493,13 +2573,13 @@ "isHttpMetadata": false }, { - "$id": "247", + "$id": "257", "kind": "property", "name": "systemData", "serializedName": "systemData", "doc": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", "type": { - "$id": "248", + "$id": "258", "kind": "model", "name": "SystemData", "namespace": "MgmtTypeSpec", @@ -2514,13 +2594,13 @@ ], "properties": [ { - "$id": "249", + "$id": "259", "kind": "property", "name": "createdBy", "serializedName": "createdBy", "doc": "The identity that created the resource.", "type": { - "$id": "250", + "$id": "260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2540,7 +2620,7 @@ "isHttpMetadata": false }, { - "$id": "251", + "$id": "261", "kind": "property", "name": "createdByType", "serializedName": "createdByType", @@ -2562,18 +2642,18 @@ "isHttpMetadata": false }, { - "$id": "252", + "$id": "262", "kind": "property", "name": "createdAt", "serializedName": "createdAt", "doc": "The timestamp of resource creation (UTC).", "type": { - "$id": "253", + "$id": "263", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "254", + "$id": "264", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2596,13 +2676,13 @@ "isHttpMetadata": false }, { - "$id": "255", + "$id": "265", "kind": "property", "name": "lastModifiedBy", "serializedName": "lastModifiedBy", "doc": "The identity that last modified the resource.", "type": { - "$id": "256", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2622,7 +2702,7 @@ "isHttpMetadata": false }, { - "$id": "257", + "$id": "267", "kind": "property", "name": "lastModifiedByType", "serializedName": "lastModifiedByType", @@ -2644,18 +2724,18 @@ "isHttpMetadata": false }, { - "$id": "258", + "$id": "268", "kind": "property", "name": "lastModifiedAt", "serializedName": "lastModifiedAt", "doc": "The timestamp of resource last modification (UTC)", "type": { - "$id": "259", + "$id": "269", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "260", + "$id": "270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2698,13 +2778,13 @@ }, "properties": [ { - "$id": "261", + "$id": "271", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "262", + "$id": "272", "kind": "model", "name": "PrivateLinkResourceProperties", "namespace": "MgmtTypeSpec", @@ -2719,13 +2799,13 @@ ], "properties": [ { - "$id": "263", + "$id": "273", "kind": "property", "name": "groupId", "serializedName": "groupId", "doc": "The private link resource group id.", "type": { - "$id": "264", + "$id": "274", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2745,17 +2825,17 @@ "isHttpMetadata": false }, { - "$id": "265", + "$id": "275", "kind": "property", "name": "requiredMembers", "serializedName": "requiredMembers", "doc": "The private link resource required member names.", "type": { - "$id": "266", + "$id": "276", "kind": "array", "name": "Array", "valueType": { - "$id": "267", + "$id": "277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2778,13 +2858,13 @@ "isHttpMetadata": false }, { - "$id": "268", + "$id": "278", "kind": "property", "name": "requiredZoneNames", "serializedName": "requiredZoneNames", "doc": "The private link resource private link DNS zone name.", "type": { - "$ref": "266" + "$ref": "276" }, "optional": true, "readOnly": false, @@ -2815,13 +2895,13 @@ "isHttpMetadata": false }, { - "$id": "269", + "$id": "279", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "270", + "$id": "280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2841,13 +2921,13 @@ "isHttpMetadata": true }, { - "$id": "271", + "$id": "281", "kind": "property", "name": "identity", "serializedName": "identity", "doc": "The managed service identities assigned to this resource.", "type": { - "$id": "272", + "$id": "282", "kind": "model", "name": "ManagedServiceIdentity", "namespace": "MgmtTypeSpec", @@ -2862,18 +2942,18 @@ ], "properties": [ { - "$id": "273", + "$id": "283", "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": "274", + "$id": "284", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "275", + "$id": "285", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2895,18 +2975,18 @@ "isHttpMetadata": false }, { - "$id": "276", + "$id": "286", "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": "277", + "$id": "287", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "278", + "$id": "288", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2928,7 +3008,7 @@ "isHttpMetadata": false }, { - "$id": "279", + "$id": "289", "kind": "property", "name": "type", "serializedName": "type", @@ -2950,26 +3030,26 @@ "isHttpMetadata": false }, { - "$id": "280", + "$id": "290", "kind": "property", "name": "userAssignedIdentities", "serializedName": "userAssignedIdentities", "doc": "The identities assigned to this resource by the user.", "type": { - "$id": "281", + "$id": "291", "kind": "dict", "keyType": { - "$id": "282", + "$id": "292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "283", + "$id": "293", "kind": "nullable", "type": { - "$id": "284", + "$id": "294", "kind": "model", "name": "UserAssignedIdentity", "namespace": "MgmtTypeSpec", @@ -2984,18 +3064,18 @@ ], "properties": [ { - "$id": "285", + "$id": "295", "kind": "property", "name": "principalId", "serializedName": "principalId", "doc": "The principal ID of the assigned identity.", "type": { - "$id": "286", + "$id": "296", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "287", + "$id": "297", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3017,18 +3097,18 @@ "isHttpMetadata": false }, { - "$id": "288", + "$id": "298", "kind": "property", "name": "clientId", "serializedName": "clientId", "doc": "The client ID of the assigned identity.", "type": { - "$id": "289", + "$id": "299", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "290", + "$id": "300", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3102,18 +3182,18 @@ "isHttpMetadata": false }, { - "$id": "291", + "$id": "301", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "292", + "$id": "302", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "293", + "$id": "303", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3137,28 +3217,28 @@ ] }, { - "$ref": "236" - }, - { - "$ref": "262" + "$ref": "246" }, { "$ref": "272" }, { - "$ref": "284" + "$ref": "282" }, { - "$ref": "237" + "$ref": "294" }, { - "$ref": "238" + "$ref": "247" }, { "$ref": "248" }, { - "$id": "294", + "$ref": "258" + }, + { + "$id": "304", "kind": "model", "name": "StartParameterBody", "namespace": "MgmtTypeSpec", @@ -3172,12 +3252,12 @@ ], "properties": [ { - "$id": "295", + "$id": "305", "kind": "property", "name": "body", "doc": "SAP Application server instance start request body.", "type": { - "$id": "296", + "$id": "306", "kind": "model", "name": "StartRequest", "namespace": "MgmtTypeSpec", @@ -3192,13 +3272,13 @@ ], "properties": [ { - "$id": "297", + "$id": "307", "kind": "property", "name": "startVm", "serializedName": "startVm", "doc": "The boolean value indicates whether to start the virtual machines before starting the SAP instances.", "type": { - "$id": "298", + "$id": "308", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3231,10 +3311,10 @@ ] }, { - "$ref": "296" + "$ref": "306" }, { - "$id": "299", + "$id": "309", "kind": "model", "name": "OperationStatusResult", "namespace": "MgmtTypeSpec", @@ -3249,18 +3329,18 @@ ], "properties": [ { - "$id": "300", + "$id": "310", "kind": "property", "name": "id", "serializedName": "id", "doc": "Fully qualified ID for the async operation.", "type": { - "$id": "301", + "$id": "311", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "302", + "$id": "312", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3282,13 +3362,13 @@ "isHttpMetadata": false }, { - "$id": "303", + "$id": "313", "kind": "property", "name": "name", "serializedName": "name", "doc": "Name of the async operation.", "type": { - "$id": "304", + "$id": "314", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3308,13 +3388,13 @@ "isHttpMetadata": false }, { - "$id": "305", + "$id": "315", "kind": "property", "name": "status", "serializedName": "status", "doc": "Operation status.", "type": { - "$id": "306", + "$id": "316", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3334,13 +3414,13 @@ "isHttpMetadata": false }, { - "$id": "307", + "$id": "317", "kind": "property", "name": "percentComplete", "serializedName": "percentComplete", "doc": "Percent of the operation that is complete.", "type": { - "$id": "308", + "$id": "318", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -3360,18 +3440,18 @@ "isHttpMetadata": false }, { - "$id": "309", + "$id": "319", "kind": "property", "name": "startTime", "serializedName": "startTime", "doc": "The start time of the operation.", "type": { - "$id": "310", + "$id": "320", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "311", + "$id": "321", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3394,18 +3474,18 @@ "isHttpMetadata": false }, { - "$id": "312", + "$id": "322", "kind": "property", "name": "endTime", "serializedName": "endTime", "doc": "The end time of the operation.", "type": { - "$id": "313", + "$id": "323", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "314", + "$id": "324", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3428,17 +3508,17 @@ "isHttpMetadata": false }, { - "$id": "315", + "$id": "325", "kind": "property", "name": "operations", "serializedName": "operations", "doc": "The operations list.", "type": { - "$id": "316", + "$id": "326", "kind": "array", "name": "ArrayOperationStatusResult", "valueType": { - "$ref": "299" + "$ref": "309" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -3457,13 +3537,13 @@ "isHttpMetadata": false }, { - "$id": "317", + "$id": "327", "kind": "property", "name": "error", "serializedName": "error", "doc": "If present, details of the operation error.", "type": { - "$ref": "194" + "$ref": "204" }, "optional": true, "readOnly": false, @@ -3479,18 +3559,18 @@ "isHttpMetadata": false }, { - "$id": "318", + "$id": "328", "kind": "property", "name": "resourceId", "serializedName": "resourceId", "doc": "Fully qualified ID of the resource against which the original async operation was started.", "type": { - "$id": "319", + "$id": "329", "kind": "string", "name": "armResourceIdentifier", "crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier", "baseType": { - "$id": "320", + "$id": "330", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3514,7 +3594,7 @@ ] }, { - "$id": "321", + "$id": "331", "kind": "model", "name": "ArmOperationStatusResourceProvisioningState", "namespace": "MgmtTypeSpec", @@ -3529,7 +3609,7 @@ ], "properties": [ { - "$id": "322", + "$id": "332", "kind": "property", "name": "status", "serializedName": "status", @@ -3551,13 +3631,13 @@ "isHttpMetadata": false }, { - "$id": "323", + "$id": "333", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique identifier for the operationStatus resource", "type": { - "$id": "324", + "$id": "334", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3577,13 +3657,13 @@ "isHttpMetadata": true }, { - "$id": "325", + "$id": "335", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the operationStatus resource", "type": { - "$id": "326", + "$id": "336", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3603,18 +3683,18 @@ "isHttpMetadata": false }, { - "$id": "327", + "$id": "337", "kind": "property", "name": "startTime", "serializedName": "startTime", "doc": "Operation start time", "type": { - "$id": "328", + "$id": "338", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "329", + "$id": "339", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3637,18 +3717,18 @@ "isHttpMetadata": false }, { - "$id": "330", + "$id": "340", "kind": "property", "name": "endTime", "serializedName": "endTime", "doc": "Operation complete time", "type": { - "$id": "331", + "$id": "341", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "332", + "$id": "342", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3671,13 +3751,13 @@ "isHttpMetadata": false }, { - "$id": "333", + "$id": "343", "kind": "property", "name": "percentComplete", "serializedName": "percentComplete", "doc": "The progress made toward completing the operation", "type": { - "$id": "334", + "$id": "344", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -3697,13 +3777,13 @@ "isHttpMetadata": false }, { - "$id": "335", + "$id": "345", "kind": "property", "name": "error", "serializedName": "error", "doc": "Errors that occurred if the operation ended with Canceled or Failed status", "type": { - "$ref": "194" + "$ref": "204" }, "optional": true, "readOnly": true, @@ -3721,7 +3801,7 @@ ] }, { - "$id": "336", + "$id": "346", "kind": "model", "name": "Foo", "namespace": "MgmtTypeSpec", @@ -3744,7 +3824,7 @@ "resourceType": "MgmtTypeSpec/foos", "methods": [ { - "$id": "337", + "$id": "347", "methodId": "MgmtTypeSpec.Foos.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -3752,7 +3832,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "338", + "$id": "348", "methodId": "MgmtTypeSpec.Foos.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -3760,7 +3840,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "339", + "$id": "349", "methodId": "MgmtTypeSpec.Foos.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -3768,7 +3848,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "340", + "$id": "350", "methodId": "MgmtTypeSpec.Foos.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}", @@ -3776,14 +3856,14 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "341", + "$id": "351", "methodId": "MgmtTypeSpec.Foos.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos", "operationScope": "ResourceGroup" }, { - "$id": "342", + "$id": "352", "methodId": "MgmtTypeSpec.Foos.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/foos", @@ -3796,7 +3876,7 @@ } ], "baseModel": { - "$id": "343", + "$id": "353", "kind": "model", "name": "TrackedResource", "namespace": "MgmtTypeSpec", @@ -3811,27 +3891,27 @@ } ], "baseModel": { - "$ref": "238" + "$ref": "248" }, "properties": [ { - "$id": "344", + "$id": "354", "kind": "property", "name": "tags", "serializedName": "tags", "doc": "Resource tags.", "type": { - "$id": "345", + "$id": "355", "kind": "dict", "keyType": { - "$id": "346", + "$id": "356", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "347", + "$id": "357", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3853,18 +3933,18 @@ "isHttpMetadata": false }, { - "$id": "348", + "$id": "358", "kind": "property", "name": "location", "serializedName": "location", "doc": "The geo-location where the resource lives", "type": { - "$id": "349", + "$id": "359", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "350", + "$id": "360", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3889,13 +3969,13 @@ }, "properties": [ { - "$id": "351", + "$id": "361", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "352", + "$id": "362", "kind": "model", "name": "FooProperties", "namespace": "MgmtTypeSpec", @@ -3915,13 +3995,13 @@ ], "properties": [ { - "$id": "353", + "$id": "363", "kind": "property", "name": "serviceUrl", "serializedName": "serviceUrl", "doc": "the service url", "type": { - "$id": "354", + "$id": "364", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3941,13 +4021,13 @@ "isHttpMetadata": false }, { - "$id": "355", + "$id": "365", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "356", + "$id": "366", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3967,13 +4047,13 @@ "isHttpMetadata": false }, { - "$id": "357", + "$id": "367", "kind": "property", "name": "boolValue", "serializedName": "boolValue", "doc": "boolean value", "type": { - "$id": "358", + "$id": "368", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3993,13 +4073,13 @@ "isHttpMetadata": false }, { - "$id": "359", + "$id": "369", "kind": "property", "name": "floatValue", "serializedName": "floatValue", "doc": "float value", "type": { - "$id": "360", + "$id": "370", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -4019,13 +4099,13 @@ "isHttpMetadata": false }, { - "$id": "361", + "$id": "371", "kind": "property", "name": "doubleValue", "serializedName": "doubleValue", "doc": "double value", "type": { - "$id": "362", + "$id": "372", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -4060,13 +4140,13 @@ "isHttpMetadata": false }, { - "$id": "363", + "$id": "373", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Foo", "type": { - "$id": "364", + "$id": "374", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4086,12 +4166,12 @@ "isHttpMetadata": true }, { - "$id": "365", + "$id": "375", "kind": "property", "name": "extendedLocation", "serializedName": "extendedLocation", "type": { - "$id": "366", + "$id": "376", "kind": "model", "name": "ExtendedLocation", "namespace": "MgmtTypeSpec", @@ -4106,13 +4186,13 @@ ], "properties": [ { - "$id": "367", + "$id": "377", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the extended location.", "type": { - "$id": "368", + "$id": "378", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4132,7 +4212,7 @@ "isHttpMetadata": false }, { - "$id": "369", + "$id": "379", "kind": "property", "name": "type", "serializedName": "type", @@ -4171,16 +4251,16 @@ ] }, { - "$ref": "352" + "$ref": "362" }, { - "$ref": "366" + "$ref": "376" }, { - "$ref": "343" + "$ref": "353" }, { - "$id": "370", + "$id": "380", "kind": "model", "name": "FooListResult", "namespace": "MgmtTypeSpec", @@ -4195,17 +4275,17 @@ ], "properties": [ { - "$id": "371", + "$id": "381", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Foo items on this page", "type": { - "$id": "372", + "$id": "382", "kind": "array", "name": "ArrayFoo", "valueType": { - "$ref": "336" + "$ref": "346" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4224,18 +4304,18 @@ "isHttpMetadata": false }, { - "$id": "373", + "$id": "383", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "374", + "$id": "384", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "375", + "$id": "385", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -4259,7 +4339,7 @@ ] }, { - "$id": "376", + "$id": "386", "kind": "model", "name": "FooSettings", "namespace": "MgmtTypeSpec", @@ -4286,7 +4366,7 @@ "resourceType": "MgmtTypeSpec/FooSettings", "methods": [ { - "$id": "377", + "$id": "387", "methodId": "MgmtTypeSpec.FooSettingsOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -4294,7 +4374,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "378", + "$id": "388", "methodId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -4302,7 +4382,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "379", + "$id": "389", "methodId": "MgmtTypeSpec.FooSettingsOperations.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -4310,7 +4390,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default" }, { - "$id": "380", + "$id": "390", "methodId": "MgmtTypeSpec.FooSettingsOperations.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default", @@ -4325,17 +4405,17 @@ } ], "baseModel": { - "$ref": "237" + "$ref": "247" }, "properties": [ { - "$id": "381", + "$id": "391", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "382", + "$id": "392", "kind": "model", "name": "FooSettingsProperties", "namespace": "MgmtTypeSpec", @@ -4349,12 +4429,12 @@ ], "properties": [ { - "$id": "383", + "$id": "393", "kind": "property", "name": "accessControlEnabled", "serializedName": "accessControlEnabled", "type": { - "$id": "384", + "$id": "394", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4374,7 +4454,7 @@ "isHttpMetadata": false }, { - "$id": "385", + "$id": "395", "kind": "property", "name": "provisioningState", "serializedName": "provisioningState", @@ -4395,12 +4475,12 @@ "isHttpMetadata": false }, { - "$id": "386", + "$id": "396", "kind": "property", "name": "metaData", "serializedName": "metaData", "type": { - "$id": "387", + "$id": "397", "kind": "model", "name": "FooSettingsPropertiesMetaData", "namespace": "MgmtTypeSpec", @@ -4414,12 +4494,12 @@ ], "properties": [ { - "$id": "388", + "$id": "398", "kind": "property", "name": "metaDatas", "serializedName": "metaDatas", "type": { - "$ref": "266" + "$ref": "276" }, "optional": true, "readOnly": false, @@ -4465,13 +4545,13 @@ "isHttpMetadata": false }, { - "$id": "389", + "$id": "399", "kind": "property", "name": "name", "serializedName": "name", "doc": "The default Foo settings.", "type": { - "$id": "390", + "$id": "400", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4493,13 +4573,13 @@ ] }, { - "$ref": "382" + "$ref": "392" }, { - "$ref": "387" + "$ref": "397" }, { - "$id": "391", + "$id": "401", "kind": "model", "name": "FooSettingsUpdate", "namespace": "MgmtTypeSpec", @@ -4514,13 +4594,13 @@ ], "properties": [ { - "$id": "392", + "$id": "402", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "393", + "$id": "403", "kind": "model", "name": "FooSettingsUpdateProperties", "namespace": "MgmtTypeSpec", @@ -4535,12 +4615,12 @@ ], "properties": [ { - "$id": "394", + "$id": "404", "kind": "property", "name": "accessControlEnabled", "serializedName": "accessControlEnabled", "type": { - "$id": "395", + "$id": "405", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4577,10 +4657,10 @@ ] }, { - "$ref": "393" + "$ref": "403" }, { - "$id": "396", + "$id": "406", "kind": "model", "name": "Bar", "namespace": "MgmtTypeSpec", @@ -4607,7 +4687,7 @@ "resourceType": "MgmtTypeSpec/foos/bars", "methods": [ { - "$id": "397", + "$id": "407", "methodId": "MgmtTypeSpec.Bars.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -4615,7 +4695,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "398", + "$id": "408", "methodId": "MgmtTypeSpec.Bars.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -4623,7 +4703,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "399", + "$id": "409", "methodId": "MgmtTypeSpec.Bars.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars", @@ -4631,7 +4711,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}" }, { - "$id": "400", + "$id": "410", "methodId": "MgmtTypeSpec.Bars.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -4639,7 +4719,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}" }, { - "$id": "401", + "$id": "411", "methodId": "MgmtTypeSpec.Bars.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}", @@ -4654,17 +4734,17 @@ } ], "baseModel": { - "$ref": "343" + "$ref": "353" }, "properties": [ { - "$id": "402", + "$id": "412", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "403", + "$id": "413", "kind": "model", "name": "BarProperties", "namespace": "MgmtTypeSpec", @@ -4678,13 +4758,13 @@ ], "properties": [ { - "$id": "404", + "$id": "414", "kind": "property", "name": "serviceUrl", "serializedName": "serviceUrl", "doc": "the service url", "type": { - "$id": "405", + "$id": "415", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -4704,13 +4784,13 @@ "isHttpMetadata": false }, { - "$id": "406", + "$id": "416", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "407", + "$id": "417", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4730,13 +4810,13 @@ "isHttpMetadata": false }, { - "$id": "408", + "$id": "418", "kind": "property", "name": "boolValue", "serializedName": "boolValue", "doc": "boolean value", "type": { - "$id": "409", + "$id": "419", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4756,13 +4836,13 @@ "isHttpMetadata": false }, { - "$id": "410", + "$id": "420", "kind": "property", "name": "floatValue", "serializedName": "floatValue", "doc": "float value", "type": { - "$id": "411", + "$id": "421", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -4782,13 +4862,13 @@ "isHttpMetadata": false }, { - "$id": "412", + "$id": "422", "kind": "property", "name": "doubleValue", "serializedName": "doubleValue", "doc": "double value", "type": { - "$id": "413", + "$id": "423", "kind": "float64", "name": "float64", "crossLanguageDefinitionId": "TypeSpec.float64", @@ -4823,13 +4903,13 @@ "isHttpMetadata": false }, { - "$id": "414", + "$id": "424", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Bar", "type": { - "$id": "415", + "$id": "425", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4851,10 +4931,10 @@ ] }, { - "$ref": "403" + "$ref": "413" }, { - "$id": "416", + "$id": "426", "kind": "model", "name": "BarListResult", "namespace": "MgmtTypeSpec", @@ -4869,17 +4949,17 @@ ], "properties": [ { - "$id": "417", + "$id": "427", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Bar items on this page", "type": { - "$id": "418", + "$id": "428", "kind": "array", "name": "ArrayBar", "valueType": { - "$ref": "396" + "$ref": "406" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4898,18 +4978,18 @@ "isHttpMetadata": false }, { - "$id": "419", + "$id": "429", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "420", + "$id": "430", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "421", + "$id": "431", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -4933,7 +5013,7 @@ ] }, { - "$id": "422", + "$id": "432", "kind": "model", "name": "BarSettingsResource", "namespace": "MgmtTypeSpec", @@ -4966,7 +5046,7 @@ "resourceType": "MgmtTypeSpec/foos/bars/settings", "methods": [ { - "$id": "423", + "$id": "433", "methodId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current", @@ -4974,7 +5054,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current" }, { - "$id": "424", + "$id": "434", "methodId": "MgmtTypeSpec.BarSettingsOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current", @@ -4990,17 +5070,17 @@ } ], "baseModel": { - "$ref": "237" + "$ref": "247" }, "properties": [ { - "$id": "425", + "$id": "435", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "426", + "$id": "436", "kind": "model", "name": "BarSettingsProperties", "namespace": "MgmtTypeSpec", @@ -5014,13 +5094,13 @@ ], "properties": [ { - "$id": "427", + "$id": "437", "kind": "property", "name": "isEnabled", "serializedName": "isEnabled", "doc": "enabled", "type": { - "$id": "428", + "$id": "438", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -5055,13 +5135,13 @@ "isHttpMetadata": false }, { - "$id": "429", + "$id": "439", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the BarSettingsResource", "type": { - "$id": "430", + "$id": "440", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5081,12 +5161,12 @@ "isHttpMetadata": true }, { - "$id": "431", + "$id": "441", "kind": "property", "name": "stringArray", "serializedName": "stringArray", "type": { - "$ref": "266" + "$ref": "276" }, "optional": true, "readOnly": false, @@ -5102,12 +5182,12 @@ "isHttpMetadata": false }, { - "$id": "432", + "$id": "442", "kind": "property", "name": "property", "serializedName": "property", "type": { - "$id": "433", + "$id": "443", "kind": "model", "name": "BarQuotaProperties", "namespace": "MgmtTypeSpec", @@ -5121,13 +5201,13 @@ ], "properties": [ { - "$id": "434", + "$id": "444", "kind": "property", "name": "left", "serializedName": "left", "doc": "enabled", "type": { - "$id": "435", + "$id": "445", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5162,12 +5242,12 @@ "isHttpMetadata": false }, { - "$id": "436", + "$id": "446", "kind": "property", "name": "anotherProperty", "serializedName": "anotherProperty", "type": { - "$ref": "433" + "$ref": "443" }, "optional": false, "readOnly": false, @@ -5183,12 +5263,12 @@ "isHttpMetadata": false }, { - "$id": "437", + "$id": "447", "kind": "property", "name": "flattenedNestedProperty", "serializedName": "flattenedNestedProperty", "type": { - "$id": "438", + "$id": "448", "kind": "model", "name": "BarNestedQuotaProperties", "namespace": "MgmtTypeSpec", @@ -5201,7 +5281,7 @@ } ], "baseModel": { - "$id": "439", + "$id": "449", "kind": "model", "name": "BarMiddleNestedQuotaProperties", "namespace": "MgmtTypeSpec", @@ -5214,7 +5294,7 @@ } ], "baseModel": { - "$id": "440", + "$id": "450", "kind": "model", "name": "BarDeeplyNestedQuotaProperties", "namespace": "MgmtTypeSpec", @@ -5228,12 +5308,12 @@ ], "properties": [ { - "$id": "441", + "$id": "451", "kind": "property", "name": "innerProp1", "serializedName": "innerProp1", "type": { - "$id": "442", + "$id": "452", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5253,12 +5333,12 @@ "isHttpMetadata": false }, { - "$id": "443", + "$id": "453", "kind": "property", "name": "innerProp2", "serializedName": "innerProp2", "type": { - "$id": "444", + "$id": "454", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5281,12 +5361,12 @@ }, "properties": [ { - "$id": "445", + "$id": "455", "kind": "property", "name": "middleProp1", "serializedName": "middleProp1", "type": { - "$id": "446", + "$id": "456", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5306,12 +5386,12 @@ "isHttpMetadata": false }, { - "$id": "447", + "$id": "457", "kind": "property", "name": "middleProp2", "serializedName": "middleProp2", "type": { - "$ref": "345" + "$ref": "355" }, "optional": false, "readOnly": false, @@ -5330,12 +5410,12 @@ }, "properties": [ { - "$id": "448", + "$id": "458", "kind": "property", "name": "prop1", "serializedName": "prop1", "type": { - "$ref": "266" + "$ref": "276" }, "optional": false, "readOnly": false, @@ -5351,12 +5431,12 @@ "isHttpMetadata": false }, { - "$id": "449", + "$id": "459", "kind": "property", "name": "prop2", "serializedName": "prop2", "type": { - "$id": "450", + "$id": "460", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5396,12 +5476,12 @@ "isHttpMetadata": false }, { - "$id": "451", + "$id": "461", "kind": "property", "name": "optionalFlattenProperty", "serializedName": "optionalFlattenProperty", "type": { - "$id": "452", + "$id": "462", "kind": "model", "name": "optionalFlattenPropertyType", "namespace": "MgmtTypeSpec", @@ -5415,12 +5495,12 @@ ], "properties": [ { - "$id": "453", + "$id": "463", "kind": "property", "name": "randomCollectionProp", "serializedName": "randomCollectionProp", "type": { - "$ref": "266" + "$ref": "276" }, "optional": false, "readOnly": false, @@ -5453,25 +5533,25 @@ ] }, { - "$ref": "426" + "$ref": "436" }, { - "$ref": "433" + "$ref": "443" }, { - "$ref": "438" + "$ref": "448" }, { - "$ref": "439" + "$ref": "449" }, { - "$ref": "440" + "$ref": "450" }, { - "$ref": "452" + "$ref": "462" }, { - "$id": "454", + "$id": "464", "kind": "model", "name": "BarQuotaResource", "namespace": "MgmtTypeSpec", @@ -5498,7 +5578,7 @@ "resourceType": "MgmtTypeSpec/foos/bars/quotas", "methods": [ { - "$id": "455", + "$id": "465", "methodId": "MgmtTypeSpec.BarQuotaOperations.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}", @@ -5506,7 +5586,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}" }, { - "$id": "456", + "$id": "466", "methodId": "MgmtTypeSpec.BarQuotaOperations.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}", @@ -5521,17 +5601,17 @@ } ], "baseModel": { - "$ref": "237" + "$ref": "247" }, "properties": [ { - "$id": "457", + "$id": "467", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$ref": "433" + "$ref": "443" }, "optional": true, "readOnly": false, @@ -5547,7 +5627,7 @@ "isHttpMetadata": false }, { - "$id": "458", + "$id": "468", "kind": "property", "name": "name", "serializedName": "name", @@ -5571,7 +5651,7 @@ ] }, { - "$id": "459", + "$id": "469", "kind": "model", "name": "Baz", "namespace": "MgmtTypeSpec", @@ -5594,7 +5674,7 @@ "resourceType": "MgmtTypeSpec/bazs", "methods": [ { - "$id": "460", + "$id": "470", "methodId": "MgmtTypeSpec.Bazs.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -5602,7 +5682,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "461", + "$id": "471", "methodId": "MgmtTypeSpec.Bazs.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -5610,7 +5690,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "462", + "$id": "472", "methodId": "MgmtTypeSpec.Bazs.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -5618,7 +5698,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "463", + "$id": "473", "methodId": "MgmtTypeSpec.Bazs.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}", @@ -5626,14 +5706,14 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}" }, { - "$id": "464", + "$id": "474", "methodId": "MgmtTypeSpec.Bazs.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs", "operationScope": "ResourceGroup" }, { - "$id": "465", + "$id": "475", "methodId": "MgmtTypeSpec.Bazs.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/bazs", @@ -5646,17 +5726,17 @@ } ], "baseModel": { - "$ref": "343" + "$ref": "353" }, "properties": [ { - "$id": "466", + "$id": "476", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "467", + "$id": "477", "kind": "model", "name": "BazProperties", "namespace": "MgmtTypeSpec", @@ -5670,13 +5750,13 @@ ], "properties": [ { - "$id": "468", + "$id": "478", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "469", + "$id": "479", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5696,13 +5776,13 @@ "isHttpMetadata": false }, { - "$id": "470", + "$id": "480", "kind": "property", "name": "boolValue", "serializedName": "boolValue", "doc": "boolean value", "type": { - "$id": "471", + "$id": "481", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -5737,13 +5817,13 @@ "isHttpMetadata": false }, { - "$id": "472", + "$id": "482", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Baz", "type": { - "$id": "473", + "$id": "483", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5765,10 +5845,10 @@ ] }, { - "$ref": "467" + "$ref": "477" }, { - "$id": "474", + "$id": "484", "kind": "model", "name": "BazListResult", "namespace": "MgmtTypeSpec", @@ -5783,17 +5863,17 @@ ], "properties": [ { - "$id": "475", + "$id": "485", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Baz items on this page", "type": { - "$id": "476", + "$id": "486", "kind": "array", "name": "ArrayBaz", "valueType": { - "$ref": "459" + "$ref": "469" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -5812,18 +5892,18 @@ "isHttpMetadata": false }, { - "$id": "477", + "$id": "487", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "478", + "$id": "488", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "479", + "$id": "489", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -5847,7 +5927,7 @@ ] }, { - "$id": "480", + "$id": "490", "kind": "model", "name": "Zoo", "namespace": "MgmtTypeSpec", @@ -5870,7 +5950,7 @@ "resourceType": "MgmtTypeSpec/zoos", "methods": [ { - "$id": "481", + "$id": "491", "methodId": "MgmtTypeSpec.Zoos.createOrUpdate", "kind": "Create", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -5878,7 +5958,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "482", + "$id": "492", "methodId": "MgmtTypeSpec.Zoos.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -5886,7 +5966,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "483", + "$id": "493", "methodId": "MgmtTypeSpec.Zoos.delete", "kind": "Delete", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -5894,7 +5974,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "484", + "$id": "494", "methodId": "MgmtTypeSpec.Zoos.update", "kind": "Update", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}", @@ -5902,21 +5982,21 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "485", + "$id": "495", "methodId": "MgmtTypeSpec.Zoos.list", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos", "operationScope": "ResourceGroup" }, { - "$id": "486", + "$id": "496", "methodId": "MgmtTypeSpec.Zoos.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/zoos", "operationScope": "Subscription" }, { - "$id": "487", + "$id": "497", "methodId": "MgmtTypeSpec.Zoos.zooAddressList", "kind": "Action", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/zooAddressList", @@ -5924,7 +6004,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}" }, { - "$id": "488", + "$id": "498", "methodId": "MgmtTypeSpec.Zoos.recommend", "kind": "Action", "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/recommend", @@ -5938,17 +6018,17 @@ } ], "baseModel": { - "$ref": "343" + "$ref": "353" }, "properties": [ { - "$id": "489", + "$id": "499", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "490", + "$id": "500", "kind": "model", "name": "ZooProperties", "namespace": "MgmtTypeSpec", @@ -5968,13 +6048,13 @@ ], "properties": [ { - "$id": "491", + "$id": "501", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "492", + "$id": "502", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6009,13 +6089,13 @@ "isHttpMetadata": false }, { - "$id": "493", + "$id": "503", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the Zoo", "type": { - "$id": "494", + "$id": "504", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6035,12 +6115,12 @@ "isHttpMetadata": true }, { - "$id": "495", + "$id": "505", "kind": "property", "name": "extendedLocation", "serializedName": "extendedLocation", "type": { - "$ref": "366" + "$ref": "376" }, "optional": true, "readOnly": false, @@ -6058,10 +6138,10 @@ ] }, { - "$ref": "490" + "$ref": "500" }, { - "$id": "496", + "$id": "506", "kind": "model", "name": "ZooUpdate", "namespace": "MgmtTypeSpec", @@ -6076,13 +6156,13 @@ ], "properties": [ { - "$id": "497", + "$id": "507", "kind": "property", "name": "tags", "serializedName": "tags", "doc": "Resource tags.", "type": { - "$ref": "345" + "$ref": "355" }, "optional": true, "readOnly": false, @@ -6098,13 +6178,13 @@ "isHttpMetadata": false }, { - "$id": "498", + "$id": "508", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "499", + "$id": "509", "kind": "model", "name": "ZooUpdateProperties", "namespace": "MgmtTypeSpec", @@ -6119,13 +6199,13 @@ ], "properties": [ { - "$id": "500", + "$id": "510", "kind": "property", "name": "something", "serializedName": "something", "doc": "something", "type": { - "$id": "501", + "$id": "511", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6162,10 +6242,10 @@ ] }, { - "$ref": "499" + "$ref": "509" }, { - "$id": "502", + "$id": "512", "kind": "model", "name": "ZooListResult", "namespace": "MgmtTypeSpec", @@ -6180,17 +6260,17 @@ ], "properties": [ { - "$id": "503", + "$id": "513", "kind": "property", "name": "value", "serializedName": "value", "doc": "The Zoo items on this page", "type": { - "$id": "504", + "$id": "514", "kind": "array", "name": "ArrayZoo", "valueType": { - "$ref": "480" + "$ref": "490" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -6209,18 +6289,18 @@ "isHttpMetadata": false }, { - "$id": "505", + "$id": "515", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "506", + "$id": "516", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "507", + "$id": "517", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -6244,7 +6324,7 @@ ] }, { - "$id": "508", + "$id": "518", "kind": "model", "name": "ZooAddressListListResult", "namespace": "MgmtTypeSpec", @@ -6259,17 +6339,17 @@ ], "properties": [ { - "$id": "509", + "$id": "519", "kind": "property", "name": "value", "serializedName": "value", "doc": "The ZooAddress items on this page", "type": { - "$id": "510", + "$id": "520", "kind": "array", "name": "ArraySubResource", "valueType": { - "$id": "511", + "$id": "521", "kind": "model", "name": "SubResource", "namespace": "MgmtTypeSpec", @@ -6300,18 +6380,18 @@ "isHttpMetadata": false }, { - "$id": "512", + "$id": "522", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "513", + "$id": "523", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "514", + "$id": "524", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -6335,10 +6415,10 @@ ] }, { - "$ref": "511" + "$ref": "521" }, { - "$id": "515", + "$id": "525", "kind": "model", "name": "EndpointResource", "namespace": "MgmtTypeSpec", @@ -6361,7 +6441,7 @@ "resourceType": "MgmtTypeSpec/endpoints", "methods": [ { - "$id": "516", + "$id": "526", "methodId": "MgmtTypeSpec.EndpointResources.get", "kind": "Get", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -6369,7 +6449,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "517", + "$id": "527", "methodId": "MgmtTypeSpec.EndpointResources.createOrUpdate", "kind": "Create", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -6377,7 +6457,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "518", + "$id": "528", "methodId": "MgmtTypeSpec.EndpointResources.update", "kind": "Update", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -6385,7 +6465,7 @@ "resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}" }, { - "$id": "519", + "$id": "529", "methodId": "MgmtTypeSpec.EndpointResources.delete", "kind": "Delete", "operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}", @@ -6399,7 +6479,7 @@ } ], "baseModel": { - "$id": "520", + "$id": "530", "kind": "model", "name": "ExtensionResource", "namespace": "MgmtTypeSpec", @@ -6413,19 +6493,19 @@ } ], "baseModel": { - "$ref": "238" + "$ref": "248" }, "properties": [] }, "properties": [ { - "$id": "521", + "$id": "531", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "522", + "$id": "532", "kind": "model", "name": "EndpointProperties", "namespace": "MgmtTypeSpec", @@ -6439,12 +6519,12 @@ ], "properties": [ { - "$id": "523", + "$id": "533", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "524", + "$id": "534", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6479,13 +6559,13 @@ "isHttpMetadata": false }, { - "$id": "525", + "$id": "535", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the EndpointResource", "type": { - "$id": "526", + "$id": "536", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6507,13 +6587,13 @@ ] }, { - "$ref": "522" + "$ref": "532" }, { - "$ref": "520" + "$ref": "530" }, { - "$id": "527", + "$id": "537", "kind": "model", "name": "SelfHelpResource", "namespace": "MgmtTypeSpec", @@ -6536,7 +6616,7 @@ "resourceType": "MgmtTypeSpec/selfHelps", "methods": [ { - "$id": "528", + "$id": "538", "methodId": "MgmtTypeSpec.SolutionResources.get", "kind": "Get", "operationPath": "/{scope}/providers/MgmtTypeSpec/selfHelps/{selfHelpName}", @@ -6550,17 +6630,17 @@ } ], "baseModel": { - "$ref": "520" + "$ref": "530" }, "properties": [ { - "$id": "529", + "$id": "539", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "530", + "$id": "540", "kind": "model", "name": "SelfHelpResourceProperties", "namespace": "MgmtTypeSpec", @@ -6574,12 +6654,12 @@ ], "properties": [ { - "$id": "531", + "$id": "541", "kind": "property", "name": "selfHelpId", "serializedName": "selfHelpId", "type": { - "$id": "532", + "$id": "542", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6614,13 +6694,13 @@ "isHttpMetadata": false }, { - "$id": "533", + "$id": "543", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the SelfHelpResource", "type": { - "$id": "534", + "$id": "544", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6642,10 +6722,10 @@ ] }, { - "$ref": "530" + "$ref": "540" }, { - "$id": "535", + "$id": "545", "kind": "model", "name": "PlaywrightQuota", "namespace": "MgmtTypeSpec", @@ -6672,7 +6752,7 @@ "resourceType": "MgmtTypeSpec/locations/playwrightQuotas", "methods": [ { - "$id": "536", + "$id": "546", "methodId": "MgmtTypeSpec.PlaywrightQuotas.get", "kind": "Get", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}", @@ -6680,7 +6760,7 @@ "resourceScope": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}" }, { - "$id": "537", + "$id": "547", "methodId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription", "kind": "List", "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas", @@ -6693,17 +6773,17 @@ } ], "baseModel": { - "$ref": "237" + "$ref": "247" }, "properties": [ { - "$id": "538", + "$id": "548", "kind": "property", "name": "properties", "serializedName": "properties", "doc": "The resource-specific properties for this resource.", "type": { - "$id": "539", + "$id": "549", "kind": "model", "name": "PlaywrightQuotaProperties", "namespace": "MgmtTypeSpec", @@ -6718,13 +6798,13 @@ ], "properties": [ { - "$id": "540", + "$id": "550", "kind": "property", "name": "freeTrial", "serializedName": "freeTrial", "doc": "The subscription-level location-based Playwright quota resource free-trial properties.", "type": { - "$id": "541", + "$id": "551", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6744,13 +6824,13 @@ "isHttpMetadata": false }, { - "$id": "542", + "$id": "552", "kind": "property", "name": "provisioningState", "serializedName": "provisioningState", "doc": "The status of the last resource operation.", "type": { - "$id": "543", + "$id": "553", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6785,7 +6865,7 @@ "isHttpMetadata": false }, { - "$id": "544", + "$id": "554", "kind": "property", "name": "name", "serializedName": "name", @@ -6809,10 +6889,10 @@ ] }, { - "$ref": "539" + "$ref": "549" }, { - "$id": "545", + "$id": "555", "kind": "model", "name": "PlaywrightQuotaListResult", "namespace": "MgmtTypeSpec", @@ -6827,17 +6907,17 @@ ], "properties": [ { - "$id": "546", + "$id": "556", "kind": "property", "name": "value", "serializedName": "value", "doc": "The PlaywrightQuota items on this page", "type": { - "$id": "547", + "$id": "557", "kind": "array", "name": "ArrayPlaywrightQuota", "valueType": { - "$ref": "535" + "$ref": "545" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -6856,18 +6936,18 @@ "isHttpMetadata": false }, { - "$id": "548", + "$id": "558", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "549", + "$id": "559", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "550", + "$id": "560", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -6891,31 +6971,229 @@ ] }, { - "$id": "551", + "$id": "561", "kind": "model", - "name": "ZooRecommendation", + "name": "JobResource", "namespace": "MgmtTypeSpec", - "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation", - "usage": "Output,Json", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResource", + "usage": "Output,Json,LroInitial,LroFinalEnvelope", + "doc": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", "decorators": [ { "name": "Azure.ResourceManager.@armProviderNamespace", "arguments": {} + }, + { + "name": "Azure.ResourceManager.Private.@armResourceInternal", + "arguments": {} + }, + { + "name": "Azure.ClientGenerator.Core.@resourceSchema", + "arguments": { + "resourceIdPattern": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}", + "resourceType": "MgmtTypeSpec/jobs", + "methods": [ + { + "$id": "562", + "methodId": "MgmtTypeSpec.JobResources.get", + "kind": "Get", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}" + }, + { + "$id": "563", + "methodId": "MgmtTypeSpec.JobResources.update", + "kind": "Update", + "operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}", + "operationScope": "ResourceGroup", + "resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}" + } + ], + "resourceScope": "ResourceGroup", + "resourceName": "JobResource" + } } ], + "baseModel": { + "$ref": "353" + }, "properties": [ { - "$id": "552", + "$id": "564", "kind": "property", - "name": "recommendedValue", - "serializedName": "recommendedValue", - "doc": "The recommended value", + "name": "properties", + "serializedName": "properties", + "doc": "The resource-specific properties for this resource.", "type": { - "$id": "553", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "565", + "kind": "model", + "name": "JobProperties", + "namespace": "MgmtTypeSpec", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobProperties", + "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "566", + "kind": "property", + "name": "jobName", + "serializedName": "jobName", + "type": { + "$id": "567", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobProperties.jobName", + "serializationOptions": { + "json": { + "name": "jobName" + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResource.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + }, + { + "$id": "568", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the JobResource", + "type": { + "$id": "569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResource.name", + "serializationOptions": { + "json": { + "name": "name" + } + }, + "isHttpMetadata": true + } + ] + }, + { + "$ref": "565" + }, + { + "$id": "570", + "kind": "model", + "name": "JobResourceUpdateParameter", + "namespace": "MgmtTypeSpec", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResourceUpdateParameter", + "usage": "Input,Json", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "571", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "type": { + "$ref": "565" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResourceUpdateParameter.properties", + "serializationOptions": { + "json": { + "name": "properties" + } + }, + "isHttpMetadata": false + }, + { + "$id": "572", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "type": { + "$ref": "355" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResourceUpdateParameter.tags", + "serializationOptions": { + "json": { + "name": "tags" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "573", + "kind": "model", + "name": "ZooRecommendation", + "namespace": "MgmtTypeSpec", + "crossLanguageDefinitionId": "MgmtTypeSpec.ZooRecommendation", + "usage": "Output,Json", + "decorators": [ + { + "name": "Azure.ResourceManager.@armProviderNamespace", + "arguments": {} + } + ], + "properties": [ + { + "$id": "574", + "kind": "property", + "name": "recommendedValue", + "serializedName": "recommendedValue", + "doc": "The recommended value", + "type": { + "$id": "575", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, "optional": false, "readOnly": false, @@ -6931,13 +7209,13 @@ "isHttpMetadata": false }, { - "$id": "554", + "$id": "576", "kind": "property", "name": "reason", "serializedName": "reason", "doc": "The reason for the recommendation", "type": { - "$id": "555", + "$id": "577", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6961,13 +7239,13 @@ ], "clients": [ { - "$id": "556", + "$id": "578", "kind": "client", "name": "MgmtTypeSpecClient", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "557", + "$id": "579", "kind": "basic", "name": "previewActions", "accessibility": "public", @@ -6976,20 +7254,20 @@ ], "doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.", "operation": { - "$id": "558", + "$id": "580", "name": "previewActions", "resourceName": "MgmtTypeSpec", "doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.", "accessibility": "public", "parameters": [ { - "$id": "559", + "$id": "581", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "560", + "$id": "582", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6999,7 +7277,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "561", + "$id": "583", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7013,18 +7291,18 @@ "readOnly": false }, { - "$id": "562", + "$id": "584", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "563", + "$id": "585", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "564", + "$id": "586", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7044,17 +7322,17 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.subscriptionId" }, { - "$id": "565", + "$id": "587", "kind": "path", "name": "location", "serializedName": "location", "type": { - "$id": "566", + "$id": "588", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "567", + "$id": "589", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7074,7 +7352,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.location" }, { - "$id": "568", + "$id": "590", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -7091,7 +7369,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.contentType" }, { - "$id": "569", + "$id": "591", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7107,13 +7385,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.accept" }, { - "$id": "570", + "$id": "592", "kind": "body", "name": "body", "serializedName": "body", "doc": "The request body", "type": { - "$ref": "187" + "$ref": "197" }, "isApiVersion": false, "contentTypes": [ @@ -7133,7 +7411,7 @@ 200 ], "bodyType": { - "$ref": "187" + "$ref": "197" }, "headers": [], "isErrorResponse": false, @@ -7156,17 +7434,17 @@ }, "parameters": [ { - "$id": "571", + "$id": "593", "kind": "method", "name": "location", "serializedName": "location", "type": { - "$id": "572", + "$id": "594", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "573", + "$id": "595", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7184,13 +7462,13 @@ "decorators": [] }, { - "$id": "574", + "$id": "596", "kind": "method", "name": "body", "serializedName": "body", "doc": "The request body", "type": { - "$ref": "187" + "$ref": "197" }, "location": "Body", "isApiVersion": false, @@ -7202,7 +7480,7 @@ "decorators": [] }, { - "$id": "575", + "$id": "597", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -7220,7 +7498,7 @@ "decorators": [] }, { - "$id": "576", + "$id": "598", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -7239,7 +7517,7 @@ ], "response": { "type": { - "$ref": "187" + "$ref": "197" } }, "isOverride": false, @@ -7250,13 +7528,13 @@ ], "parameters": [ { - "$id": "577", + "$id": "599", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "578", + "$id": "600", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7267,7 +7545,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "579", + "$id": "601", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7309,13 +7587,13 @@ ], "children": [ { - "$id": "580", + "$id": "602", "kind": "client", "name": "Operations", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "581", + "$id": "603", "kind": "paging", "name": "list", "accessibility": "public", @@ -7324,20 +7602,20 @@ ], "doc": "List the operations for the provider", "operation": { - "$id": "582", + "$id": "604", "name": "list", "resourceName": "Operations", "doc": "List the operations for the provider", "accessibility": "public", "parameters": [ { - "$id": "583", + "$id": "605", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "584", + "$id": "606", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7347,7 +7625,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "585", + "$id": "607", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7361,7 +7639,7 @@ "readOnly": false }, { - "$id": "586", + "$id": "608", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7383,7 +7661,7 @@ 200 ], "bodyType": { - "$ref": "210" + "$ref": "220" }, "headers": [], "isErrorResponse": false, @@ -7403,7 +7681,7 @@ }, "parameters": [ { - "$id": "587", + "$id": "609", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -7422,7 +7700,7 @@ ], "response": { "type": { - "$ref": "212" + "$ref": "222" }, "resultSegments": [ "value" @@ -7447,13 +7725,13 @@ ], "parameters": [ { - "$id": "588", + "$id": "610", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "589", + "$id": "611", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7464,7 +7742,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "590", + "$id": "612", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7483,17 +7761,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "591", + "$id": "613", "kind": "client", "name": "PrivateLinks", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "592", + "$id": "614", "kind": "paging", "name": "GetAllPrivateLinkResources", "accessibility": "public", @@ -7502,20 +7780,20 @@ ], "doc": "list private links on the given resource", "operation": { - "$id": "593", + "$id": "615", "name": "GetAllPrivateLinkResources", "resourceName": "PrivateLink", "doc": "list private links on the given resource", "accessibility": "public", "parameters": [ { - "$id": "594", + "$id": "616", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "595", + "$id": "617", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7525,7 +7803,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "596", + "$id": "618", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7539,18 +7817,18 @@ "readOnly": false }, { - "$id": "597", + "$id": "619", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "598", + "$id": "620", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "599", + "$id": "621", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7570,13 +7848,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.subscriptionId" }, { - "$id": "600", + "$id": "622", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "601", + "$id": "623", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7594,7 +7872,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.resourceGroupName" }, { - "$id": "602", + "$id": "624", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7616,7 +7894,7 @@ 200 ], "bodyType": { - "$ref": "233" + "$ref": "243" }, "headers": [], "isErrorResponse": false, @@ -7641,13 +7919,13 @@ }, "parameters": [ { - "$id": "603", + "$id": "625", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "604", + "$id": "626", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7663,7 +7941,7 @@ "decorators": [] }, { - "$id": "605", + "$id": "627", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -7682,7 +7960,7 @@ ], "response": { "type": { - "$ref": "235" + "$ref": "245" }, "resultSegments": [ "value" @@ -7705,7 +7983,7 @@ } }, { - "$id": "606", + "$id": "628", "kind": "lro", "name": "start", "accessibility": "public", @@ -7714,20 +7992,20 @@ ], "doc": "Starts the SAP Application Server Instance.", "operation": { - "$id": "607", + "$id": "629", "name": "start", "resourceName": "PrivateLinks", "doc": "Starts the SAP Application Server Instance.", "accessibility": "public", "parameters": [ { - "$id": "608", + "$id": "630", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "609", + "$id": "631", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7737,7 +8015,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "610", + "$id": "632", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7751,18 +8029,18 @@ "readOnly": false }, { - "$id": "611", + "$id": "633", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "612", + "$id": "634", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "613", + "$id": "635", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7782,13 +8060,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.subscriptionId" }, { - "$id": "614", + "$id": "636", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "615", + "$id": "637", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7806,13 +8084,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.resourceGroupName" }, { - "$id": "616", + "$id": "638", "kind": "path", "name": "privateLinkResourceName", "serializedName": "privateLinkResourceName", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "617", + "$id": "639", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7830,7 +8108,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.privateLinkResourceName" }, { - "$id": "618", + "$id": "640", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -7847,7 +8125,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.contentType" }, { - "$id": "619", + "$id": "641", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7863,13 +8141,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.accept" }, { - "$id": "620", + "$id": "642", "kind": "body", "name": "body", "serializedName": "body", "doc": "SAP Application server instance start request body.", "type": { - "$ref": "296" + "$ref": "306" }, "isApiVersion": false, "contentTypes": [ @@ -7894,7 +8172,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "621", + "$id": "643", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7906,7 +8184,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "622", + "$id": "644", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7921,7 +8199,7 @@ 200 ], "bodyType": { - "$ref": "299" + "$ref": "309" }, "headers": [], "isErrorResponse": false, @@ -7949,13 +8227,13 @@ }, "parameters": [ { - "$id": "623", + "$id": "645", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "624", + "$id": "646", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7971,13 +8249,13 @@ "decorators": [] }, { - "$id": "625", + "$id": "647", "kind": "method", "name": "privateLinkResourceName", "serializedName": "privateLinkResourceName", "doc": "The name of the private link associated with the Azure resource.", "type": { - "$id": "626", + "$id": "648", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7993,13 +8271,13 @@ "decorators": [] }, { - "$id": "627", + "$id": "649", "kind": "method", "name": "body", "serializedName": "body", "doc": "The content of the action request", "type": { - "$ref": "294" + "$ref": "304" }, "location": "", "isApiVersion": false, @@ -8011,7 +8289,7 @@ "decorators": [] }, { - "$id": "628", + "$id": "650", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -8029,7 +8307,7 @@ "decorators": [] }, { - "$id": "629", + "$id": "651", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -8048,7 +8326,7 @@ ], "response": { "type": { - "$ref": "299" + "$ref": "309" } }, "isOverride": false, @@ -8062,7 +8340,7 @@ 200 ], "bodyType": { - "$ref": "299" + "$ref": "309" } } } @@ -8070,13 +8348,13 @@ ], "parameters": [ { - "$id": "630", + "$id": "652", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "631", + "$id": "653", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8087,7 +8365,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "632", + "$id": "654", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8111,17 +8389,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "633", + "$id": "655", "kind": "client", "name": "Foos", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "634", + "$id": "656", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -8130,20 +8408,20 @@ ], "doc": "Create a Foo", "operation": { - "$id": "635", + "$id": "657", "name": "createOrUpdate", "resourceName": "Foo", "doc": "Create a Foo", "accessibility": "public", "parameters": [ { - "$id": "636", + "$id": "658", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "637", + "$id": "659", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8153,7 +8431,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "638", + "$id": "660", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8167,18 +8445,18 @@ "readOnly": false }, { - "$id": "639", + "$id": "661", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "640", + "$id": "662", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "641", + "$id": "663", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8198,13 +8476,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.subscriptionId" }, { - "$id": "642", + "$id": "664", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "643", + "$id": "665", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8222,13 +8500,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.resourceGroupName" }, { - "$id": "644", + "$id": "666", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "645", + "$id": "667", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8246,7 +8524,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.fooName" }, { - "$id": "646", + "$id": "668", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -8263,7 +8541,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.contentType" }, { - "$id": "647", + "$id": "669", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -8279,13 +8557,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.accept" }, { - "$id": "648", + "$id": "670", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "336" + "$ref": "346" }, "isApiVersion": false, "contentTypes": [ @@ -8305,7 +8583,7 @@ 200 ], "bodyType": { - "$ref": "336" + "$ref": "346" }, "headers": [], "isErrorResponse": false, @@ -8318,7 +8596,7 @@ 201 ], "bodyType": { - "$ref": "336" + "$ref": "346" }, "headers": [ { @@ -8326,7 +8604,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "649", + "$id": "671", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8338,7 +8616,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "650", + "$id": "672", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -8371,13 +8649,13 @@ }, "parameters": [ { - "$id": "651", + "$id": "673", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "652", + "$id": "674", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8393,13 +8671,13 @@ "decorators": [] }, { - "$id": "653", + "$id": "675", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "654", + "$id": "676", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8415,13 +8693,13 @@ "decorators": [] }, { - "$id": "655", + "$id": "677", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "336" + "$ref": "346" }, "location": "Body", "isApiVersion": false, @@ -8433,7 +8711,7 @@ "decorators": [] }, { - "$id": "656", + "$id": "678", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -8451,7 +8729,7 @@ "decorators": [] }, { - "$id": "657", + "$id": "679", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -8470,7 +8748,7 @@ ], "response": { "type": { - "$ref": "336" + "$ref": "346" } }, "isOverride": false, @@ -8484,13 +8762,13 @@ 200 ], "bodyType": { - "$ref": "336" + "$ref": "346" } } } }, { - "$id": "658", + "$id": "680", "kind": "basic", "name": "get", "accessibility": "public", @@ -8499,20 +8777,20 @@ ], "doc": "Get a Foo", "operation": { - "$id": "659", + "$id": "681", "name": "get", "resourceName": "Foo", "doc": "Get a Foo", "accessibility": "public", "parameters": [ { - "$id": "660", + "$id": "682", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "661", + "$id": "683", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8522,7 +8800,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "662", + "$id": "684", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8536,18 +8814,18 @@ "readOnly": false }, { - "$id": "663", + "$id": "685", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "664", + "$id": "686", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "665", + "$id": "687", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8567,13 +8845,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.subscriptionId" }, { - "$id": "666", + "$id": "688", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "667", + "$id": "689", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8591,13 +8869,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.resourceGroupName" }, { - "$id": "668", + "$id": "690", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "669", + "$id": "691", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8615,7 +8893,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.fooName" }, { - "$id": "670", + "$id": "692", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -8637,7 +8915,7 @@ 200 ], "bodyType": { - "$ref": "336" + "$ref": "346" }, "headers": [], "isErrorResponse": false, @@ -8662,13 +8940,13 @@ }, "parameters": [ { - "$id": "671", + "$id": "693", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "672", + "$id": "694", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8684,13 +8962,13 @@ "decorators": [] }, { - "$id": "673", + "$id": "695", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "674", + "$id": "696", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8706,7 +8984,7 @@ "decorators": [] }, { - "$id": "675", + "$id": "697", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -8725,7 +9003,7 @@ ], "response": { "type": { - "$ref": "336" + "$ref": "346" } }, "isOverride": false, @@ -8734,7 +9012,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get" }, { - "$id": "676", + "$id": "698", "kind": "lro", "name": "delete", "accessibility": "public", @@ -8743,20 +9021,20 @@ ], "doc": "Delete a Foo", "operation": { - "$id": "677", + "$id": "699", "name": "delete", "resourceName": "Foo", "doc": "Delete a Foo", "accessibility": "public", "parameters": [ { - "$id": "678", + "$id": "700", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "679", + "$id": "701", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8766,7 +9044,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "680", + "$id": "702", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8780,18 +9058,18 @@ "readOnly": false }, { - "$id": "681", + "$id": "703", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "682", + "$id": "704", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "683", + "$id": "705", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8811,13 +9089,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.delete.subscriptionId" }, { - "$id": "684", + "$id": "706", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "685", + "$id": "707", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8835,13 +9113,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.delete.resourceGroupName" }, { - "$id": "686", + "$id": "708", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "687", + "$id": "709", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8870,7 +9148,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "688", + "$id": "710", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8882,7 +9160,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "689", + "$id": "711", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -8916,13 +9194,13 @@ }, "parameters": [ { - "$id": "690", + "$id": "712", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "691", + "$id": "713", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8938,13 +9216,13 @@ "decorators": [] }, { - "$id": "692", + "$id": "714", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "693", + "$id": "715", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8975,7 +9253,7 @@ } }, { - "$id": "694", + "$id": "716", "kind": "lro", "name": "update", "accessibility": "public", @@ -8984,20 +9262,20 @@ ], "doc": "Update a Foo", "operation": { - "$id": "695", + "$id": "717", "name": "update", "resourceName": "Foo", "doc": "Update a Foo", "accessibility": "public", "parameters": [ { - "$id": "696", + "$id": "718", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "697", + "$id": "719", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9007,7 +9285,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "698", + "$id": "720", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9021,18 +9299,18 @@ "readOnly": false }, { - "$id": "699", + "$id": "721", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "700", + "$id": "722", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "701", + "$id": "723", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9052,13 +9330,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.update.subscriptionId" }, { - "$id": "702", + "$id": "724", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "703", + "$id": "725", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9076,13 +9354,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.update.resourceGroupName" }, { - "$id": "704", + "$id": "726", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "705", + "$id": "727", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9100,7 +9378,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.update.fooName" }, { - "$id": "706", + "$id": "728", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -9117,7 +9395,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.update.contentType" }, { - "$id": "707", + "$id": "729", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9133,13 +9411,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.update.accept" }, { - "$id": "708", + "$id": "730", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "336" + "$ref": "346" }, "isApiVersion": false, "contentTypes": [ @@ -9159,7 +9437,7 @@ 200 ], "bodyType": { - "$ref": "336" + "$ref": "346" }, "headers": [], "isErrorResponse": false, @@ -9177,7 +9455,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "709", + "$id": "731", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9189,7 +9467,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "710", + "$id": "732", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -9219,13 +9497,13 @@ }, "parameters": [ { - "$id": "711", + "$id": "733", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "712", + "$id": "734", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9241,13 +9519,13 @@ "decorators": [] }, { - "$id": "713", + "$id": "735", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "714", + "$id": "736", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9263,13 +9541,13 @@ "decorators": [] }, { - "$id": "715", + "$id": "737", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "336" + "$ref": "346" }, "location": "Body", "isApiVersion": false, @@ -9281,7 +9559,7 @@ "decorators": [] }, { - "$id": "716", + "$id": "738", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -9299,7 +9577,7 @@ "decorators": [] }, { - "$id": "717", + "$id": "739", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -9318,7 +9596,7 @@ ], "response": { "type": { - "$ref": "336" + "$ref": "346" } }, "isOverride": false, @@ -9332,13 +9610,13 @@ 200 ], "bodyType": { - "$ref": "336" + "$ref": "346" } } } }, { - "$id": "718", + "$id": "740", "kind": "paging", "name": "list", "accessibility": "public", @@ -9347,20 +9625,20 @@ ], "doc": "List Foo resources by resource group", "operation": { - "$id": "719", + "$id": "741", "name": "list", "resourceName": "Foo", "doc": "List Foo resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "720", + "$id": "742", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "721", + "$id": "743", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9370,7 +9648,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "722", + "$id": "744", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9384,18 +9662,18 @@ "readOnly": false }, { - "$id": "723", + "$id": "745", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "724", + "$id": "746", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "725", + "$id": "747", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9415,13 +9693,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.list.subscriptionId" }, { - "$id": "726", + "$id": "748", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "727", + "$id": "749", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9439,7 +9717,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.list.resourceGroupName" }, { - "$id": "728", + "$id": "750", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9461,7 +9739,7 @@ 200 ], "bodyType": { - "$ref": "370" + "$ref": "380" }, "headers": [], "isErrorResponse": false, @@ -9486,13 +9764,13 @@ }, "parameters": [ { - "$id": "729", + "$id": "751", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "730", + "$id": "752", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9508,7 +9786,7 @@ "decorators": [] }, { - "$id": "731", + "$id": "753", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -9527,7 +9805,7 @@ ], "response": { "type": { - "$ref": "372" + "$ref": "382" }, "resultSegments": [ "value" @@ -9550,7 +9828,7 @@ } }, { - "$id": "732", + "$id": "754", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -9559,20 +9837,20 @@ ], "doc": "List Foo resources by subscription ID", "operation": { - "$id": "733", + "$id": "755", "name": "listBySubscription", "resourceName": "Foo", "doc": "List Foo resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "734", + "$id": "756", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "735", + "$id": "757", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9582,7 +9860,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "736", + "$id": "758", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9596,18 +9874,18 @@ "readOnly": false }, { - "$id": "737", + "$id": "759", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "738", + "$id": "760", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "739", + "$id": "761", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9627,7 +9905,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Foos.listBySubscription.subscriptionId" }, { - "$id": "740", + "$id": "762", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9649,7 +9927,7 @@ 200 ], "bodyType": { - "$ref": "370" + "$ref": "380" }, "headers": [], "isErrorResponse": false, @@ -9674,7 +9952,7 @@ }, "parameters": [ { - "$id": "741", + "$id": "763", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -9693,7 +9971,7 @@ ], "response": { "type": { - "$ref": "372" + "$ref": "382" }, "resultSegments": [ "value" @@ -9718,13 +9996,13 @@ ], "parameters": [ { - "$id": "742", + "$id": "764", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "743", + "$id": "765", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9735,7 +10013,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "744", + "$id": "766", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9759,17 +10037,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "745", + "$id": "767", "kind": "client", "name": "FooSettingsOperations", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "746", + "$id": "768", "kind": "basic", "name": "get", "accessibility": "public", @@ -9778,20 +10056,20 @@ ], "doc": "Get a FooSettings", "operation": { - "$id": "747", + "$id": "769", "name": "get", "resourceName": "FooSettings", "doc": "Get a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "748", + "$id": "770", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "749", + "$id": "771", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9801,7 +10079,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "750", + "$id": "772", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9815,18 +10093,18 @@ "readOnly": false }, { - "$id": "751", + "$id": "773", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "752", + "$id": "774", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "753", + "$id": "775", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9846,13 +10124,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get.subscriptionId" }, { - "$id": "754", + "$id": "776", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "755", + "$id": "777", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9870,7 +10148,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get.resourceGroupName" }, { - "$id": "756", + "$id": "778", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9892,7 +10170,7 @@ 200 ], "bodyType": { - "$ref": "376" + "$ref": "386" }, "headers": [], "isErrorResponse": false, @@ -9917,13 +10195,13 @@ }, "parameters": [ { - "$id": "757", + "$id": "779", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "758", + "$id": "780", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9939,7 +10217,7 @@ "decorators": [] }, { - "$id": "759", + "$id": "781", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -9958,7 +10236,7 @@ ], "response": { "type": { - "$ref": "376" + "$ref": "386" } }, "isOverride": false, @@ -9967,7 +10245,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get" }, { - "$id": "760", + "$id": "782", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -9976,20 +10254,20 @@ ], "doc": "Create a FooSettings", "operation": { - "$id": "761", + "$id": "783", "name": "createOrUpdate", "resourceName": "FooSettings", "doc": "Create a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "762", + "$id": "784", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "763", + "$id": "785", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9999,7 +10277,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "764", + "$id": "786", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10013,18 +10291,18 @@ "readOnly": false }, { - "$id": "765", + "$id": "787", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "766", + "$id": "788", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "767", + "$id": "789", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10044,13 +10322,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.subscriptionId" }, { - "$id": "768", + "$id": "790", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "769", + "$id": "791", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10068,7 +10346,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.resourceGroupName" }, { - "$id": "770", + "$id": "792", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10085,7 +10363,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.contentType" }, { - "$id": "771", + "$id": "793", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10101,13 +10379,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.accept" }, { - "$id": "772", + "$id": "794", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "376" + "$ref": "386" }, "isApiVersion": false, "contentTypes": [ @@ -10127,7 +10405,7 @@ 200 ], "bodyType": { - "$ref": "376" + "$ref": "386" }, "headers": [], "isErrorResponse": false, @@ -10140,7 +10418,7 @@ 201 ], "bodyType": { - "$ref": "376" + "$ref": "386" }, "headers": [], "isErrorResponse": false, @@ -10168,13 +10446,13 @@ }, "parameters": [ { - "$id": "773", + "$id": "795", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "774", + "$id": "796", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10190,13 +10468,13 @@ "decorators": [] }, { - "$id": "775", + "$id": "797", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "376" + "$ref": "386" }, "location": "Body", "isApiVersion": false, @@ -10208,7 +10486,7 @@ "decorators": [] }, { - "$id": "776", + "$id": "798", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -10226,7 +10504,7 @@ "decorators": [] }, { - "$id": "777", + "$id": "799", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -10245,7 +10523,7 @@ ], "response": { "type": { - "$ref": "376" + "$ref": "386" } }, "isOverride": false, @@ -10254,7 +10532,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate" }, { - "$id": "778", + "$id": "800", "kind": "basic", "name": "update", "accessibility": "public", @@ -10263,20 +10541,20 @@ ], "doc": "Update a FooSettings", "operation": { - "$id": "779", + "$id": "801", "name": "update", "resourceName": "FooSettings", "doc": "Update a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "780", + "$id": "802", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "781", + "$id": "803", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10286,7 +10564,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "782", + "$id": "804", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10300,18 +10578,18 @@ "readOnly": false }, { - "$id": "783", + "$id": "805", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "784", + "$id": "806", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "785", + "$id": "807", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10331,13 +10609,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.subscriptionId" }, { - "$id": "786", + "$id": "808", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "787", + "$id": "809", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10355,7 +10633,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.resourceGroupName" }, { - "$id": "788", + "$id": "810", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10372,7 +10650,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.contentType" }, { - "$id": "789", + "$id": "811", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10388,13 +10666,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.accept" }, { - "$id": "790", + "$id": "812", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "391" + "$ref": "401" }, "isApiVersion": false, "contentTypes": [ @@ -10414,7 +10692,7 @@ 200 ], "bodyType": { - "$ref": "376" + "$ref": "386" }, "headers": [], "isErrorResponse": false, @@ -10442,13 +10720,13 @@ }, "parameters": [ { - "$id": "791", + "$id": "813", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "792", + "$id": "814", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10464,13 +10742,13 @@ "decorators": [] }, { - "$id": "793", + "$id": "815", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "391" + "$ref": "401" }, "location": "Body", "isApiVersion": false, @@ -10482,7 +10760,7 @@ "decorators": [] }, { - "$id": "794", + "$id": "816", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -10500,7 +10778,7 @@ "decorators": [] }, { - "$id": "795", + "$id": "817", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -10519,7 +10797,7 @@ ], "response": { "type": { - "$ref": "376" + "$ref": "386" } }, "isOverride": false, @@ -10528,7 +10806,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update" }, { - "$id": "796", + "$id": "818", "kind": "basic", "name": "delete", "accessibility": "public", @@ -10537,20 +10815,20 @@ ], "doc": "Delete a FooSettings", "operation": { - "$id": "797", + "$id": "819", "name": "delete", "resourceName": "FooSettings", "doc": "Delete a FooSettings", "accessibility": "public", "parameters": [ { - "$id": "798", + "$id": "820", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "799", + "$id": "821", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10560,7 +10838,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "800", + "$id": "822", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10574,18 +10852,18 @@ "readOnly": false }, { - "$id": "801", + "$id": "823", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "802", + "$id": "824", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "803", + "$id": "825", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10605,13 +10883,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.delete.subscriptionId" }, { - "$id": "804", + "$id": "826", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "805", + "$id": "827", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10661,13 +10939,13 @@ }, "parameters": [ { - "$id": "806", + "$id": "828", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "807", + "$id": "829", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10692,13 +10970,13 @@ ], "parameters": [ { - "$id": "808", + "$id": "830", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "809", + "$id": "831", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10709,7 +10987,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "810", + "$id": "832", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10733,17 +11011,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "811", + "$id": "833", "kind": "client", "name": "Bars", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "812", + "$id": "834", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -10752,20 +11030,20 @@ ], "doc": "Create a Bar", "operation": { - "$id": "813", + "$id": "835", "name": "createOrUpdate", "resourceName": "Bar", "doc": "Create a Bar", "accessibility": "public", "parameters": [ { - "$id": "814", + "$id": "836", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "815", + "$id": "837", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10775,7 +11053,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "816", + "$id": "838", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -10789,18 +11067,18 @@ "readOnly": false }, { - "$id": "817", + "$id": "839", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "818", + "$id": "840", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "819", + "$id": "841", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10820,13 +11098,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.subscriptionId" }, { - "$id": "820", + "$id": "842", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "821", + "$id": "843", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10844,13 +11122,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.resourceGroupName" }, { - "$id": "822", + "$id": "844", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "823", + "$id": "845", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10868,13 +11146,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.fooName" }, { - "$id": "824", + "$id": "846", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "825", + "$id": "847", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10892,7 +11170,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.barName" }, { - "$id": "826", + "$id": "848", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10909,7 +11187,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.contentType" }, { - "$id": "827", + "$id": "849", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10925,13 +11203,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.accept" }, { - "$id": "828", + "$id": "850", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "396" + "$ref": "406" }, "isApiVersion": false, "contentTypes": [ @@ -10951,7 +11229,7 @@ 200 ], "bodyType": { - "$ref": "396" + "$ref": "406" }, "headers": [], "isErrorResponse": false, @@ -10964,7 +11242,7 @@ 201 ], "bodyType": { - "$ref": "396" + "$ref": "406" }, "headers": [ { @@ -10972,7 +11250,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "829", + "$id": "851", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10984,7 +11262,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "830", + "$id": "852", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -11017,13 +11295,13 @@ }, "parameters": [ { - "$id": "831", + "$id": "853", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "832", + "$id": "854", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11039,13 +11317,13 @@ "decorators": [] }, { - "$id": "833", + "$id": "855", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "834", + "$id": "856", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11061,13 +11339,13 @@ "decorators": [] }, { - "$id": "835", + "$id": "857", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "836", + "$id": "858", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11083,13 +11361,13 @@ "decorators": [] }, { - "$id": "837", + "$id": "859", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "396" + "$ref": "406" }, "location": "Body", "isApiVersion": false, @@ -11101,7 +11379,7 @@ "decorators": [] }, { - "$id": "838", + "$id": "860", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -11119,7 +11397,7 @@ "decorators": [] }, { - "$id": "839", + "$id": "861", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -11138,7 +11416,7 @@ ], "response": { "type": { - "$ref": "396" + "$ref": "406" } }, "isOverride": false, @@ -11152,13 +11430,13 @@ 200 ], "bodyType": { - "$ref": "396" + "$ref": "406" } } } }, { - "$id": "840", + "$id": "862", "kind": "lro", "name": "delete", "accessibility": "public", @@ -11167,20 +11445,20 @@ ], "doc": "Delete a Bar", "operation": { - "$id": "841", + "$id": "863", "name": "delete", "resourceName": "Bar", "doc": "Delete a Bar", "accessibility": "public", "parameters": [ { - "$id": "842", + "$id": "864", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "843", + "$id": "865", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11190,7 +11468,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "844", + "$id": "866", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11204,18 +11482,18 @@ "readOnly": false }, { - "$id": "845", + "$id": "867", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "846", + "$id": "868", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "847", + "$id": "869", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11235,13 +11513,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.subscriptionId" }, { - "$id": "848", + "$id": "870", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "849", + "$id": "871", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11259,13 +11537,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.resourceGroupName" }, { - "$id": "850", + "$id": "872", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "851", + "$id": "873", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11283,13 +11561,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.fooName" }, { - "$id": "852", + "$id": "874", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "853", + "$id": "875", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11318,7 +11596,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "854", + "$id": "876", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11330,7 +11608,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": "877", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -11364,13 +11642,13 @@ }, "parameters": [ { - "$id": "856", + "$id": "878", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "857", + "$id": "879", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11386,13 +11664,13 @@ "decorators": [] }, { - "$id": "858", + "$id": "880", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "859", + "$id": "881", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11408,13 +11686,13 @@ "decorators": [] }, { - "$id": "860", + "$id": "882", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "861", + "$id": "883", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11445,7 +11723,7 @@ } }, { - "$id": "862", + "$id": "884", "kind": "paging", "name": "list", "accessibility": "public", @@ -11454,20 +11732,20 @@ ], "doc": "List Bar resources by Foo", "operation": { - "$id": "863", + "$id": "885", "name": "list", "resourceName": "Bar", "doc": "List Bar resources by Foo", "accessibility": "public", "parameters": [ { - "$id": "864", + "$id": "886", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "865", + "$id": "887", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11477,7 +11755,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "866", + "$id": "888", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11491,18 +11769,18 @@ "readOnly": false }, { - "$id": "867", + "$id": "889", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "868", + "$id": "890", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "869", + "$id": "891", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11522,13 +11800,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.subscriptionId" }, { - "$id": "870", + "$id": "892", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "871", + "$id": "893", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11546,13 +11824,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.resourceGroupName" }, { - "$id": "872", + "$id": "894", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "873", + "$id": "895", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11570,7 +11848,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.fooName" }, { - "$id": "874", + "$id": "896", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -11592,7 +11870,7 @@ 200 ], "bodyType": { - "$ref": "416" + "$ref": "426" }, "headers": [], "isErrorResponse": false, @@ -11617,13 +11895,13 @@ }, "parameters": [ { - "$id": "875", + "$id": "897", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "876", + "$id": "898", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11639,13 +11917,13 @@ "decorators": [] }, { - "$id": "877", + "$id": "899", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "878", + "$id": "900", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11661,7 +11939,7 @@ "decorators": [] }, { - "$id": "879", + "$id": "901", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -11680,7 +11958,7 @@ ], "response": { "type": { - "$ref": "418" + "$ref": "428" }, "resultSegments": [ "value" @@ -11705,13 +11983,13 @@ ], "parameters": [ { - "$id": "880", + "$id": "902", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "881", + "$id": "903", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11722,7 +12000,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "882", + "$id": "904", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11746,17 +12024,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "883", + "$id": "905", "kind": "client", "name": "BarSettingsOperations", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "884", + "$id": "906", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -11765,20 +12043,20 @@ ], "doc": "Create a BarSettingsResource", "operation": { - "$id": "885", + "$id": "907", "name": "createOrUpdate", "resourceName": "BarSettingsResource", "doc": "Create a BarSettingsResource", "accessibility": "public", "parameters": [ { - "$id": "886", + "$id": "908", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "887", + "$id": "909", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11788,7 +12066,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "888", + "$id": "910", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11802,18 +12080,18 @@ "readOnly": false }, { - "$id": "889", + "$id": "911", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "890", + "$id": "912", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "891", + "$id": "913", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11833,13 +12111,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.subscriptionId" }, { - "$id": "892", + "$id": "914", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "893", + "$id": "915", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11857,13 +12135,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.resourceGroupName" }, { - "$id": "894", + "$id": "916", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "895", + "$id": "917", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11881,13 +12159,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.fooName" }, { - "$id": "896", + "$id": "918", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "897", + "$id": "919", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11905,7 +12183,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.barName" }, { - "$id": "898", + "$id": "920", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -11922,7 +12200,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.contentType" }, { - "$id": "899", + "$id": "921", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -11938,13 +12216,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.accept" }, { - "$id": "900", + "$id": "922", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "422" + "$ref": "432" }, "isApiVersion": false, "contentTypes": [ @@ -11964,7 +12242,7 @@ 200 ], "bodyType": { - "$ref": "422" + "$ref": "432" }, "headers": [], "isErrorResponse": false, @@ -11977,7 +12255,7 @@ 201 ], "bodyType": { - "$ref": "422" + "$ref": "432" }, "headers": [ { @@ -11985,7 +12263,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "901", + "$id": "923", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11997,7 +12275,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "902", + "$id": "924", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -12030,13 +12308,13 @@ }, "parameters": [ { - "$id": "903", + "$id": "925", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "904", + "$id": "926", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12052,13 +12330,13 @@ "decorators": [] }, { - "$id": "905", + "$id": "927", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "906", + "$id": "928", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12074,13 +12352,13 @@ "decorators": [] }, { - "$id": "907", + "$id": "929", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "908", + "$id": "930", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12096,13 +12374,13 @@ "decorators": [] }, { - "$id": "909", + "$id": "931", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "422" + "$ref": "432" }, "location": "Body", "isApiVersion": false, @@ -12114,7 +12392,7 @@ "decorators": [] }, { - "$id": "910", + "$id": "932", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -12132,7 +12410,7 @@ "decorators": [] }, { - "$id": "911", + "$id": "933", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -12151,7 +12429,7 @@ ], "response": { "type": { - "$ref": "422" + "$ref": "432" } }, "isOverride": false, @@ -12165,13 +12443,13 @@ 200 ], "bodyType": { - "$ref": "422" + "$ref": "432" } } } }, { - "$id": "912", + "$id": "934", "kind": "basic", "name": "get", "accessibility": "public", @@ -12180,20 +12458,20 @@ ], "doc": "Get a BarSettingsResource", "operation": { - "$id": "913", + "$id": "935", "name": "get", "resourceName": "BarSettingsResource", "doc": "Get a BarSettingsResource", "accessibility": "public", "parameters": [ { - "$id": "914", + "$id": "936", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "915", + "$id": "937", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12203,7 +12481,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "916", + "$id": "938", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12217,18 +12495,18 @@ "readOnly": false }, { - "$id": "917", + "$id": "939", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "918", + "$id": "940", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "919", + "$id": "941", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12248,13 +12526,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.subscriptionId" }, { - "$id": "920", + "$id": "942", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "921", + "$id": "943", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12272,13 +12550,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.resourceGroupName" }, { - "$id": "922", + "$id": "944", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "923", + "$id": "945", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12296,13 +12574,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.fooName" }, { - "$id": "924", + "$id": "946", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "925", + "$id": "947", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12320,7 +12598,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.barName" }, { - "$id": "926", + "$id": "948", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -12342,7 +12620,7 @@ 200 ], "bodyType": { - "$ref": "422" + "$ref": "432" }, "headers": [], "isErrorResponse": false, @@ -12367,13 +12645,13 @@ }, "parameters": [ { - "$id": "927", + "$id": "949", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "928", + "$id": "950", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12389,13 +12667,13 @@ "decorators": [] }, { - "$id": "929", + "$id": "951", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "930", + "$id": "952", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12411,13 +12689,13 @@ "decorators": [] }, { - "$id": "931", + "$id": "953", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "932", + "$id": "954", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12433,7 +12711,7 @@ "decorators": [] }, { - "$id": "933", + "$id": "955", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -12452,7 +12730,7 @@ ], "response": { "type": { - "$ref": "422" + "$ref": "432" } }, "isOverride": false, @@ -12463,13 +12741,13 @@ ], "parameters": [ { - "$id": "934", + "$id": "956", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "935", + "$id": "957", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -12480,7 +12758,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "936", + "$id": "958", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12504,17 +12782,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "937", + "$id": "959", "kind": "client", "name": "BarQuotaOperations", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "938", + "$id": "960", "kind": "basic", "name": "get", "accessibility": "public", @@ -12523,20 +12801,20 @@ ], "doc": "Get a BarQuotaResource", "operation": { - "$id": "939", + "$id": "961", "name": "get", "resourceName": "BarQuotaResource", "doc": "Get a BarQuotaResource", "accessibility": "public", "parameters": [ { - "$id": "940", + "$id": "962", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "941", + "$id": "963", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12546,7 +12824,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "942", + "$id": "964", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12560,18 +12838,18 @@ "readOnly": false }, { - "$id": "943", + "$id": "965", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "944", + "$id": "966", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "945", + "$id": "967", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12591,13 +12869,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.subscriptionId" }, { - "$id": "946", + "$id": "968", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "947", + "$id": "969", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12615,13 +12893,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.resourceGroupName" }, { - "$id": "948", + "$id": "970", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "949", + "$id": "971", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12639,13 +12917,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.fooName" }, { - "$id": "950", + "$id": "972", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "951", + "$id": "973", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12663,7 +12941,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.barName" }, { - "$id": "952", + "$id": "974", "kind": "path", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", @@ -12683,7 +12961,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.barQuotaResourceName" }, { - "$id": "953", + "$id": "975", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -12705,7 +12983,7 @@ 200 ], "bodyType": { - "$ref": "454" + "$ref": "464" }, "headers": [], "isErrorResponse": false, @@ -12730,13 +13008,13 @@ }, "parameters": [ { - "$id": "954", + "$id": "976", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "955", + "$id": "977", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12752,13 +13030,13 @@ "decorators": [] }, { - "$id": "956", + "$id": "978", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "957", + "$id": "979", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12774,13 +13052,13 @@ "decorators": [] }, { - "$id": "958", + "$id": "980", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "959", + "$id": "981", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12796,7 +13074,7 @@ "decorators": [] }, { - "$id": "960", + "$id": "982", "kind": "method", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", @@ -12814,7 +13092,7 @@ "decorators": [] }, { - "$id": "961", + "$id": "983", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -12833,7 +13111,7 @@ ], "response": { "type": { - "$ref": "454" + "$ref": "464" } }, "isOverride": false, @@ -12842,7 +13120,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get" }, { - "$id": "962", + "$id": "984", "kind": "lro", "name": "update", "accessibility": "public", @@ -12851,20 +13129,20 @@ ], "doc": "Update a BarQuotaResource", "operation": { - "$id": "963", + "$id": "985", "name": "update", "resourceName": "BarQuotaResource", "doc": "Update a BarQuotaResource", "accessibility": "public", "parameters": [ { - "$id": "964", + "$id": "986", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "965", + "$id": "987", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12874,7 +13152,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "966", + "$id": "988", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -12888,18 +13166,18 @@ "readOnly": false }, { - "$id": "967", + "$id": "989", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "968", + "$id": "990", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "969", + "$id": "991", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12919,13 +13197,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.subscriptionId" }, { - "$id": "970", + "$id": "992", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "971", + "$id": "993", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12943,13 +13221,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.resourceGroupName" }, { - "$id": "972", + "$id": "994", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "973", + "$id": "995", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12967,13 +13245,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.fooName" }, { - "$id": "974", + "$id": "996", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "975", + "$id": "997", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -12991,7 +13269,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.barName" }, { - "$id": "976", + "$id": "998", "kind": "path", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", @@ -13011,7 +13289,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.barQuotaResourceName" }, { - "$id": "977", + "$id": "999", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -13028,7 +13306,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.contentType" }, { - "$id": "978", + "$id": "1000", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -13044,13 +13322,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.accept" }, { - "$id": "979", + "$id": "1001", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "454" + "$ref": "464" }, "isApiVersion": false, "contentTypes": [ @@ -13070,7 +13348,7 @@ 200 ], "bodyType": { - "$ref": "454" + "$ref": "464" }, "headers": [], "isErrorResponse": false, @@ -13088,7 +13366,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "980", + "$id": "1002", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13100,7 +13378,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "981", + "$id": "1003", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -13130,13 +13408,13 @@ }, "parameters": [ { - "$id": "982", + "$id": "1004", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "983", + "$id": "1005", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13152,13 +13430,13 @@ "decorators": [] }, { - "$id": "984", + "$id": "1006", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "985", + "$id": "1007", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13174,13 +13452,13 @@ "decorators": [] }, { - "$id": "986", + "$id": "1008", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "987", + "$id": "1009", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13196,7 +13474,7 @@ "decorators": [] }, { - "$id": "988", + "$id": "1010", "kind": "method", "name": "barQuotaResourceName", "serializedName": "barQuotaResourceName", @@ -13214,13 +13492,13 @@ "decorators": [] }, { - "$id": "989", + "$id": "1011", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "454" + "$ref": "464" }, "location": "Body", "isApiVersion": false, @@ -13232,7 +13510,7 @@ "decorators": [] }, { - "$id": "990", + "$id": "1012", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -13250,7 +13528,7 @@ "decorators": [] }, { - "$id": "991", + "$id": "1013", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -13269,7 +13547,7 @@ ], "response": { "type": { - "$ref": "454" + "$ref": "464" } }, "isOverride": false, @@ -13283,7 +13561,7 @@ 200 ], "bodyType": { - "$ref": "454" + "$ref": "464" } } } @@ -13291,13 +13569,13 @@ ], "parameters": [ { - "$id": "992", + "$id": "1014", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "993", + "$id": "1015", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -13308,7 +13586,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "994", + "$id": "1016", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13332,17 +13610,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "995", + "$id": "1017", "kind": "client", "name": "Bazs", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "996", + "$id": "1018", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -13351,20 +13629,20 @@ ], "doc": "Create a Baz", "operation": { - "$id": "997", + "$id": "1019", "name": "createOrUpdate", "resourceName": "Baz", "doc": "Create a Baz", "accessibility": "public", "parameters": [ { - "$id": "998", + "$id": "1020", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "999", + "$id": "1021", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13374,7 +13652,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1000", + "$id": "1022", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13388,18 +13666,18 @@ "readOnly": false }, { - "$id": "1001", + "$id": "1023", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1002", + "$id": "1024", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1003", + "$id": "1025", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13419,13 +13697,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.subscriptionId" }, { - "$id": "1004", + "$id": "1026", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1005", + "$id": "1027", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13443,13 +13721,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.resourceGroupName" }, { - "$id": "1006", + "$id": "1028", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1007", + "$id": "1029", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13467,7 +13745,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.bazName" }, { - "$id": "1008", + "$id": "1030", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -13484,7 +13762,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.contentType" }, { - "$id": "1009", + "$id": "1031", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -13500,13 +13778,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.accept" }, { - "$id": "1010", + "$id": "1032", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "459" + "$ref": "469" }, "isApiVersion": false, "contentTypes": [ @@ -13526,7 +13804,7 @@ 200 ], "bodyType": { - "$ref": "459" + "$ref": "469" }, "headers": [], "isErrorResponse": false, @@ -13539,7 +13817,7 @@ 201 ], "bodyType": { - "$ref": "459" + "$ref": "469" }, "headers": [ { @@ -13547,7 +13825,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1011", + "$id": "1033", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13559,7 +13837,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1012", + "$id": "1034", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -13592,13 +13870,13 @@ }, "parameters": [ { - "$id": "1013", + "$id": "1035", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1014", + "$id": "1036", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13614,13 +13892,13 @@ "decorators": [] }, { - "$id": "1015", + "$id": "1037", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1016", + "$id": "1038", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13636,13 +13914,13 @@ "decorators": [] }, { - "$id": "1017", + "$id": "1039", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "459" + "$ref": "469" }, "location": "Body", "isApiVersion": false, @@ -13654,7 +13932,7 @@ "decorators": [] }, { - "$id": "1018", + "$id": "1040", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -13672,7 +13950,7 @@ "decorators": [] }, { - "$id": "1019", + "$id": "1041", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -13691,7 +13969,7 @@ ], "response": { "type": { - "$ref": "459" + "$ref": "469" } }, "isOverride": false, @@ -13705,13 +13983,13 @@ 200 ], "bodyType": { - "$ref": "459" + "$ref": "469" } } } }, { - "$id": "1020", + "$id": "1042", "kind": "basic", "name": "get", "accessibility": "public", @@ -13720,20 +13998,20 @@ ], "doc": "Get a Baz", "operation": { - "$id": "1021", + "$id": "1043", "name": "get", "resourceName": "Baz", "doc": "Get a Baz", "accessibility": "public", "parameters": [ { - "$id": "1022", + "$id": "1044", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1023", + "$id": "1045", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13743,7 +14021,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1024", + "$id": "1046", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -13757,18 +14035,18 @@ "readOnly": false }, { - "$id": "1025", + "$id": "1047", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1026", + "$id": "1048", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1027", + "$id": "1049", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13788,13 +14066,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.subscriptionId" }, { - "$id": "1028", + "$id": "1050", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1029", + "$id": "1051", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13812,13 +14090,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.resourceGroupName" }, { - "$id": "1030", + "$id": "1052", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1031", + "$id": "1053", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13836,7 +14114,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.bazName" }, { - "$id": "1032", + "$id": "1054", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -13858,7 +14136,7 @@ 200 ], "bodyType": { - "$ref": "459" + "$ref": "469" }, "headers": [], "isErrorResponse": false, @@ -13883,13 +14161,13 @@ }, "parameters": [ { - "$id": "1033", + "$id": "1055", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1034", + "$id": "1056", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13905,13 +14183,13 @@ "decorators": [] }, { - "$id": "1035", + "$id": "1057", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1036", + "$id": "1058", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13927,7 +14205,7 @@ "decorators": [] }, { - "$id": "1037", + "$id": "1059", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -13946,7 +14224,7 @@ ], "response": { "type": { - "$ref": "459" + "$ref": "469" } }, "isOverride": false, @@ -13955,7 +14233,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get" }, { - "$id": "1038", + "$id": "1060", "kind": "lro", "name": "delete", "accessibility": "public", @@ -13964,20 +14242,20 @@ ], "doc": "Delete a Baz", "operation": { - "$id": "1039", + "$id": "1061", "name": "delete", "resourceName": "Baz", "doc": "Delete a Baz", "accessibility": "public", "parameters": [ { - "$id": "1040", + "$id": "1062", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1041", + "$id": "1063", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -13987,7 +14265,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1042", + "$id": "1064", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14001,18 +14279,18 @@ "readOnly": false }, { - "$id": "1043", + "$id": "1065", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1044", + "$id": "1066", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1045", + "$id": "1067", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14032,13 +14310,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.delete.subscriptionId" }, { - "$id": "1046", + "$id": "1068", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1047", + "$id": "1069", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14056,13 +14334,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.delete.resourceGroupName" }, { - "$id": "1048", + "$id": "1070", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1049", + "$id": "1071", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14091,7 +14369,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1050", + "$id": "1072", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14103,7 +14381,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1051", + "$id": "1073", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -14137,13 +14415,13 @@ }, "parameters": [ { - "$id": "1052", + "$id": "1074", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1053", + "$id": "1075", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14159,13 +14437,13 @@ "decorators": [] }, { - "$id": "1054", + "$id": "1076", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1055", + "$id": "1077", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14196,7 +14474,7 @@ } }, { - "$id": "1056", + "$id": "1078", "kind": "lro", "name": "update", "accessibility": "public", @@ -14205,20 +14483,20 @@ ], "doc": "Update a Baz", "operation": { - "$id": "1057", + "$id": "1079", "name": "update", "resourceName": "Baz", "doc": "Update a Baz", "accessibility": "public", "parameters": [ { - "$id": "1058", + "$id": "1080", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1059", + "$id": "1081", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14228,7 +14506,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1060", + "$id": "1082", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14242,18 +14520,18 @@ "readOnly": false }, { - "$id": "1061", + "$id": "1083", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1062", + "$id": "1084", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1063", + "$id": "1085", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14273,13 +14551,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.subscriptionId" }, { - "$id": "1064", + "$id": "1086", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1065", + "$id": "1087", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14297,13 +14575,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.resourceGroupName" }, { - "$id": "1066", + "$id": "1088", "kind": "path", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1067", + "$id": "1089", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14321,7 +14599,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.bazName" }, { - "$id": "1068", + "$id": "1090", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -14338,7 +14616,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.contentType" }, { - "$id": "1069", + "$id": "1091", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -14354,13 +14632,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.accept" }, { - "$id": "1070", + "$id": "1092", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "459" + "$ref": "469" }, "isApiVersion": false, "contentTypes": [ @@ -14380,7 +14658,7 @@ 200 ], "bodyType": { - "$ref": "459" + "$ref": "469" }, "headers": [], "isErrorResponse": false, @@ -14398,7 +14676,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1071", + "$id": "1093", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14410,7 +14688,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1072", + "$id": "1094", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -14440,13 +14718,13 @@ }, "parameters": [ { - "$id": "1073", + "$id": "1095", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1074", + "$id": "1096", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14462,13 +14740,13 @@ "decorators": [] }, { - "$id": "1075", + "$id": "1097", "kind": "method", "name": "bazName", "serializedName": "bazName", "doc": "The name of the Baz", "type": { - "$id": "1076", + "$id": "1098", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14484,13 +14762,13 @@ "decorators": [] }, { - "$id": "1077", + "$id": "1099", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "459" + "$ref": "469" }, "location": "Body", "isApiVersion": false, @@ -14502,7 +14780,7 @@ "decorators": [] }, { - "$id": "1078", + "$id": "1100", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -14520,7 +14798,7 @@ "decorators": [] }, { - "$id": "1079", + "$id": "1101", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -14539,7 +14817,7 @@ ], "response": { "type": { - "$ref": "459" + "$ref": "469" } }, "isOverride": false, @@ -14553,13 +14831,13 @@ 200 ], "bodyType": { - "$ref": "459" + "$ref": "469" } } } }, { - "$id": "1080", + "$id": "1102", "kind": "paging", "name": "list", "accessibility": "public", @@ -14568,20 +14846,20 @@ ], "doc": "List Baz resources by resource group", "operation": { - "$id": "1081", + "$id": "1103", "name": "list", "resourceName": "Baz", "doc": "List Baz resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "1082", + "$id": "1104", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1083", + "$id": "1105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14591,7 +14869,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1084", + "$id": "1106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14605,18 +14883,18 @@ "readOnly": false }, { - "$id": "1085", + "$id": "1107", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1086", + "$id": "1108", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1087", + "$id": "1109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14636,13 +14914,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.list.subscriptionId" }, { - "$id": "1088", + "$id": "1110", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1089", + "$id": "1111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14660,7 +14938,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.list.resourceGroupName" }, { - "$id": "1090", + "$id": "1112", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -14682,7 +14960,7 @@ 200 ], "bodyType": { - "$ref": "474" + "$ref": "484" }, "headers": [], "isErrorResponse": false, @@ -14707,13 +14985,13 @@ }, "parameters": [ { - "$id": "1091", + "$id": "1113", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1092", + "$id": "1114", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14729,7 +15007,7 @@ "decorators": [] }, { - "$id": "1093", + "$id": "1115", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -14748,7 +15026,7 @@ ], "response": { "type": { - "$ref": "476" + "$ref": "486" }, "resultSegments": [ "value" @@ -14771,7 +15049,7 @@ } }, { - "$id": "1094", + "$id": "1116", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -14780,20 +15058,20 @@ ], "doc": "List Baz resources by subscription ID", "operation": { - "$id": "1095", + "$id": "1117", "name": "listBySubscription", "resourceName": "Baz", "doc": "List Baz resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "1096", + "$id": "1118", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1097", + "$id": "1119", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14803,7 +15081,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1098", + "$id": "1120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14817,18 +15095,18 @@ "readOnly": false }, { - "$id": "1099", + "$id": "1121", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1100", + "$id": "1122", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1101", + "$id": "1123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -14848,7 +15126,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.listBySubscription.subscriptionId" }, { - "$id": "1102", + "$id": "1124", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -14870,7 +15148,7 @@ 200 ], "bodyType": { - "$ref": "474" + "$ref": "484" }, "headers": [], "isErrorResponse": false, @@ -14895,7 +15173,7 @@ }, "parameters": [ { - "$id": "1103", + "$id": "1125", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -14914,7 +15192,7 @@ ], "response": { "type": { - "$ref": "476" + "$ref": "486" }, "resultSegments": [ "value" @@ -14939,13 +15217,13 @@ ], "parameters": [ { - "$id": "1104", + "$id": "1126", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1105", + "$id": "1127", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -14956,7 +15234,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1106", + "$id": "1128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -14980,17 +15258,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "1107", + "$id": "1129", "kind": "client", "name": "Zoos", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "1108", + "$id": "1130", "kind": "lro", "name": "createOrUpdate", "accessibility": "public", @@ -14999,20 +15277,20 @@ ], "doc": "Create a Zoo", "operation": { - "$id": "1109", + "$id": "1131", "name": "createOrUpdate", "resourceName": "Zoo", "doc": "Create a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1110", + "$id": "1132", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1111", + "$id": "1133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15022,7 +15300,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1112", + "$id": "1134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15036,18 +15314,18 @@ "readOnly": false }, { - "$id": "1113", + "$id": "1135", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1114", + "$id": "1136", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1115", + "$id": "1137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15067,13 +15345,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.subscriptionId" }, { - "$id": "1116", + "$id": "1138", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1117", + "$id": "1139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15091,13 +15369,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.resourceGroupName" }, { - "$id": "1118", + "$id": "1140", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1119", + "$id": "1141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15115,7 +15393,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.zooName" }, { - "$id": "1120", + "$id": "1142", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -15132,7 +15410,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.contentType" }, { - "$id": "1121", + "$id": "1143", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -15148,13 +15426,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.accept" }, { - "$id": "1122", + "$id": "1144", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "480" + "$ref": "490" }, "isApiVersion": false, "contentTypes": [ @@ -15174,7 +15452,7 @@ 200 ], "bodyType": { - "$ref": "480" + "$ref": "490" }, "headers": [], "isErrorResponse": false, @@ -15187,7 +15465,7 @@ 201 ], "bodyType": { - "$ref": "480" + "$ref": "490" }, "headers": [ { @@ -15195,7 +15473,7 @@ "nameInResponse": "Azure-AsyncOperation", "doc": "A link to the status monitor", "type": { - "$id": "1123", + "$id": "1145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15207,7 +15485,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1124", + "$id": "1146", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -15240,13 +15518,13 @@ }, "parameters": [ { - "$id": "1125", + "$id": "1147", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1126", + "$id": "1148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15262,13 +15540,13 @@ "decorators": [] }, { - "$id": "1127", + "$id": "1149", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1128", + "$id": "1150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15284,13 +15562,13 @@ "decorators": [] }, { - "$id": "1129", + "$id": "1151", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "480" + "$ref": "490" }, "location": "Body", "isApiVersion": false, @@ -15302,7 +15580,7 @@ "decorators": [] }, { - "$id": "1130", + "$id": "1152", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -15320,7 +15598,7 @@ "decorators": [] }, { - "$id": "1131", + "$id": "1153", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -15339,7 +15617,7 @@ ], "response": { "type": { - "$ref": "480" + "$ref": "490" } }, "isOverride": false, @@ -15353,13 +15631,13 @@ 200 ], "bodyType": { - "$ref": "480" + "$ref": "490" } } } }, { - "$id": "1132", + "$id": "1154", "kind": "basic", "name": "get", "accessibility": "public", @@ -15368,20 +15646,20 @@ ], "doc": "Get a Zoo", "operation": { - "$id": "1133", + "$id": "1155", "name": "get", "resourceName": "Zoo", "doc": "Get a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1134", + "$id": "1156", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1135", + "$id": "1157", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15391,7 +15669,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1136", + "$id": "1158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15405,18 +15683,18 @@ "readOnly": false }, { - "$id": "1137", + "$id": "1159", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1138", + "$id": "1160", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1139", + "$id": "1161", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15436,13 +15714,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.subscriptionId" }, { - "$id": "1140", + "$id": "1162", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1141", + "$id": "1163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15460,13 +15738,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.resourceGroupName" }, { - "$id": "1142", + "$id": "1164", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1143", + "$id": "1165", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15484,7 +15762,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.zooName" }, { - "$id": "1144", + "$id": "1166", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -15506,7 +15784,7 @@ 200 ], "bodyType": { - "$ref": "480" + "$ref": "490" }, "headers": [], "isErrorResponse": false, @@ -15531,13 +15809,13 @@ }, "parameters": [ { - "$id": "1145", + "$id": "1167", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1146", + "$id": "1168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15553,13 +15831,13 @@ "decorators": [] }, { - "$id": "1147", + "$id": "1169", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1148", + "$id": "1170", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15575,7 +15853,7 @@ "decorators": [] }, { - "$id": "1149", + "$id": "1171", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -15594,7 +15872,7 @@ ], "response": { "type": { - "$ref": "480" + "$ref": "490" } }, "isOverride": false, @@ -15603,7 +15881,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get" }, { - "$id": "1150", + "$id": "1172", "kind": "lro", "name": "delete", "accessibility": "public", @@ -15612,20 +15890,20 @@ ], "doc": "Delete a Zoo", "operation": { - "$id": "1151", + "$id": "1173", "name": "delete", "resourceName": "Zoo", "doc": "Delete a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1152", + "$id": "1174", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1153", + "$id": "1175", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15635,7 +15913,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1154", + "$id": "1176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15649,18 +15927,18 @@ "readOnly": false }, { - "$id": "1155", + "$id": "1177", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1156", + "$id": "1178", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1157", + "$id": "1179", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15680,13 +15958,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.delete.subscriptionId" }, { - "$id": "1158", + "$id": "1180", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1159", + "$id": "1181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15704,13 +15982,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.delete.resourceGroupName" }, { - "$id": "1160", + "$id": "1182", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1161", + "$id": "1183", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15739,7 +16017,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1162", + "$id": "1184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15751,7 +16029,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1163", + "$id": "1185", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -15785,13 +16063,13 @@ }, "parameters": [ { - "$id": "1164", + "$id": "1186", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1165", + "$id": "1187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15807,13 +16085,13 @@ "decorators": [] }, { - "$id": "1166", + "$id": "1188", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1167", + "$id": "1189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15844,7 +16122,7 @@ } }, { - "$id": "1168", + "$id": "1190", "kind": "lro", "name": "update", "accessibility": "public", @@ -15853,20 +16131,20 @@ ], "doc": "Update a Zoo", "operation": { - "$id": "1169", + "$id": "1191", "name": "update", "resourceName": "Zoo", "doc": "Update a Zoo", "accessibility": "public", "parameters": [ { - "$id": "1170", + "$id": "1192", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1171", + "$id": "1193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15876,7 +16154,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1172", + "$id": "1194", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -15890,18 +16168,18 @@ "readOnly": false }, { - "$id": "1173", + "$id": "1195", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1174", + "$id": "1196", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1175", + "$id": "1197", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15921,13 +16199,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.subscriptionId" }, { - "$id": "1176", + "$id": "1198", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1177", + "$id": "1199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15945,13 +16223,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.resourceGroupName" }, { - "$id": "1178", + "$id": "1200", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1179", + "$id": "1201", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -15969,7 +16247,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.zooName" }, { - "$id": "1180", + "$id": "1202", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -15986,7 +16264,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.contentType" }, { - "$id": "1181", + "$id": "1203", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -16002,13 +16280,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.accept" }, { - "$id": "1182", + "$id": "1204", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "496" + "$ref": "506" }, "isApiVersion": false, "contentTypes": [ @@ -16028,7 +16306,7 @@ 200 ], "bodyType": { - "$ref": "480" + "$ref": "490" }, "headers": [], "isErrorResponse": false, @@ -16046,7 +16324,7 @@ "nameInResponse": "Location", "doc": "The Location header contains the URL where the status of the long running operation can be checked.", "type": { - "$id": "1183", + "$id": "1205", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16058,7 +16336,7 @@ "nameInResponse": "Retry-After", "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", "type": { - "$id": "1184", + "$id": "1206", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -16088,13 +16366,13 @@ }, "parameters": [ { - "$id": "1185", + "$id": "1207", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1186", + "$id": "1208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16110,13 +16388,13 @@ "decorators": [] }, { - "$id": "1187", + "$id": "1209", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1188", + "$id": "1210", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16132,13 +16410,13 @@ "decorators": [] }, { - "$id": "1189", + "$id": "1211", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "496" + "$ref": "506" }, "location": "Body", "isApiVersion": false, @@ -16150,7 +16428,7 @@ "decorators": [] }, { - "$id": "1190", + "$id": "1212", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -16168,7 +16446,7 @@ "decorators": [] }, { - "$id": "1191", + "$id": "1213", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -16187,7 +16465,7 @@ ], "response": { "type": { - "$ref": "480" + "$ref": "490" } }, "isOverride": false, @@ -16201,13 +16479,13 @@ 200 ], "bodyType": { - "$ref": "480" + "$ref": "490" } } } }, { - "$id": "1192", + "$id": "1214", "kind": "paging", "name": "list", "accessibility": "public", @@ -16216,20 +16494,20 @@ ], "doc": "List Zoo resources by resource group", "operation": { - "$id": "1193", + "$id": "1215", "name": "list", "resourceName": "Zoo", "doc": "List Zoo resources by resource group", "accessibility": "public", "parameters": [ { - "$id": "1194", + "$id": "1216", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1195", + "$id": "1217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16239,7 +16517,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1196", + "$id": "1218", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16253,18 +16531,18 @@ "readOnly": false }, { - "$id": "1197", + "$id": "1219", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1198", + "$id": "1220", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1199", + "$id": "1221", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16284,13 +16562,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.list.subscriptionId" }, { - "$id": "1200", + "$id": "1222", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1201", + "$id": "1223", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16308,7 +16586,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.list.resourceGroupName" }, { - "$id": "1202", + "$id": "1224", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -16330,7 +16608,7 @@ 200 ], "bodyType": { - "$ref": "502" + "$ref": "512" }, "headers": [], "isErrorResponse": false, @@ -16355,13 +16633,13 @@ }, "parameters": [ { - "$id": "1203", + "$id": "1225", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1204", + "$id": "1226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16377,7 +16655,7 @@ "decorators": [] }, { - "$id": "1205", + "$id": "1227", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -16396,7 +16674,7 @@ ], "response": { "type": { - "$ref": "504" + "$ref": "514" }, "resultSegments": [ "value" @@ -16419,7 +16697,7 @@ } }, { - "$id": "1206", + "$id": "1228", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -16428,20 +16706,20 @@ ], "doc": "List Zoo resources by subscription ID", "operation": { - "$id": "1207", + "$id": "1229", "name": "listBySubscription", "resourceName": "Zoo", "doc": "List Zoo resources by subscription ID", "accessibility": "public", "parameters": [ { - "$id": "1208", + "$id": "1230", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1209", + "$id": "1231", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16451,7 +16729,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1210", + "$id": "1232", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16465,18 +16743,18 @@ "readOnly": false }, { - "$id": "1211", + "$id": "1233", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1212", + "$id": "1234", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1213", + "$id": "1235", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16496,7 +16774,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.listBySubscription.subscriptionId" }, { - "$id": "1214", + "$id": "1236", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -16518,7 +16796,7 @@ 200 ], "bodyType": { - "$ref": "502" + "$ref": "512" }, "headers": [], "isErrorResponse": false, @@ -16543,7 +16821,7 @@ }, "parameters": [ { - "$id": "1215", + "$id": "1237", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -16562,7 +16840,7 @@ ], "response": { "type": { - "$ref": "504" + "$ref": "514" }, "resultSegments": [ "value" @@ -16585,7 +16863,7 @@ } }, { - "$id": "1216", + "$id": "1238", "kind": "basic", "name": "zooAddressList", "accessibility": "public", @@ -16594,20 +16872,20 @@ ], "doc": "A synchronous resource action.", "operation": { - "$id": "1217", + "$id": "1239", "name": "zooAddressList", "resourceName": "Zoos", "doc": "A synchronous resource action.", "accessibility": "public", "parameters": [ { - "$id": "1218", + "$id": "1240", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1219", + "$id": "1241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16617,7 +16895,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1220", + "$id": "1242", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16631,18 +16909,18 @@ "readOnly": false }, { - "$id": "1221", + "$id": "1243", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1222", + "$id": "1244", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1223", + "$id": "1245", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16662,13 +16940,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.subscriptionId" }, { - "$id": "1224", + "$id": "1246", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1225", + "$id": "1247", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16686,13 +16964,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.resourceGroupName" }, { - "$id": "1226", + "$id": "1248", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1227", + "$id": "1249", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16710,12 +16988,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.zooName" }, { - "$id": "1228", + "$id": "1250", "kind": "query", "name": "$maxpagesize", "serializedName": "$maxpagesize", "type": { - "$id": "1229", + "$id": "1251", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -16730,7 +17008,7 @@ "readOnly": false }, { - "$id": "1230", + "$id": "1252", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -16752,7 +17030,7 @@ 200 ], "bodyType": { - "$ref": "508" + "$ref": "518" }, "headers": [], "isErrorResponse": false, @@ -16777,13 +17055,13 @@ }, "parameters": [ { - "$id": "1231", + "$id": "1253", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1232", + "$id": "1254", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16799,13 +17077,13 @@ "decorators": [] }, { - "$id": "1233", + "$id": "1255", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1234", + "$id": "1256", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16821,12 +17099,12 @@ "decorators": [] }, { - "$id": "1235", + "$id": "1257", "kind": "method", "name": "$maxpagesize", "serializedName": "$maxpagesize", "type": { - "$id": "1236", + "$id": "1258", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -16842,7 +17120,7 @@ "decorators": [] }, { - "$id": "1237", + "$id": "1259", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -16861,7 +17139,7 @@ ], "response": { "type": { - "$ref": "508" + "$ref": "518" } }, "isOverride": false, @@ -16872,13 +17150,13 @@ ], "parameters": [ { - "$id": "1238", + "$id": "1260", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1239", + "$id": "1261", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -16889,7 +17167,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1240", + "$id": "1262", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16913,17 +17191,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "1241", + "$id": "1263", "kind": "client", "name": "EndpointResources", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "1242", + "$id": "1264", "kind": "basic", "name": "get", "accessibility": "public", @@ -16932,20 +17210,20 @@ ], "doc": "Gets the endpoint to the resource.", "operation": { - "$id": "1243", + "$id": "1265", "name": "get", "resourceName": "EndpointResource", "doc": "Gets the endpoint to the resource.", "accessibility": "public", "parameters": [ { - "$id": "1244", + "$id": "1266", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1245", + "$id": "1267", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16955,7 +17233,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1246", + "$id": "1268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -16969,13 +17247,13 @@ "readOnly": false }, { - "$id": "1247", + "$id": "1269", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1248", + "$id": "1270", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -16993,13 +17271,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get.resourceUri" }, { - "$id": "1249", + "$id": "1271", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1250", + "$id": "1272", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17017,7 +17295,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get.endpointName" }, { - "$id": "1251", + "$id": "1273", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -17039,7 +17317,7 @@ 200 ], "bodyType": { - "$ref": "515" + "$ref": "525" }, "headers": [], "isErrorResponse": false, @@ -17064,13 +17342,13 @@ }, "parameters": [ { - "$id": "1252", + "$id": "1274", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1253", + "$id": "1275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17086,13 +17364,13 @@ "decorators": [] }, { - "$id": "1254", + "$id": "1276", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1255", + "$id": "1277", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17108,7 +17386,7 @@ "decorators": [] }, { - "$id": "1256", + "$id": "1278", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -17127,7 +17405,7 @@ ], "response": { "type": { - "$ref": "515" + "$ref": "525" } }, "isOverride": false, @@ -17136,7 +17414,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get" }, { - "$id": "1257", + "$id": "1279", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -17145,20 +17423,20 @@ ], "doc": "Create or update the endpoint to the target resource.", "operation": { - "$id": "1258", + "$id": "1280", "name": "createOrUpdate", "resourceName": "EndpointResource", "doc": "Create or update the endpoint to the target resource.", "accessibility": "public", "parameters": [ { - "$id": "1259", + "$id": "1281", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1260", + "$id": "1282", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17168,7 +17446,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1261", + "$id": "1283", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17182,13 +17460,13 @@ "readOnly": false }, { - "$id": "1262", + "$id": "1284", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1263", + "$id": "1285", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17206,13 +17484,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.resourceUri" }, { - "$id": "1264", + "$id": "1286", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1265", + "$id": "1287", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17230,7 +17508,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.endpointName" }, { - "$id": "1266", + "$id": "1288", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -17247,7 +17525,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.contentType" }, { - "$id": "1267", + "$id": "1289", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -17263,13 +17541,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.accept" }, { - "$id": "1268", + "$id": "1290", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "515" + "$ref": "525" }, "isApiVersion": false, "contentTypes": [ @@ -17289,7 +17567,7 @@ 200 ], "bodyType": { - "$ref": "515" + "$ref": "525" }, "headers": [], "isErrorResponse": false, @@ -17317,13 +17595,13 @@ }, "parameters": [ { - "$id": "1269", + "$id": "1291", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1270", + "$id": "1292", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17339,13 +17617,13 @@ "decorators": [] }, { - "$id": "1271", + "$id": "1293", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1272", + "$id": "1294", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17361,13 +17639,13 @@ "decorators": [] }, { - "$id": "1273", + "$id": "1295", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "Resource create parameters.", "type": { - "$ref": "515" + "$ref": "525" }, "location": "Body", "isApiVersion": false, @@ -17379,7 +17657,7 @@ "decorators": [] }, { - "$id": "1274", + "$id": "1296", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -17397,7 +17675,7 @@ "decorators": [] }, { - "$id": "1275", + "$id": "1297", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -17416,7 +17694,7 @@ ], "response": { "type": { - "$ref": "515" + "$ref": "525" } }, "isOverride": false, @@ -17425,7 +17703,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate" }, { - "$id": "1276", + "$id": "1298", "kind": "basic", "name": "update", "accessibility": "public", @@ -17434,20 +17712,20 @@ ], "doc": "Update the endpoint to the target resource.", "operation": { - "$id": "1277", + "$id": "1299", "name": "update", "resourceName": "EndpointResource", "doc": "Update the endpoint to the target resource.", "accessibility": "public", "parameters": [ { - "$id": "1278", + "$id": "1300", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1279", + "$id": "1301", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17457,7 +17735,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1280", + "$id": "1302", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17471,13 +17749,13 @@ "readOnly": false }, { - "$id": "1281", + "$id": "1303", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1282", + "$id": "1304", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17495,13 +17773,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.resourceUri" }, { - "$id": "1283", + "$id": "1305", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1284", + "$id": "1306", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17519,7 +17797,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.endpointName" }, { - "$id": "1285", + "$id": "1307", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -17536,7 +17814,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.contentType" }, { - "$id": "1286", + "$id": "1308", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -17552,13 +17830,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.accept" }, { - "$id": "1287", + "$id": "1309", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "515" + "$ref": "525" }, "isApiVersion": false, "contentTypes": [ @@ -17578,7 +17856,7 @@ 200 ], "bodyType": { - "$ref": "515" + "$ref": "525" }, "headers": [], "isErrorResponse": false, @@ -17606,13 +17884,13 @@ }, "parameters": [ { - "$id": "1288", + "$id": "1310", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1289", + "$id": "1311", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17628,13 +17906,13 @@ "decorators": [] }, { - "$id": "1290", + "$id": "1312", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1291", + "$id": "1313", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17650,13 +17928,13 @@ "decorators": [] }, { - "$id": "1292", + "$id": "1314", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "515" + "$ref": "525" }, "location": "Body", "isApiVersion": false, @@ -17668,7 +17946,7 @@ "decorators": [] }, { - "$id": "1293", + "$id": "1315", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -17686,7 +17964,7 @@ "decorators": [] }, { - "$id": "1294", + "$id": "1316", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -17705,7 +17983,7 @@ ], "response": { "type": { - "$ref": "515" + "$ref": "525" } }, "isOverride": false, @@ -17714,7 +17992,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update" }, { - "$id": "1295", + "$id": "1317", "kind": "basic", "name": "delete", "accessibility": "public", @@ -17723,20 +18001,20 @@ ], "doc": "Deletes the endpoint access to the target resource.", "operation": { - "$id": "1296", + "$id": "1318", "name": "delete", "resourceName": "EndpointResource", "doc": "Deletes the endpoint access to the target resource.", "accessibility": "public", "parameters": [ { - "$id": "1297", + "$id": "1319", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1298", + "$id": "1320", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17746,7 +18024,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1299", + "$id": "1321", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17760,13 +18038,13 @@ "readOnly": false }, { - "$id": "1300", + "$id": "1322", "kind": "path", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1301", + "$id": "1323", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17784,13 +18062,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.delete.resourceUri" }, { - "$id": "1302", + "$id": "1324", "kind": "path", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1303", + "$id": "1325", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17840,13 +18118,13 @@ }, "parameters": [ { - "$id": "1304", + "$id": "1326", "kind": "method", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1305", + "$id": "1327", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17862,13 +18140,13 @@ "decorators": [] }, { - "$id": "1306", + "$id": "1328", "kind": "method", "name": "endpointName", "serializedName": "endpointName", "doc": "The name of the EndpointResource", "type": { - "$id": "1307", + "$id": "1329", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17893,13 +18171,13 @@ ], "parameters": [ { - "$id": "1308", + "$id": "1330", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1309", + "$id": "1331", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -17910,7 +18188,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1310", + "$id": "1332", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17934,17 +18212,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "1311", + "$id": "1333", "kind": "client", "name": "SolutionResources", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "1312", + "$id": "1334", "kind": "basic", "name": "get", "accessibility": "public", @@ -17953,20 +18231,20 @@ ], "doc": "Get a SelfHelpResource", "operation": { - "$id": "1313", + "$id": "1335", "name": "get", "resourceName": "SelfHelpResource", "doc": "Get a SelfHelpResource", "accessibility": "public", "parameters": [ { - "$id": "1314", + "$id": "1336", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1315", + "$id": "1337", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -17976,7 +18254,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1316", + "$id": "1338", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -17990,13 +18268,13 @@ "readOnly": false }, { - "$id": "1317", + "$id": "1339", "kind": "path", "name": "scope", "serializedName": "scope", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1318", + "$id": "1340", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18014,13 +18292,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SolutionResources.get.scope" }, { - "$id": "1319", + "$id": "1341", "kind": "path", "name": "selfHelpName", "serializedName": "selfHelpName", "doc": "The name of the SelfHelpResource", "type": { - "$id": "1320", + "$id": "1342", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18038,7 +18316,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.SolutionResources.get.selfHelpName" }, { - "$id": "1321", + "$id": "1343", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -18060,7 +18338,7 @@ 200 ], "bodyType": { - "$ref": "527" + "$ref": "537" }, "headers": [], "isErrorResponse": false, @@ -18085,13 +18363,13 @@ }, "parameters": [ { - "$id": "1322", + "$id": "1344", "kind": "method", "name": "scope", "serializedName": "scope", "doc": "The fully qualified Azure Resource manager identifier of the resource.", "type": { - "$id": "1323", + "$id": "1345", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18107,13 +18385,13 @@ "decorators": [] }, { - "$id": "1324", + "$id": "1346", "kind": "method", "name": "selfHelpName", "serializedName": "selfHelpName", "doc": "The name of the SelfHelpResource", "type": { - "$id": "1325", + "$id": "1347", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18129,7 +18407,7 @@ "decorators": [] }, { - "$id": "1326", + "$id": "1348", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -18148,7 +18426,7 @@ ], "response": { "type": { - "$ref": "527" + "$ref": "537" } }, "isOverride": false, @@ -18159,13 +18437,13 @@ ], "parameters": [ { - "$id": "1327", + "$id": "1349", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1328", + "$id": "1350", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -18176,7 +18454,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1329", + "$id": "1351", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18200,17 +18478,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "1330", + "$id": "1352", "kind": "client", "name": "PlaywrightQuotas", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "1331", + "$id": "1353", "kind": "basic", "name": "get", "accessibility": "public", @@ -18219,20 +18497,20 @@ ], "doc": "Get subscription-level location-based Playwright quota resource by name.", "operation": { - "$id": "1332", + "$id": "1354", "name": "get", "resourceName": "PlaywrightQuota", "doc": "Get subscription-level location-based Playwright quota resource by name.", "accessibility": "public", "parameters": [ { - "$id": "1333", + "$id": "1355", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1334", + "$id": "1356", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18242,7 +18520,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1335", + "$id": "1357", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18256,18 +18534,18 @@ "readOnly": false }, { - "$id": "1336", + "$id": "1358", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1337", + "$id": "1359", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1338", + "$id": "1360", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18287,18 +18565,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.subscriptionId" }, { - "$id": "1339", + "$id": "1361", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1340", + "$id": "1362", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1341", + "$id": "1363", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18318,7 +18596,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.location" }, { - "$id": "1342", + "$id": "1364", "kind": "path", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", @@ -18338,7 +18616,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.playwrightQuotaName" }, { - "$id": "1343", + "$id": "1365", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -18360,7 +18638,7 @@ 200 ], "bodyType": { - "$ref": "535" + "$ref": "545" }, "headers": [], "isErrorResponse": false, @@ -18385,18 +18663,18 @@ }, "parameters": [ { - "$id": "1344", + "$id": "1366", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1345", + "$id": "1367", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1346", + "$id": "1368", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18414,7 +18692,7 @@ "decorators": [] }, { - "$id": "1347", + "$id": "1369", "kind": "method", "name": "playwrightQuotaName", "serializedName": "playwrightQuotaName", @@ -18432,7 +18710,7 @@ "decorators": [] }, { - "$id": "1348", + "$id": "1370", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -18451,7 +18729,7 @@ ], "response": { "type": { - "$ref": "535" + "$ref": "545" } }, "isOverride": false, @@ -18460,7 +18738,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get" }, { - "$id": "1349", + "$id": "1371", "kind": "paging", "name": "listBySubscription", "accessibility": "public", @@ -18469,20 +18747,20 @@ ], "doc": "List Playwright quota resources for a given subscription Id.", "operation": { - "$id": "1350", + "$id": "1372", "name": "listBySubscription", "resourceName": "PlaywrightQuota", "doc": "List Playwright quota resources for a given subscription Id.", "accessibility": "public", "parameters": [ { - "$id": "1351", + "$id": "1373", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1352", + "$id": "1374", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18492,7 +18770,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1353", + "$id": "1375", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18506,18 +18784,18 @@ "readOnly": false }, { - "$id": "1354", + "$id": "1376", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1355", + "$id": "1377", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1356", + "$id": "1378", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18537,18 +18815,18 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription.subscriptionId" }, { - "$id": "1357", + "$id": "1379", "kind": "path", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1358", + "$id": "1380", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1359", + "$id": "1381", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18568,7 +18846,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription.location" }, { - "$id": "1360", + "$id": "1382", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -18590,7 +18868,7 @@ 200 ], "bodyType": { - "$ref": "545" + "$ref": "555" }, "headers": [], "isErrorResponse": false, @@ -18615,18 +18893,18 @@ }, "parameters": [ { - "$id": "1361", + "$id": "1383", "kind": "method", "name": "location", "serializedName": "location", "doc": "The name of the Azure region.", "type": { - "$id": "1362", + "$id": "1384", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "1363", + "$id": "1385", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18644,7 +18922,7 @@ "decorators": [] }, { - "$id": "1364", + "$id": "1386", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -18663,7 +18941,7 @@ ], "response": { "type": { - "$ref": "547" + "$ref": "557" }, "resultSegments": [ "value" @@ -18688,13 +18966,13 @@ ], "parameters": [ { - "$id": "1365", + "$id": "1387", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1366", + "$id": "1388", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -18705,7 +18983,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1367", + "$id": "1389", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18729,39 +19007,39 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "1368", + "$id": "1390", "kind": "client", - "name": "Bar", + "name": "JobResources", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "1369", + "$id": "1391", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [ "2024-05-01" ], - "doc": "Get a Bar", + "doc": "Gets information about the specified job.", "operation": { - "$id": "1370", + "$id": "1392", "name": "get", - "resourceName": "Bar", - "doc": "Get a Bar", + "resourceName": "JobResource", + "doc": "Gets information about the specified job.", "accessibility": "public", "parameters": [ { - "$id": "1371", + "$id": "1393", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1372", + "$id": "1394", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18771,7 +19049,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1373", + "$id": "1395", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -18781,22 +19059,22 @@ "optional": false, "scope": "Client", "decorators": [], - "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.apiVersion", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.apiVersion", "readOnly": false }, { - "$id": "1374", + "$id": "1396", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1375", + "$id": "1397", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1376", + "$id": "1398", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18813,16 +19091,16 @@ "scope": "Client", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.subscriptionId" + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.subscriptionId" }, { - "$id": "1377", + "$id": "1399", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1378", + "$id": "1400", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18837,16 +19115,16 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.resourceGroupName" + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.resourceGroupName" }, { - "$id": "1379", + "$id": "1401", "kind": "path", - "name": "fooName", - "serializedName": "fooName", - "doc": "The name of the Foo", + "name": "jobName", + "serializedName": "jobName", + "doc": "The name of the JobResource", "type": { - "$id": "1380", + "$id": "1402", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18861,16 +19139,719 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.fooName" + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.jobName" }, { - "$id": "1381", - "kind": "path", - "name": "barName", - "serializedName": "barName", + "$id": "1403", + "kind": "query", + "name": "$expand", + "serializedName": "$expand", + "doc": "$expand is supported on details parameter for job, which provides details on the job stages.", + "type": { + "$id": "1404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "optional": true, + "scope": "Method", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.$expand", + "readOnly": false + }, + { + "$id": "1405", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "179" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.accept" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "561" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get", + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceRead", + "arguments": {} + } + ] + }, + "parameters": [ + { + "$id": "1406", + "kind": "method", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "1407", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.resourceGroupName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1408", + "kind": "method", + "name": "jobName", + "serializedName": "jobName", + "doc": "The name of the JobResource", + "type": { + "$id": "1409", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.jobName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1410", + "kind": "method", + "name": "$expand", + "serializedName": "$expand", + "doc": "$expand is supported on details parameter for job, which provides details on the job stages.", + "type": { + "$id": "1411", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.$expand", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1412", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "179" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "561" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get" + }, + { + "$id": "1413", + "kind": "lro", + "name": "update", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Update a JobResource", + "operation": { + "$id": "1414", + "name": "update", + "resourceName": "JobResource", + "doc": "Update a JobResource", + "accessibility": "public", + "parameters": [ + { + "$id": "1415", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1416", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "1417", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.apiVersion", + "readOnly": false + }, + { + "$id": "1418", + "kind": "path", + "name": "subscriptionId", + "serializedName": "subscriptionId", + "doc": "The ID of the target subscription. The value must be an UUID.", + "type": { + "$id": "1419", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Client", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.subscriptionId" + }, + { + "$id": "1421", + "kind": "path", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "1422", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.resourceGroupName" + }, + { + "$id": "1423", + "kind": "path", + "name": "jobName", + "serializedName": "jobName", + "doc": "The name of the JobResource", + "type": { + "$id": "1424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.jobName" + }, + { + "$id": "1425", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "181" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.contentType" + }, + { + "$id": "1426", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "183" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.accept" + }, + { + "$id": "1427", + "kind": "body", + "name": "properties", + "serializedName": "properties", + "doc": "The resource properties to be updated.", + "type": { + "$ref": "570" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.properties" + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "561" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + }, + { + "statusCodes": [ + 202 + ], + "headers": [ + { + "name": "location", + "nameInResponse": "Location", + "doc": "The Location header contains the URL where the status of the long running operation can be checked.", + "type": { + "$id": "1428", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "name": "retryAfter", + "nameInResponse": "Retry-After", + "doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.", + "type": { + "$id": "1429", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + } + } + ], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update", + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceUpdate", + "arguments": {} + } + ] + }, + "parameters": [ + { + "$id": "1430", + "kind": "method", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "1431", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.resourceGroupName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1432", + "kind": "method", + "name": "jobName", + "serializedName": "jobName", + "doc": "The name of the JobResource", + "type": { + "$id": "1433", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.jobName", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1434", + "kind": "method", + "name": "properties", + "serializedName": "properties", + "doc": "The resource properties to be updated.", + "type": { + "$ref": "570" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.properties", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1435", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "185" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "1436", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "187" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ], + "response": { + "type": { + "$ref": "561" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update", + "lroMetadata": { + "finalStateVia": 1, + "finalResponse": { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "561" + } + } + } + } + ], + "parameters": [ + { + "$id": "1437", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "1438", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "1439", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "https://management.azure.com" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint" + } + ], + "decorators": [ + { + "name": "Azure.ResourceManager.@armResourceOperations", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources", + "apiVersions": [ + "2024-05-01" + ], + "parent": { + "$ref": "578" + } + }, + { + "$id": "1440", + "kind": "client", + "name": "Bar", + "namespace": "MgmtTypeSpec", + "methods": [ + { + "$id": "1441", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [ + "2024-05-01" + ], + "doc": "Get a Bar", + "operation": { + "$id": "1442", + "name": "get", + "resourceName": "Bar", + "doc": "Get a Bar", + "accessibility": "public", + "parameters": [ + { + "$id": "1443", + "kind": "query", + "name": "apiVersion", + "serializedName": "api-version", + "doc": "The API version to use for this operation.", + "type": { + "$id": "1444", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": true, + "explode": false, + "defaultValue": { + "type": { + "$id": "1445", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-05-01" + }, + "optional": false, + "scope": "Client", + "decorators": [], + "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.apiVersion", + "readOnly": false + }, + { + "$id": "1446", + "kind": "path", + "name": "subscriptionId", + "serializedName": "subscriptionId", + "doc": "The ID of the target subscription. The value must be an UUID.", + "type": { + "$id": "1447", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1448", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Client", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.subscriptionId" + }, + { + "$id": "1449", + "kind": "path", + "name": "resourceGroupName", + "serializedName": "resourceGroupName", + "doc": "The name of the resource group. The name is case insensitive.", + "type": { + "$id": "1450", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.resourceGroupName" + }, + { + "$id": "1451", + "kind": "path", + "name": "fooName", + "serializedName": "fooName", + "doc": "The name of the Foo", + "type": { + "$id": "1452", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "isApiVersion": false, + "explode": false, + "style": "simple", + "allowReserved": false, + "skipUrlEncoding": false, + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.fooName" + }, + { + "$id": "1453", + "kind": "path", + "name": "barName", + "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1382", + "$id": "1454", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18888,12 +19869,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.barName" }, { - "$id": "1383", + "$id": "1455", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "179" + "$ref": "189" }, "isApiVersion": false, "optional": false, @@ -18910,7 +19891,7 @@ 200 ], "bodyType": { - "$ref": "396" + "$ref": "406" }, "headers": [], "isErrorResponse": false, @@ -18935,13 +19916,13 @@ }, "parameters": [ { - "$id": "1384", + "$id": "1456", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1385", + "$id": "1457", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18957,13 +19938,13 @@ "decorators": [] }, { - "$id": "1386", + "$id": "1458", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1387", + "$id": "1459", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -18979,13 +19960,13 @@ "decorators": [] }, { - "$id": "1388", + "$id": "1460", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1389", + "$id": "1461", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19001,12 +19982,12 @@ "decorators": [] }, { - "$id": "1390", + "$id": "1462", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "179" + "$ref": "189" }, "location": "Header", "isApiVersion": false, @@ -19020,7 +20001,7 @@ ], "response": { "type": { - "$ref": "396" + "$ref": "406" } }, "isOverride": false, @@ -19029,7 +20010,7 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get" }, { - "$id": "1391", + "$id": "1463", "kind": "basic", "name": "update", "accessibility": "public", @@ -19038,20 +20019,20 @@ ], "doc": "Update a Bar", "operation": { - "$id": "1392", + "$id": "1464", "name": "update", "resourceName": "Bar", "doc": "Update a Bar", "accessibility": "public", "parameters": [ { - "$id": "1393", + "$id": "1465", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1394", + "$id": "1466", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19061,7 +20042,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1395", + "$id": "1467", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19075,18 +20056,18 @@ "readOnly": false }, { - "$id": "1396", + "$id": "1468", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1397", + "$id": "1469", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1398", + "$id": "1470", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19106,13 +20087,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.subscriptionId" }, { - "$id": "1399", + "$id": "1471", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1400", + "$id": "1472", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19130,13 +20111,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.resourceGroupName" }, { - "$id": "1401", + "$id": "1473", "kind": "path", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1402", + "$id": "1474", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19154,13 +20135,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.fooName" }, { - "$id": "1403", + "$id": "1475", "kind": "path", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1404", + "$id": "1476", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19178,13 +20159,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.barName" }, { - "$id": "1405", + "$id": "1477", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "181" + "$ref": "191" }, "isApiVersion": false, "optional": false, @@ -19195,12 +20176,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.contentType" }, { - "$id": "1406", + "$id": "1478", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "183" + "$ref": "193" }, "isApiVersion": false, "optional": false, @@ -19211,13 +20192,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.accept" }, { - "$id": "1407", + "$id": "1479", "kind": "body", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "396" + "$ref": "406" }, "isApiVersion": false, "contentTypes": [ @@ -19237,7 +20218,7 @@ 200 ], "bodyType": { - "$ref": "396" + "$ref": "406" }, "headers": [], "isErrorResponse": false, @@ -19265,13 +20246,13 @@ }, "parameters": [ { - "$id": "1408", + "$id": "1480", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1409", + "$id": "1481", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19287,13 +20268,13 @@ "decorators": [] }, { - "$id": "1410", + "$id": "1482", "kind": "method", "name": "fooName", "serializedName": "fooName", "doc": "The name of the Foo", "type": { - "$id": "1411", + "$id": "1483", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19309,13 +20290,13 @@ "decorators": [] }, { - "$id": "1412", + "$id": "1484", "kind": "method", "name": "barName", "serializedName": "barName", "doc": "The name of the Bar", "type": { - "$id": "1413", + "$id": "1485", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19331,13 +20312,13 @@ "decorators": [] }, { - "$id": "1414", + "$id": "1486", "kind": "method", "name": "properties", "serializedName": "properties", "doc": "The resource properties to be updated.", "type": { - "$ref": "396" + "$ref": "406" }, "location": "Body", "isApiVersion": false, @@ -19349,13 +20330,13 @@ "decorators": [] }, { - "$id": "1415", + "$id": "1487", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "181" + "$ref": "191" }, "location": "Header", "isApiVersion": false, @@ -19367,12 +20348,12 @@ "decorators": [] }, { - "$id": "1416", + "$id": "1488", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "183" + "$ref": "193" }, "location": "Header", "isApiVersion": false, @@ -19386,7 +20367,7 @@ ], "response": { "type": { - "$ref": "396" + "$ref": "406" } }, "isOverride": false, @@ -19397,13 +20378,13 @@ ], "parameters": [ { - "$id": "1417", + "$id": "1489", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1418", + "$id": "1490", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -19414,7 +20395,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1419", + "$id": "1491", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19433,17 +20414,17 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } }, { - "$id": "1420", + "$id": "1492", "kind": "client", "name": "ZooRecommendation", "namespace": "MgmtTypeSpec", "methods": [ { - "$id": "1421", + "$id": "1493", "kind": "basic", "name": "recommend", "accessibility": "public", @@ -19452,20 +20433,20 @@ ], "doc": "A synchronous resource action.", "operation": { - "$id": "1422", + "$id": "1494", "name": "recommend", "resourceName": "Zoos", "doc": "A synchronous resource action.", "accessibility": "public", "parameters": [ { - "$id": "1423", + "$id": "1495", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "1424", + "$id": "1496", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19475,7 +20456,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "1425", + "$id": "1497", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19489,18 +20470,18 @@ "readOnly": false }, { - "$id": "1426", + "$id": "1498", "kind": "path", "name": "subscriptionId", "serializedName": "subscriptionId", "doc": "The ID of the target subscription. The value must be an UUID.", "type": { - "$id": "1427", + "$id": "1499", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "1428", + "$id": "1500", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19520,13 +20501,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.subscriptionId" }, { - "$id": "1429", + "$id": "1501", "kind": "path", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1430", + "$id": "1502", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19544,13 +20525,13 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.resourceGroupName" }, { - "$id": "1431", + "$id": "1503", "kind": "path", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1432", + "$id": "1504", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19568,12 +20549,12 @@ "crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.zooName" }, { - "$id": "1433", + "$id": "1505", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "185" + "$ref": "195" }, "isApiVersion": false, "optional": false, @@ -19590,7 +20571,7 @@ 200 ], "bodyType": { - "$ref": "551" + "$ref": "573" }, "headers": [], "isErrorResponse": false, @@ -19615,13 +20596,13 @@ }, "parameters": [ { - "$id": "1434", + "$id": "1506", "kind": "method", "name": "resourceGroupName", "serializedName": "resourceGroupName", "doc": "The name of the resource group. The name is case insensitive.", "type": { - "$id": "1435", + "$id": "1507", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19637,13 +20618,13 @@ "decorators": [] }, { - "$id": "1436", + "$id": "1508", "kind": "method", "name": "zooName", "serializedName": "zooName", "doc": "The name of the Zoo", "type": { - "$id": "1437", + "$id": "1509", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -19659,12 +20640,12 @@ "decorators": [] }, { - "$id": "1438", + "$id": "1510", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "185" + "$ref": "195" }, "location": "Header", "isApiVersion": false, @@ -19678,7 +20659,7 @@ ], "response": { "type": { - "$ref": "551" + "$ref": "573" } }, "isOverride": false, @@ -19689,13 +20670,13 @@ ], "parameters": [ { - "$id": "1439", + "$id": "1511", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "1440", + "$id": "1512", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -19706,7 +20687,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "1441", + "$id": "1513", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -19725,7 +20706,7 @@ "2024-05-01" ], "parent": { - "$ref": "556" + "$ref": "578" } } ] From eb861b2ce3fd6750be09dc9b6837e3957cb64834 Mon Sep 17 00:00:00 2001 From: haiyuan_zhang Date: Wed, 17 Sep 2025 14:19:10 +0800 Subject: [PATCH 2/2] fix test cases. --- .../Providers/TestData/TagMethodProviderTests/Verify_AddTag.cs | 2 +- .../TestData/TagMethodProviderTests/Verify_AddTagAsync.cs | 2 +- .../TestData/TagMethodProviderTests/Verify_RemoveTag.cs | 2 +- .../TestData/TagMethodProviderTests/Verify_RemoveTagAsync.cs | 2 +- .../Providers/TestData/TagMethodProviderTests/Verify_SetTags.cs | 2 +- .../TestData/TagMethodProviderTests/Verify_SetTagsAsync.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_AddTag.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_AddTag.cs index 292c51ba3e8e..5eb1048c3978 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_AddTag.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_AddTag.cs @@ -21,7 +21,7 @@ } else { - global::Samples.Models.ResponseTypeData current = (this.Get(cancellationToken)).Value.Data; + global::Samples.Models.ResponseTypeData current = (this.Get(cancellationToken: cancellationToken)).Value.Data; global::Samples.Models.ResponseTypeData patch = new global::Samples.Models.ResponseTypeData(); foreach (global::System.Collections.Generic.KeyValuePair tag in current.Tags) { diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_AddTagAsync.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_AddTagAsync.cs index dd1af0434e78..ca596162e938 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_AddTagAsync.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_AddTagAsync.cs @@ -21,7 +21,7 @@ } else { - global::Samples.Models.ResponseTypeData current = (await this.GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + global::Samples.Models.ResponseTypeData current = (await this.GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; global::Samples.Models.ResponseTypeData patch = new global::Samples.Models.ResponseTypeData(); foreach (global::System.Collections.Generic.KeyValuePair tag in current.Tags) { diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_RemoveTag.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_RemoveTag.cs index f5a815e1792b..5fbfa777d26d 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_RemoveTag.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_RemoveTag.cs @@ -20,7 +20,7 @@ } else { - global::Samples.Models.ResponseTypeData current = (this.Get(cancellationToken)).Value.Data; + global::Samples.Models.ResponseTypeData current = (this.Get(cancellationToken: cancellationToken)).Value.Data; global::Samples.Models.ResponseTypeData patch = new global::Samples.Models.ResponseTypeData(); foreach (global::System.Collections.Generic.KeyValuePair tag in current.Tags) { diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_RemoveTagAsync.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_RemoveTagAsync.cs index efa5fe022734..4e03018f975d 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_RemoveTagAsync.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_RemoveTagAsync.cs @@ -20,7 +20,7 @@ } else { - global::Samples.Models.ResponseTypeData current = (await this.GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + global::Samples.Models.ResponseTypeData current = (await this.GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; global::Samples.Models.ResponseTypeData patch = new global::Samples.Models.ResponseTypeData(); foreach (global::System.Collections.Generic.KeyValuePair tag in current.Tags) { diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_SetTags.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_SetTags.cs index 379079e7ad54..383b1cb7f097 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_SetTags.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_SetTags.cs @@ -21,7 +21,7 @@ } else { - global::Samples.Models.ResponseTypeData current = (this.Get(cancellationToken)).Value.Data; + global::Samples.Models.ResponseTypeData current = (this.Get(cancellationToken: cancellationToken)).Value.Data; global::Samples.Models.ResponseTypeData patch = new global::Samples.Models.ResponseTypeData(); patch.Tags.ReplaceWith(tags); global::Azure.Response result = this.Update(patch, cancellationToken); diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_SetTagsAsync.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_SetTagsAsync.cs index 6a09479451db..31bec31e8692 100644 --- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_SetTagsAsync.cs +++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/TagMethodProviderTests/Verify_SetTagsAsync.cs @@ -21,7 +21,7 @@ } else { - global::Samples.Models.ResponseTypeData current = (await this.GetAsync(cancellationToken).ConfigureAwait(false)).Value.Data; + global::Samples.Models.ResponseTypeData current = (await this.GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; global::Samples.Models.ResponseTypeData patch = new global::Samples.Models.ResponseTypeData(); patch.Tags.ReplaceWith(tags); global::Azure.Response result = await this.UpdateAsync(patch, cancellationToken).ConfigureAwait(false);