diff --git a/packages/http-client-csharp/eng/scripts/Generate.ps1 b/packages/http-client-csharp/eng/scripts/Generate.ps1 index 05134142c8..09eb3be3db 100644 --- a/packages/http-client-csharp/eng/scripts/Generate.ps1 +++ b/packages/http-client-csharp/eng/scripts/Generate.ps1 @@ -50,6 +50,7 @@ function IsSpecDir { $failingSpecs = @( Join-Path 'http' 'payload' 'pageable' + Join-Path 'http' 'payload' 'xml' Join-Path 'http' 'special-headers' 'conditional-request' Join-Path 'http' 'type' 'model' 'flatten' Join-Path 'http' 'type' 'model' 'templated' diff --git a/packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Properties/launchSettings.json b/packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Properties/launchSettings.json index f2d5ebb72d..7e1721b39f 100644 --- a/packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Properties/launchSettings.json +++ b/packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Properties/launchSettings.json @@ -115,11 +115,6 @@ "commandName": "Executable", "executablePath": "$(SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.exe" }, - "http-payload-xml": { - "commandLineArgs": "$(SolutionDir)/TestProjects/CadlRanch/http/payload/xml -p StubLibraryPlugin", - "commandName": "Executable", - "executablePath": "$(SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.exe" - }, "http-resiliency-srv-driven-v1": { "commandLineArgs": "$(SolutionDir)/TestProjects/CadlRanch/http/resiliency/srv-driven/v1 -p StubLibraryPlugin", "commandName": "Executable", diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/Configuration.json b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/Configuration.json deleted file mode 100644 index 8c15e60ef5..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/Configuration.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "output-folder": ".", - "namespace": "Payload.Xml", - "library-name": "Payload.Xml", - "use-model-reader-writer": true -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/Payload.Xml.sln b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/Payload.Xml.sln deleted file mode 100644 index cc8a0e28df..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/Payload.Xml.sln +++ /dev/null @@ -1,48 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29709.97 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Payload.Xml", "src\Payload.Xml.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU - {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU - {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU - {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU - {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU - {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU - {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU - {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU - {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE} - EndGlobalSection -EndGlobal diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithArrayOfModelValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithArrayOfModelValue.cs deleted file mode 100644 index d97bb23104..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithArrayOfModelValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithArrayOfModelValue - { - protected ModelWithArrayOfModelValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithArrayOfModel input) => throw null; - - public virtual Task PutAsync(ModelWithArrayOfModel input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithAttributesValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithAttributesValue.cs deleted file mode 100644 index d36d1a98e4..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithAttributesValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithAttributesValue - { - protected ModelWithAttributesValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithAttributes input) => throw null; - - public virtual Task PutAsync(ModelWithAttributes input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithDictionaryValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithDictionaryValue.cs deleted file mode 100644 index 5326a01610..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithDictionaryValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithDictionaryValue - { - protected ModelWithDictionaryValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithDictionary input) => throw null; - - public virtual Task PutAsync(ModelWithDictionary input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEmptyArrayValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEmptyArrayValue.cs deleted file mode 100644 index 4f8a338ad1..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEmptyArrayValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithEmptyArrayValue - { - protected ModelWithEmptyArrayValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithEmptyArray input) => throw null; - - public virtual Task PutAsync(ModelWithEmptyArray input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEncodedNamesValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEncodedNamesValue.cs deleted file mode 100644 index ef8d42468c..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEncodedNamesValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithEncodedNamesValue - { - protected ModelWithEncodedNamesValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithEncodedNames input) => throw null; - - public virtual Task PutAsync(ModelWithEncodedNames input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithOptionalFieldValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithOptionalFieldValue.cs deleted file mode 100644 index 22a25317dd..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithOptionalFieldValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithOptionalFieldValue - { - protected ModelWithOptionalFieldValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithOptionalField input) => throw null; - - public virtual Task PutAsync(ModelWithOptionalField input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedArraysValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedArraysValue.cs deleted file mode 100644 index 15bb6208eb..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedArraysValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithRenamedArraysValue - { - protected ModelWithRenamedArraysValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithRenamedArrays input) => throw null; - - public virtual Task PutAsync(ModelWithRenamedArrays input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedFieldsValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedFieldsValue.cs deleted file mode 100644 index 6878af75f0..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedFieldsValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithRenamedFieldsValue - { - protected ModelWithRenamedFieldsValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithRenamedFields input) => throw null; - - public virtual Task PutAsync(ModelWithRenamedFields input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithSimpleArraysValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithSimpleArraysValue.cs deleted file mode 100644 index f9db5db5d8..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithSimpleArraysValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithSimpleArraysValue - { - protected ModelWithSimpleArraysValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithSimpleArrays input) => throw null; - - public virtual Task PutAsync(ModelWithSimpleArrays input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithTextValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithTextValue.cs deleted file mode 100644 index 4c9d646f8c..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithTextValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithTextValue - { - protected ModelWithTextValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithText input) => throw null; - - public virtual Task PutAsync(ModelWithText input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithUnwrappedArrayValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithUnwrappedArrayValue.cs deleted file mode 100644 index bd6624fdfb..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithUnwrappedArrayValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class ModelWithUnwrappedArrayValue - { - protected ModelWithUnwrappedArrayValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(ModelWithUnwrappedArray input) => throw null; - - public virtual Task PutAsync(ModelWithUnwrappedArray input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithArrayOfModel.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithArrayOfModel.Serialization.cs deleted file mode 100644 index 9374603f7d..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithArrayOfModel.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithArrayOfModel : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithArrayOfModel IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithArrayOfModel JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithArrayOfModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithArrayOfModel PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithArrayOfModel modelWithArrayOfModel) => throw null; - - public static explicit operator ModelWithArrayOfModel(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithArrayOfModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithArrayOfModel.cs deleted file mode 100644 index c6aa97238d..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithArrayOfModel.cs +++ /dev/null @@ -1,13 +0,0 @@ -// - -#nullable disable - -using System.Collections.Generic; - -namespace Payload.Xml.Models -{ - public partial class ModelWithArrayOfModel - { - public IList Items => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithAttributes.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithAttributes.Serialization.cs deleted file mode 100644 index a76524203b..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithAttributes.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithAttributes : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithAttributes IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithAttributes JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithAttributes IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithAttributes PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithAttributes modelWithAttributes) => throw null; - - public static explicit operator ModelWithAttributes(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithAttributes.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithAttributes.cs deleted file mode 100644 index 1af505fadb..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithAttributes.cs +++ /dev/null @@ -1,15 +0,0 @@ -// - -#nullable disable - -namespace Payload.Xml.Models -{ - public partial class ModelWithAttributes - { - public int Id1 => throw null; - - public string Id2 => throw null; - - public bool Enabled => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithDictionary.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithDictionary.Serialization.cs deleted file mode 100644 index 0ff9e516be..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithDictionary.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithDictionary : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithDictionary IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithDictionary JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithDictionary IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithDictionary PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithDictionary modelWithDictionary) => throw null; - - public static explicit operator ModelWithDictionary(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithDictionary.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithDictionary.cs deleted file mode 100644 index 90b7a25c09..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithDictionary.cs +++ /dev/null @@ -1,13 +0,0 @@ -// - -#nullable disable - -using System.Collections.Generic; - -namespace Payload.Xml.Models -{ - public partial class ModelWithDictionary - { - public IDictionary Metadata => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEmptyArray.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEmptyArray.Serialization.cs deleted file mode 100644 index 1c4f4ebb18..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEmptyArray.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithEmptyArray : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithEmptyArray IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithEmptyArray JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithEmptyArray IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithEmptyArray PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithEmptyArray modelWithEmptyArray) => throw null; - - public static explicit operator ModelWithEmptyArray(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEmptyArray.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEmptyArray.cs deleted file mode 100644 index 358abeb230..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEmptyArray.cs +++ /dev/null @@ -1,13 +0,0 @@ -// - -#nullable disable - -using System.Collections.Generic; - -namespace Payload.Xml.Models -{ - public partial class ModelWithEmptyArray - { - public IList Items => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEncodedNames.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEncodedNames.Serialization.cs deleted file mode 100644 index 34aa38cdc7..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEncodedNames.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithEncodedNames : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithEncodedNames IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithEncodedNames JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithEncodedNames IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithEncodedNames PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithEncodedNames modelWithEncodedNames) => throw null; - - public static explicit operator ModelWithEncodedNames(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEncodedNames.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEncodedNames.cs deleted file mode 100644 index eb05d8493b..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithEncodedNames.cs +++ /dev/null @@ -1,15 +0,0 @@ -// - -#nullable disable - -using System.Collections.Generic; - -namespace Payload.Xml.Models -{ - public partial class ModelWithEncodedNames - { - public SimpleModel ModelData => throw null; - - public IList Colors => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithOptionalField.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithOptionalField.Serialization.cs deleted file mode 100644 index 596502a4b1..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithOptionalField.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithOptionalField : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithOptionalField IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithOptionalField JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithOptionalField IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithOptionalField PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithOptionalField modelWithOptionalField) => throw null; - - public static explicit operator ModelWithOptionalField(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithOptionalField.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithOptionalField.cs deleted file mode 100644 index f5f569907d..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithOptionalField.cs +++ /dev/null @@ -1,13 +0,0 @@ -// - -#nullable disable - -namespace Payload.Xml.Models -{ - public partial class ModelWithOptionalField - { - public string Item => throw null; - - public int? Value => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedArrays.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedArrays.Serialization.cs deleted file mode 100644 index 47e521601c..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedArrays.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithRenamedArrays : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithRenamedArrays IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithRenamedArrays JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithRenamedArrays IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithRenamedArrays PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithRenamedArrays modelWithRenamedArrays) => throw null; - - public static explicit operator ModelWithRenamedArrays(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedArrays.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedArrays.cs deleted file mode 100644 index 1abe0a1d4e..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedArrays.cs +++ /dev/null @@ -1,15 +0,0 @@ -// - -#nullable disable - -using System.Collections.Generic; - -namespace Payload.Xml.Models -{ - public partial class ModelWithRenamedArrays - { - public IList Colors => throw null; - - public IList Counts => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedFields.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedFields.Serialization.cs deleted file mode 100644 index cf9ebc10b7..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedFields.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithRenamedFields : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithRenamedFields IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithRenamedFields JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithRenamedFields IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithRenamedFields PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithRenamedFields modelWithRenamedFields) => throw null; - - public static explicit operator ModelWithRenamedFields(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedFields.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedFields.cs deleted file mode 100644 index fcab9c7b22..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithRenamedFields.cs +++ /dev/null @@ -1,13 +0,0 @@ -// - -#nullable disable - -namespace Payload.Xml.Models -{ - public partial class ModelWithRenamedFields - { - public SimpleModel InputData => throw null; - - public SimpleModel OutputData => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithSimpleArrays.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithSimpleArrays.Serialization.cs deleted file mode 100644 index cc65a22823..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithSimpleArrays.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithSimpleArrays : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithSimpleArrays IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithSimpleArrays JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithSimpleArrays IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithSimpleArrays PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithSimpleArrays modelWithSimpleArrays) => throw null; - - public static explicit operator ModelWithSimpleArrays(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithSimpleArrays.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithSimpleArrays.cs deleted file mode 100644 index cd1896fdb2..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithSimpleArrays.cs +++ /dev/null @@ -1,15 +0,0 @@ -// - -#nullable disable - -using System.Collections.Generic; - -namespace Payload.Xml.Models -{ - public partial class ModelWithSimpleArrays - { - public IList Colors => throw null; - - public IList Counts => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithText.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithText.Serialization.cs deleted file mode 100644 index 7fea64586a..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithText.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithText : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithText IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithText JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithText IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithText PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithText modelWithText) => throw null; - - public static explicit operator ModelWithText(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithText.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithText.cs deleted file mode 100644 index 339fa6614e..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithText.cs +++ /dev/null @@ -1,13 +0,0 @@ -// - -#nullable disable - -namespace Payload.Xml.Models -{ - public partial class ModelWithText - { - public string Language => throw null; - - public string Content => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithUnwrappedArray.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithUnwrappedArray.Serialization.cs deleted file mode 100644 index ae74fce859..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithUnwrappedArray.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class ModelWithUnwrappedArray : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - ModelWithUnwrappedArray IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithUnwrappedArray JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - ModelWithUnwrappedArray IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual ModelWithUnwrappedArray PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(ModelWithUnwrappedArray modelWithUnwrappedArray) => throw null; - - public static explicit operator ModelWithUnwrappedArray(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithUnwrappedArray.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithUnwrappedArray.cs deleted file mode 100644 index 21f18aec28..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/ModelWithUnwrappedArray.cs +++ /dev/null @@ -1,15 +0,0 @@ -// - -#nullable disable - -using System.Collections.Generic; - -namespace Payload.Xml.Models -{ - public partial class ModelWithUnwrappedArray - { - public IList Colors => throw null; - - public IList Counts => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/SimpleModel.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/SimpleModel.Serialization.cs deleted file mode 100644 index 52b932b4a0..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/SimpleModel.Serialization.cs +++ /dev/null @@ -1,36 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Payload.Xml.Models -{ - public partial class SimpleModel : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; - - SimpleModel IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - protected virtual SimpleModel JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; - - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; - - SimpleModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; - - protected virtual SimpleModel PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; - - public static implicit operator BinaryContent(SimpleModel simpleModel) => throw null; - - public static explicit operator SimpleModel(ClientResult result) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/SimpleModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/SimpleModel.cs deleted file mode 100644 index e02e208422..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/Models/SimpleModel.cs +++ /dev/null @@ -1,13 +0,0 @@ -// - -#nullable disable - -namespace Payload.Xml.Models -{ - public partial class SimpleModel - { - public string Name => throw null; - - public int Age => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/PayloadXmlModelFactory.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/PayloadXmlModelFactory.cs deleted file mode 100644 index a9bedbe182..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/PayloadXmlModelFactory.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.Collections.Generic; - -namespace Payload.Xml.Models -{ - public static partial class PayloadXmlModelFactory - { - public static ModelWithEncodedNames ModelWithEncodedNames(SimpleModel modelData = default, IEnumerable colors = default) => throw null; - - public static SimpleModel SimpleModel(string name = default, int age = default) => throw null; - - public static ModelWithDictionary ModelWithDictionary(IDictionary metadata = default) => throw null; - - public static ModelWithText ModelWithText(string language = default, string content = default) => throw null; - - public static ModelWithEmptyArray ModelWithEmptyArray(IEnumerable items = default) => throw null; - - public static ModelWithRenamedFields ModelWithRenamedFields(SimpleModel inputData = default, SimpleModel outputData = default) => throw null; - - public static ModelWithRenamedArrays ModelWithRenamedArrays(IEnumerable colors = default, IEnumerable counts = default) => throw null; - - public static ModelWithUnwrappedArray ModelWithUnwrappedArray(IEnumerable colors = default, IEnumerable counts = default) => throw null; - - public static ModelWithAttributes ModelWithAttributes(int id1 = default, string id2 = default, bool enabled = default) => throw null; - - public static ModelWithOptionalField ModelWithOptionalField(string item = default, int? value = default) => throw null; - - public static ModelWithArrayOfModel ModelWithArrayOfModel(IEnumerable items = default) => throw null; - - public static ModelWithSimpleArrays ModelWithSimpleArrays(IEnumerable colors = default, IEnumerable counts = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/SimpleModelValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/SimpleModelValue.cs deleted file mode 100644 index abcdd7dc3b..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/SimpleModelValue.cs +++ /dev/null @@ -1,35 +0,0 @@ -// - -#nullable disable - -using System.ClientModel; -using System.ClientModel.Primitives; -using System.Threading; -using System.Threading.Tasks; -using Payload.Xml.Models; - -namespace Payload.Xml -{ - public partial class SimpleModelValue - { - protected SimpleModelValue() => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual ClientResult Get(RequestOptions options) => throw null; - - public virtual Task GetAsync(RequestOptions options) => throw null; - - public virtual ClientResult Get() => throw null; - - public virtual Task> GetAsync(CancellationToken cancellationToken = default) => throw null; - - public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; - - public virtual ClientResult Put(SimpleModel input) => throw null; - - public virtual Task PutAsync(SimpleModel input, CancellationToken cancellationToken = default) => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/XmlClient.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/XmlClient.cs deleted file mode 100644 index 980b4fce21..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/XmlClient.cs +++ /dev/null @@ -1,42 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; - -namespace Payload.Xml -{ - public partial class XmlClient - { - public XmlClient() : this(new Uri("http://localhost:3000"), new XmlClientOptions()) => throw null; - - public XmlClient(Uri endpoint, XmlClientOptions options) => throw null; - - public ClientPipeline Pipeline => throw null; - - public virtual SimpleModelValue GetSimpleModelValueClient() => throw null; - - public virtual ModelWithSimpleArraysValue GetModelWithSimpleArraysValueClient() => throw null; - - public virtual ModelWithArrayOfModelValue GetModelWithArrayOfModelValueClient() => throw null; - - public virtual ModelWithOptionalFieldValue GetModelWithOptionalFieldValueClient() => throw null; - - public virtual ModelWithAttributesValue GetModelWithAttributesValueClient() => throw null; - - public virtual ModelWithUnwrappedArrayValue GetModelWithUnwrappedArrayValueClient() => throw null; - - public virtual ModelWithRenamedArraysValue GetModelWithRenamedArraysValueClient() => throw null; - - public virtual ModelWithRenamedFieldsValue GetModelWithRenamedFieldsValueClient() => throw null; - - public virtual ModelWithEmptyArrayValue GetModelWithEmptyArrayValueClient() => throw null; - - public virtual ModelWithTextValue GetModelWithTextValueClient() => throw null; - - public virtual ModelWithDictionaryValue GetModelWithDictionaryValueClient() => throw null; - - public virtual ModelWithEncodedNamesValue GetModelWithEncodedNamesValueClient() => throw null; - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/XmlClientOptions.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/XmlClientOptions.cs deleted file mode 100644 index 467bebf98b..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/XmlClientOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// - -#nullable disable - -using System.ClientModel.Primitives; - -namespace Payload.Xml -{ - public partial class XmlClientOptions : ClientPipelineOptions - { - } -} diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Payload.Xml.csproj b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Payload.Xml.csproj deleted file mode 100644 index 8e68e7a868..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Payload.Xml.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - This is the Payload.Xml client library for developing .NET applications with rich experience. - SDK Code Generation Payload.Xml - 1.0.0-beta.1 - Payload.Xml - netstandard2.0 - latest - true - - - - - - - diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/tspCodeModel.json deleted file mode 100644 index 526887cef4..0000000000 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/tspCodeModel.json +++ /dev/null @@ -1,3150 +0,0 @@ -{ - "$id": "1", - "Name": "Payload.Xml", - "ApiVersions": [], - "Enums": [], - "Models": [ - { - "$id": "2", - "kind": "model", - "name": "ModelWithEncodedNames", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNames", - "usage": "Input,Output,Xml", - "description": "Uses encodedName instead of Xml.Name which is functionally equivalent.", - "decorators": [], - "properties": [ - { - "$id": "3", - "kind": "property", - "name": "modelData", - "serializedName": "modelData", - "type": { - "$id": "4", - "kind": "model", - "name": "SimpleModel", - "crossLanguageDefinitionId": "Payload.Xml.SimpleModel", - "usage": "Input,Output,Xml", - "description": "Contains fields of primitive types.", - "decorators": [], - "properties": [ - { - "$id": "5", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "6", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.SimpleModel.name" - }, - { - "$id": "7", - "kind": "property", - "name": "age", - "serializedName": "age", - "type": { - "$id": "8", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.SimpleModel.age" - } - ] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNames.modelData" - }, - { - "$id": "9", - "kind": "property", - "name": "colors", - "serializedName": "colors", - "type": { - "$id": "10", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNames.colors" - } - ] - }, - { - "$ref": "4" - }, - { - "$id": "12", - "kind": "model", - "name": "ModelWithDictionary", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionary", - "usage": "Input,Output,Xml", - "description": "Contains a dictionary of key value pairs.", - "decorators": [], - "properties": [ - { - "$id": "13", - "kind": "property", - "name": "metadata", - "serializedName": "metadata", - "type": { - "$id": "14", - "kind": "dict", - "keyType": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionary.metadata" - } - ] - }, - { - "$id": "17", - "kind": "model", - "name": "ModelWithText", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithText", - "usage": "Input,Output,Xml", - "description": "Contains an attribute and text.", - "decorators": [], - "properties": [ - { - "$id": "18", - "kind": "property", - "name": "language", - "serializedName": "language", - "type": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "$id": "20", - "name": "TypeSpec.Xml.@attribute", - "arguments": { - "$id": "21" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithText.language" - }, - { - "$id": "22", - "kind": "property", - "name": "content", - "serializedName": "content", - "type": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "$id": "24", - "name": "TypeSpec.Xml.@unwrapped", - "arguments": { - "$id": "25" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithText.content" - } - ] - }, - { - "$id": "26", - "kind": "model", - "name": "ModelWithEmptyArray", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArray", - "usage": "Input,Output,Xml", - "description": "Contains an array of models that's supposed to be sent/received as an empty XML element.", - "decorators": [], - "properties": [ - { - "$id": "27", - "kind": "property", - "name": "items", - "serializedName": "items", - "type": { - "$id": "28", - "kind": "array", - "name": "ArraySimpleModel", - "valueType": { - "$ref": "4" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArray.items" - } - ] - }, - { - "$id": "29", - "kind": "model", - "name": "ModelWithRenamedFields", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFields", - "usage": "Input,Output,Xml", - "description": "Contains fields of the same type that have different XML representation.", - "decorators": [ - { - "$id": "30", - "name": "TypeSpec.Xml.@name", - "arguments": { - "$id": "31", - "name": "ModelWithRenamedFieldsSrc" - } - } - ], - "properties": [ - { - "$id": "32", - "kind": "property", - "name": "inputData", - "serializedName": "inputData", - "type": { - "$ref": "4" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "$id": "33", - "name": "TypeSpec.Xml.@name", - "arguments": { - "$id": "34", - "name": "InputData" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFields.inputData" - }, - { - "$id": "35", - "kind": "property", - "name": "outputData", - "serializedName": "outputData", - "type": { - "$ref": "4" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "$id": "36", - "name": "TypeSpec.Xml.@name", - "arguments": { - "$id": "37", - "name": "OutputData" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFields.outputData" - } - ] - }, - { - "$id": "38", - "kind": "model", - "name": "ModelWithRenamedArrays", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArrays", - "usage": "Input,Output,Xml", - "description": "Contains fields of wrapped and unwrapped arrays of primitive types that have different XML representations.", - "decorators": [], - "properties": [ - { - "$id": "39", - "kind": "property", - "name": "colors", - "serializedName": "colors", - "type": { - "$id": "40", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "$id": "42", - "name": "TypeSpec.Xml.@unwrapped", - "arguments": { - "$id": "43" - } - }, - { - "$id": "44", - "name": "TypeSpec.Xml.@name", - "arguments": { - "$id": "45", - "name": "Colors" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArrays.colors" - }, - { - "$id": "46", - "kind": "property", - "name": "counts", - "serializedName": "counts", - "type": { - "$id": "47", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "48", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "$id": "49", - "name": "TypeSpec.Xml.@name", - "arguments": { - "$id": "50", - "name": "Counts" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArrays.counts" - } - ] - }, - { - "$id": "51", - "kind": "model", - "name": "ModelWithUnwrappedArray", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArray", - "usage": "Input,Output,Xml", - "description": "Contains fields of wrapped and unwrapped arrays of primitive types.", - "decorators": [], - "properties": [ - { - "$id": "52", - "kind": "property", - "name": "colors", - "serializedName": "colors", - "type": { - "$id": "53", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "54", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "$id": "55", - "name": "TypeSpec.Xml.@unwrapped", - "arguments": { - "$id": "56" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArray.colors" - }, - { - "$id": "57", - "kind": "property", - "name": "counts", - "serializedName": "counts", - "type": { - "$id": "58", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "59", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArray.counts" - } - ] - }, - { - "$id": "60", - "kind": "model", - "name": "ModelWithAttributes", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes", - "usage": "Input,Output,Xml", - "description": "Contains fields that are XML attributes.", - "decorators": [], - "properties": [ - { - "$id": "61", - "kind": "property", - "name": "id1", - "serializedName": "id1", - "type": { - "$id": "62", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "$id": "63", - "name": "TypeSpec.Xml.@attribute", - "arguments": { - "$id": "64" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes.id1" - }, - { - "$id": "65", - "kind": "property", - "name": "id2", - "serializedName": "id2", - "type": { - "$id": "66", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "$id": "67", - "name": "TypeSpec.Xml.@attribute", - "arguments": { - "$id": "68" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes.id2" - }, - { - "$id": "69", - "kind": "property", - "name": "enabled", - "serializedName": "enabled", - "type": { - "$id": "70", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes.enabled" - } - ] - }, - { - "$id": "71", - "kind": "model", - "name": "ModelWithOptionalField", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalField", - "usage": "Input,Output,Xml", - "description": "Contains an optional field.", - "decorators": [], - "properties": [ - { - "$id": "72", - "kind": "property", - "name": "item", - "serializedName": "item", - "type": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalField.item" - }, - { - "$id": "74", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "75", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalField.value" - } - ] - }, - { - "$id": "76", - "kind": "model", - "name": "ModelWithArrayOfModel", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModel", - "usage": "Input,Output,Xml", - "description": "Contains an array of models.", - "decorators": [], - "properties": [ - { - "$id": "77", - "kind": "property", - "name": "items", - "serializedName": "items", - "type": { - "$id": "78", - "kind": "array", - "name": "ArraySimpleModel", - "valueType": { - "$ref": "4" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModel.items" - } - ] - }, - { - "$id": "79", - "kind": "model", - "name": "ModelWithSimpleArrays", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArrays", - "usage": "Input,Output,Xml", - "description": "Contains fields of arrays of primitive types.", - "decorators": [], - "properties": [ - { - "$id": "80", - "kind": "property", - "name": "colors", - "serializedName": "colors", - "type": { - "$id": "81", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "82", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArrays.colors" - }, - { - "$id": "83", - "kind": "property", - "name": "counts", - "serializedName": "counts", - "type": { - "$id": "84", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "85", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArrays.counts" - } - ] - } - ], - "Clients": [ - { - "$id": "86", - "Name": "XmlClient", - "Description": "Sends and receives bodies in XML format.", - "Operations": [], - "Protocol": { - "$id": "87" - }, - "Parameters": [ - { - "$id": "88", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "89", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "90", - "Type": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "92", - "Name": "SimpleModelValue", - "Description": "Operations for the SimpleModel type.", - "Operations": [ - { - "$id": "93", - "Name": "get", - "ResourceName": "SimpleModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "94", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "95", - "kind": "constant", - "valueType": { - "$id": "96", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "97", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "4" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "98", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "99", - "kind": "constant", - "valueType": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/simpleModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get", - "Decorators": [] - }, - { - "$id": "101", - "Name": "put", - "ResourceName": "SimpleModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "102", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "103", - "kind": "constant", - "valueType": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "105", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "4" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "106", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/simpleModel", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "107" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "108", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "109", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "110", - "Type": { - "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "112", - "Name": "ModelWithSimpleArraysValue", - "Description": "Operations for the ModelWithSimpleArrays type.", - "Operations": [ - { - "$id": "113", - "Name": "get", - "ResourceName": "ModelWithSimpleArraysValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "114", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "115", - "kind": "constant", - "valueType": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "117", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "79" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "118", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "119", - "kind": "constant", - "valueType": { - "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithSimpleArrays", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get", - "Decorators": [] - }, - { - "$id": "121", - "Name": "put", - "ResourceName": "ModelWithSimpleArraysValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "122", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "123", - "kind": "constant", - "valueType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "125", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "79" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "126", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithSimpleArrays", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "127" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "128", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "129", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "130", - "Type": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "132", - "Name": "ModelWithArrayOfModelValue", - "Description": "Operations for the ModelWithArrayOfModel type.", - "Operations": [ - { - "$id": "133", - "Name": "get", - "ResourceName": "ModelWithArrayOfModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "134", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "135", - "kind": "constant", - "valueType": { - "$id": "136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "137", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "76" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "138", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "139", - "kind": "constant", - "valueType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithArrayOfModel", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get", - "Decorators": [] - }, - { - "$id": "141", - "Name": "put", - "ResourceName": "ModelWithArrayOfModelValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "142", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "143", - "kind": "constant", - "valueType": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "145", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "76" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "146", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithArrayOfModel", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "147" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "148", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "149", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "150", - "Type": { - "$id": "151", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "152", - "Name": "ModelWithOptionalFieldValue", - "Description": "Operations for the ModelWithOptionalField type.", - "Operations": [ - { - "$id": "153", - "Name": "get", - "ResourceName": "ModelWithOptionalFieldValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "154", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "155", - "kind": "constant", - "valueType": { - "$id": "156", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "157", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "71" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "158", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "159", - "kind": "constant", - "valueType": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithOptionalField", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get", - "Decorators": [] - }, - { - "$id": "161", - "Name": "put", - "ResourceName": "ModelWithOptionalFieldValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "162", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "163", - "kind": "constant", - "valueType": { - "$id": "164", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "165", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "71" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "166", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithOptionalField", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "167" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "168", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "169", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "170", - "Type": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "172", - "Name": "ModelWithAttributesValue", - "Description": "Operations for the ModelWithAttributes type.", - "Operations": [ - { - "$id": "173", - "Name": "get", - "ResourceName": "ModelWithAttributesValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "174", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "175", - "kind": "constant", - "valueType": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "177", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "60" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "178", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "179", - "kind": "constant", - "valueType": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithAttributes", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get", - "Decorators": [] - }, - { - "$id": "181", - "Name": "put", - "ResourceName": "ModelWithAttributesValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "182", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "183", - "kind": "constant", - "valueType": { - "$id": "184", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "185", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "60" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "186", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithAttributes", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "187" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "188", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "189", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "190", - "Type": { - "$id": "191", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "192", - "Name": "ModelWithUnwrappedArrayValue", - "Description": "Operations for the ModelWithUnwrappedArray type.", - "Operations": [ - { - "$id": "193", - "Name": "get", - "ResourceName": "ModelWithUnwrappedArrayValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "194", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "195", - "kind": "constant", - "valueType": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "197", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "51" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "198", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "199", - "kind": "constant", - "valueType": { - "$id": "200", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithUnwrappedArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get", - "Decorators": [] - }, - { - "$id": "201", - "Name": "put", - "ResourceName": "ModelWithUnwrappedArrayValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "202", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "203", - "kind": "constant", - "valueType": { - "$id": "204", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "205", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "51" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "206", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithUnwrappedArray", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "207" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "208", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "209", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "210", - "Type": { - "$id": "211", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "212", - "Name": "ModelWithRenamedArraysValue", - "Description": "Operations for the ModelWithRenamedArrays type.", - "Operations": [ - { - "$id": "213", - "Name": "get", - "ResourceName": "ModelWithRenamedArraysValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "214", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "215", - "kind": "constant", - "valueType": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "217", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "38" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "218", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "219", - "kind": "constant", - "valueType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithRenamedArrays", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get", - "Decorators": [] - }, - { - "$id": "221", - "Name": "put", - "ResourceName": "ModelWithRenamedArraysValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "222", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "223", - "kind": "constant", - "valueType": { - "$id": "224", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "225", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "38" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "226", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithRenamedArrays", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "227" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "228", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "229", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "230", - "Type": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "232", - "Name": "ModelWithRenamedFieldsValue", - "Description": "Operations for the ModelWithRenamedFields type.", - "Operations": [ - { - "$id": "233", - "Name": "get", - "ResourceName": "ModelWithRenamedFieldsValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "234", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "237", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "29" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "238", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "239", - "kind": "constant", - "valueType": { - "$id": "240", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithRenamedFields", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get", - "Decorators": [] - }, - { - "$id": "241", - "Name": "put", - "ResourceName": "ModelWithRenamedFieldsValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "242", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "243", - "kind": "constant", - "valueType": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "245", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "29" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "246", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithRenamedFields", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "247" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "248", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "249", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "250", - "Type": { - "$id": "251", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "252", - "Name": "ModelWithEmptyArrayValue", - "Description": "Operations for the ModelWithEmptyArray type.", - "Operations": [ - { - "$id": "253", - "Name": "get", - "ResourceName": "ModelWithEmptyArrayValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "254", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "255", - "kind": "constant", - "valueType": { - "$id": "256", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "257", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "26" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "258", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "259", - "kind": "constant", - "valueType": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithEmptyArray", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get", - "Decorators": [] - }, - { - "$id": "261", - "Name": "put", - "ResourceName": "ModelWithEmptyArrayValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "262", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "263", - "kind": "constant", - "valueType": { - "$id": "264", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "265", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "26" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "266", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithEmptyArray", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "267" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "268", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "269", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "270", - "Type": { - "$id": "271", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "272", - "Name": "ModelWithTextValue", - "Description": "Operations for the ModelWithText type.", - "Operations": [ - { - "$id": "273", - "Name": "get", - "ResourceName": "ModelWithTextValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "274", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "275", - "kind": "constant", - "valueType": { - "$id": "276", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "277", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "17" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "278", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "279", - "kind": "constant", - "valueType": { - "$id": "280", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithText", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get", - "Decorators": [] - }, - { - "$id": "281", - "Name": "put", - "ResourceName": "ModelWithTextValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "282", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "283", - "kind": "constant", - "valueType": { - "$id": "284", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "285", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "17" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "286", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithText", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "287" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "288", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "289", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "290", - "Type": { - "$id": "291", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "292", - "Name": "ModelWithDictionaryValue", - "Description": "Operations for the ModelWithDictionary type.", - "Operations": [ - { - "$id": "293", - "Name": "get", - "ResourceName": "ModelWithDictionaryValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "294", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "295", - "kind": "constant", - "valueType": { - "$id": "296", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "297", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "12" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "298", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "299", - "kind": "constant", - "valueType": { - "$id": "300", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithDictionary", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.get", - "Decorators": [] - }, - { - "$id": "301", - "Name": "put", - "ResourceName": "ModelWithDictionaryValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "302", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "303", - "kind": "constant", - "valueType": { - "$id": "304", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "305", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "12" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "306", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithDictionary", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "307" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "308", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "309", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "310", - "Type": { - "$id": "311", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - }, - { - "$id": "312", - "Name": "ModelWithEncodedNamesValue", - "Description": "Operations for the ModelWithEncodedNames type.", - "Operations": [ - { - "$id": "313", - "Name": "get", - "ResourceName": "ModelWithEncodedNamesValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "314", - "Name": "accept", - "NameInRequest": "Accept", - "Type": { - "$id": "315", - "kind": "constant", - "valueType": { - "$id": "316", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "317", - "StatusCodes": [ - 200 - ], - "BodyType": { - "$ref": "2" - }, - "BodyMediaType": "Json", - "Headers": [ - { - "$id": "318", - "Name": "contentType", - "NameInResponse": "content-type", - "Type": { - "$id": "319", - "kind": "constant", - "valueType": { - "$id": "320", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - } - } - ], - "IsErrorResponse": false, - "ContentTypes": [ - "application/xml" - ] - } - ], - "HttpMethod": "GET", - "RequestBodyMediaType": "None", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithEncodedNames", - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.get", - "Decorators": [] - }, - { - "$id": "321", - "Name": "put", - "ResourceName": "ModelWithEncodedNamesValue", - "Accessibility": "public", - "Parameters": [ - { - "$id": "322", - "Name": "contentType", - "NameInRequest": "Content-Type", - "Type": { - "$id": "323", - "kind": "constant", - "valueType": { - "$id": "324", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/xml", - "decorators": [] - }, - "Location": "Header", - "IsApiVersion": false, - "IsContentType": true, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Constant", - "Decorators": [], - "SkipUrlEncoding": false - }, - { - "$id": "325", - "Name": "input", - "NameInRequest": "input", - "Type": { - "$ref": "2" - }, - "Location": "Body", - "IsApiVersion": false, - "IsContentType": false, - "IsEndpoint": false, - "Explode": false, - "IsRequired": true, - "Kind": "Method", - "Decorators": [], - "SkipUrlEncoding": false - } - ], - "Responses": [ - { - "$id": "326", - "StatusCodes": [ - 204 - ], - "BodyMediaType": "Json", - "Headers": [], - "IsErrorResponse": false - } - ], - "HttpMethod": "PUT", - "RequestBodyMediaType": "Json", - "Uri": "{endpoint}", - "Path": "/payload/xml/modelWithEncodedNames", - "RequestMediaTypes": [ - "application/xml" - ], - "BufferResponse": true, - "GenerateProtocolMethod": true, - "GenerateConvenienceMethod": true, - "CrossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.put", - "Decorators": [] - } - ], - "Protocol": { - "$id": "327" - }, - "Parent": "XmlClient", - "Parameters": [ - { - "$id": "328", - "Name": "endpoint", - "NameInRequest": "endpoint", - "Description": "Service host", - "Type": { - "$id": "329", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "Location": "Uri", - "IsApiVersion": false, - "IsResourceParameter": false, - "IsContentType": false, - "IsRequired": true, - "IsEndpoint": true, - "SkipUrlEncoding": false, - "Explode": false, - "Kind": "Client", - "DefaultValue": { - "$id": "330", - "Type": { - "$id": "331", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "Value": "http://localhost:3000" - } - } - ], - "Decorators": [] - } - ] -}