diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.Xml.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.Xml.cs index 7fbbdfd8292..bbbaa9daa94 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.Xml.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.Xml.cs @@ -139,9 +139,31 @@ private MethodBodyStatement[] BuildXmlWriteMethodBody() ? _xmlWriterSnippet.WriteStartElement(ns.Prefix, nameHintExpression, ns.Namespace) : _xmlWriterSnippet.WriteStartElement(nameHintExpression); + // When the model has a root namespace, pre-declare property namespaces that + // differ from the root so they appear on the root element rather than inline. + var nsDeclarations = new List(); + if (ns != null) + { + var propertyNamespaces = AllCategorizedXmlProperties.Namespaces; + if (propertyNamespaces != null) + { + foreach (var kvp in propertyNamespaces) + { + if (kvp.Key != ns.Namespace) + { + nsDeclarations.Add( + _xmlWriterSnippet.WriteNamespaceDeclaration(kvp.Value.Prefix, kvp.Key)); + } + } + } + } + + var ifBody = new List { writeStartElement }; + ifBody.AddRange(nsDeclarations); + return [ - new IfStatement(nameHintNotNull) { writeStartElement }, + new IfStatement(nameHintNotNull) { ifBody.ToArray() }, MethodBodyStatement.EmptyLine, This.Invoke(XmlModelWriteCoreMethodName, _xmlWriterParameter, _serializationOptionsParameter).Terminate(), MethodBodyStatement.EmptyLine, diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Snippets/XmlWriterSnippets.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Snippets/XmlWriterSnippets.cs index 4da5f18338a..32f0e379c9f 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Snippets/XmlWriterSnippets.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Snippets/XmlWriterSnippets.cs @@ -41,6 +41,12 @@ public static MethodBodyStatement WriteValue(this ScopedApi writer, V public static MethodBodyStatement WriteAttributeString(this ScopedApi writer, string prefix, string localName, string ns, ValueExpression value) => writer.Invoke(nameof(XmlWriter.WriteAttributeString), [Literal(prefix), Literal(localName), Literal(ns), value]).Terminate(); + /// + /// Generates a namespace declaration attribute on the current element: xmlns:prefix="namespace". + /// + public static MethodBodyStatement WriteNamespaceDeclaration(this ScopedApi writer, string prefix, string ns) + => writer.Invoke(nameof(XmlWriter.WriteAttributeString), [Literal("xmlns"), Literal(prefix), Null, Literal(ns)]).Terminate(); + public static MethodBodyStatement WriteStringValue(this ScopedApi writer, ValueExpression value, string format) => ModelSerializationExtensionsSnippets.WriteStringValue(writer, value, format); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/PropertyProvider.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/PropertyProvider.cs index d6ffb0fa6ed..5902d695eae 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/PropertyProvider.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/PropertyProvider.cs @@ -101,9 +101,10 @@ private PropertyProvider(InputProperty inputProperty, CSharpType propertyType, T IsDiscriminator = IsDiscriminatorProperty(inputProperty); var hasOutputUsage = inputProperty.EnclosingType?.Usage.HasFlag(InputModelTypeUsage.Output) ?? false; Modifiers = IsDiscriminator || (!hasOutputUsage && _isRequiredNonNullableConstant) ? MethodSignatureModifiers.Internal : MethodSignatureModifiers.Public; - Name = inputProperty.Name == enclosingType.Name - ? $"{inputProperty.Name.ToIdentifierName()}Property" - : inputProperty.Name.ToIdentifierName(); + var identifierName = inputProperty.Name.ToIdentifierName(); + Name = identifierName == enclosingType.Name + ? $"{identifierName}Property" + : identifierName; Body = new AutoPropertyBody(propHasSetter, setterModifier, GetPropertyInitializationValue(propertyType, inputProperty)); WireInfo = new PropertyWireInformation(inputProperty); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/Providers/PropertyProviderTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/Providers/PropertyProviderTests.cs index a8abb739b69..cb95a6cb497 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/Providers/PropertyProviderTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/Providers/PropertyProviderTests.cs @@ -129,6 +129,17 @@ public void TestSpecialWords() Assert.AreEqual(inputPropertyName.ToIdentifierName() + "Property", property.Name); } + [Test] + public void TestPropertyNameConflictsWithTypeNameAfterPascalCase() + { + var testTypeProvider = new TestTypeProvider(name: "Filter"); + InputModelProperty inputModelProperty = InputFactory.Property("filter", InputPrimitiveType.String); + InputFactory.Model("Filter", properties: [inputModelProperty]); + + var property = new PropertyProvider(inputModelProperty, testTypeProvider); + Assert.AreEqual("FilterProperty", property.Name); + } + [Test] public void CanUpdatePropertyProvider() { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Payload/Xml/XmlTests.cs b/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Payload/Xml/XmlTests.cs index 08d127442eb..bf045267f4a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Payload/Xml/XmlTests.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Payload/Xml/XmlTests.cs @@ -398,5 +398,222 @@ public Task GetXmlErrorValue() => Test((host) => Assert.AreEqual(400, exception!.Status); return Task.CompletedTask; }); + + [SpectorTest] + public Task GetModelWithRenamedProperty() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithRenamedPropertyValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.AreEqual("foo", response.Value.Title); + Assert.AreEqual("bar", response.Value.Author); + }); + + [SpectorTest] + public Task PutModelWithRenamedProperty() => Test(async (host) => + { + var model = new ModelWithRenamedProperty("foo", "bar"); + var response = await new XmlClient(host, null).GetModelWithRenamedPropertyValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithNestedModel() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithNestedModelValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.NotNull(response.Value.Nested); + Assert.AreEqual("foo", response.Value.Nested.Name); + Assert.AreEqual(123, response.Value.Nested.Age); + }); + + [SpectorTest] + public Task PutModelWithNestedModel() => Test(async (host) => + { + var model = new ModelWithNestedModel(new SimpleModel("foo", 123)); + var response = await new XmlClient(host, null).GetModelWithNestedModelValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithRenamedNestedModel() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithRenamedNestedModelValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.NotNull(response.Value.Author); + Assert.AreEqual("foo", response.Value.Author.Name); + }); + + [SpectorTest] + public Task PutModelWithRenamedNestedModel() => Test(async (host) => + { + var model = new ModelWithRenamedNestedModel(new Author("foo")); + var response = await new XmlClient(host, null).GetModelWithRenamedNestedModelValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithWrappedPrimitiveCustomItemNames() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithWrappedPrimitiveCustomItemNamesValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.AreEqual(2, response.Value.Tags.Count); + Assert.AreEqual("fiction", response.Value.Tags[0]); + Assert.AreEqual("classic", response.Value.Tags[1]); + }); + + [SpectorTest] + public Task PutModelWithWrappedPrimitiveCustomItemNames() => Test(async (host) => + { + var model = new ModelWithWrappedPrimitiveCustomItemNames(new[] { "fiction", "classic" }); + var response = await new XmlClient(host, null).GetModelWithWrappedPrimitiveCustomItemNamesValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithUnwrappedModelArray() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithUnwrappedModelArrayValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.AreEqual(2, response.Value.Items.Count); + Assert.AreEqual("foo", response.Value.Items[0].Name); + Assert.AreEqual(123, response.Value.Items[0].Age); + Assert.AreEqual("bar", response.Value.Items[1].Name); + Assert.AreEqual(456, response.Value.Items[1].Age); + }); + + [SpectorTest] + public Task PutModelWithUnwrappedModelArray() => Test(async (host) => + { + var model = new ModelWithUnwrappedModelArray(new[] + { + new SimpleModel("foo", 123), + new SimpleModel("bar", 456) + }); + var response = await new XmlClient(host, null).GetModelWithUnwrappedModelArrayValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithRenamedWrappedModelArray() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithRenamedWrappedModelArrayValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.AreEqual(2, response.Value.Items.Count); + Assert.AreEqual("foo", response.Value.Items[0].Name); + Assert.AreEqual(123, response.Value.Items[0].Age); + Assert.AreEqual("bar", response.Value.Items[1].Name); + Assert.AreEqual(456, response.Value.Items[1].Age); + }); + + [SpectorTest] + public Task PutModelWithRenamedWrappedModelArray() => Test(async (host) => + { + var model = new ModelWithRenamedWrappedModelArray(new[] + { + new SimpleModel("foo", 123), + new SimpleModel("bar", 456) + }); + var response = await new XmlClient(host, null).GetModelWithRenamedWrappedModelArrayValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithRenamedUnwrappedModelArray() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithRenamedUnwrappedModelArrayValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.AreEqual(2, response.Value.Items.Count); + Assert.AreEqual("foo", response.Value.Items[0].Name); + Assert.AreEqual(123, response.Value.Items[0].Age); + Assert.AreEqual("bar", response.Value.Items[1].Name); + Assert.AreEqual(456, response.Value.Items[1].Age); + }); + + [SpectorTest] + public Task PutModelWithRenamedUnwrappedModelArray() => Test(async (host) => + { + var model = new ModelWithRenamedUnwrappedModelArray(new[] + { + new SimpleModel("foo", 123), + new SimpleModel("bar", 456) + }); + var response = await new XmlClient(host, null).GetModelWithRenamedUnwrappedModelArrayValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithRenamedWrappedAndItemModelArray() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithRenamedWrappedAndItemModelArrayValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.AreEqual(2, response.Value.Books.Count); + Assert.AreEqual("The Great Gatsby", response.Value.Books[0].Title); + Assert.AreEqual("Les Miserables", response.Value.Books[1].Title); + }); + + [SpectorTest] + public Task PutModelWithRenamedWrappedAndItemModelArray() => Test(async (host) => + { + var model = new ModelWithRenamedWrappedAndItemModelArray(new[] + { + new Book("The Great Gatsby"), + new Book("Les Miserables") + }); + var response = await new XmlClient(host, null).GetModelWithRenamedWrappedAndItemModelArrayValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithRenamedAttribute() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithRenamedAttributeValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.AreEqual(123, response.Value.Id); + Assert.AreEqual("The Great Gatsby", response.Value.Title); + Assert.AreEqual("F. Scott Fitzgerald", response.Value.Author); + }); + + [SpectorTest] + public Task PutModelWithRenamedAttribute() => Test(async (host) => + { + var model = new ModelWithRenamedAttribute(123, "The Great Gatsby", "F. Scott Fitzgerald"); + var response = await new XmlClient(host, null).GetModelWithRenamedAttributeValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithNamespace() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithNamespaceValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.AreEqual(123, response.Value.Id); + Assert.AreEqual("The Great Gatsby", response.Value.Title); + }); + + [SpectorTest] + public Task PutModelWithNamespace() => Test(async (host) => + { + var model = new ModelWithNamespace(123, "The Great Gatsby"); + var response = await new XmlClient(host, null).GetModelWithNamespaceValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); + + [SpectorTest] + public Task GetModelWithNamespaceOnProperties() => Test(async (host) => + { + var response = await new XmlClient(host, null).GetModelWithNamespaceOnPropertiesValueClient().GetAsync(); + Assert.AreEqual(200, response.GetRawResponse().Status); + Assert.AreEqual(123, response.Value.Id); + Assert.AreEqual("The Great Gatsby", response.Value.Title); + Assert.AreEqual("F. Scott Fitzgerald", response.Value.Author); + }); + + [SpectorTest] + public Task PutModelWithNamespaceOnProperties() => Test(async (host) => + { + var model = new ModelWithNamespaceOnProperties(123, "The Great Gatsby", "F. Scott Fitzgerald"); + var response = await new XmlClient(host, null).GetModelWithNamespaceOnPropertiesValueClient().PutAsync(model); + Assert.AreEqual(204, response.GetRawResponse().Status); + }); } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/SpecialWords/SpecialWordsTests.Models.cs b/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/SpecialWords/SpecialWordsTests.Models.cs index 1027d52e8ee..9c7cf20b7fa 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/SpecialWords/SpecialWordsTests.Models.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/SpecialWords/SpecialWordsTests.Models.cs @@ -3,6 +3,7 @@ using System.Threading.Tasks; using SpecialWords; +using SpecialWords._ExtensibleStrings; using SpecialWords._ModelProperties; using SpecialWords._Models; using SpecialWordsAssert = SpecialWords._Models.Assert; @@ -303,5 +304,13 @@ public Task ModelProperties_WithListAsync() => Test(async (host) => var response = await client.WithListAsync(body); NUnit.Framework.Assert.AreEqual(204, response.GetRawResponse().Status); }); + + [SpectorTest] + public Task ExtensibleStrings_PutExtensibleStringValueAsync() => Test(async (host) => + { + var client = new SpecialWordsClient(host, null).GetExtensibleStringsClient(); + var response = await client.PutExtensibleStringValueAsync(ExtensibleString.Class); + NUnit.Framework.Assert.AreEqual(ExtensibleString.Class, response.Value); + }); } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/Filter.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/Filter.Serialization.cs new file mode 100644 index 00000000000..a9b312823ee --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/Filter.Serialization.cs @@ -0,0 +1,36 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Text.Json; + +namespace Payload.Pageable._ServerDrivenPagination.AlternateInitialVerb +{ + public partial class Filter : IJsonModel + { + internal Filter() => throw null; + + protected virtual Filter PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + Filter IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(Filter filter) => throw null; + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null; + + Filter IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + + protected virtual Filter JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/Filter.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/Filter.cs new file mode 100644 index 00000000000..fdfc6047811 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/Filter.cs @@ -0,0 +1,13 @@ +// + +#nullable disable + +namespace Payload.Pageable._ServerDrivenPagination.AlternateInitialVerb +{ + public partial class Filter + { + public Filter(string filterProperty) => throw null; + + public string FilterProperty => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/PayloadPageableContext.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/PayloadPageableContext.cs index 14ee36f4556..347e4c01fa3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/PayloadPageableContext.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/Models/PayloadPageableContext.cs @@ -5,10 +5,12 @@ using System.ClientModel.Primitives; using Payload.Pageable._PageSize; using Payload.Pageable._ServerDrivenPagination; +using Payload.Pageable._ServerDrivenPagination.AlternateInitialVerb; using Payload.Pageable._ServerDrivenPagination.ContinuationToken; namespace Payload.Pageable { + [ModelReaderWriterBuildable(typeof(Filter))] [ModelReaderWriterBuildable(typeof(Pet))] [ModelReaderWriterBuildable(typeof(XmlPet))] public partial class PayloadPageableContext : ModelReaderWriterContext diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PayloadPageableModelFactory.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PayloadPageableModelFactory.cs index 84bdf1a3305..0b66e798a05 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PayloadPageableModelFactory.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/PayloadPageableModelFactory.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using Payload.Pageable._PageSize; using Payload.Pageable._ServerDrivenPagination; +using Payload.Pageable._ServerDrivenPagination.AlternateInitialVerb; using Payload.Pageable._ServerDrivenPagination.ContinuationToken; namespace Payload.Pageable @@ -16,5 +17,7 @@ public static partial class PayloadPageableModelFactory public static Pet Pet(string id = default, string name = default) => throw null; public static XmlPet XmlPet(string id = default, string name = default) => throw null; + + public static Filter Filter(string filterProperty = default) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/ServerDrivenPagination.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/ServerDrivenPagination.cs index b027b296309..3d0c9d66977 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/ServerDrivenPagination.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/ServerDrivenPagination.cs @@ -7,6 +7,7 @@ using System.ClientModel.Primitives; using System.Threading; using Payload.Pageable; +using Payload.Pageable._ServerDrivenPagination.AlternateInitialVerb; using Payload.Pageable._ServerDrivenPagination.ContinuationToken; namespace Payload.Pageable._ServerDrivenPagination @@ -43,6 +44,8 @@ public partial class ServerDrivenPagination public virtual AsyncCollectionResult NestedLinkAsync(CancellationToken cancellationToken = default) => throw null; + public virtual ServerDrivenPaginationAlternateInitialVerb GetServerDrivenPaginationAlternateInitialVerbClient() => throw null; + public virtual ServerDrivenPaginationContinuationToken GetServerDrivenPaginationContinuationTokenClient() => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/ServerDrivenPaginationAlternateInitialVerb.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/ServerDrivenPaginationAlternateInitialVerb.cs new file mode 100644 index 00000000000..29706308ee7 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/src/Generated/ServerDrivenPaginationAlternateInitialVerb.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using Payload.Pageable; + +namespace Payload.Pageable._ServerDrivenPagination.AlternateInitialVerb +{ + public partial class ServerDrivenPaginationAlternateInitialVerb + { + protected ServerDrivenPaginationAlternateInitialVerb() => throw null; + + internal ServerDrivenPaginationAlternateInitialVerb(ClientPipeline pipeline, Uri endpoint) => throw null; + + public ClientPipeline Pipeline => throw null; + + public virtual CollectionResult Post(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual AsyncCollectionResult PostAsync(BinaryContent content, RequestOptions options = null) => throw null; + + public virtual CollectionResult Post(Filter body, CancellationToken cancellationToken = default) => throw null; + + public virtual AsyncCollectionResult PostAsync(Filter body, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json index 12b360f531d..8295c355212 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json @@ -54,7 +54,7 @@ { "$id": "7", "kind": "constant", - "name": "requestQueryResponseBodyContentType", + "name": "postContentType", "namespace": "", "usage": "None", "valueType": { @@ -70,7 +70,7 @@ { "$id": "9", "kind": "constant", - "name": "requestHeaderResponseBodyContentType", + "name": "postContentType1", "namespace": "", "usage": "None", "valueType": { @@ -86,7 +86,7 @@ { "$id": "11", "kind": "constant", - "name": "requestQueryResponseHeaderContentType", + "name": "requestQueryResponseBodyContentType", "namespace": "", "usage": "None", "valueType": { @@ -102,7 +102,7 @@ { "$id": "13", "kind": "constant", - "name": "requestHeaderResponseHeaderContentType", + "name": "requestHeaderResponseBodyContentType", "namespace": "", "usage": "None", "valueType": { @@ -118,7 +118,7 @@ { "$id": "15", "kind": "constant", - "name": "requestQueryNestedResponseBodyContentType", + "name": "requestQueryResponseHeaderContentType", "namespace": "", "usage": "None", "valueType": { @@ -134,7 +134,7 @@ { "$id": "17", "kind": "constant", - "name": "requestHeaderNestedResponseBodyContentType", + "name": "requestHeaderResponseHeaderContentType", "namespace": "", "usage": "None", "valueType": { @@ -150,7 +150,7 @@ { "$id": "19", "kind": "constant", - "name": "listWithoutContinuationContentType", + "name": "requestQueryNestedResponseBodyContentType", "namespace": "", "usage": "None", "valueType": { @@ -166,7 +166,7 @@ { "$id": "21", "kind": "constant", - "name": "listWithPageSizeContentType", + "name": "requestHeaderNestedResponseBodyContentType", "namespace": "", "usage": "None", "valueType": { @@ -182,7 +182,7 @@ { "$id": "23", "kind": "constant", - "name": "listWithContinuationContentType", + "name": "listWithoutContinuationContentType", "namespace": "", "usage": "None", "valueType": { @@ -192,13 +192,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/xml", + "value": "application/json", "decorators": [] }, { "$id": "25", "kind": "constant", - "name": "ListWithContinuationResponseContentType", + "name": "listWithPageSizeContentType", "namespace": "", "usage": "None", "valueType": { @@ -208,13 +208,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/xml", + "value": "application/json", "decorators": [] }, { "$id": "27", "kind": "constant", - "name": "listWithNextLinkContentType", + "name": "listWithContinuationContentType", "namespace": "", "usage": "None", "valueType": { @@ -230,7 +230,7 @@ { "$id": "29", "kind": "constant", - "name": "ListWithContinuationResponseContentType1", + "name": "ListWithContinuationResponseContentType", "namespace": "", "usage": "None", "valueType": { @@ -242,11 +242,43 @@ }, "value": "application/xml", "decorators": [] + }, + { + "$id": "31", + "kind": "constant", + "name": "listWithNextLinkContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "33", + "kind": "constant", + "name": "ListWithContinuationResponseContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] } ], "models": [ { - "$id": "31", + "$id": "35", "kind": "model", "name": "LinkResponse", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -260,16 +292,16 @@ }, "properties": [ { - "$id": "32", + "$id": "36", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$id": "33", + "$id": "37", "kind": "array", "name": "ArrayPet", "valueType": { - "$id": "34", + "$id": "38", "kind": "model", "name": "Pet", "namespace": "Payload.Pageable", @@ -283,12 +315,12 @@ }, "properties": [ { - "$id": "35", + "$id": "39", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "36", + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -308,12 +340,12 @@ "isHttpMetadata": false }, { - "$id": "37", + "$id": "41", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "38", + "$id": "42", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -351,12 +383,12 @@ "isHttpMetadata": false }, { - "$id": "39", + "$id": "43", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "40", + "$id": "44", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -378,10 +410,10 @@ ] }, { - "$ref": "34" + "$ref": "38" }, { - "$id": "41", + "$id": "45", "kind": "model", "name": "LinkStringResponse", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -395,12 +427,12 @@ }, "properties": [ { - "$id": "42", + "$id": "46", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -416,12 +448,12 @@ "isHttpMetadata": false }, { - "$id": "43", + "$id": "47", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "44", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -443,7 +475,7 @@ ] }, { - "$id": "45", + "$id": "49", "kind": "model", "name": "NestedLinkResponse", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -457,12 +489,12 @@ }, "properties": [ { - "$id": "46", + "$id": "50", "kind": "property", "name": "nestedItems", "serializedName": "nestedItems", "type": { - "$id": "47", + "$id": "51", "kind": "model", "name": "NestedLinkResponseNestedItems", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -476,12 +508,12 @@ }, "properties": [ { - "$id": "48", + "$id": "52", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -512,12 +544,12 @@ "isHttpMetadata": false }, { - "$id": "49", + "$id": "53", "kind": "property", "name": "nestedNext", "serializedName": "nestedNext", "type": { - "$id": "50", + "$id": "54", "kind": "model", "name": "NestedLinkResponseNestedNext", "namespace": "Payload.Pageable.ServerDrivenPagination", @@ -531,12 +563,12 @@ }, "properties": [ { - "$id": "51", + "$id": "55", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "52", + "$id": "56", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -573,13 +605,13 @@ ] }, { - "$ref": "47" + "$ref": "51" }, { - "$ref": "50" + "$ref": "54" }, { - "$id": "53", + "$id": "57", "kind": "model", "name": "ListWithoutContinuationResponse", "namespace": "Payload.Pageable.PageSize", @@ -593,12 +625,12 @@ }, "properties": [ { - "$id": "54", + "$id": "58", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -616,7 +648,7 @@ ] }, { - "$id": "55", + "$id": "59", "kind": "model", "name": "ListWithPageSizeResponse", "namespace": "Payload.Pageable.PageSize", @@ -630,12 +662,12 @@ }, "properties": [ { - "$id": "56", + "$id": "60", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -653,7 +685,7 @@ ] }, { - "$id": "57", + "$id": "61", "kind": "model", "name": "XmlPetListResult", "namespace": "Payload.Pageable", @@ -677,16 +709,16 @@ }, "properties": [ { - "$id": "58", + "$id": "62", "kind": "property", "name": "pets", "serializedName": "Pets", "type": { - "$id": "59", + "$id": "63", "kind": "array", "name": "ArrayXmlPet", "valueType": { - "$id": "60", + "$id": "64", "kind": "model", "name": "XmlPet", "namespace": "Payload.Pageable", @@ -710,12 +742,12 @@ }, "properties": [ { - "$id": "61", + "$id": "65", "kind": "property", "name": "id", "serializedName": "Id", "type": { - "$id": "62", + "$id": "66", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -744,12 +776,12 @@ "isHttpMetadata": false }, { - "$id": "63", + "$id": "67", "kind": "property", "name": "name", "serializedName": "Name", "type": { - "$id": "64", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -806,12 +838,12 @@ "isHttpMetadata": false }, { - "$id": "65", + "$id": "69", "kind": "property", "name": "nextMarker", "serializedName": "NextMarker", "type": { - "$id": "66", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -842,10 +874,10 @@ ] }, { - "$ref": "60" + "$ref": "64" }, { - "$id": "67", + "$id": "71", "kind": "model", "name": "XmlPetListResultWithNextLink", "namespace": "Payload.Pageable", @@ -869,12 +901,12 @@ }, "properties": [ { - "$id": "68", + "$id": "72", "kind": "property", "name": "pets", "serializedName": "Pets", "type": { - "$ref": "59" + "$ref": "63" }, "optional": false, "readOnly": false, @@ -900,12 +932,12 @@ "isHttpMetadata": false }, { - "$id": "69", + "$id": "73", "kind": "property", "name": "nextLink", "serializedName": "NextLink", "type": { - "$id": "70", + "$id": "74", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -936,7 +968,110 @@ ] }, { - "$id": "71", + "$id": "75", + "kind": "model", + "name": "Filter", + "namespace": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.Filter", + "usage": "Input,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "Filter" + } + }, + "properties": [ + { + "$id": "76", + "kind": "property", + "name": "filter", + "serializedName": "filter", + "type": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.Filter.filter", + "serializationOptions": { + "json": { + "name": "filter" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "78", + "kind": "model", + "name": "PostResponse", + "namespace": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post.Response.anonymous", + "usage": "Output,Json", + "decorators": [], + "serializationOptions": { + "json": { + "name": "" + } + }, + "properties": [ + { + "$id": "79", + "kind": "property", + "name": "pets", + "serializedName": "pets", + "type": { + "$ref": "37" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post.Response.anonymous.pets", + "serializationOptions": { + "json": { + "name": "pets" + } + }, + "isHttpMetadata": false + }, + { + "$id": "80", + "kind": "property", + "name": "next", + "serializedName": "next", + "type": { + "$id": "81", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post.Response.anonymous.next", + "serializationOptions": { + "json": { + "name": "next" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "82", "kind": "model", "name": "RequestQueryResponseBodyResponse", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -950,12 +1085,12 @@ }, "properties": [ { - "$id": "72", + "$id": "83", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -971,12 +1106,12 @@ "isHttpMetadata": false }, { - "$id": "73", + "$id": "84", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "74", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -998,7 +1133,7 @@ ] }, { - "$id": "75", + "$id": "86", "kind": "model", "name": "RequestHeaderResponseBodyResponse", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -1012,12 +1147,12 @@ }, "properties": [ { - "$id": "76", + "$id": "87", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -1033,12 +1168,12 @@ "isHttpMetadata": false }, { - "$id": "77", + "$id": "88", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "78", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1060,7 +1195,7 @@ ] }, { - "$id": "79", + "$id": "90", "kind": "model", "name": "RequestQueryResponseHeaderResponse", "namespace": "", @@ -1074,12 +1209,12 @@ }, "properties": [ { - "$id": "80", + "$id": "91", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -1097,7 +1232,7 @@ ] }, { - "$id": "81", + "$id": "92", "kind": "model", "name": "RequestHeaderResponseHeaderResponse", "namespace": "", @@ -1111,12 +1246,12 @@ }, "properties": [ { - "$id": "82", + "$id": "93", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -1134,7 +1269,7 @@ ] }, { - "$id": "83", + "$id": "94", "kind": "model", "name": "RequestQueryNestedResponseBodyResponse", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -1148,12 +1283,12 @@ }, "properties": [ { - "$id": "84", + "$id": "95", "kind": "property", "name": "nestedItems", "serializedName": "nestedItems", "type": { - "$id": "85", + "$id": "96", "kind": "model", "name": "RequestQueryNestedResponseBodyResponseNestedItems", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -1167,12 +1302,12 @@ }, "properties": [ { - "$id": "86", + "$id": "97", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -1203,12 +1338,12 @@ "isHttpMetadata": false }, { - "$id": "87", + "$id": "98", "kind": "property", "name": "nestedNext", "serializedName": "nestedNext", "type": { - "$id": "88", + "$id": "99", "kind": "model", "name": "RequestQueryNestedResponseBodyResponseNestedNext", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -1222,12 +1357,12 @@ }, "properties": [ { - "$id": "89", + "$id": "100", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "90", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1264,13 +1399,13 @@ ] }, { - "$ref": "85" + "$ref": "96" }, { - "$ref": "88" + "$ref": "99" }, { - "$id": "91", + "$id": "102", "kind": "model", "name": "RequestHeaderNestedResponseBodyResponse", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -1284,12 +1419,12 @@ }, "properties": [ { - "$id": "92", + "$id": "103", "kind": "property", "name": "nestedItems", "serializedName": "nestedItems", "type": { - "$id": "93", + "$id": "104", "kind": "model", "name": "RequestHeaderNestedResponseBodyResponseNestedItems", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -1303,12 +1438,12 @@ }, "properties": [ { - "$id": "94", + "$id": "105", "kind": "property", "name": "pets", "serializedName": "pets", "type": { - "$ref": "33" + "$ref": "37" }, "optional": false, "readOnly": false, @@ -1339,12 +1474,12 @@ "isHttpMetadata": false }, { - "$id": "95", + "$id": "106", "kind": "property", "name": "nestedNext", "serializedName": "nestedNext", "type": { - "$id": "96", + "$id": "107", "kind": "model", "name": "RequestHeaderNestedResponseBodyResponseNestedNext", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", @@ -1358,12 +1493,12 @@ }, "properties": [ { - "$id": "97", + "$id": "108", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "98", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1400,15 +1535,15 @@ ] }, { - "$ref": "93" + "$ref": "104" }, { - "$ref": "96" + "$ref": "107" } ], "clients": [ { - "$id": "99", + "$id": "110", "kind": "client", "name": "PageableClient", "namespace": "Payload.Pageable", @@ -1416,13 +1551,13 @@ "methods": [], "parameters": [ { - "$id": "100", + "$id": "111", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "101", + "$id": "112", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1433,7 +1568,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "102", + "$id": "113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1452,25 +1587,25 @@ "apiVersions": [], "children": [ { - "$id": "103", + "$id": "114", "kind": "client", "name": "ServerDrivenPagination", "namespace": "Payload.Pageable.ServerDrivenPagination", "methods": [ { - "$id": "104", + "$id": "115", "kind": "paging", "name": "link", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "105", + "$id": "116", "name": "link", "resourceName": "ServerDrivenPagination", "accessibility": "public", "parameters": [ { - "$id": "106", + "$id": "117", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1486,7 +1621,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.accept", "methodParameterSegments": [ { - "$id": "107", + "$id": "118", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -1511,7 +1646,7 @@ 200 ], "bodyType": { - "$ref": "31" + "$ref": "35" }, "headers": [], "isErrorResponse": false, @@ -1532,12 +1667,12 @@ }, "parameters": [ { - "$ref": "107" + "$ref": "118" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "pets" @@ -1561,19 +1696,19 @@ } }, { - "$id": "108", + "$id": "119", "kind": "paging", "name": "linkString", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "109", + "$id": "120", "name": "linkString", "resourceName": "ServerDrivenPagination", "accessibility": "public", "parameters": [ { - "$id": "110", + "$id": "121", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1589,7 +1724,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.linkString.accept", "methodParameterSegments": [ { - "$id": "111", + "$id": "122", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -1614,7 +1749,7 @@ 200 ], "bodyType": { - "$ref": "41" + "$ref": "45" }, "headers": [], "isErrorResponse": false, @@ -1635,12 +1770,12 @@ }, "parameters": [ { - "$ref": "111" + "$ref": "122" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "pets" @@ -1664,19 +1799,19 @@ } }, { - "$id": "112", + "$id": "123", "kind": "paging", "name": "nestedLink", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "113", + "$id": "124", "name": "nestedLink", "resourceName": "ServerDrivenPagination", "accessibility": "public", "parameters": [ { - "$id": "114", + "$id": "125", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1692,7 +1827,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.nestedLink.accept", "methodParameterSegments": [ { - "$id": "115", + "$id": "126", "kind": "method", "name": "accept", "serializedName": "Accept", @@ -1717,7 +1852,7 @@ 200 ], "bodyType": { - "$ref": "45" + "$ref": "49" }, "headers": [], "isErrorResponse": false, @@ -1738,12 +1873,12 @@ }, "parameters": [ { - "$ref": "115" + "$ref": "126" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "nestedItems", @@ -1772,13 +1907,13 @@ ], "parameters": [ { - "$id": "116", + "$id": "127", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "117", + "$id": "128", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1789,7 +1924,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "118", + "$id": "129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1807,34 +1942,270 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", "apiVersions": [], "parent": { - "$ref": "99" + "$ref": "110" }, "children": [ { - "$id": "119", + "$id": "130", + "kind": "client", + "name": "AlternateInitialVerb", + "namespace": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb", + "doc": "Scenario where the initial request is not a GET request. However following the next link always result in a GET request.", + "methods": [ + { + "$id": "131", + "kind": "paging", + "name": "post", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "132", + "name": "post", + "resourceName": "AlternateInitialVerb", + "accessibility": "public", + "parameters": [ + { + "$id": "133", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post.contentType", + "methodParameterSegments": [ + { + "$id": "134", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "135", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post.accept", + "methodParameterSegments": [ + { + "$id": "136", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "137", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "75" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post.body", + "methodParameterSegments": [ + { + "$id": "138", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "75" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "78" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/link/initial-post", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post", + "decorators": [], + "namespace": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb" + }, + "parameters": [ + { + "$ref": "138" + }, + { + "$ref": "134" + }, + { + "$ref": "136" + } + ], + "response": { + "type": { + "$ref": "37" + }, + "resultSegments": [ + "pets" + ] + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.post", + "pagingMetadata": { + "itemPropertySegments": [ + "pets" + ], + "nextLink": { + "responseSegments": [ + "next" + ], + "responseLocation": "Body" + }, + "pageSizeParameterSegments": [] + } + } + ], + "parameters": [ + { + "$id": "139", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "140", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.AlternateInitialVerb", + "apiVersions": [], + "parent": { + "$ref": "114" + }, + "isMultiServiceClient": false + }, + { + "$id": "142", "kind": "client", "name": "ContinuationToken", "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", "methods": [ { - "$id": "120", + "$id": "143", "kind": "paging", "name": "requestQueryResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "121", + "$id": "144", "name": "requestQueryResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "122", + "$id": "145", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "123", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1849,12 +2220,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "124", + "$id": "147", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "125", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1872,12 +2243,12 @@ ] }, { - "$id": "126", + "$id": "149", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "127", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1892,12 +2263,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.foo", "methodParameterSegments": [ { - "$id": "128", + "$id": "151", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "129", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1915,12 +2286,12 @@ ] }, { - "$id": "130", + "$id": "153", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "131", + "$id": "154", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1935,12 +2306,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "132", + "$id": "155", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "133", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1958,12 +2329,12 @@ ] }, { - "$id": "134", + "$id": "157", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "11" }, "isApiVersion": false, "optional": false, @@ -1974,12 +2345,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.accept", "methodParameterSegments": [ { - "$id": "135", + "$id": "158", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -1999,7 +2370,7 @@ 200 ], "bodyType": { - "$ref": "71" + "$ref": "82" }, "headers": [], "isErrorResponse": false, @@ -2020,21 +2391,21 @@ }, "parameters": [ { - "$ref": "124" + "$ref": "147" }, { - "$ref": "128" + "$ref": "151" }, { - "$ref": "132" + "$ref": "155" }, { - "$ref": "135" + "$ref": "158" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "pets" @@ -2050,7 +2421,7 @@ ], "continuationToken": { "parameter": { - "$ref": "122" + "$ref": "145" }, "responseSegments": [ "nextToken" @@ -2061,24 +2432,24 @@ } }, { - "$id": "136", + "$id": "159", "kind": "paging", "name": "requestHeaderResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "137", + "$id": "160", "name": "requestHeaderResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "138", + "$id": "161", "kind": "header", "name": "token", "serializedName": "token", "type": { - "$id": "139", + "$id": "162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2093,12 +2464,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.token", "methodParameterSegments": [ { - "$id": "140", + "$id": "163", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "141", + "$id": "164", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2116,12 +2487,12 @@ ] }, { - "$id": "142", + "$id": "165", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "143", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2136,12 +2507,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.foo", "methodParameterSegments": [ { - "$id": "144", + "$id": "167", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "145", + "$id": "168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2159,12 +2530,12 @@ ] }, { - "$id": "146", + "$id": "169", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "147", + "$id": "170", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2179,12 +2550,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "148", + "$id": "171", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "149", + "$id": "172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2202,12 +2573,12 @@ ] }, { - "$id": "150", + "$id": "173", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "13" }, "isApiVersion": false, "optional": false, @@ -2218,12 +2589,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.accept", "methodParameterSegments": [ { - "$id": "151", + "$id": "174", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -2243,7 +2614,7 @@ 200 ], "bodyType": { - "$ref": "75" + "$ref": "86" }, "headers": [], "isErrorResponse": false, @@ -2264,21 +2635,21 @@ }, "parameters": [ { - "$ref": "140" + "$ref": "163" }, { - "$ref": "144" + "$ref": "167" }, { - "$ref": "148" + "$ref": "171" }, { - "$ref": "151" + "$ref": "174" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "pets" @@ -2294,7 +2665,7 @@ ], "continuationToken": { "parameter": { - "$ref": "138" + "$ref": "161" }, "responseSegments": [ "nextToken" @@ -2305,24 +2676,24 @@ } }, { - "$id": "152", + "$id": "175", "kind": "paging", "name": "requestQueryResponseHeader", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "153", + "$id": "176", "name": "requestQueryResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "154", + "$id": "177", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "155", + "$id": "178", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2337,12 +2708,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "156", + "$id": "179", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "157", + "$id": "180", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2360,12 +2731,12 @@ ] }, { - "$id": "158", + "$id": "181", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "159", + "$id": "182", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2380,12 +2751,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.foo", "methodParameterSegments": [ { - "$id": "160", + "$id": "183", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "161", + "$id": "184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2403,12 +2774,12 @@ ] }, { - "$id": "162", + "$id": "185", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "163", + "$id": "186", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2423,12 +2794,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "164", + "$id": "187", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "165", + "$id": "188", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2446,12 +2817,12 @@ ] }, { - "$id": "166", + "$id": "189", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "15" }, "isApiVersion": false, "optional": false, @@ -2462,12 +2833,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.accept", "methodParameterSegments": [ { - "$id": "167", + "$id": "190", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -2487,14 +2858,14 @@ 200 ], "bodyType": { - "$ref": "79" + "$ref": "90" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "168", + "$id": "191", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2520,21 +2891,21 @@ }, "parameters": [ { - "$ref": "156" + "$ref": "179" }, { - "$ref": "160" + "$ref": "183" }, { - "$ref": "164" + "$ref": "187" }, { - "$ref": "167" + "$ref": "190" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "pets" @@ -2550,7 +2921,7 @@ ], "continuationToken": { "parameter": { - "$ref": "154" + "$ref": "177" }, "responseSegments": [ "next-token" @@ -2561,24 +2932,24 @@ } }, { - "$id": "169", + "$id": "192", "kind": "paging", "name": "requestHeaderResponseHeader", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "170", + "$id": "193", "name": "requestHeaderResponseHeader", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "171", + "$id": "194", "kind": "header", "name": "token", "serializedName": "token", "type": { - "$id": "172", + "$id": "195", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2593,12 +2964,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.token", "methodParameterSegments": [ { - "$id": "173", + "$id": "196", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "174", + "$id": "197", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2616,12 +2987,12 @@ ] }, { - "$id": "175", + "$id": "198", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "176", + "$id": "199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2636,12 +3007,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.foo", "methodParameterSegments": [ { - "$id": "177", + "$id": "200", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "178", + "$id": "201", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2659,12 +3030,12 @@ ] }, { - "$id": "179", + "$id": "202", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "180", + "$id": "203", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2679,12 +3050,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "181", + "$id": "204", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "182", + "$id": "205", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2702,12 +3073,12 @@ ] }, { - "$id": "183", + "$id": "206", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "13" + "$ref": "17" }, "isApiVersion": false, "optional": false, @@ -2718,12 +3089,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.accept", "methodParameterSegments": [ { - "$id": "184", + "$id": "207", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "13" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -2743,14 +3114,14 @@ 200 ], "bodyType": { - "$ref": "81" + "$ref": "92" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "185", + "$id": "208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2776,21 +3147,21 @@ }, "parameters": [ { - "$ref": "173" + "$ref": "196" }, { - "$ref": "177" + "$ref": "200" }, { - "$ref": "181" + "$ref": "204" }, { - "$ref": "184" + "$ref": "207" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "pets" @@ -2806,7 +3177,7 @@ ], "continuationToken": { "parameter": { - "$ref": "171" + "$ref": "194" }, "responseSegments": [ "next-token" @@ -2817,24 +3188,24 @@ } }, { - "$id": "186", + "$id": "209", "kind": "paging", "name": "requestQueryNestedResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "187", + "$id": "210", "name": "requestQueryNestedResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "188", + "$id": "211", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "189", + "$id": "212", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2849,12 +3220,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "190", + "$id": "213", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "191", + "$id": "214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2872,12 +3243,12 @@ ] }, { - "$id": "192", + "$id": "215", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "193", + "$id": "216", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2892,12 +3263,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.foo", "methodParameterSegments": [ { - "$id": "194", + "$id": "217", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "195", + "$id": "218", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2915,12 +3286,12 @@ ] }, { - "$id": "196", + "$id": "219", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "197", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2935,12 +3306,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "198", + "$id": "221", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "199", + "$id": "222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2958,12 +3329,12 @@ ] }, { - "$id": "200", + "$id": "223", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "19" }, "isApiVersion": false, "optional": false, @@ -2974,12 +3345,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.accept", "methodParameterSegments": [ { - "$id": "201", + "$id": "224", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -2999,7 +3370,7 @@ 200 ], "bodyType": { - "$ref": "83" + "$ref": "94" }, "headers": [], "isErrorResponse": false, @@ -3020,21 +3391,21 @@ }, "parameters": [ { - "$ref": "190" + "$ref": "213" }, { - "$ref": "194" + "$ref": "217" }, { - "$ref": "198" + "$ref": "221" }, { - "$ref": "201" + "$ref": "224" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "nestedItems", @@ -3052,7 +3423,7 @@ ], "continuationToken": { "parameter": { - "$ref": "188" + "$ref": "211" }, "responseSegments": [ "nestedNext", @@ -3064,24 +3435,24 @@ } }, { - "$id": "202", + "$id": "225", "kind": "paging", "name": "requestHeaderNestedResponseBody", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "203", + "$id": "226", "name": "requestHeaderNestedResponseBody", "resourceName": "ContinuationToken", "accessibility": "public", "parameters": [ { - "$id": "204", + "$id": "227", "kind": "header", "name": "token", "serializedName": "token", "type": { - "$id": "205", + "$id": "228", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3096,12 +3467,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.token", "methodParameterSegments": [ { - "$id": "206", + "$id": "229", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "207", + "$id": "230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3119,12 +3490,12 @@ ] }, { - "$id": "208", + "$id": "231", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "209", + "$id": "232", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3139,12 +3510,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.foo", "methodParameterSegments": [ { - "$id": "210", + "$id": "233", "kind": "method", "name": "foo", "serializedName": "foo", "type": { - "$id": "211", + "$id": "234", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3162,12 +3533,12 @@ ] }, { - "$id": "212", + "$id": "235", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "213", + "$id": "236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3182,12 +3553,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "214", + "$id": "237", "kind": "method", "name": "bar", "serializedName": "bar", "type": { - "$id": "215", + "$id": "238", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3205,12 +3576,12 @@ ] }, { - "$id": "216", + "$id": "239", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "21" }, "isApiVersion": false, "optional": false, @@ -3221,12 +3592,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.accept", "methodParameterSegments": [ { - "$id": "217", + "$id": "240", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -3246,7 +3617,7 @@ 200 ], "bodyType": { - "$ref": "91" + "$ref": "102" }, "headers": [], "isErrorResponse": false, @@ -3267,21 +3638,21 @@ }, "parameters": [ { - "$ref": "206" + "$ref": "229" }, { - "$ref": "210" + "$ref": "233" }, { - "$ref": "214" + "$ref": "237" }, { - "$ref": "217" + "$ref": "240" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "nestedItems", @@ -3299,7 +3670,7 @@ ], "continuationToken": { "parameter": { - "$ref": "204" + "$ref": "227" }, "responseSegments": [ "nestedNext", @@ -3313,13 +3684,13 @@ ], "parameters": [ { - "$id": "218", + "$id": "241", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "219", + "$id": "242", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3330,7 +3701,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "220", + "$id": "243", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3348,7 +3719,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", "apiVersions": [], "parent": { - "$ref": "103" + "$ref": "114" }, "isMultiServiceClient": false } @@ -3356,30 +3727,30 @@ "isMultiServiceClient": false }, { - "$id": "221", + "$id": "244", "kind": "client", "name": "PageSize", "namespace": "Payload.Pageable.PageSize", "methods": [ { - "$id": "222", + "$id": "245", "kind": "paging", "name": "listWithoutContinuation", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "223", + "$id": "246", "name": "listWithoutContinuation", "resourceName": "PageSize", "accessibility": "public", "parameters": [ { - "$id": "224", + "$id": "247", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "23" }, "isApiVersion": false, "optional": false, @@ -3390,12 +3761,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithoutContinuation.accept", "methodParameterSegments": [ { - "$id": "225", + "$id": "248", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -3415,7 +3786,7 @@ 200 ], "bodyType": { - "$ref": "53" + "$ref": "57" }, "headers": [], "isErrorResponse": false, @@ -3436,12 +3807,12 @@ }, "parameters": [ { - "$ref": "225" + "$ref": "248" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "pets" @@ -3459,24 +3830,24 @@ } }, { - "$id": "226", + "$id": "249", "kind": "paging", "name": "listWithPageSize", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "227", + "$id": "250", "name": "listWithPageSize", "resourceName": "PageSize", "accessibility": "public", "parameters": [ { - "$id": "228", + "$id": "251", "kind": "query", "name": "pageSize", "serializedName": "pageSize", "type": { - "$id": "229", + "$id": "252", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3491,12 +3862,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "230", + "$id": "253", "kind": "method", "name": "pageSize", "serializedName": "pageSize", "type": { - "$id": "231", + "$id": "254", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3514,12 +3885,12 @@ ] }, { - "$id": "232", + "$id": "255", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "25" }, "isApiVersion": false, "optional": false, @@ -3530,12 +3901,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithPageSize.accept", "methodParameterSegments": [ { - "$id": "233", + "$id": "256", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -3555,7 +3926,7 @@ 200 ], "bodyType": { - "$ref": "55" + "$ref": "59" }, "headers": [], "isErrorResponse": false, @@ -3576,15 +3947,15 @@ }, "parameters": [ { - "$ref": "230" + "$ref": "253" }, { - "$ref": "233" + "$ref": "256" } ], "response": { "type": { - "$ref": "33" + "$ref": "37" }, "resultSegments": [ "pets" @@ -3606,13 +3977,13 @@ ], "parameters": [ { - "$id": "234", + "$id": "257", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "235", + "$id": "258", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3623,7 +3994,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "236", + "$id": "259", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3641,35 +4012,35 @@ "crossLanguageDefinitionId": "Payload.Pageable.PageSize", "apiVersions": [], "parent": { - "$ref": "99" + "$ref": "110" }, "isMultiServiceClient": false }, { - "$id": "237", + "$id": "260", "kind": "client", "name": "XmlPagination", "namespace": "Payload.Pageable.XmlPagination", "methods": [ { - "$id": "238", + "$id": "261", "kind": "paging", "name": "listWithContinuation", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "239", + "$id": "262", "name": "listWithContinuation", "resourceName": "XmlPagination", "accessibility": "public", "parameters": [ { - "$id": "240", + "$id": "263", "kind": "query", "name": "marker", "serializedName": "marker", "type": { - "$id": "241", + "$id": "264", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3684,12 +4055,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "242", + "$id": "265", "kind": "method", "name": "marker", "serializedName": "marker", "type": { - "$id": "243", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3707,12 +4078,12 @@ ] }, { - "$id": "244", + "$id": "267", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "27" }, "isApiVersion": false, "optional": false, @@ -3723,12 +4094,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithContinuation.accept", "methodParameterSegments": [ { - "$id": "245", + "$id": "268", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -3748,14 +4119,14 @@ 200 ], "bodyType": { - "$ref": "57" + "$ref": "61" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "25" + "$ref": "29" } } ], @@ -3777,15 +4148,15 @@ }, "parameters": [ { - "$ref": "242" + "$ref": "265" }, { - "$ref": "245" + "$ref": "268" } ], "response": { "type": { - "$ref": "59" + "$ref": "63" }, "resultSegments": [ "Pets" @@ -3801,7 +4172,7 @@ ], "continuationToken": { "parameter": { - "$ref": "240" + "$ref": "263" }, "responseSegments": [ "NextMarker" @@ -3812,24 +4183,24 @@ } }, { - "$id": "246", + "$id": "269", "kind": "paging", "name": "listWithNextLink", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "247", + "$id": "270", "name": "listWithNextLink", "resourceName": "XmlPagination", "accessibility": "public", "parameters": [ { - "$id": "248", + "$id": "271", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "31" }, "isApiVersion": false, "optional": false, @@ -3840,12 +4211,12 @@ "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination.listWithNextLink.accept", "methodParameterSegments": [ { - "$id": "249", + "$id": "272", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -3865,14 +4236,14 @@ 200 ], "bodyType": { - "$ref": "67" + "$ref": "71" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "29" + "$ref": "33" } } ], @@ -3894,12 +4265,12 @@ }, "parameters": [ { - "$ref": "249" + "$ref": "272" } ], "response": { "type": { - "$ref": "59" + "$ref": "63" }, "resultSegments": [ "Pets" @@ -3925,13 +4296,13 @@ ], "parameters": [ { - "$id": "250", + "$id": "273", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "251", + "$id": "274", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3942,7 +4313,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "252", + "$id": "275", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3960,7 +4331,7 @@ "crossLanguageDefinitionId": "Payload.Pageable.XmlPagination", "apiVersions": [], "parent": { - "$ref": "99" + "$ref": "110" }, "isMultiServiceClient": false } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithNamespaceOnPropertiesValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithNamespaceOnPropertiesValue.cs new file mode 100644 index 00000000000..879ead4fe76 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithNamespaceOnPropertiesValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithNamespaceOnPropertiesValue + { + protected ModelWithNamespaceOnPropertiesValue() => throw null; + + internal ModelWithNamespaceOnPropertiesValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithNamespaceOnProperties input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithNamespaceOnProperties input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithNamespaceValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithNamespaceValue.cs new file mode 100644 index 00000000000..d643648ed49 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithNamespaceValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithNamespaceValue + { + protected ModelWithNamespaceValue() => throw null; + + internal ModelWithNamespaceValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithNamespace input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithNamespace input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithNestedModelValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithNestedModelValue.cs new file mode 100644 index 00000000000..d41a92de547 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithNestedModelValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithNestedModelValue + { + protected ModelWithNestedModelValue() => throw null; + + internal ModelWithNestedModelValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithNestedModel input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithNestedModel input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedAttributeValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedAttributeValue.cs new file mode 100644 index 00000000000..3b8eb46d813 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedAttributeValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedAttributeValue + { + protected ModelWithRenamedAttributeValue() => throw null; + + internal ModelWithRenamedAttributeValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithRenamedAttribute input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithRenamedAttribute input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedNestedModelValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedNestedModelValue.cs new file mode 100644 index 00000000000..664f8f440cf --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedNestedModelValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedNestedModelValue + { + protected ModelWithRenamedNestedModelValue() => throw null; + + internal ModelWithRenamedNestedModelValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithRenamedNestedModel input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithRenamedNestedModel input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedPropertyValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedPropertyValue.cs new file mode 100644 index 00000000000..365d16e26d8 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedPropertyValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedPropertyValue + { + protected ModelWithRenamedPropertyValue() => throw null; + + internal ModelWithRenamedPropertyValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithRenamedProperty input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithRenamedProperty input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedUnwrappedModelArrayValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedUnwrappedModelArrayValue.cs new file mode 100644 index 00000000000..28d556f7ca6 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedUnwrappedModelArrayValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedUnwrappedModelArrayValue + { + protected ModelWithRenamedUnwrappedModelArrayValue() => throw null; + + internal ModelWithRenamedUnwrappedModelArrayValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithRenamedUnwrappedModelArray input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithRenamedUnwrappedModelArray input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedWrappedAndItemModelArrayValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedWrappedAndItemModelArrayValue.cs new file mode 100644 index 00000000000..5115f8cdb99 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedWrappedAndItemModelArrayValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedWrappedAndItemModelArrayValue + { + protected ModelWithRenamedWrappedAndItemModelArrayValue() => throw null; + + internal ModelWithRenamedWrappedAndItemModelArrayValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithRenamedWrappedAndItemModelArray input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithRenamedWrappedAndItemModelArray input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedWrappedModelArrayValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedWrappedModelArrayValue.cs new file mode 100644 index 00000000000..63eeecf6fc5 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithRenamedWrappedModelArrayValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedWrappedModelArrayValue + { + protected ModelWithRenamedWrappedModelArrayValue() => throw null; + + internal ModelWithRenamedWrappedModelArrayValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithRenamedWrappedModelArray input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithRenamedWrappedModelArray input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithUnwrappedModelArrayValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithUnwrappedModelArrayValue.cs new file mode 100644 index 00000000000..6de34a4cfd2 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithUnwrappedModelArrayValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithUnwrappedModelArrayValue + { + protected ModelWithUnwrappedModelArrayValue() => throw null; + + internal ModelWithUnwrappedModelArrayValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithUnwrappedModelArray input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithUnwrappedModelArray input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithWrappedPrimitiveCustomItemNamesValue.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithWrappedPrimitiveCustomItemNamesValue.cs new file mode 100644 index 00000000000..324e75cf8ef --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/ModelWithWrappedPrimitiveCustomItemNamesValue.cs @@ -0,0 +1,37 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; +using System.Threading; +using System.Threading.Tasks; + +namespace Payload.Xml +{ + public partial class ModelWithWrappedPrimitiveCustomItemNamesValue + { + protected ModelWithWrappedPrimitiveCustomItemNamesValue() => throw null; + + internal ModelWithWrappedPrimitiveCustomItemNamesValue(ClientPipeline pipeline, Uri endpoint) => 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(CancellationToken cancellationToken = default) => 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(ModelWithWrappedPrimitiveCustomItemNames input, CancellationToken cancellationToken = default) => throw null; + + public virtual Task PutAsync(ModelWithWrappedPrimitiveCustomItemNames input, CancellationToken cancellationToken = default) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Author.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Author.Serialization.cs new file mode 100644 index 00000000000..259dd9a06b9 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Author.Serialization.cs @@ -0,0 +1,24 @@ +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class Author : IPersistableModel + { + internal Author() => throw null; + + protected virtual Author PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + Author IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Author.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Author.cs new file mode 100644 index 00000000000..b0fa288fa0e --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Author.cs @@ -0,0 +1,17 @@ +// + +#nullable disable + +namespace Payload.Xml +{ + public partial class Author + { + public Author(string name) => throw null; + + public string Name + { + get => throw null; + set => throw null; + } + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Book.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Book.Serialization.cs new file mode 100644 index 00000000000..63764dad022 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Book.Serialization.cs @@ -0,0 +1,24 @@ +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class Book : IPersistableModel + { + internal Book() => throw null; + + protected virtual Book PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + Book IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Book.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Book.cs new file mode 100644 index 00000000000..e78000e4799 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/Book.cs @@ -0,0 +1,17 @@ +// + +#nullable disable + +namespace Payload.Xml +{ + public partial class Book + { + public Book(string title) => throw null; + + public string Title + { + get => throw null; + set => throw null; + } + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespace.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespace.Serialization.cs new file mode 100644 index 00000000000..2868683e87a --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespace.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithNamespace : IPersistableModel + { + internal ModelWithNamespace() => throw null; + + protected virtual ModelWithNamespace PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithNamespace IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithNamespace modelWithNamespace) => throw null; + + public static explicit operator ModelWithNamespace(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespace.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespace.cs new file mode 100644 index 00000000000..c366b528de0 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespace.cs @@ -0,0 +1,23 @@ +// + +#nullable disable + +namespace Payload.Xml +{ + public partial class ModelWithNamespace + { + public ModelWithNamespace(int id, string title) => throw null; + + public int Id + { + get => throw null; + set => throw null; + } + + public string Title + { + get => throw null; + set => throw null; + } + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespaceOnProperties.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespaceOnProperties.Serialization.cs new file mode 100644 index 00000000000..07073e90e6a --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespaceOnProperties.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithNamespaceOnProperties : IPersistableModel + { + internal ModelWithNamespaceOnProperties() => throw null; + + protected virtual ModelWithNamespaceOnProperties PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithNamespaceOnProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithNamespaceOnProperties modelWithNamespaceOnProperties) => throw null; + + public static explicit operator ModelWithNamespaceOnProperties(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespaceOnProperties.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespaceOnProperties.cs new file mode 100644 index 00000000000..d9798be6862 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNamespaceOnProperties.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +namespace Payload.Xml +{ + public partial class ModelWithNamespaceOnProperties + { + public ModelWithNamespaceOnProperties(int id, string title, string author) => throw null; + + public int Id + { + get => throw null; + set => throw null; + } + + public string Title + { + get => throw null; + set => throw null; + } + + public string Author + { + get => throw null; + set => throw null; + } + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNestedModel.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNestedModel.Serialization.cs new file mode 100644 index 00000000000..ca33900b650 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNestedModel.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithNestedModel : IPersistableModel + { + internal ModelWithNestedModel() => throw null; + + protected virtual ModelWithNestedModel PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithNestedModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithNestedModel modelWithNestedModel) => throw null; + + public static explicit operator ModelWithNestedModel(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNestedModel.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNestedModel.cs new file mode 100644 index 00000000000..0e3c4723525 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithNestedModel.cs @@ -0,0 +1,17 @@ +// + +#nullable disable + +namespace Payload.Xml +{ + public partial class ModelWithNestedModel + { + public ModelWithNestedModel(SimpleModel nested) => throw null; + + public SimpleModel Nested + { + get => throw null; + set => throw null; + } + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedAttribute.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedAttribute.Serialization.cs new file mode 100644 index 00000000000..ed5e2b18e4f --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedAttribute.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedAttribute : IPersistableModel + { + internal ModelWithRenamedAttribute() => throw null; + + protected virtual ModelWithRenamedAttribute PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithRenamedAttribute IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithRenamedAttribute modelWithRenamedAttribute) => throw null; + + public static explicit operator ModelWithRenamedAttribute(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedAttribute.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedAttribute.cs new file mode 100644 index 00000000000..ebf468e413d --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedAttribute.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +namespace Payload.Xml +{ + public partial class ModelWithRenamedAttribute + { + public ModelWithRenamedAttribute(int id, string title, string author) => throw null; + + public int Id + { + get => throw null; + set => throw null; + } + + public string Title + { + get => throw null; + set => throw null; + } + + public string Author + { + get => throw null; + set => throw null; + } + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedNestedModel.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedNestedModel.Serialization.cs new file mode 100644 index 00000000000..bcf2e97bc59 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedNestedModel.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedNestedModel : IPersistableModel + { + internal ModelWithRenamedNestedModel() => throw null; + + protected virtual ModelWithRenamedNestedModel PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithRenamedNestedModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithRenamedNestedModel modelWithRenamedNestedModel) => throw null; + + public static explicit operator ModelWithRenamedNestedModel(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedNestedModel.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedNestedModel.cs new file mode 100644 index 00000000000..4cb880d2bb0 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedNestedModel.cs @@ -0,0 +1,17 @@ +// + +#nullable disable + +namespace Payload.Xml +{ + public partial class ModelWithRenamedNestedModel + { + public ModelWithRenamedNestedModel(Author author) => throw null; + + public Author Author + { + get => throw null; + set => throw null; + } + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedProperty.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedProperty.Serialization.cs new file mode 100644 index 00000000000..e01f7a9482e --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedProperty.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedProperty : IPersistableModel + { + internal ModelWithRenamedProperty() => throw null; + + protected virtual ModelWithRenamedProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithRenamedProperty IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithRenamedProperty modelWithRenamedProperty) => throw null; + + public static explicit operator ModelWithRenamedProperty(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedProperty.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedProperty.cs new file mode 100644 index 00000000000..f26cd56e51c --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedProperty.cs @@ -0,0 +1,23 @@ +// + +#nullable disable + +namespace Payload.Xml +{ + public partial class ModelWithRenamedProperty + { + public ModelWithRenamedProperty(string title, string author) => throw null; + + public string Title + { + get => throw null; + set => throw null; + } + + public string Author + { + get => throw null; + set => throw null; + } + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedUnwrappedModelArray.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedUnwrappedModelArray.Serialization.cs new file mode 100644 index 00000000000..f7936acf90a --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedUnwrappedModelArray.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedUnwrappedModelArray : IPersistableModel + { + internal ModelWithRenamedUnwrappedModelArray() => throw null; + + protected virtual ModelWithRenamedUnwrappedModelArray PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithRenamedUnwrappedModelArray IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithRenamedUnwrappedModelArray modelWithRenamedUnwrappedModelArray) => throw null; + + public static explicit operator ModelWithRenamedUnwrappedModelArray(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedUnwrappedModelArray.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedUnwrappedModelArray.cs new file mode 100644 index 00000000000..15653a1f1c6 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedUnwrappedModelArray.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedUnwrappedModelArray + { + public ModelWithRenamedUnwrappedModelArray(IEnumerable items) => throw null; + + public IList Items => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedAndItemModelArray.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedAndItemModelArray.Serialization.cs new file mode 100644 index 00000000000..91e5fb31b10 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedAndItemModelArray.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedWrappedAndItemModelArray : IPersistableModel + { + internal ModelWithRenamedWrappedAndItemModelArray() => throw null; + + protected virtual ModelWithRenamedWrappedAndItemModelArray PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithRenamedWrappedAndItemModelArray IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithRenamedWrappedAndItemModelArray modelWithRenamedWrappedAndItemModelArray) => throw null; + + public static explicit operator ModelWithRenamedWrappedAndItemModelArray(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedAndItemModelArray.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedAndItemModelArray.cs new file mode 100644 index 00000000000..d0cffdcb68e --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedAndItemModelArray.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedWrappedAndItemModelArray + { + public ModelWithRenamedWrappedAndItemModelArray(IEnumerable books) => throw null; + + public IList Books => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedModelArray.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedModelArray.Serialization.cs new file mode 100644 index 00000000000..69135a16420 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedModelArray.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedWrappedModelArray : IPersistableModel + { + internal ModelWithRenamedWrappedModelArray() => throw null; + + protected virtual ModelWithRenamedWrappedModelArray PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithRenamedWrappedModelArray IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithRenamedWrappedModelArray modelWithRenamedWrappedModelArray) => throw null; + + public static explicit operator ModelWithRenamedWrappedModelArray(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedModelArray.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedModelArray.cs new file mode 100644 index 00000000000..d882d0cd027 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithRenamedWrappedModelArray.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Payload.Xml +{ + public partial class ModelWithRenamedWrappedModelArray + { + public ModelWithRenamedWrappedModelArray(IEnumerable items) => throw null; + + public IList Items => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithUnwrappedModelArray.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithUnwrappedModelArray.Serialization.cs new file mode 100644 index 00000000000..97e092bf180 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithUnwrappedModelArray.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithUnwrappedModelArray : IPersistableModel + { + internal ModelWithUnwrappedModelArray() => throw null; + + protected virtual ModelWithUnwrappedModelArray PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithUnwrappedModelArray IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithUnwrappedModelArray modelWithUnwrappedModelArray) => throw null; + + public static explicit operator ModelWithUnwrappedModelArray(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithUnwrappedModelArray.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithUnwrappedModelArray.cs new file mode 100644 index 00000000000..50fcbe6ed4f --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithUnwrappedModelArray.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Payload.Xml +{ + public partial class ModelWithUnwrappedModelArray + { + public ModelWithUnwrappedModelArray(IEnumerable items) => throw null; + + public IList Items => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithWrappedPrimitiveCustomItemNames.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithWrappedPrimitiveCustomItemNames.Serialization.cs new file mode 100644 index 00000000000..9a050e120fe --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithWrappedPrimitiveCustomItemNames.Serialization.cs @@ -0,0 +1,29 @@ +// + +#nullable disable + +using System; +using System.ClientModel; +using System.ClientModel.Primitives; + +namespace Payload.Xml +{ + public partial class ModelWithWrappedPrimitiveCustomItemNames : IPersistableModel + { + internal ModelWithWrappedPrimitiveCustomItemNames() => throw null; + + protected virtual ModelWithWrappedPrimitiveCustomItemNames PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null; + + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null; + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null; + + ModelWithWrappedPrimitiveCustomItemNames IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null; + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null; + + public static implicit operator BinaryContent(ModelWithWrappedPrimitiveCustomItemNames modelWithWrappedPrimitiveCustomItemNames) => throw null; + + public static explicit operator ModelWithWrappedPrimitiveCustomItemNames(ClientResult result) => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithWrappedPrimitiveCustomItemNames.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithWrappedPrimitiveCustomItemNames.cs new file mode 100644 index 00000000000..4c17ff45b9f --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/ModelWithWrappedPrimitiveCustomItemNames.cs @@ -0,0 +1,15 @@ +// + +#nullable disable + +using System.Collections.Generic; + +namespace Payload.Xml +{ + public partial class ModelWithWrappedPrimitiveCustomItemNames + { + public ModelWithWrappedPrimitiveCustomItemNames(IEnumerable tags) => throw null; + + public IList Tags => throw null; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/PayloadXmlContext.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/PayloadXmlContext.cs index f3fee1c9c23..7c86a43f73b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/PayloadXmlContext.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/Models/PayloadXmlContext.cs @@ -6,6 +6,8 @@ namespace Payload.Xml { + [ModelReaderWriterBuildable(typeof(Author))] + [ModelReaderWriterBuildable(typeof(Book))] [ModelReaderWriterBuildable(typeof(ModelWithArrayOfModel))] [ModelReaderWriterBuildable(typeof(ModelWithAttributes))] [ModelReaderWriterBuildable(typeof(ModelWithDatetime))] @@ -13,12 +15,23 @@ namespace Payload.Xml [ModelReaderWriterBuildable(typeof(ModelWithEmptyArray))] [ModelReaderWriterBuildable(typeof(ModelWithEncodedNames))] [ModelReaderWriterBuildable(typeof(ModelWithEnum))] + [ModelReaderWriterBuildable(typeof(ModelWithNamespace))] + [ModelReaderWriterBuildable(typeof(ModelWithNamespaceOnProperties))] + [ModelReaderWriterBuildable(typeof(ModelWithNestedModel))] [ModelReaderWriterBuildable(typeof(ModelWithOptionalField))] [ModelReaderWriterBuildable(typeof(ModelWithRenamedArrays))] + [ModelReaderWriterBuildable(typeof(ModelWithRenamedAttribute))] [ModelReaderWriterBuildable(typeof(ModelWithRenamedFields))] + [ModelReaderWriterBuildable(typeof(ModelWithRenamedNestedModel))] + [ModelReaderWriterBuildable(typeof(ModelWithRenamedProperty))] + [ModelReaderWriterBuildable(typeof(ModelWithRenamedUnwrappedModelArray))] + [ModelReaderWriterBuildable(typeof(ModelWithRenamedWrappedAndItemModelArray))] + [ModelReaderWriterBuildable(typeof(ModelWithRenamedWrappedModelArray))] [ModelReaderWriterBuildable(typeof(ModelWithSimpleArrays))] [ModelReaderWriterBuildable(typeof(ModelWithText))] [ModelReaderWriterBuildable(typeof(ModelWithUnwrappedArray))] + [ModelReaderWriterBuildable(typeof(ModelWithUnwrappedModelArray))] + [ModelReaderWriterBuildable(typeof(ModelWithWrappedPrimitiveCustomItemNames))] [ModelReaderWriterBuildable(typeof(SimpleModel))] public partial class PayloadXmlContext : ModelReaderWriterContext { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/PayloadXmlModelFactory.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/PayloadXmlModelFactory.cs index d88abd7f446..41c63322f3b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/PayloadXmlModelFactory.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/PayloadXmlModelFactory.cs @@ -11,24 +11,50 @@ public static partial class PayloadXmlModelFactory { public static SimpleModel SimpleModel(string name = default, int age = default) => throw null; - public static ModelWithSimpleArrays ModelWithSimpleArrays(IEnumerable colors = default, IEnumerable counts = default) => throw null; + public static ModelWithRenamedProperty ModelWithRenamedProperty(string title = default, string author = default) => throw null; - public static ModelWithArrayOfModel ModelWithArrayOfModel(IEnumerable items = default) => throw null; + public static ModelWithRenamedFields ModelWithRenamedFields(SimpleModel inputData = default, SimpleModel outputData = default) => throw null; - public static ModelWithOptionalField ModelWithOptionalField(string item = default, int? value = default) => throw null; + public static ModelWithNestedModel ModelWithNestedModel(SimpleModel nested = default) => throw null; - public static ModelWithAttributes ModelWithAttributes(int id1 = default, string id2 = default, bool enabled = default) => throw null; + public static ModelWithRenamedNestedModel ModelWithRenamedNestedModel(Author author = default) => throw null; + + public static Author Author(string name = default) => throw null; + + public static ModelWithSimpleArrays ModelWithSimpleArrays(IEnumerable colors = default, IEnumerable counts = default) => throw null; public static ModelWithUnwrappedArray ModelWithUnwrappedArray(IEnumerable colors = default, IEnumerable counts = default) => throw null; public static ModelWithRenamedArrays ModelWithRenamedArrays(IEnumerable colors = default, IEnumerable counts = default) => throw null; - public static ModelWithRenamedFields ModelWithRenamedFields(SimpleModel inputData = default, SimpleModel outputData = default) => throw null; + public static ModelWithWrappedPrimitiveCustomItemNames ModelWithWrappedPrimitiveCustomItemNames(IEnumerable tags = default) => throw null; - public static ModelWithEmptyArray ModelWithEmptyArray(IEnumerable items = default) => throw null; + public static ModelWithArrayOfModel ModelWithArrayOfModel(IEnumerable items = default) => throw null; + + public static ModelWithUnwrappedModelArray ModelWithUnwrappedModelArray(IEnumerable items = default) => throw null; + + public static ModelWithRenamedWrappedModelArray ModelWithRenamedWrappedModelArray(IEnumerable items = default) => throw null; + + public static ModelWithRenamedUnwrappedModelArray ModelWithRenamedUnwrappedModelArray(IEnumerable items = default) => throw null; + + public static ModelWithRenamedWrappedAndItemModelArray ModelWithRenamedWrappedAndItemModelArray(IEnumerable books = default) => throw null; + + public static Book Book(string title = default) => throw null; + + public static ModelWithAttributes ModelWithAttributes(int id1 = default, string id2 = default, bool enabled = default) => throw null; + + public static ModelWithRenamedAttribute ModelWithRenamedAttribute(int id = default, string title = default, string author = default) => throw null; + + public static ModelWithNamespace ModelWithNamespace(int id = default, string title = default) => throw null; + + public static ModelWithNamespaceOnProperties ModelWithNamespaceOnProperties(int id = default, string title = default, string author = default) => throw null; public static ModelWithText ModelWithText(string language = default, string content = default) => throw null; + public static ModelWithOptionalField ModelWithOptionalField(string item = default, int? value = default) => throw null; + + public static ModelWithEmptyArray ModelWithEmptyArray(IEnumerable items = default) => throw null; + public static ModelWithDictionary ModelWithDictionary(IDictionary metadata = default) => throw null; public static ModelWithEncodedNames ModelWithEncodedNames(SimpleModel modelData = default, IEnumerable colors = default) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlClient.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlClient.cs index 4022728cc3b..84b5a3eacf2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/src/Generated/XmlClient.cs @@ -23,24 +23,46 @@ public partial class XmlClient public virtual SimpleModelValue GetSimpleModelValueClient() => throw null; - public virtual ModelWithSimpleArraysValue GetModelWithSimpleArraysValueClient() => throw null; + public virtual ModelWithRenamedPropertyValue GetModelWithRenamedPropertyValueClient() => throw null; - public virtual ModelWithArrayOfModelValue GetModelWithArrayOfModelValueClient() => throw null; + public virtual ModelWithRenamedFieldsValue GetModelWithRenamedFieldsValueClient() => throw null; - public virtual ModelWithOptionalFieldValue GetModelWithOptionalFieldValueClient() => throw null; + public virtual ModelWithNestedModelValue GetModelWithNestedModelValueClient() => throw null; - public virtual ModelWithAttributesValue GetModelWithAttributesValueClient() => throw null; + public virtual ModelWithRenamedNestedModelValue GetModelWithRenamedNestedModelValueClient() => throw null; + + public virtual ModelWithSimpleArraysValue GetModelWithSimpleArraysValueClient() => throw null; public virtual ModelWithUnwrappedArrayValue GetModelWithUnwrappedArrayValueClient() => throw null; public virtual ModelWithRenamedArraysValue GetModelWithRenamedArraysValueClient() => throw null; - public virtual ModelWithRenamedFieldsValue GetModelWithRenamedFieldsValueClient() => throw null; + public virtual ModelWithWrappedPrimitiveCustomItemNamesValue GetModelWithWrappedPrimitiveCustomItemNamesValueClient() => throw null; - public virtual ModelWithEmptyArrayValue GetModelWithEmptyArrayValueClient() => throw null; + public virtual ModelWithArrayOfModelValue GetModelWithArrayOfModelValueClient() => throw null; + + public virtual ModelWithUnwrappedModelArrayValue GetModelWithUnwrappedModelArrayValueClient() => throw null; + + public virtual ModelWithRenamedWrappedModelArrayValue GetModelWithRenamedWrappedModelArrayValueClient() => throw null; + + public virtual ModelWithRenamedUnwrappedModelArrayValue GetModelWithRenamedUnwrappedModelArrayValueClient() => throw null; + + public virtual ModelWithRenamedWrappedAndItemModelArrayValue GetModelWithRenamedWrappedAndItemModelArrayValueClient() => throw null; + + public virtual ModelWithAttributesValue GetModelWithAttributesValueClient() => throw null; + + public virtual ModelWithRenamedAttributeValue GetModelWithRenamedAttributeValueClient() => throw null; + + public virtual ModelWithNamespaceValue GetModelWithNamespaceValueClient() => throw null; + + public virtual ModelWithNamespaceOnPropertiesValue GetModelWithNamespaceOnPropertiesValueClient() => throw null; public virtual ModelWithTextValue GetModelWithTextValueClient() => throw null; + public virtual ModelWithOptionalFieldValue GetModelWithOptionalFieldValueClient() => throw null; + + public virtual ModelWithEmptyArrayValue GetModelWithEmptyArrayValueClient() => throw null; + public virtual ModelWithDictionaryValue GetModelWithDictionaryValueClient() => throw null; public virtual ModelWithEncodedNamesValue GetModelWithEncodedNamesValueClient() => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/tspCodeModel.json index 73f60b20567..5742dc41388 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/xml/tspCodeModel.json @@ -994,1175 +994,5806 @@ }, "value": "application/xml", "decorators": [] - } - ], - "models": [ + }, { "$id": "122", - "kind": "model", - "name": "SimpleModel", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.SimpleModel", - "usage": "Input,Output,Xml", - "doc": "Contains fields of primitive types.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "SimpleModel", - "attribute": false, - "unwrapped": false - } + "kind": "constant", + "name": "GetResponseContentType43", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "123", - "kind": "property", - "name": "name", - "serializedName": "name", - "type": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.SimpleModel.name", - "serializationOptions": { - "xml": { - "name": "name", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - }, - { - "$id": "125", - "kind": "property", - "name": "age", - "serializedName": "age", - "type": { - "$id": "126", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.SimpleModel.age", - "serializationOptions": { - "xml": { - "name": "age", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "127", - "kind": "model", - "name": "ModelWithSimpleArrays", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArrays", - "usage": "Input,Output,Xml", - "doc": "Contains fields of arrays of primitive types.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithSimpleArrays", - "attribute": false, - "unwrapped": false - } + "$id": "124", + "kind": "constant", + "name": "GetResponseContentType44", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "125", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "128", - "kind": "property", - "name": "colors", - "serializedName": "colors", - "type": { - "$id": "129", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "130", - "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", - "serializationOptions": { - "xml": { - "name": "colors", - "attribute": false, - "unwrapped": false, - "itemsName": "string" - } - }, - "isHttpMetadata": false - }, - { - "$id": "131", - "kind": "property", - "name": "counts", - "serializedName": "counts", - "type": { - "$id": "132", - "kind": "array", - "name": "Array1", - "valueType": { - "$id": "133", - "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", - "serializationOptions": { - "xml": { - "name": "counts", - "attribute": false, - "unwrapped": false, - "itemsName": "int32" - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "134", - "kind": "model", - "name": "ModelWithArrayOfModel", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModel", - "usage": "Input,Output,Xml", - "doc": "Contains an array of models.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithArrayOfModel", - "attribute": false, - "unwrapped": false - } + "$id": "126", + "kind": "constant", + "name": "getContentType15", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "135", - "kind": "property", - "name": "items", - "serializedName": "items", - "type": { - "$id": "136", - "kind": "array", - "name": "ArraySimpleModel", - "valueType": { - "$ref": "122" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModel.items", - "serializationOptions": { - "xml": { - "name": "items", - "attribute": false, - "unwrapped": false, - "itemsName": "SimpleModel" - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "137", - "kind": "model", - "name": "ModelWithOptionalField", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalField", - "usage": "Input,Output,Xml", - "doc": "Contains an optional field.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithOptionalField", - "attribute": false, - "unwrapped": false - } + "$id": "128", + "kind": "constant", + "name": "GetResponseContentType45", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "129", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "138", - "kind": "property", - "name": "item", - "serializedName": "item", - "type": { - "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalField.item", - "serializationOptions": { - "xml": { - "name": "item", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - }, - { - "$id": "140", - "kind": "property", - "name": "value", - "serializedName": "value", - "type": { - "$id": "141", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": true, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalField.value", - "serializationOptions": { - "xml": { - "name": "value", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "142", - "kind": "model", - "name": "ModelWithAttributes", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes", - "usage": "Input,Output,Xml", - "doc": "Contains fields that are XML attributes.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithAttributes", - "attribute": false, - "unwrapped": false - } + "$id": "130", + "kind": "constant", + "name": "GetResponseContentType46", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "143", - "kind": "property", - "name": "id1", - "serializedName": "id1", - "type": { - "$id": "144", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "name": "TypeSpec.Xml.@attribute", - "arguments": {} - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes.id1", - "serializationOptions": { - "xml": { - "name": "id1", - "attribute": true, - "unwrapped": false - } - }, - "isHttpMetadata": false - }, - { - "$id": "145", - "kind": "property", - "name": "id2", - "serializedName": "id2", - "type": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "name": "TypeSpec.Xml.@attribute", - "arguments": {} - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes.id2", - "serializationOptions": { - "xml": { - "name": "id2", - "attribute": true, - "unwrapped": false - } - }, - "isHttpMetadata": false - }, - { - "$id": "147", - "kind": "property", - "name": "enabled", - "serializedName": "enabled", - "type": { - "$id": "148", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes.enabled", - "serializationOptions": { - "xml": { - "name": "enabled", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "149", - "kind": "model", - "name": "ModelWithUnwrappedArray", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArray", - "usage": "Input,Output,Xml", - "doc": "Contains fields of wrapped and unwrapped arrays of primitive types.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithUnwrappedArray", - "attribute": false, - "unwrapped": false - } + "$id": "132", + "kind": "constant", + "name": "GetResponseContentType47", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "150", - "kind": "property", - "name": "colors", - "serializedName": "colors", - "type": { - "$ref": "129" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "name": "TypeSpec.Xml.@unwrapped", - "arguments": {} - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArray.colors", - "serializationOptions": { - "xml": { - "name": "colors", - "attribute": false, - "unwrapped": true, - "itemsName": "colors" - } - }, - "isHttpMetadata": false - }, - { - "$id": "151", - "kind": "property", - "name": "counts", - "serializedName": "counts", - "type": { - "$ref": "132" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArray.counts", - "serializationOptions": { - "xml": { - "name": "counts", - "attribute": false, - "unwrapped": false, - "itemsName": "int32" - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "152", - "kind": "model", - "name": "ModelWithRenamedArrays", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArrays", - "usage": "Input,Output,Xml", - "doc": "Contains fields of wrapped and unwrapped arrays of primitive types that have different XML representations.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithRenamedArrays", - "attribute": false, - "unwrapped": false - } + "$id": "134", + "kind": "constant", + "name": "getContentType16", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "135", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "153", - "kind": "property", - "name": "colors", - "serializedName": "Colors", - "type": { - "$ref": "129" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "name": "TypeSpec.Xml.@unwrapped", - "arguments": {} - }, - { - "name": "TypeSpec.Xml.@name", - "arguments": { - "name": "Colors" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArrays.colors", - "serializationOptions": { - "xml": { - "name": "Colors", - "attribute": false, - "unwrapped": true, - "itemsName": "Colors" - } - }, - "isHttpMetadata": false - }, - { - "$id": "154", - "kind": "property", - "name": "counts", - "serializedName": "Counts", - "type": { - "$ref": "132" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "name": "TypeSpec.Xml.@name", - "arguments": { - "name": "Counts" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArrays.counts", - "serializationOptions": { - "xml": { - "name": "Counts", - "attribute": false, - "unwrapped": false, - "itemsName": "int32" - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "155", - "kind": "model", - "name": "ModelWithRenamedFields", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFields", - "usage": "Input,Output,Xml", - "doc": "Contains fields of the same type that have different XML representation.", - "decorators": [ - { - "name": "TypeSpec.Xml.@name", - "arguments": { - "name": "ModelWithRenamedFieldsSrc" - } - } - ], - "serializationOptions": { - "xml": { - "name": "ModelWithRenamedFieldsSrc", - "attribute": false, - "unwrapped": false - } + "$id": "136", + "kind": "constant", + "name": "GetResponseContentType48", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "156", - "kind": "property", - "name": "inputData", - "serializedName": "InputData", - "type": { - "$ref": "122" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "name": "TypeSpec.Xml.@name", - "arguments": { - "name": "InputData" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFields.inputData", - "serializationOptions": { - "xml": { - "name": "InputData", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - }, - { - "$id": "157", - "kind": "property", - "name": "outputData", - "serializedName": "OutputData", - "type": { - "$ref": "122" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "name": "TypeSpec.Xml.@name", - "arguments": { - "name": "OutputData" - } - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFields.outputData", - "serializationOptions": { - "xml": { - "name": "OutputData", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "158", - "kind": "model", - "name": "ModelWithEmptyArray", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArray", - "usage": "Input,Output,Xml", - "doc": "Contains an array of models that's supposed to be sent/received as an empty XML element.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithEmptyArray", - "attribute": false, - "unwrapped": false - } + "$id": "138", + "kind": "constant", + "name": "GetResponseContentType49", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "159", - "kind": "property", - "name": "items", - "serializedName": "items", - "type": { - "$ref": "136" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArray.items", - "serializationOptions": { - "xml": { - "name": "items", - "attribute": false, - "unwrapped": false, - "itemsName": "SimpleModel" - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "160", - "kind": "model", - "name": "ModelWithText", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithText", - "usage": "Input,Output,Xml", - "doc": "Contains an attribute and text.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithText", - "attribute": false, - "unwrapped": false - } + "$id": "140", + "kind": "constant", + "name": "GetResponseContentType50", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "161", - "kind": "property", - "name": "language", - "serializedName": "language", - "type": { - "$id": "162", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "name": "TypeSpec.Xml.@attribute", - "arguments": {} - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithText.language", - "serializationOptions": { - "xml": { - "name": "language", - "attribute": true, - "unwrapped": false - } - }, - "isHttpMetadata": false - }, - { - "$id": "163", - "kind": "property", - "name": "content", - "serializedName": "content", - "type": { - "$id": "164", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [ - { - "name": "TypeSpec.Xml.@unwrapped", - "arguments": {} - } - ], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithText.content", - "serializationOptions": { - "xml": { - "name": "content", - "attribute": false, - "unwrapped": true - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "165", - "kind": "model", - "name": "ModelWithDictionary", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionary", - "usage": "Input,Output,Xml", - "doc": "Contains a dictionary of key value pairs.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithDictionary", - "attribute": false, - "unwrapped": false - } + "$id": "142", + "kind": "constant", + "name": "getContentType17", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "166", - "kind": "property", - "name": "metadata", - "serializedName": "metadata", - "type": { - "$id": "167", - "kind": "dict", - "keyType": { - "$id": "168", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "169", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionary.metadata", - "serializationOptions": { - "xml": { - "name": "metadata", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "170", - "kind": "model", - "name": "ModelWithEncodedNames", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNames", - "usage": "Input,Output,Xml", - "doc": "Uses encodedName instead of Xml.Name which is functionally equivalent.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithEncodedNamesSrc", - "attribute": false, - "unwrapped": false - } + "$id": "144", + "kind": "constant", + "name": "GetResponseContentType51", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "171", - "kind": "property", - "name": "modelData", - "serializedName": "SimpleModelData", - "type": { - "$ref": "122" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNames.modelData", - "serializationOptions": { - "xml": { - "name": "SimpleModelData", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - }, - { - "$id": "172", - "kind": "property", - "name": "colors", - "serializedName": "PossibleColors", - "type": { - "$ref": "129" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNames.colors", - "serializationOptions": { - "xml": { - "name": "PossibleColors", - "attribute": false, - "unwrapped": false, - "itemsName": "string" - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "173", - "kind": "model", - "name": "ModelWithEnum", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEnum", - "usage": "Input,Output,Xml", - "doc": "Contains a single property with an enum value.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithEnum", - "attribute": false, - "unwrapped": false - } + "$id": "146", + "kind": "constant", + "name": "GetResponseContentType52", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "174", - "kind": "property", - "name": "status", - "serializedName": "status", - "type": { - "$ref": "1" - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEnum.status", - "serializationOptions": { - "xml": { - "name": "status", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - } - ] + "value": "application/xml", + "decorators": [] }, { - "$id": "175", - "kind": "model", - "name": "ModelWithDatetime", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetime", - "usage": "Input,Output,Xml", - "doc": "Contains datetime properties with different encodings.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "ModelWithDatetime", - "attribute": false, - "unwrapped": false - } + "$id": "148", + "kind": "constant", + "name": "GetResponseContentType53", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "149", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] }, - "properties": [ - { - "$id": "176", - "kind": "property", - "name": "rfc3339", - "serializedName": "rfc3339", - "doc": "DateTime value with rfc3339 encoding.", - "type": { - "$id": "177", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetime.rfc3339", - "serializationOptions": { - "xml": { - "name": "rfc3339", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - }, - { - "$id": "179", - "kind": "property", - "name": "rfc7231", - "serializedName": "rfc7231", - "doc": "DateTime value with rfc7231 encoding.", - "type": { - "$id": "180", - "kind": "utcDateTime", + "value": "application/xml", + "decorators": [] + }, + { + "$id": "150", + "kind": "constant", + "name": "getContentType18", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "152", + "kind": "constant", + "name": "GetResponseContentType54", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "154", + "kind": "constant", + "name": "GetResponseContentType55", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "156", + "kind": "constant", + "name": "GetResponseContentType56", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "157", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "158", + "kind": "constant", + "name": "getContentType19", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "160", + "kind": "constant", + "name": "GetResponseContentType57", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "161", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "162", + "kind": "constant", + "name": "GetResponseContentType58", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "163", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "164", + "kind": "constant", + "name": "GetResponseContentType59", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "165", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "166", + "kind": "constant", + "name": "getContentType20", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "167", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "168", + "kind": "constant", + "name": "GetResponseContentType60", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "169", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "170", + "kind": "constant", + "name": "GetResponseContentType61", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "172", + "kind": "constant", + "name": "GetResponseContentType62", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "174", + "kind": "constant", + "name": "getContentType21", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "176", + "kind": "constant", + "name": "GetResponseContentType63", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "177", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "178", + "kind": "constant", + "name": "GetResponseContentType64", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "180", + "kind": "constant", + "name": "GetResponseContentType65", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "182", + "kind": "constant", + "name": "getContentType22", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "184", + "kind": "constant", + "name": "GetResponseContentType66", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "186", + "kind": "constant", + "name": "GetResponseContentType67", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "188", + "kind": "constant", + "name": "GetResponseContentType68", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "189", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "190", + "kind": "constant", + "name": "getContentType23", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "192", + "kind": "constant", + "name": "GetResponseContentType69", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "194", + "kind": "constant", + "name": "GetResponseContentType70", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "195", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "196", + "kind": "constant", + "name": "GetResponseContentType71", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "197", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "198", + "kind": "constant", + "name": "getContentType24", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "199", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "200", + "kind": "constant", + "name": "GetResponseContentType72", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "201", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "202", + "kind": "constant", + "name": "GetResponseContentType73", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "204", + "kind": "constant", + "name": "GetResponseContentType74", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "206", + "kind": "constant", + "name": "getContentType25", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + }, + { + "$id": "208", + "kind": "constant", + "name": "GetResponseContentType75", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/xml", + "decorators": [] + } + ], + "models": [ + { + "$id": "210", + "kind": "model", + "name": "SimpleModel", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.SimpleModel", + "usage": "Input,Output,Xml", + "doc": "§1.1 — Contains fields of primitive types.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "SimpleModel", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "211", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.SimpleModel.name", + "serializationOptions": { + "xml": { + "name": "name", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "213", + "kind": "property", + "name": "age", + "serializedName": "age", + "type": { + "$id": "214", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.SimpleModel.age", + "serializationOptions": { + "xml": { + "name": "age", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "215", + "kind": "model", + "name": "ModelWithRenamedProperty", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedProperty", + "usage": "Input,Output,Xml", + "doc": "§1.2 — Contains a scalar property with a custom XML name.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithRenamedProperty", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "216", + "kind": "property", + "name": "title", + "serializedName": "renamedTitle", + "type": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "renamedTitle" + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedProperty.title", + "serializationOptions": { + "xml": { + "name": "renamedTitle", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "218", + "kind": "property", + "name": "author", + "serializedName": "author", + "type": { + "$id": "219", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedProperty.author", + "serializationOptions": { + "xml": { + "name": "author", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "220", + "kind": "model", + "name": "ModelWithRenamedFields", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFields", + "usage": "Input,Output,Xml", + "doc": "§1.3, §2.3 — Contains fields of the same type that have different XML representation.", + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "ModelWithRenamedFieldsSrc" + } + } + ], + "serializationOptions": { + "xml": { + "name": "ModelWithRenamedFieldsSrc", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "221", + "kind": "property", + "name": "inputData", + "serializedName": "InputData", + "type": { + "$ref": "210" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "InputData" + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFields.inputData", + "serializationOptions": { + "xml": { + "name": "InputData", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "222", + "kind": "property", + "name": "outputData", + "serializedName": "OutputData", + "type": { + "$ref": "210" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "OutputData" + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFields.outputData", + "serializationOptions": { + "xml": { + "name": "OutputData", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "223", + "kind": "model", + "name": "ModelWithNestedModel", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModel", + "usage": "Input,Output,Xml", + "doc": "§2.1 — Contains a property that references another model.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithNestedModel", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "224", + "kind": "property", + "name": "nested", + "serializedName": "nested", + "type": { + "$ref": "210" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModel.nested", + "serializationOptions": { + "xml": { + "name": "nested", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "225", + "kind": "model", + "name": "ModelWithRenamedNestedModel", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModel", + "usage": "Input,Output,Xml", + "doc": "§2.2 — Contains a property whose type has", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithRenamedNestedModel", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "226", + "kind": "property", + "name": "author", + "serializedName": "author", + "type": { + "$id": "227", + "kind": "model", + "name": "Author", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.Author", + "usage": "Input,Output,Xml", + "doc": "Author model with a custom XML name.", + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "XmlAuthor" + } + } + ], + "serializationOptions": { + "xml": { + "name": "XmlAuthor", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "228", + "kind": "property", + "name": "name", + "serializedName": "name", + "type": { + "$id": "229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.Author.name", + "serializationOptions": { + "xml": { + "name": "name", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModel.author", + "serializationOptions": { + "xml": { + "name": "author", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "227" + }, + { + "$id": "230", + "kind": "model", + "name": "ModelWithSimpleArrays", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArrays", + "usage": "Input,Output,Xml", + "doc": "§3.1 — Contains fields of arrays of primitive types.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithSimpleArrays", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "231", + "kind": "property", + "name": "colors", + "serializedName": "colors", + "type": { + "$id": "232", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "233", + "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", + "serializationOptions": { + "xml": { + "name": "colors", + "attribute": false, + "unwrapped": false, + "itemsName": "string" + } + }, + "isHttpMetadata": false + }, + { + "$id": "234", + "kind": "property", + "name": "counts", + "serializedName": "counts", + "type": { + "$id": "235", + "kind": "array", + "name": "Array1", + "valueType": { + "$id": "236", + "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", + "serializationOptions": { + "xml": { + "name": "counts", + "attribute": false, + "unwrapped": false, + "itemsName": "int32" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "237", + "kind": "model", + "name": "ModelWithUnwrappedArray", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArray", + "usage": "Input,Output,Xml", + "doc": "§3.2 — Contains fields of wrapped and unwrapped arrays of primitive types.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithUnwrappedArray", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "238", + "kind": "property", + "name": "colors", + "serializedName": "colors", + "type": { + "$ref": "232" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@unwrapped", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArray.colors", + "serializationOptions": { + "xml": { + "name": "colors", + "attribute": false, + "unwrapped": true, + "itemsName": "colors" + } + }, + "isHttpMetadata": false + }, + { + "$id": "239", + "kind": "property", + "name": "counts", + "serializedName": "counts", + "type": { + "$ref": "235" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArray.counts", + "serializationOptions": { + "xml": { + "name": "counts", + "attribute": false, + "unwrapped": false, + "itemsName": "int32" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "240", + "kind": "model", + "name": "ModelWithRenamedArrays", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArrays", + "usage": "Input,Output,Xml", + "doc": "§3.3, §3.4 — Contains fields of wrapped and unwrapped arrays of primitive types that have different XML representations.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithRenamedArrays", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "241", + "kind": "property", + "name": "colors", + "serializedName": "Colors", + "type": { + "$ref": "232" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@unwrapped", + "arguments": {} + }, + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "Colors" + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArrays.colors", + "serializationOptions": { + "xml": { + "name": "Colors", + "attribute": false, + "unwrapped": true, + "itemsName": "Colors" + } + }, + "isHttpMetadata": false + }, + { + "$id": "242", + "kind": "property", + "name": "counts", + "serializedName": "Counts", + "type": { + "$ref": "235" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "Counts" + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArrays.counts", + "serializationOptions": { + "xml": { + "name": "Counts", + "attribute": false, + "unwrapped": false, + "itemsName": "int32" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "243", + "kind": "model", + "name": "ModelWithWrappedPrimitiveCustomItemNames", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNames", + "usage": "Input,Output,Xml", + "doc": "§3.5 — Contains a wrapped primitive array with custom wrapper and item names.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithWrappedPrimitiveCustomItemNames", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "244", + "kind": "property", + "name": "tags", + "serializedName": "ItemsTags", + "type": { + "$id": "245", + "kind": "array", + "name": "Array2", + "valueType": { + "$id": "246", + "kind": "string", + "name": "tag", + "crossLanguageDefinitionId": "Payload.Xml.tag", + "baseType": { + "$id": "247", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "ItemName" + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "ItemsTags" + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNames.tags", + "serializationOptions": { + "xml": { + "name": "ItemsTags", + "attribute": false, + "unwrapped": false, + "itemsName": "ItemName" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "248", + "kind": "model", + "name": "ModelWithArrayOfModel", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModel", + "usage": "Input,Output,Xml", + "doc": "§4.1 — Contains an array of models.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithArrayOfModel", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "249", + "kind": "property", + "name": "items", + "serializedName": "items", + "type": { + "$id": "250", + "kind": "array", + "name": "ArraySimpleModel", + "valueType": { + "$ref": "210" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModel.items", + "serializationOptions": { + "xml": { + "name": "items", + "attribute": false, + "unwrapped": false, + "itemsName": "SimpleModel" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "251", + "kind": "model", + "name": "ModelWithUnwrappedModelArray", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArray", + "usage": "Input,Output,Xml", + "doc": "§4.2 — Contains an unwrapped array of models.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithUnwrappedModelArray", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "252", + "kind": "property", + "name": "items", + "serializedName": "items", + "type": { + "$ref": "250" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@unwrapped", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArray.items", + "serializationOptions": { + "xml": { + "name": "items", + "attribute": false, + "unwrapped": true, + "itemsName": "items" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "253", + "kind": "model", + "name": "ModelWithRenamedWrappedModelArray", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArray", + "usage": "Input,Output,Xml", + "doc": "§4.3 — Contains a wrapped array of models with a custom wrapper name.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithRenamedWrappedModelArray", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "254", + "kind": "property", + "name": "items", + "serializedName": "AllItems", + "type": { + "$ref": "250" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "AllItems" + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArray.items", + "serializationOptions": { + "xml": { + "name": "AllItems", + "attribute": false, + "unwrapped": false, + "itemsName": "SimpleModel" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "255", + "kind": "model", + "name": "ModelWithRenamedUnwrappedModelArray", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArray", + "usage": "Input,Output,Xml", + "doc": "§4.4 — Contains an unwrapped array of models with a custom item name.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithRenamedUnwrappedModelArray", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "256", + "kind": "property", + "name": "items", + "serializedName": "ModelItem", + "type": { + "$ref": "250" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@unwrapped", + "arguments": {} + }, + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "ModelItem" + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArray.items", + "serializationOptions": { + "xml": { + "name": "ModelItem", + "attribute": false, + "unwrapped": true, + "itemsName": "ModelItem" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "257", + "kind": "model", + "name": "ModelWithRenamedWrappedAndItemModelArray", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArray", + "usage": "Input,Output,Xml", + "doc": "§4.5 — Contains a wrapped array of models with custom wrapper and item names.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithRenamedWrappedAndItemModelArray", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "258", + "kind": "property", + "name": "books", + "serializedName": "AllBooks", + "type": { + "$id": "259", + "kind": "array", + "name": "ArrayBook", + "valueType": { + "$id": "260", + "kind": "model", + "name": "Book", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.Book", + "usage": "Input,Output,Xml", + "doc": "Book model with a custom XML name.", + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "XmlBook" + } + } + ], + "serializationOptions": { + "xml": { + "name": "XmlBook", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "261", + "kind": "property", + "name": "title", + "serializedName": "title", + "type": { + "$id": "262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.Book.title", + "serializationOptions": { + "xml": { + "name": "title", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "AllBooks" + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArray.books", + "serializationOptions": { + "xml": { + "name": "AllBooks", + "attribute": false, + "unwrapped": false, + "itemsName": "XmlBook" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$ref": "260" + }, + { + "$id": "263", + "kind": "model", + "name": "ModelWithAttributes", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes", + "usage": "Input,Output,Xml", + "doc": "§5.1 — Contains fields that are XML attributes.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithAttributes", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "264", + "kind": "property", + "name": "id1", + "serializedName": "id1", + "type": { + "$id": "265", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@attribute", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes.id1", + "serializationOptions": { + "xml": { + "name": "id1", + "attribute": true, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "266", + "kind": "property", + "name": "id2", + "serializedName": "id2", + "type": { + "$id": "267", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@attribute", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes.id2", + "serializationOptions": { + "xml": { + "name": "id2", + "attribute": true, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "268", + "kind": "property", + "name": "enabled", + "serializedName": "enabled", + "type": { + "$id": "269", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributes.enabled", + "serializationOptions": { + "xml": { + "name": "enabled", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "270", + "kind": "model", + "name": "ModelWithRenamedAttribute", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttribute", + "usage": "Input,Output,Xml", + "doc": "§5.2 — Contains a renamed XML attribute.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithRenamedAttribute", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "271", + "kind": "property", + "name": "id", + "serializedName": "xml-id", + "type": { + "$id": "272", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@name", + "arguments": { + "name": "xml-id" + } + }, + { + "name": "TypeSpec.Xml.@attribute", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttribute.id", + "serializationOptions": { + "xml": { + "name": "xml-id", + "attribute": true, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "273", + "kind": "property", + "name": "title", + "serializedName": "title", + "type": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttribute.title", + "serializationOptions": { + "xml": { + "name": "title", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "275", + "kind": "property", + "name": "author", + "serializedName": "author", + "type": { + "$id": "276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttribute.author", + "serializationOptions": { + "xml": { + "name": "author", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "277", + "kind": "model", + "name": "ModelWithNamespace", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespace", + "usage": "Input,Output,Xml", + "doc": "§6.1, §7.1 — Contains fields with XML namespace on the model.", + "decorators": [ + { + "name": "TypeSpec.Xml.@ns", + "arguments": { + "ns": { + "$id": "278", + "kind": "enumvalue", + "decorators": [], + "name": "smp", + "value": "http://example.com/schema", + "enumType": { + "$id": "279", + "kind": "enum", + "decorators": [ + { + "name": "TypeSpec.Xml.@nsDeclarations", + "arguments": {} + } + ], + "name": "Namespaces", + "isGeneratedName": false, + "namespace": "Payload.Xml", + "valueType": { + "$id": "280", + "kind": "string", + "decorators": [], + "doc": "A sequence of textual characters.", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "values": [ + { + "$id": "281", + "kind": "enumvalue", + "decorators": [], + "name": "smp", + "value": "http://example.com/schema", + "enumType": { + "$ref": "279" + }, + "valueType": { + "$ref": "280" + }, + "crossLanguageDefinitionId": "Payload.Xml.Namespaces.smp" + }, + { + "$id": "282", + "kind": "enumvalue", + "decorators": [], + "name": "ns2", + "value": "http://example.com/ns2", + "enumType": { + "$ref": "279" + }, + "valueType": { + "$ref": "280" + }, + "crossLanguageDefinitionId": "Payload.Xml.Namespaces.ns2" + } + ], + "isFixed": true, + "isFlags": false, + "usage": "None", + "access": "public", + "crossLanguageDefinitionId": "Payload.Xml.Namespaces", + "apiVersions": [], + "isUnionAsEnum": false, + "__accessSet": true + }, + "valueType": { + "$ref": "280" + }, + "crossLanguageDefinitionId": "Payload.Xml.Namespaces.smp" + } + } + } + ], + "serializationOptions": { + "xml": { + "name": "ModelWithNamespace", + "attribute": false, + "ns": { + "namespace": "http://example.com/schema", + "prefix": "smp" + }, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "283", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "284", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespace.id", + "serializationOptions": { + "xml": { + "name": "id", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "285", + "kind": "property", + "name": "title", + "serializedName": "title", + "type": { + "$id": "286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespace.title", + "serializationOptions": { + "xml": { + "name": "title", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "287", + "kind": "model", + "name": "ModelWithNamespaceOnProperties", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnProperties", + "usage": "Input,Output,Xml", + "doc": "§6.2, §7.2 — Contains fields with different XML namespaces on individual properties.", + "decorators": [ + { + "name": "TypeSpec.Xml.@ns", + "arguments": { + "ns": { + "$id": "288", + "kind": "enumvalue", + "decorators": [], + "name": "smp", + "value": "http://example.com/schema", + "enumType": { + "$ref": "279" + }, + "valueType": { + "$ref": "280" + }, + "crossLanguageDefinitionId": "Payload.Xml.Namespaces.smp" + } + } + } + ], + "serializationOptions": { + "xml": { + "name": "ModelWithNamespaceOnProperties", + "attribute": false, + "ns": { + "namespace": "http://example.com/schema", + "prefix": "smp" + }, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "289", + "kind": "property", + "name": "id", + "serializedName": "id", + "type": { + "$id": "290", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnProperties.id", + "serializationOptions": { + "xml": { + "name": "id", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "291", + "kind": "property", + "name": "title", + "serializedName": "title", + "type": { + "$id": "292", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@ns", + "arguments": { + "ns": { + "$id": "293", + "kind": "enumvalue", + "decorators": [], + "name": "smp", + "value": "http://example.com/schema", + "enumType": { + "$ref": "279" + }, + "valueType": { + "$ref": "280" + }, + "crossLanguageDefinitionId": "Payload.Xml.Namespaces.smp" + } + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnProperties.title", + "serializationOptions": { + "xml": { + "name": "title", + "attribute": false, + "ns": { + "namespace": "http://example.com/schema", + "prefix": "smp" + }, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "294", + "kind": "property", + "name": "author", + "serializedName": "author", + "type": { + "$id": "295", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@ns", + "arguments": { + "ns": { + "$id": "296", + "kind": "enumvalue", + "decorators": [], + "name": "ns2", + "value": "http://example.com/ns2", + "enumType": { + "$ref": "279" + }, + "valueType": { + "$ref": "280" + }, + "crossLanguageDefinitionId": "Payload.Xml.Namespaces.ns2" + } + } + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnProperties.author", + "serializationOptions": { + "xml": { + "name": "author", + "attribute": false, + "ns": { + "namespace": "http://example.com/ns2", + "prefix": "ns2" + }, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "297", + "kind": "model", + "name": "ModelWithText", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithText", + "usage": "Input,Output,Xml", + "doc": "§8.1 — Contains an attribute and text.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithText", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "298", + "kind": "property", + "name": "language", + "serializedName": "language", + "type": { + "$id": "299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@attribute", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithText.language", + "serializationOptions": { + "xml": { + "name": "language", + "attribute": true, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "300", + "kind": "property", + "name": "content", + "serializedName": "content", + "type": { + "$id": "301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [ + { + "name": "TypeSpec.Xml.@unwrapped", + "arguments": {} + } + ], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithText.content", + "serializationOptions": { + "xml": { + "name": "content", + "attribute": false, + "unwrapped": true + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "302", + "kind": "model", + "name": "ModelWithOptionalField", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalField", + "usage": "Input,Output,Xml", + "doc": "Contains an optional field.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithOptionalField", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "303", + "kind": "property", + "name": "item", + "serializedName": "item", + "type": { + "$id": "304", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalField.item", + "serializationOptions": { + "xml": { + "name": "item", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "305", + "kind": "property", + "name": "value", + "serializedName": "value", + "type": { + "$id": "306", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalField.value", + "serializationOptions": { + "xml": { + "name": "value", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "307", + "kind": "model", + "name": "ModelWithEmptyArray", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArray", + "usage": "Input,Output,Xml", + "doc": "Contains an array of models that's supposed to be sent/received as an empty XML element.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithEmptyArray", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "308", + "kind": "property", + "name": "items", + "serializedName": "items", + "type": { + "$ref": "250" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArray.items", + "serializationOptions": { + "xml": { + "name": "items", + "attribute": false, + "unwrapped": false, + "itemsName": "SimpleModel" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "309", + "kind": "model", + "name": "ModelWithDictionary", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionary", + "usage": "Input,Output,Xml", + "doc": "Contains a dictionary of key value pairs.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithDictionary", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "310", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "type": { + "$id": "311", + "kind": "dict", + "keyType": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionary.metadata", + "serializationOptions": { + "xml": { + "name": "metadata", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "314", + "kind": "model", + "name": "ModelWithEncodedNames", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNames", + "usage": "Input,Output,Xml", + "doc": "Uses encodedName instead of Xml.Name which is functionally equivalent.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithEncodedNamesSrc", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "315", + "kind": "property", + "name": "modelData", + "serializedName": "SimpleModelData", + "type": { + "$ref": "210" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNames.modelData", + "serializationOptions": { + "xml": { + "name": "SimpleModelData", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "316", + "kind": "property", + "name": "colors", + "serializedName": "PossibleColors", + "type": { + "$ref": "232" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNames.colors", + "serializationOptions": { + "xml": { + "name": "PossibleColors", + "attribute": false, + "unwrapped": false, + "itemsName": "string" + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "317", + "kind": "model", + "name": "ModelWithEnum", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEnum", + "usage": "Input,Output,Xml", + "doc": "Contains a single property with an enum value.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithEnum", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "318", + "kind": "property", + "name": "status", + "serializedName": "status", + "type": { + "$ref": "1" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEnum.status", + "serializationOptions": { + "xml": { + "name": "status", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "319", + "kind": "model", + "name": "ModelWithDatetime", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetime", + "usage": "Input,Output,Xml", + "doc": "Contains datetime properties with different encodings.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "ModelWithDatetime", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "320", + "kind": "property", + "name": "rfc3339", + "serializedName": "rfc3339", + "doc": "DateTime value with rfc3339 encoding.", + "type": { + "$id": "321", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "322", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetime.rfc3339", + "serializationOptions": { + "xml": { + "name": "rfc3339", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "323", + "kind": "property", + "name": "rfc7231", + "serializedName": "rfc7231", + "doc": "DateTime value with rfc7231 encoding.", + "type": { + "$id": "324", + "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "181", + "$id": "325", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetime.rfc7231", + "serializationOptions": { + "xml": { + "name": "rfc7231", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + }, + { + "$id": "326", + "kind": "model", + "name": "XmlErrorBody", + "namespace": "Payload.Xml", + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorBody", + "usage": "Output,Xml", + "doc": "The body of an XML error response.", + "decorators": [], + "serializationOptions": { + "xml": { + "name": "XmlErrorBody", + "attribute": false, + "unwrapped": false + } + }, + "properties": [ + { + "$id": "327", + "kind": "property", + "name": "message", + "serializedName": "message", + "type": { + "$id": "328", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorBody.message", + "serializationOptions": { + "xml": { + "name": "message", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + }, + { + "$id": "329", + "kind": "property", + "name": "code", + "serializedName": "code", + "type": { + "$id": "330", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.XmlErrorBody.code", + "serializationOptions": { + "xml": { + "name": "code", + "attribute": false, + "unwrapped": false + } + }, + "isHttpMetadata": false + } + ] + } + ], + "clients": [ + { + "$id": "331", + "kind": "client", + "name": "XmlClient", + "namespace": "Payload.Xml", + "doc": "Sends and receives bodies in XML format.", + "methods": [], + "parameters": [ + { + "$id": "332", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "333", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "334", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.endpoint" + } + ], + "initializedBy": 1, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml", + "apiVersions": [], + "children": [ + { + "$id": "335", + "kind": "client", + "name": "SimpleModelValue", + "namespace": "Payload.Xml", + "doc": "§1.1 — Operations for the SimpleModel type.", + "methods": [ + { + "$id": "336", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "337", + "name": "get", + "resourceName": "SimpleModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "338", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "6" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get.accept", + "methodParameterSegments": [ + { + "$id": "339", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "210" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "8" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/simpleModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "339" + } + ], + "response": { + "type": { + "$ref": "210" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get" + }, + { + "$id": "340", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "341", + "name": "put", + "resourceName": "SimpleModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "342", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "10" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "343", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "344", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "210" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.input", + "methodParameterSegments": [ + { + "$id": "345", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "210" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/simpleModel", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "343" + }, + { + "$ref": "345" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put" + } + ], + "parameters": [ + { + "$id": "346", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "347", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue", + "apiVersions": [], + "parent": { + "$ref": "331" + }, + "isMultiServiceClient": false + }, + { + "$id": "349", + "kind": "client", + "name": "ModelWithRenamedPropertyValue", + "namespace": "Payload.Xml", + "doc": "§1.2 — Operations for the ModelWithRenamedProperty type.", + "methods": [ + { + "$id": "350", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "351", + "name": "get", + "resourceName": "ModelWithRenamedPropertyValue", + "accessibility": "public", + "parameters": [ + { + "$id": "352", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "14" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.get.accept", + "methodParameterSegments": [ + { + "$id": "353", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "215" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "16" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithRenamedProperty", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "353" + } + ], + "response": { + "type": { + "$ref": "215" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.get" + }, + { + "$id": "354", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "355", + "name": "put", + "resourceName": "ModelWithRenamedPropertyValue", + "accessibility": "public", + "parameters": [ + { + "$id": "356", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "18" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "357", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "358", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "215" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.put.input", + "methodParameterSegments": [ + { + "$id": "359", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "215" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithRenamedProperty", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "357" + }, + { + "$ref": "359" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.put" + } + ], + "parameters": [ + { + "$id": "360", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "361", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "362", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedPropertyValue", + "apiVersions": [], + "parent": { + "$ref": "331" + }, + "isMultiServiceClient": false + }, + { + "$id": "363", + "kind": "client", + "name": "ModelWithRenamedFieldsValue", + "namespace": "Payload.Xml", + "doc": "§1.3, §2.3 — Operations for the ModelWithRenamedFields type.", + "methods": [ + { + "$id": "364", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "365", + "name": "get", + "resourceName": "ModelWithRenamedFieldsValue", + "accessibility": "public", + "parameters": [ + { + "$id": "366", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "22" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get.accept", + "methodParameterSegments": [ + { + "$id": "367", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "22" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "220" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "24" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithRenamedFields", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "367" + } + ], + "response": { + "type": { + "$ref": "220" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get" + }, + { + "$id": "368", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "369", + "name": "put", + "resourceName": "ModelWithRenamedFieldsValue", + "accessibility": "public", + "parameters": [ + { + "$id": "370", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "26" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "371", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "26" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "372", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "220" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.input", + "methodParameterSegments": [ + { + "$id": "373", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "220" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithRenamedFields", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "371" + }, + { + "$ref": "373" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put" + } + ], + "parameters": [ + { + "$id": "374", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "375", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "376", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue", + "apiVersions": [], + "parent": { + "$ref": "331" + }, + "isMultiServiceClient": false + }, + { + "$id": "377", + "kind": "client", + "name": "ModelWithNestedModelValue", + "namespace": "Payload.Xml", + "doc": "§2.1 — Operations for the ModelWithNestedModel type.", + "methods": [ + { + "$id": "378", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "379", + "name": "get", + "resourceName": "ModelWithNestedModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "380", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "30" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.get.accept", + "methodParameterSegments": [ + { + "$id": "381", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "30" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "223" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "32" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithNestedModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "381" + } + ], + "response": { + "type": { + "$ref": "223" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.get" + }, + { + "$id": "382", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "383", + "name": "put", + "resourceName": "ModelWithNestedModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "384", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "34" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "385", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "34" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "386", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "223" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.put.input", + "methodParameterSegments": [ + { + "$id": "387", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "223" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithNestedModel", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "385" + }, + { + "$ref": "387" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.put" + } + ], + "parameters": [ + { + "$id": "388", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "389", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "390", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNestedModelValue", + "apiVersions": [], + "parent": { + "$ref": "331" + }, + "isMultiServiceClient": false + }, + { + "$id": "391", + "kind": "client", + "name": "ModelWithRenamedNestedModelValue", + "namespace": "Payload.Xml", + "doc": "§2.2 — Operations for the ModelWithRenamedNestedModel type.", + "methods": [ + { + "$id": "392", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "393", + "name": "get", + "resourceName": "ModelWithRenamedNestedModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "394", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "38" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.get.accept", + "methodParameterSegments": [ + { + "$id": "395", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "38" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "225" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "40" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithRenamedNestedModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "395" + } + ], + "response": { + "type": { + "$ref": "225" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.get" + }, + { + "$id": "396", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "397", + "name": "put", + "resourceName": "ModelWithRenamedNestedModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "398", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "42" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "399", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "42" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "400", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "225" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.put.input", + "methodParameterSegments": [ + { + "$id": "401", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "225" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithRenamedNestedModel", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "399" + }, + { + "$ref": "401" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.put" + } + ], + "parameters": [ + { + "$id": "402", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "403", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedNestedModelValue", + "apiVersions": [], + "parent": { + "$ref": "331" + }, + "isMultiServiceClient": false + }, + { + "$id": "405", + "kind": "client", + "name": "ModelWithSimpleArraysValue", + "namespace": "Payload.Xml", + "doc": "§3.1 — Operations for the ModelWithSimpleArrays type.", + "methods": [ + { + "$id": "406", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "407", + "name": "get", + "resourceName": "ModelWithSimpleArraysValue", + "accessibility": "public", + "parameters": [ + { + "$id": "408", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "46" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get.accept", + "methodParameterSegments": [ + { + "$id": "409", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "46" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "230" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "48" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithSimpleArrays", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "409" + } + ], + "response": { + "type": { + "$ref": "230" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get" + }, + { + "$id": "410", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "411", + "name": "put", + "resourceName": "ModelWithSimpleArraysValue", + "accessibility": "public", + "parameters": [ + { + "$id": "412", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "50" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "413", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "50" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "414", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "230" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.input", + "methodParameterSegments": [ + { + "$id": "415", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "230" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithSimpleArrays", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "413" + }, + { + "$ref": "415" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put" + } + ], + "parameters": [ + { + "$id": "416", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "417", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "418", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue", + "apiVersions": [], + "parent": { + "$ref": "331" + }, + "isMultiServiceClient": false + }, + { + "$id": "419", + "kind": "client", + "name": "ModelWithUnwrappedArrayValue", + "namespace": "Payload.Xml", + "doc": "§3.2 — Operations for the ModelWithUnwrappedArray type.", + "methods": [ + { + "$id": "420", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "421", + "name": "get", + "resourceName": "ModelWithUnwrappedArrayValue", + "accessibility": "public", + "parameters": [ + { + "$id": "422", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "54" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get.accept", + "methodParameterSegments": [ + { + "$id": "423", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "54" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "237" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "56" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithUnwrappedArray", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "423" + } + ], + "response": { + "type": { + "$ref": "237" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get" + }, + { + "$id": "424", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "425", + "name": "put", + "resourceName": "ModelWithUnwrappedArrayValue", + "accessibility": "public", + "parameters": [ + { + "$id": "426", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "58" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "427", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "58" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "428", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "237" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.input", + "methodParameterSegments": [ + { + "$id": "429", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "237" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithUnwrappedArray", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "427" + }, + { + "$ref": "429" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put" + } + ], + "parameters": [ + { + "$id": "430", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "431", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "432", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue", + "apiVersions": [], + "parent": { + "$ref": "331" + }, + "isMultiServiceClient": false + }, + { + "$id": "433", + "kind": "client", + "name": "ModelWithRenamedArraysValue", + "namespace": "Payload.Xml", + "doc": "§3.3, §3.4 — Operations for the ModelWithRenamedArrays type.", + "methods": [ + { + "$id": "434", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "435", + "name": "get", + "resourceName": "ModelWithRenamedArraysValue", + "accessibility": "public", + "parameters": [ + { + "$id": "436", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "62" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get.accept", + "methodParameterSegments": [ + { + "$id": "437", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "62" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "240" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "64" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithRenamedArrays", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "437" + } + ], + "response": { + "type": { + "$ref": "240" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get" + }, + { + "$id": "438", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "439", + "name": "put", + "resourceName": "ModelWithRenamedArraysValue", + "accessibility": "public", + "parameters": [ + { + "$id": "440", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "66" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "441", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "66" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "442", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "240" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.input", + "methodParameterSegments": [ + { + "$id": "443", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "240" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithRenamedArrays", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "441" + }, + { + "$ref": "443" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put" + } + ], + "parameters": [ + { + "$id": "444", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "445", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "446", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue", + "apiVersions": [], + "parent": { + "$ref": "331" }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, + "isMultiServiceClient": false + }, + { + "$id": "447", + "kind": "client", + "name": "ModelWithWrappedPrimitiveCustomItemNamesValue", + "namespace": "Payload.Xml", + "doc": "§3.5 — Operations for the ModelWithWrappedPrimitiveCustomItemNames type.", + "methods": [ + { + "$id": "448", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "449", + "name": "get", + "resourceName": "ModelWithWrappedPrimitiveCustomItemNamesValue", + "accessibility": "public", + "parameters": [ + { + "$id": "450", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "70" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.get.accept", + "methodParameterSegments": [ + { + "$id": "451", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "70" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "243" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "72" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithWrappedPrimitiveCustomItemNames", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "451" + } + ], + "response": { + "type": { + "$ref": "243" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.get" + }, + { + "$id": "452", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "453", + "name": "put", + "resourceName": "ModelWithWrappedPrimitiveCustomItemNamesValue", + "accessibility": "public", + "parameters": [ + { + "$id": "454", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "74" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "455", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "74" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "456", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "243" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.put.input", + "methodParameterSegments": [ + { + "$id": "457", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "243" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithWrappedPrimitiveCustomItemNames", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "455" + }, + { + "$ref": "457" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.put" + } + ], + "parameters": [ + { + "$id": "458", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "459", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "460", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue.endpoint" + } + ], + "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetime.rfc7231", - "serializationOptions": { - "xml": { - "name": "rfc7231", - "attribute": false, - "unwrapped": false + "crossLanguageDefinitionId": "Payload.Xml.ModelWithWrappedPrimitiveCustomItemNamesValue", + "apiVersions": [], + "parent": { + "$ref": "331" + }, + "isMultiServiceClient": false + }, + { + "$id": "461", + "kind": "client", + "name": "ModelWithArrayOfModelValue", + "namespace": "Payload.Xml", + "doc": "§4.1 — Operations for the ModelWithArrayOfModel type.", + "methods": [ + { + "$id": "462", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "463", + "name": "get", + "resourceName": "ModelWithArrayOfModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "464", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "78" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get.accept", + "methodParameterSegments": [ + { + "$id": "465", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "78" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "248" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "80" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithArrayOfModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "465" + } + ], + "response": { + "type": { + "$ref": "248" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get" + }, + { + "$id": "466", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "467", + "name": "put", + "resourceName": "ModelWithArrayOfModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "468", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "82" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "469", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "82" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "470", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "248" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.input", + "methodParameterSegments": [ + { + "$id": "471", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "248" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithArrayOfModel", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "469" + }, + { + "$ref": "471" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put" + } + ], + "parameters": [ + { + "$id": "472", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "473", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "474", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.endpoint" } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue", + "apiVersions": [], + "parent": { + "$ref": "331" }, - "isHttpMetadata": false - } - ] - }, - { - "$id": "182", - "kind": "model", - "name": "XmlErrorBody", - "namespace": "Payload.Xml", - "crossLanguageDefinitionId": "Payload.Xml.XmlErrorBody", - "usage": "Output,Xml", - "doc": "The body of an XML error response.", - "decorators": [], - "serializationOptions": { - "xml": { - "name": "XmlErrorBody", - "attribute": false, - "unwrapped": false - } - }, - "properties": [ + "isMultiServiceClient": false + }, { - "$id": "183", - "kind": "property", - "name": "message", - "serializedName": "message", - "type": { - "$id": "184", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.XmlErrorBody.message", - "serializationOptions": { - "xml": { - "name": "message", - "attribute": false, - "unwrapped": false + "$id": "475", + "kind": "client", + "name": "ModelWithUnwrappedModelArrayValue", + "namespace": "Payload.Xml", + "doc": "§4.2 — Operations for the ModelWithUnwrappedModelArray type.", + "methods": [ + { + "$id": "476", + "kind": "basic", + "name": "get", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "477", + "name": "get", + "resourceName": "ModelWithUnwrappedModelArrayValue", + "accessibility": "public", + "parameters": [ + { + "$id": "478", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "86" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.get.accept", + "methodParameterSegments": [ + { + "$id": "479", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "86" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "251" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "88" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/xml" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithUnwrappedModelArray", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.get", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "479" + } + ], + "response": { + "type": { + "$ref": "251" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.get" + }, + { + "$id": "480", + "kind": "basic", + "name": "put", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "481", + "name": "put", + "resourceName": "ModelWithUnwrappedModelArrayValue", + "accessibility": "public", + "parameters": [ + { + "$id": "482", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "90" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "483", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "90" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "484", + "kind": "body", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "251" + }, + "isApiVersion": false, + "contentTypes": [ + "application/xml" + ], + "defaultContentType": "application/xml", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.put.input", + "methodParameterSegments": [ + { + "$id": "485", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "251" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/payload/xml/modelWithUnwrappedModelArray", + "requestMediaTypes": [ + "application/xml" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.put", + "decorators": [], + "namespace": "Payload.Xml" + }, + "parameters": [ + { + "$ref": "483" + }, + { + "$ref": "485" + } + ], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.put" + } + ], + "parameters": [ + { + "$id": "486", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "487", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "488", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue.endpoint" } - }, - "isHttpMetadata": false - }, - { - "$id": "185", - "kind": "property", - "name": "code", - "serializedName": "code", - "type": { - "$id": "186", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "optional": false, - "readOnly": false, - "discriminator": false, - "flatten": false, + ], + "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.XmlErrorBody.code", - "serializationOptions": { - "xml": { - "name": "code", - "attribute": false, - "unwrapped": false - } - }, - "isHttpMetadata": false - } - ] - } - ], - "clients": [ - { - "$id": "187", - "kind": "client", - "name": "XmlClient", - "namespace": "Payload.Xml", - "doc": "Sends and receives bodies in XML format.", - "methods": [], - "parameters": [ - { - "$id": "188", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "doc": "Service host", - "type": { - "$id": "189", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "defaultValue": { - "type": { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedModelArrayValue", + "apiVersions": [], + "parent": { + "$ref": "331" }, - "serverUrlTemplate": "{endpoint}", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.endpoint" - } - ], - "initializedBy": 1, - "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml", - "apiVersions": [], - "children": [ + "isMultiServiceClient": false + }, { - "$id": "191", + "$id": "489", "kind": "client", - "name": "SimpleModelValue", + "name": "ModelWithRenamedWrappedModelArrayValue", "namespace": "Payload.Xml", - "doc": "Operations for the SimpleModel type.", + "doc": "§4.3 — Operations for the ModelWithRenamedWrappedModelArray type.", "methods": [ { - "$id": "192", + "$id": "490", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "193", + "$id": "491", "name": "get", - "resourceName": "SimpleModelValue", + "resourceName": "ModelWithRenamedWrappedModelArrayValue", "accessibility": "public", "parameters": [ { - "$id": "194", + "$id": "492", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "6" + "$ref": "94" }, "isApiVersion": false, "optional": false, @@ -2170,21 +6801,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.get.accept", "methodParameterSegments": [ { - "$id": "195", + "$id": "493", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "6" + "$ref": "94" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -2198,14 +6829,14 @@ 200 ], "bodyType": { - "$ref": "122" + "$ref": "253" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "8" + "$ref": "96" } } ], @@ -2217,48 +6848,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/simpleModel", + "path": "/payload/xml/modelWithRenamedWrappedModelArray", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "195" + "$ref": "493" } ], "response": { "type": { - "$ref": "122" + "$ref": "253" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.get" }, { - "$id": "196", + "$id": "494", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "197", + "$id": "495", "name": "put", - "resourceName": "SimpleModelValue", + "resourceName": "ModelWithRenamedWrappedModelArrayValue", "accessibility": "public", "parameters": [ { - "$id": "198", + "$id": "496", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "10" + "$ref": "98" }, "isApiVersion": false, "optional": false, @@ -2266,21 +6897,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.put.contentType", "methodParameterSegments": [ { - "$id": "199", + "$id": "497", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "10" + "$ref": "98" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -2288,12 +6919,12 @@ ] }, { - "$id": "200", + "$id": "498", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "122" + "$ref": "253" }, "isApiVersion": false, "contentTypes": [ @@ -2304,21 +6935,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.put.input", "methodParameterSegments": [ { - "$id": "201", + "$id": "499", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "122" + "$ref": "253" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -2337,41 +6968,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/simpleModel", + "path": "/payload/xml/modelWithRenamedWrappedModelArray", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "199" + "$ref": "497" }, { - "$ref": "201" + "$ref": "499" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.put" } ], "parameters": [ { - "$id": "202", + "$id": "500", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "203", + "$id": "501", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2382,7 +7013,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "204", + "$id": "502", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2392,44 +7023,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.SimpleModelValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedModelArrayValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "205", + "$id": "503", "kind": "client", - "name": "ModelWithSimpleArraysValue", + "name": "ModelWithRenamedUnwrappedModelArrayValue", "namespace": "Payload.Xml", - "doc": "Operations for the ModelWithSimpleArrays type.", + "doc": "§4.4 — Operations for the ModelWithRenamedUnwrappedModelArray type.", "methods": [ { - "$id": "206", + "$id": "504", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "207", + "$id": "505", "name": "get", - "resourceName": "ModelWithSimpleArraysValue", + "resourceName": "ModelWithRenamedUnwrappedModelArrayValue", "accessibility": "public", "parameters": [ { - "$id": "208", + "$id": "506", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "14" + "$ref": "102" }, "isApiVersion": false, "optional": false, @@ -2437,21 +7068,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.get.accept", "methodParameterSegments": [ { - "$id": "209", + "$id": "507", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "14" + "$ref": "102" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -2465,14 +7096,14 @@ 200 ], "bodyType": { - "$ref": "127" + "$ref": "255" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "16" + "$ref": "104" } } ], @@ -2484,48 +7115,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/modelWithSimpleArrays", + "path": "/payload/xml/modelWithRenamedUnwrappedModelArray", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "209" + "$ref": "507" } ], "response": { "type": { - "$ref": "127" + "$ref": "255" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.get" }, { - "$id": "210", + "$id": "508", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "211", + "$id": "509", "name": "put", - "resourceName": "ModelWithSimpleArraysValue", + "resourceName": "ModelWithRenamedUnwrappedModelArrayValue", "accessibility": "public", "parameters": [ { - "$id": "212", + "$id": "510", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "18" + "$ref": "106" }, "isApiVersion": false, "optional": false, @@ -2533,21 +7164,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.put.contentType", "methodParameterSegments": [ { - "$id": "213", + "$id": "511", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "18" + "$ref": "106" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -2555,12 +7186,12 @@ ] }, { - "$id": "214", + "$id": "512", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "127" + "$ref": "255" }, "isApiVersion": false, "contentTypes": [ @@ -2571,21 +7202,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.put.input", "methodParameterSegments": [ { - "$id": "215", + "$id": "513", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "127" + "$ref": "255" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -2604,41 +7235,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/modelWithSimpleArrays", + "path": "/payload/xml/modelWithRenamedUnwrappedModelArray", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "213" + "$ref": "511" }, { - "$ref": "215" + "$ref": "513" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.put" } ], "parameters": [ { - "$id": "216", + "$id": "514", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "217", + "$id": "515", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2649,7 +7280,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "218", + "$id": "516", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2659,44 +7290,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithSimpleArraysValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedUnwrappedModelArrayValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "219", + "$id": "517", "kind": "client", - "name": "ModelWithArrayOfModelValue", + "name": "ModelWithRenamedWrappedAndItemModelArrayValue", "namespace": "Payload.Xml", - "doc": "Operations for the ModelWithArrayOfModel type.", + "doc": "§4.5 — Operations for the ModelWithRenamedWrappedAndItemModelArray type.", "methods": [ { - "$id": "220", + "$id": "518", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "221", + "$id": "519", "name": "get", - "resourceName": "ModelWithArrayOfModelValue", + "resourceName": "ModelWithRenamedWrappedAndItemModelArrayValue", "accessibility": "public", "parameters": [ { - "$id": "222", + "$id": "520", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "22" + "$ref": "110" }, "isApiVersion": false, "optional": false, @@ -2704,21 +7335,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.get.accept", "methodParameterSegments": [ { - "$id": "223", + "$id": "521", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "22" + "$ref": "110" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -2732,14 +7363,14 @@ 200 ], "bodyType": { - "$ref": "134" + "$ref": "257" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "24" + "$ref": "112" } } ], @@ -2751,48 +7382,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/modelWithArrayOfModel", + "path": "/payload/xml/modelWithRenamedWrappedAndItemModelArray", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "223" + "$ref": "521" } ], "response": { "type": { - "$ref": "134" + "$ref": "257" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.get" }, { - "$id": "224", + "$id": "522", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "225", + "$id": "523", "name": "put", - "resourceName": "ModelWithArrayOfModelValue", + "resourceName": "ModelWithRenamedWrappedAndItemModelArrayValue", "accessibility": "public", "parameters": [ { - "$id": "226", + "$id": "524", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "26" + "$ref": "114" }, "isApiVersion": false, "optional": false, @@ -2800,21 +7431,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.put.contentType", "methodParameterSegments": [ { - "$id": "227", + "$id": "525", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "26" + "$ref": "114" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -2822,12 +7453,12 @@ ] }, { - "$id": "228", + "$id": "526", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "134" + "$ref": "257" }, "isApiVersion": false, "contentTypes": [ @@ -2838,21 +7469,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.put.input", "methodParameterSegments": [ { - "$id": "229", + "$id": "527", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "134" + "$ref": "257" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -2871,41 +7502,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/modelWithArrayOfModel", + "path": "/payload/xml/modelWithRenamedWrappedAndItemModelArray", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "227" + "$ref": "525" }, { - "$ref": "229" + "$ref": "527" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.put" } ], "parameters": [ { - "$id": "230", + "$id": "528", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "231", + "$id": "529", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2916,7 +7547,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "232", + "$id": "530", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2926,44 +7557,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithArrayOfModelValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedWrappedAndItemModelArrayValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "233", + "$id": "531", "kind": "client", - "name": "ModelWithOptionalFieldValue", + "name": "ModelWithAttributesValue", "namespace": "Payload.Xml", - "doc": "Operations for the ModelWithOptionalField type.", + "doc": "§5.1 — Operations for the ModelWithAttributes type.", "methods": [ { - "$id": "234", + "$id": "532", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "235", + "$id": "533", "name": "get", - "resourceName": "ModelWithOptionalFieldValue", + "resourceName": "ModelWithAttributesValue", "accessibility": "public", "parameters": [ { - "$id": "236", + "$id": "534", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "30" + "$ref": "118" }, "isApiVersion": false, "optional": false, @@ -2971,21 +7602,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get.accept", "methodParameterSegments": [ { - "$id": "237", + "$id": "535", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "30" + "$ref": "118" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -2999,14 +7630,14 @@ 200 ], "bodyType": { - "$ref": "137" + "$ref": "263" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "32" + "$ref": "120" } } ], @@ -3018,48 +7649,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/modelWithOptionalField", + "path": "/payload/xml/modelWithAttributes", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "237" + "$ref": "535" } ], "response": { "type": { - "$ref": "137" + "$ref": "263" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get" }, { - "$id": "238", + "$id": "536", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "239", + "$id": "537", "name": "put", - "resourceName": "ModelWithOptionalFieldValue", + "resourceName": "ModelWithAttributesValue", "accessibility": "public", "parameters": [ { - "$id": "240", + "$id": "538", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "34" + "$ref": "122" }, "isApiVersion": false, "optional": false, @@ -3067,21 +7698,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.contentType", "methodParameterSegments": [ { - "$id": "241", + "$id": "539", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "34" + "$ref": "122" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -3089,12 +7720,12 @@ ] }, { - "$id": "242", + "$id": "540", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "137" + "$ref": "263" }, "isApiVersion": false, "contentTypes": [ @@ -3105,21 +7736,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.input", "methodParameterSegments": [ { - "$id": "243", + "$id": "541", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "137" + "$ref": "263" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -3138,41 +7769,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/modelWithOptionalField", + "path": "/payload/xml/modelWithAttributes", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "241" + "$ref": "539" }, { - "$ref": "243" + "$ref": "541" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put" } ], "parameters": [ { - "$id": "244", + "$id": "542", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "245", + "$id": "543", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3183,7 +7814,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "246", + "$id": "544", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3193,44 +7824,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "247", + "$id": "545", "kind": "client", - "name": "ModelWithAttributesValue", + "name": "ModelWithRenamedAttributeValue", "namespace": "Payload.Xml", - "doc": "Operations for the ModelWithAttributes type.", + "doc": "§5.2 — Operations for the ModelWithRenamedAttribute type.", "methods": [ { - "$id": "248", + "$id": "546", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "249", + "$id": "547", "name": "get", - "resourceName": "ModelWithAttributesValue", + "resourceName": "ModelWithRenamedAttributeValue", "accessibility": "public", "parameters": [ { - "$id": "250", + "$id": "548", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "38" + "$ref": "126" }, "isApiVersion": false, "optional": false, @@ -3238,21 +7869,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.get.accept", "methodParameterSegments": [ { - "$id": "251", + "$id": "549", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "38" + "$ref": "126" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -3266,14 +7897,14 @@ 200 ], "bodyType": { - "$ref": "142" + "$ref": "270" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "40" + "$ref": "128" } } ], @@ -3285,48 +7916,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/modelWithAttributes", + "path": "/payload/xml/modelWithRenamedAttribute", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "251" + "$ref": "549" } ], "response": { "type": { - "$ref": "142" + "$ref": "270" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.get" }, { - "$id": "252", + "$id": "550", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "253", + "$id": "551", "name": "put", - "resourceName": "ModelWithAttributesValue", + "resourceName": "ModelWithRenamedAttributeValue", "accessibility": "public", "parameters": [ { - "$id": "254", + "$id": "552", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "42" + "$ref": "130" }, "isApiVersion": false, "optional": false, @@ -3334,21 +7965,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.put.contentType", "methodParameterSegments": [ { - "$id": "255", + "$id": "553", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "42" + "$ref": "130" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -3356,12 +7987,12 @@ ] }, { - "$id": "256", + "$id": "554", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "142" + "$ref": "270" }, "isApiVersion": false, "contentTypes": [ @@ -3372,21 +8003,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.put.input", "methodParameterSegments": [ { - "$id": "257", + "$id": "555", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "142" + "$ref": "270" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -3405,41 +8036,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/modelWithAttributes", + "path": "/payload/xml/modelWithRenamedAttribute", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "255" + "$ref": "553" }, { - "$ref": "257" + "$ref": "555" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.put" } ], "parameters": [ { - "$id": "258", + "$id": "556", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "259", + "$id": "557", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3450,7 +8081,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "260", + "$id": "558", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3460,44 +8091,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithAttributesValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedAttributeValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "261", + "$id": "559", "kind": "client", - "name": "ModelWithUnwrappedArrayValue", + "name": "ModelWithNamespaceValue", "namespace": "Payload.Xml", - "doc": "Operations for the ModelWithUnwrappedArray type.", + "doc": "§6.1, §7.1 — Operations for the ModelWithNamespace type.", "methods": [ { - "$id": "262", + "$id": "560", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "263", + "$id": "561", "name": "get", - "resourceName": "ModelWithUnwrappedArrayValue", + "resourceName": "ModelWithNamespaceValue", "accessibility": "public", "parameters": [ { - "$id": "264", + "$id": "562", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "46" + "$ref": "134" }, "isApiVersion": false, "optional": false, @@ -3505,21 +8136,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.get.accept", "methodParameterSegments": [ { - "$id": "265", + "$id": "563", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "46" + "$ref": "134" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -3533,14 +8164,14 @@ 200 ], "bodyType": { - "$ref": "149" + "$ref": "277" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "48" + "$ref": "136" } } ], @@ -3552,48 +8183,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/modelWithUnwrappedArray", + "path": "/payload/xml/modelWithNamespace", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "265" + "$ref": "563" } ], "response": { "type": { - "$ref": "149" + "$ref": "277" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.get" }, { - "$id": "266", + "$id": "564", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "267", + "$id": "565", "name": "put", - "resourceName": "ModelWithUnwrappedArrayValue", + "resourceName": "ModelWithNamespaceValue", "accessibility": "public", "parameters": [ { - "$id": "268", + "$id": "566", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "50" + "$ref": "138" }, "isApiVersion": false, "optional": false, @@ -3601,21 +8232,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.put.contentType", "methodParameterSegments": [ { - "$id": "269", + "$id": "567", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "50" + "$ref": "138" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -3623,12 +8254,12 @@ ] }, { - "$id": "270", + "$id": "568", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "149" + "$ref": "277" }, "isApiVersion": false, "contentTypes": [ @@ -3639,21 +8270,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.put.input", "methodParameterSegments": [ { - "$id": "271", + "$id": "569", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "149" + "$ref": "277" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -3672,41 +8303,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/modelWithUnwrappedArray", + "path": "/payload/xml/modelWithNamespace", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "269" + "$ref": "567" }, { - "$ref": "271" + "$ref": "569" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.put" } ], "parameters": [ { - "$id": "272", + "$id": "570", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "273", + "$id": "571", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3717,7 +8348,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "274", + "$id": "572", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3727,44 +8358,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithUnwrappedArrayValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "275", + "$id": "573", "kind": "client", - "name": "ModelWithRenamedArraysValue", + "name": "ModelWithNamespaceOnPropertiesValue", "namespace": "Payload.Xml", - "doc": "Operations for the ModelWithRenamedArrays type.", + "doc": "§6.2, §7.2 — Operations for the ModelWithNamespaceOnProperties type.", "methods": [ { - "$id": "276", + "$id": "574", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "277", + "$id": "575", "name": "get", - "resourceName": "ModelWithRenamedArraysValue", + "resourceName": "ModelWithNamespaceOnPropertiesValue", "accessibility": "public", "parameters": [ { - "$id": "278", + "$id": "576", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "54" + "$ref": "142" }, "isApiVersion": false, "optional": false, @@ -3772,21 +8403,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.get.accept", "methodParameterSegments": [ { - "$id": "279", + "$id": "577", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "54" + "$ref": "142" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -3800,14 +8431,14 @@ 200 ], "bodyType": { - "$ref": "152" + "$ref": "287" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "56" + "$ref": "144" } } ], @@ -3819,48 +8450,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/modelWithRenamedArrays", + "path": "/payload/xml/modelWithNamespaceOnProperties", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "279" + "$ref": "577" } ], "response": { "type": { - "$ref": "152" + "$ref": "287" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.get" }, { - "$id": "280", + "$id": "578", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "281", + "$id": "579", "name": "put", - "resourceName": "ModelWithRenamedArraysValue", + "resourceName": "ModelWithNamespaceOnPropertiesValue", "accessibility": "public", "parameters": [ { - "$id": "282", + "$id": "580", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "58" + "$ref": "146" }, "isApiVersion": false, "optional": false, @@ -3868,21 +8499,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.put.contentType", "methodParameterSegments": [ { - "$id": "283", + "$id": "581", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "58" + "$ref": "146" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -3890,12 +8521,12 @@ ] }, { - "$id": "284", + "$id": "582", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "152" + "$ref": "287" }, "isApiVersion": false, "contentTypes": [ @@ -3906,21 +8537,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.put.input", "methodParameterSegments": [ { - "$id": "285", + "$id": "583", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "152" + "$ref": "287" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -3939,41 +8570,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/modelWithRenamedArrays", + "path": "/payload/xml/modelWithNamespaceOnProperties", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "283" + "$ref": "581" }, { - "$ref": "285" + "$ref": "583" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.put" } ], "parameters": [ { - "$id": "286", + "$id": "584", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "287", + "$id": "585", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3984,7 +8615,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "288", + "$id": "586", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3994,44 +8625,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedArraysValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithNamespaceOnPropertiesValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "289", + "$id": "587", "kind": "client", - "name": "ModelWithRenamedFieldsValue", + "name": "ModelWithTextValue", "namespace": "Payload.Xml", - "doc": "Operations for the ModelWithRenamedFields type.", + "doc": "§8.1 — Operations for the ModelWithText type.", "methods": [ { - "$id": "290", + "$id": "588", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "291", + "$id": "589", "name": "get", - "resourceName": "ModelWithRenamedFieldsValue", + "resourceName": "ModelWithTextValue", "accessibility": "public", "parameters": [ { - "$id": "292", + "$id": "590", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "62" + "$ref": "150" }, "isApiVersion": false, "optional": false, @@ -4039,21 +8670,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get.accept", "methodParameterSegments": [ { - "$id": "293", + "$id": "591", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "62" + "$ref": "150" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -4067,14 +8698,14 @@ 200 ], "bodyType": { - "$ref": "155" + "$ref": "297" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "64" + "$ref": "152" } } ], @@ -4086,48 +8717,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/modelWithRenamedFields", + "path": "/payload/xml/modelWithText", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "293" + "$ref": "591" } ], "response": { "type": { - "$ref": "155" + "$ref": "297" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get" }, { - "$id": "294", + "$id": "592", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "295", + "$id": "593", "name": "put", - "resourceName": "ModelWithRenamedFieldsValue", + "resourceName": "ModelWithTextValue", "accessibility": "public", "parameters": [ { - "$id": "296", + "$id": "594", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "66" + "$ref": "154" }, "isApiVersion": false, "optional": false, @@ -4135,21 +8766,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.contentType", "methodParameterSegments": [ { - "$id": "297", + "$id": "595", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "66" + "$ref": "154" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -4157,12 +8788,12 @@ ] }, { - "$id": "298", + "$id": "596", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "155" + "$ref": "297" }, "isApiVersion": false, "contentTypes": [ @@ -4173,21 +8804,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.input", "methodParameterSegments": [ { - "$id": "299", + "$id": "597", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "155" + "$ref": "297" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -4206,41 +8837,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/modelWithRenamedFields", + "path": "/payload/xml/modelWithText", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "297" + "$ref": "595" }, { - "$ref": "299" + "$ref": "597" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put" } ], "parameters": [ { - "$id": "300", + "$id": "598", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "301", + "$id": "599", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4251,7 +8882,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "302", + "$id": "600", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4261,44 +8892,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithRenamedFieldsValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "303", + "$id": "601", "kind": "client", - "name": "ModelWithEmptyArrayValue", + "name": "ModelWithOptionalFieldValue", "namespace": "Payload.Xml", - "doc": "Operations for the ModelWithEmptyArray type.", + "doc": "Operations for the ModelWithOptionalField type.", "methods": [ { - "$id": "304", + "$id": "602", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "305", + "$id": "603", "name": "get", - "resourceName": "ModelWithEmptyArrayValue", + "resourceName": "ModelWithOptionalFieldValue", "accessibility": "public", "parameters": [ { - "$id": "306", + "$id": "604", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "70" + "$ref": "158" }, "isApiVersion": false, "optional": false, @@ -4306,21 +8937,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get.accept", "methodParameterSegments": [ { - "$id": "307", + "$id": "605", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "70" + "$ref": "158" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -4334,14 +8965,14 @@ 200 ], "bodyType": { - "$ref": "158" + "$ref": "302" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "72" + "$ref": "160" } } ], @@ -4353,48 +8984,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/modelWithEmptyArray", + "path": "/payload/xml/modelWithOptionalField", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "307" + "$ref": "605" } ], "response": { "type": { - "$ref": "158" + "$ref": "302" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.get" }, { - "$id": "308", + "$id": "606", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "309", + "$id": "607", "name": "put", - "resourceName": "ModelWithEmptyArrayValue", + "resourceName": "ModelWithOptionalFieldValue", "accessibility": "public", "parameters": [ { - "$id": "310", + "$id": "608", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "74" + "$ref": "162" }, "isApiVersion": false, "optional": false, @@ -4402,21 +9033,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.contentType", "methodParameterSegments": [ { - "$id": "311", + "$id": "609", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "74" + "$ref": "162" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -4424,12 +9055,12 @@ ] }, { - "$id": "312", + "$id": "610", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "158" + "$ref": "302" }, "isApiVersion": false, "contentTypes": [ @@ -4440,21 +9071,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.input", "methodParameterSegments": [ { - "$id": "313", + "$id": "611", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "158" + "$ref": "302" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -4473,41 +9104,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/modelWithEmptyArray", + "path": "/payload/xml/modelWithOptionalField", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "311" + "$ref": "609" }, { - "$ref": "313" + "$ref": "611" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.put" } ], "parameters": [ { - "$id": "314", + "$id": "612", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "315", + "$id": "613", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4518,7 +9149,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "316", + "$id": "614", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4528,44 +9159,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithOptionalFieldValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "317", + "$id": "615", "kind": "client", - "name": "ModelWithTextValue", + "name": "ModelWithEmptyArrayValue", "namespace": "Payload.Xml", - "doc": "Operations for the ModelWithText type.", + "doc": "Operations for the ModelWithEmptyArray type.", "methods": [ { - "$id": "318", + "$id": "616", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "319", + "$id": "617", "name": "get", - "resourceName": "ModelWithTextValue", + "resourceName": "ModelWithEmptyArrayValue", "accessibility": "public", "parameters": [ { - "$id": "320", + "$id": "618", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "78" + "$ref": "166" }, "isApiVersion": false, "optional": false, @@ -4573,21 +9204,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get.accept", "methodParameterSegments": [ { - "$id": "321", + "$id": "619", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "78" + "$ref": "166" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get.accept", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get.accept", "readOnly": false, "access": "public", "decorators": [] @@ -4601,14 +9232,14 @@ 200 ], "bodyType": { - "$ref": "160" + "$ref": "307" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "80" + "$ref": "168" } } ], @@ -4620,48 +9251,48 @@ ], "httpMethod": "GET", "uri": "{endpoint}", - "path": "/payload/xml/modelWithText", + "path": "/payload/xml/modelWithEmptyArray", "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "321" + "$ref": "619" } ], "response": { "type": { - "$ref": "160" + "$ref": "307" } }, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.get" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.get" }, { - "$id": "322", + "$id": "620", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "323", + "$id": "621", "name": "put", - "resourceName": "ModelWithTextValue", + "resourceName": "ModelWithEmptyArrayValue", "accessibility": "public", "parameters": [ { - "$id": "324", + "$id": "622", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "82" + "$ref": "170" }, "isApiVersion": false, "optional": false, @@ -4669,21 +9300,21 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.contentType", "methodParameterSegments": [ { - "$id": "325", + "$id": "623", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "82" + "$ref": "170" }, "location": "Header", "isApiVersion": false, "optional": false, "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.contentType", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.contentType", "readOnly": false, "access": "public", "decorators": [] @@ -4691,12 +9322,12 @@ ] }, { - "$id": "326", + "$id": "624", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "160" + "$ref": "307" }, "isApiVersion": false, "contentTypes": [ @@ -4707,21 +9338,21 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.input", "methodParameterSegments": [ { - "$id": "327", + "$id": "625", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "160" + "$ref": "307" }, "location": "Body", "isApiVersion": false, "optional": false, "scope": "Method", - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put.input", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put.input", "readOnly": false, "access": "public", "decorators": [] @@ -4740,41 +9371,41 @@ ], "httpMethod": "PUT", "uri": "{endpoint}", - "path": "/payload/xml/modelWithText", + "path": "/payload/xml/modelWithEmptyArray", "requestMediaTypes": [ "application/xml" ], "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put", "decorators": [], "namespace": "Payload.Xml" }, "parameters": [ { - "$ref": "325" + "$ref": "623" }, { - "$ref": "327" + "$ref": "625" } ], "response": {}, "isOverride": false, "generateConvenient": true, "generateProtocol": true, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.put" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.put" } ], "parameters": [ { - "$id": "328", + "$id": "626", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "329", + "$id": "627", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4785,7 +9416,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "330", + "$id": "628", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4795,44 +9426,44 @@ "serverUrlTemplate": "{endpoint}", "skipUrlEncoding": false, "readOnly": false, - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue.endpoint" + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue.endpoint" } ], "initializedBy": 0, "decorators": [], - "crossLanguageDefinitionId": "Payload.Xml.ModelWithTextValue", + "crossLanguageDefinitionId": "Payload.Xml.ModelWithEmptyArrayValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "331", + "$id": "629", "kind": "client", "name": "ModelWithDictionaryValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithDictionary type.", "methods": [ { - "$id": "332", + "$id": "630", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "333", + "$id": "631", "name": "get", "resourceName": "ModelWithDictionaryValue", "accessibility": "public", "parameters": [ { - "$id": "334", + "$id": "632", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "86" + "$ref": "174" }, "isApiVersion": false, "optional": false, @@ -4843,12 +9474,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.get.accept", "methodParameterSegments": [ { - "$id": "335", + "$id": "633", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "86" + "$ref": "174" }, "location": "Header", "isApiVersion": false, @@ -4868,14 +9499,14 @@ 200 ], "bodyType": { - "$ref": "165" + "$ref": "309" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "88" + "$ref": "176" } } ], @@ -4897,12 +9528,12 @@ }, "parameters": [ { - "$ref": "335" + "$ref": "633" } ], "response": { "type": { - "$ref": "165" + "$ref": "309" } }, "isOverride": false, @@ -4911,24 +9542,24 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.get" }, { - "$id": "336", + "$id": "634", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "337", + "$id": "635", "name": "put", "resourceName": "ModelWithDictionaryValue", "accessibility": "public", "parameters": [ { - "$id": "338", + "$id": "636", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "90" + "$ref": "178" }, "isApiVersion": false, "optional": false, @@ -4939,12 +9570,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.put.contentType", "methodParameterSegments": [ { - "$id": "339", + "$id": "637", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "90" + "$ref": "178" }, "location": "Header", "isApiVersion": false, @@ -4958,12 +9589,12 @@ ] }, { - "$id": "340", + "$id": "638", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "165" + "$ref": "309" }, "isApiVersion": false, "contentTypes": [ @@ -4977,12 +9608,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue.put.input", "methodParameterSegments": [ { - "$id": "341", + "$id": "639", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "165" + "$ref": "309" }, "location": "Body", "isApiVersion": false, @@ -5020,10 +9651,10 @@ }, "parameters": [ { - "$ref": "339" + "$ref": "637" }, { - "$ref": "341" + "$ref": "639" } ], "response": {}, @@ -5035,13 +9666,13 @@ ], "parameters": [ { - "$id": "342", + "$id": "640", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "343", + "$id": "641", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5052,7 +9683,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "344", + "$id": "642", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5070,36 +9701,36 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDictionaryValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "345", + "$id": "643", "kind": "client", "name": "ModelWithEncodedNamesValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithEncodedNames type.", "methods": [ { - "$id": "346", + "$id": "644", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "347", + "$id": "645", "name": "get", "resourceName": "ModelWithEncodedNamesValue", "accessibility": "public", "parameters": [ { - "$id": "348", + "$id": "646", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "94" + "$ref": "182" }, "isApiVersion": false, "optional": false, @@ -5110,12 +9741,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.get.accept", "methodParameterSegments": [ { - "$id": "349", + "$id": "647", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "94" + "$ref": "182" }, "location": "Header", "isApiVersion": false, @@ -5135,14 +9766,14 @@ 200 ], "bodyType": { - "$ref": "170" + "$ref": "314" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "96" + "$ref": "184" } } ], @@ -5164,12 +9795,12 @@ }, "parameters": [ { - "$ref": "349" + "$ref": "647" } ], "response": { "type": { - "$ref": "170" + "$ref": "314" } }, "isOverride": false, @@ -5178,24 +9809,24 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.get" }, { - "$id": "350", + "$id": "648", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "351", + "$id": "649", "name": "put", "resourceName": "ModelWithEncodedNamesValue", "accessibility": "public", "parameters": [ { - "$id": "352", + "$id": "650", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "98" + "$ref": "186" }, "isApiVersion": false, "optional": false, @@ -5206,12 +9837,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.put.contentType", "methodParameterSegments": [ { - "$id": "353", + "$id": "651", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "98" + "$ref": "186" }, "location": "Header", "isApiVersion": false, @@ -5225,12 +9856,12 @@ ] }, { - "$id": "354", + "$id": "652", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "170" + "$ref": "314" }, "isApiVersion": false, "contentTypes": [ @@ -5244,12 +9875,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue.put.input", "methodParameterSegments": [ { - "$id": "355", + "$id": "653", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "170" + "$ref": "314" }, "location": "Body", "isApiVersion": false, @@ -5287,10 +9918,10 @@ }, "parameters": [ { - "$ref": "353" + "$ref": "651" }, { - "$ref": "355" + "$ref": "653" } ], "response": {}, @@ -5302,13 +9933,13 @@ ], "parameters": [ { - "$id": "356", + "$id": "654", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "357", + "$id": "655", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5319,7 +9950,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "358", + "$id": "656", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5337,36 +9968,36 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEncodedNamesValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "359", + "$id": "657", "kind": "client", "name": "ModelWithEnumValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithEnum type.", "methods": [ { - "$id": "360", + "$id": "658", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "361", + "$id": "659", "name": "get", "resourceName": "ModelWithEnumValue", "accessibility": "public", "parameters": [ { - "$id": "362", + "$id": "660", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "102" + "$ref": "190" }, "isApiVersion": false, "optional": false, @@ -5377,12 +10008,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEnumValue.get.accept", "methodParameterSegments": [ { - "$id": "363", + "$id": "661", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "102" + "$ref": "190" }, "location": "Header", "isApiVersion": false, @@ -5402,14 +10033,14 @@ 200 ], "bodyType": { - "$ref": "173" + "$ref": "317" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "104" + "$ref": "192" } } ], @@ -5431,12 +10062,12 @@ }, "parameters": [ { - "$ref": "363" + "$ref": "661" } ], "response": { "type": { - "$ref": "173" + "$ref": "317" } }, "isOverride": false, @@ -5445,24 +10076,24 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEnumValue.get" }, { - "$id": "364", + "$id": "662", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "365", + "$id": "663", "name": "put", "resourceName": "ModelWithEnumValue", "accessibility": "public", "parameters": [ { - "$id": "366", + "$id": "664", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "106" + "$ref": "194" }, "isApiVersion": false, "optional": false, @@ -5473,12 +10104,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEnumValue.put.contentType", "methodParameterSegments": [ { - "$id": "367", + "$id": "665", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "106" + "$ref": "194" }, "location": "Header", "isApiVersion": false, @@ -5492,12 +10123,12 @@ ] }, { - "$id": "368", + "$id": "666", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "173" + "$ref": "317" }, "isApiVersion": false, "contentTypes": [ @@ -5511,12 +10142,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEnumValue.put.input", "methodParameterSegments": [ { - "$id": "369", + "$id": "667", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "173" + "$ref": "317" }, "location": "Body", "isApiVersion": false, @@ -5554,10 +10185,10 @@ }, "parameters": [ { - "$ref": "367" + "$ref": "665" }, { - "$ref": "369" + "$ref": "667" } ], "response": {}, @@ -5569,13 +10200,13 @@ ], "parameters": [ { - "$id": "370", + "$id": "668", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "371", + "$id": "669", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5586,7 +10217,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "372", + "$id": "670", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5604,36 +10235,36 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithEnumValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "373", + "$id": "671", "kind": "client", "name": "ModelWithDatetimeValue", "namespace": "Payload.Xml", "doc": "Operations for the ModelWithDatetime type.", "methods": [ { - "$id": "374", + "$id": "672", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "375", + "$id": "673", "name": "get", "resourceName": "ModelWithDatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "376", + "$id": "674", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "110" + "$ref": "198" }, "isApiVersion": false, "optional": false, @@ -5644,12 +10275,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetimeValue.get.accept", "methodParameterSegments": [ { - "$id": "377", + "$id": "675", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "110" + "$ref": "198" }, "location": "Header", "isApiVersion": false, @@ -5669,14 +10300,14 @@ 200 ], "bodyType": { - "$ref": "175" + "$ref": "319" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "112" + "$ref": "200" } } ], @@ -5698,12 +10329,12 @@ }, "parameters": [ { - "$ref": "377" + "$ref": "675" } ], "response": { "type": { - "$ref": "175" + "$ref": "319" } }, "isOverride": false, @@ -5712,24 +10343,24 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetimeValue.get" }, { - "$id": "378", + "$id": "676", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "379", + "$id": "677", "name": "put", "resourceName": "ModelWithDatetimeValue", "accessibility": "public", "parameters": [ { - "$id": "380", + "$id": "678", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "114" + "$ref": "202" }, "isApiVersion": false, "optional": false, @@ -5740,12 +10371,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetimeValue.put.contentType", "methodParameterSegments": [ { - "$id": "381", + "$id": "679", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "114" + "$ref": "202" }, "location": "Header", "isApiVersion": false, @@ -5759,12 +10390,12 @@ ] }, { - "$id": "382", + "$id": "680", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "175" + "$ref": "319" }, "isApiVersion": false, "contentTypes": [ @@ -5778,12 +10409,12 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetimeValue.put.input", "methodParameterSegments": [ { - "$id": "383", + "$id": "681", "kind": "method", "name": "input", "serializedName": "input", "type": { - "$ref": "175" + "$ref": "319" }, "location": "Body", "isApiVersion": false, @@ -5821,10 +10452,10 @@ }, "parameters": [ { - "$ref": "381" + "$ref": "679" }, { - "$ref": "383" + "$ref": "681" } ], "response": {}, @@ -5836,13 +10467,13 @@ ], "parameters": [ { - "$id": "384", + "$id": "682", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "385", + "$id": "683", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5853,7 +10484,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "386", + "$id": "684", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5871,36 +10502,36 @@ "crossLanguageDefinitionId": "Payload.Xml.ModelWithDatetimeValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false }, { - "$id": "387", + "$id": "685", "kind": "client", "name": "XmlErrorValue", "namespace": "Payload.Xml", "doc": "Operations that return an error response in XML format.", "methods": [ { - "$id": "388", + "$id": "686", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "389", + "$id": "687", "name": "get", "resourceName": "XmlErrorValue", "accessibility": "public", "parameters": [ { - "$id": "390", + "$id": "688", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "118" + "$ref": "206" }, "isApiVersion": false, "optional": false, @@ -5911,12 +10542,12 @@ "crossLanguageDefinitionId": "Payload.Xml.XmlErrorValue.get.accept", "methodParameterSegments": [ { - "$id": "391", + "$id": "689", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "118" + "$ref": "206" }, "location": "Header", "isApiVersion": false, @@ -5936,14 +10567,14 @@ 200 ], "bodyType": { - "$ref": "122" + "$ref": "210" }, "headers": [ { "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "120" + "$ref": "208" } } ], @@ -5965,12 +10596,12 @@ }, "parameters": [ { - "$ref": "391" + "$ref": "689" } ], "response": { "type": { - "$ref": "122" + "$ref": "210" } }, "isOverride": false, @@ -5981,13 +10612,13 @@ ], "parameters": [ { - "$id": "392", + "$id": "690", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "393", + "$id": "691", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5998,7 +10629,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "394", + "$id": "692", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6016,7 +10647,7 @@ "crossLanguageDefinitionId": "Payload.Xml.XmlErrorValue", "apiVersions": [], "parent": { - "$ref": "187" + "$ref": "331" }, "isMultiServiceClient": false } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/ExtensibleStrings.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/ExtensibleStrings.cs index a806732aa86..e3eccdf112f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/ExtensibleStrings.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/ExtensibleStrings.cs @@ -8,7 +8,7 @@ using System.Threading; using System.Threading.Tasks; -namespace SpecialWords +namespace SpecialWords._ExtensibleStrings { public partial class ExtensibleStrings { @@ -18,12 +18,12 @@ public partial class ExtensibleStrings public ClientPipeline Pipeline => throw null; - public virtual ClientResult PutExtensibleStringValue(string accept, BinaryContent content, RequestOptions options = null) => throw null; + public virtual ClientResult PutExtensibleStringValue(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutExtensibleStringValueAsync(string accept, BinaryContent content, RequestOptions options = null) => throw null; + public virtual Task PutExtensibleStringValueAsync(BinaryContent content, RequestOptions options = null) => throw null; - public virtual ClientResult PutExtensibleStringValue(string accept, ExtensibleString body, CancellationToken cancellationToken = default) => throw null; + public virtual ClientResult PutExtensibleStringValue(ExtensibleString body, CancellationToken cancellationToken = default) => throw null; - public virtual Task> PutExtensibleStringValueAsync(string accept, ExtensibleString body, CancellationToken cancellationToken = default) => throw null; + public virtual Task> PutExtensibleStringValueAsync(ExtensibleString body, CancellationToken cancellationToken = default) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ExtensibleString.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ExtensibleString.cs index 55ebd23ee70..624c939fe34 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ExtensibleString.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/ExtensibleString.cs @@ -5,7 +5,7 @@ using System; using System.ComponentModel; -namespace SpecialWords +namespace SpecialWords._ExtensibleStrings { public readonly partial struct ExtensibleString : IEquatable { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/SpecialWordsClient.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/SpecialWordsClient.cs index 652db690e95..03609a93376 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/SpecialWordsClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/SpecialWordsClient.cs @@ -5,6 +5,7 @@ using System; using System.ClientModel.Primitives; using System.Diagnostics.CodeAnalysis; +using SpecialWords._ExtensibleStrings; using SpecialWords._ModelProperties; using SpecialWords._Models; @@ -27,10 +28,10 @@ public partial class SpecialWordsClient public virtual ModelProperties GetModelPropertiesClient() => throw null; + public virtual ExtensibleStrings GetExtensibleStringsClient() => throw null; + public virtual Operations GetOperationsClient() => throw null; public virtual Parameters GetParametersClient() => throw null; - - public virtual ExtensibleStrings GetExtensibleStringsClient() => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json index fede5745149..faf70c73089 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json @@ -6,7 +6,7 @@ "$id": "1", "kind": "enum", "name": "ExtensibleString", - "crossLanguageDefinitionId": "SpecialWords.ExtensibleString", + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.ExtensibleString", "valueType": { "$id": "2", "kind": "string", @@ -445,11 +445,11 @@ "decorators": [] } ], - "namespace": "SpecialWords", + "namespace": "SpecialWords.ExtensibleStrings", "doc": "Verify enum member names that are special words using extensible enum (union).", "isFixed": false, "isFlags": false, - "usage": "Input", + "usage": "Input,Output,Json", "decorators": [] } ], @@ -1033,7 +1033,7 @@ { "$id": "108", "kind": "constant", - "name": "putExtensibleStringValueContentType", + "name": "PutExtensibleStringValueRequestContentType", "namespace": "", "usage": "None", "valueType": { @@ -1043,13 +1043,61 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "text/plain", + "value": "application/json", + "decorators": [] + }, + { + "$id": "110", + "kind": "constant", + "name": "PutExtensibleStringValueRequestContentType1", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "112", + "kind": "constant", + "name": "putExtensibleStringValueContentType", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + { + "$id": "114", + "kind": "constant", + "name": "PutExtensibleStringValueRequestContentType2", + "namespace": "", + "usage": "None", + "valueType": { + "$id": "115", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] } ], "models": [ { - "$id": "110", + "$id": "116", "kind": "model", "name": "and", "namespace": "SpecialWords.Models", @@ -1063,12 +1111,12 @@ }, "properties": [ { - "$id": "111", + "$id": "117", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "112", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1090,7 +1138,7 @@ ] }, { - "$id": "113", + "$id": "119", "kind": "model", "name": "as", "namespace": "SpecialWords.Models", @@ -1104,12 +1152,12 @@ }, "properties": [ { - "$id": "114", + "$id": "120", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "115", + "$id": "121", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1131,7 +1179,7 @@ ] }, { - "$id": "116", + "$id": "122", "kind": "model", "name": "assert", "namespace": "SpecialWords.Models", @@ -1145,12 +1193,12 @@ }, "properties": [ { - "$id": "117", + "$id": "123", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "118", + "$id": "124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1172,7 +1220,7 @@ ] }, { - "$id": "119", + "$id": "125", "kind": "model", "name": "async", "namespace": "SpecialWords.Models", @@ -1186,12 +1234,12 @@ }, "properties": [ { - "$id": "120", + "$id": "126", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "121", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1213,7 +1261,7 @@ ] }, { - "$id": "122", + "$id": "128", "kind": "model", "name": "await", "namespace": "SpecialWords.Models", @@ -1227,12 +1275,12 @@ }, "properties": [ { - "$id": "123", + "$id": "129", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "124", + "$id": "130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1254,7 +1302,7 @@ ] }, { - "$id": "125", + "$id": "131", "kind": "model", "name": "break", "namespace": "SpecialWords.Models", @@ -1268,12 +1316,12 @@ }, "properties": [ { - "$id": "126", + "$id": "132", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "127", + "$id": "133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1295,7 +1343,7 @@ ] }, { - "$id": "128", + "$id": "134", "kind": "model", "name": "class", "namespace": "SpecialWords.Models", @@ -1309,12 +1357,12 @@ }, "properties": [ { - "$id": "129", + "$id": "135", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "130", + "$id": "136", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1336,7 +1384,7 @@ ] }, { - "$id": "131", + "$id": "137", "kind": "model", "name": "constructor", "namespace": "SpecialWords.Models", @@ -1350,12 +1398,12 @@ }, "properties": [ { - "$id": "132", + "$id": "138", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "133", + "$id": "139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1377,7 +1425,7 @@ ] }, { - "$id": "134", + "$id": "140", "kind": "model", "name": "continue", "namespace": "SpecialWords.Models", @@ -1391,12 +1439,12 @@ }, "properties": [ { - "$id": "135", + "$id": "141", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "136", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1418,7 +1466,7 @@ ] }, { - "$id": "137", + "$id": "143", "kind": "model", "name": "def", "namespace": "SpecialWords.Models", @@ -1432,12 +1480,12 @@ }, "properties": [ { - "$id": "138", + "$id": "144", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "139", + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1459,7 +1507,7 @@ ] }, { - "$id": "140", + "$id": "146", "kind": "model", "name": "del", "namespace": "SpecialWords.Models", @@ -1473,12 +1521,12 @@ }, "properties": [ { - "$id": "141", + "$id": "147", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "142", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1500,7 +1548,7 @@ ] }, { - "$id": "143", + "$id": "149", "kind": "model", "name": "elif", "namespace": "SpecialWords.Models", @@ -1514,12 +1562,12 @@ }, "properties": [ { - "$id": "144", + "$id": "150", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "145", + "$id": "151", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1541,7 +1589,7 @@ ] }, { - "$id": "146", + "$id": "152", "kind": "model", "name": "else", "namespace": "SpecialWords.Models", @@ -1555,12 +1603,12 @@ }, "properties": [ { - "$id": "147", + "$id": "153", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "148", + "$id": "154", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1582,7 +1630,7 @@ ] }, { - "$id": "149", + "$id": "155", "kind": "model", "name": "except", "namespace": "SpecialWords.Models", @@ -1596,12 +1644,12 @@ }, "properties": [ { - "$id": "150", + "$id": "156", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "151", + "$id": "157", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1623,7 +1671,7 @@ ] }, { - "$id": "152", + "$id": "158", "kind": "model", "name": "exec", "namespace": "SpecialWords.Models", @@ -1637,12 +1685,12 @@ }, "properties": [ { - "$id": "153", + "$id": "159", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "154", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1664,7 +1712,7 @@ ] }, { - "$id": "155", + "$id": "161", "kind": "model", "name": "finally", "namespace": "SpecialWords.Models", @@ -1678,12 +1726,12 @@ }, "properties": [ { - "$id": "156", + "$id": "162", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "157", + "$id": "163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1705,7 +1753,7 @@ ] }, { - "$id": "158", + "$id": "164", "kind": "model", "name": "for", "namespace": "SpecialWords.Models", @@ -1719,12 +1767,12 @@ }, "properties": [ { - "$id": "159", + "$id": "165", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "160", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1746,7 +1794,7 @@ ] }, { - "$id": "161", + "$id": "167", "kind": "model", "name": "from", "namespace": "SpecialWords.Models", @@ -1760,12 +1808,12 @@ }, "properties": [ { - "$id": "162", + "$id": "168", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "163", + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1787,7 +1835,7 @@ ] }, { - "$id": "164", + "$id": "170", "kind": "model", "name": "global", "namespace": "SpecialWords.Models", @@ -1801,12 +1849,12 @@ }, "properties": [ { - "$id": "165", + "$id": "171", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "166", + "$id": "172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1828,7 +1876,7 @@ ] }, { - "$id": "167", + "$id": "173", "kind": "model", "name": "if", "namespace": "SpecialWords.Models", @@ -1842,12 +1890,12 @@ }, "properties": [ { - "$id": "168", + "$id": "174", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "169", + "$id": "175", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1869,7 +1917,7 @@ ] }, { - "$id": "170", + "$id": "176", "kind": "model", "name": "import", "namespace": "SpecialWords.Models", @@ -1883,12 +1931,12 @@ }, "properties": [ { - "$id": "171", + "$id": "177", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "172", + "$id": "178", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1910,7 +1958,7 @@ ] }, { - "$id": "173", + "$id": "179", "kind": "model", "name": "in", "namespace": "SpecialWords.Models", @@ -1924,12 +1972,12 @@ }, "properties": [ { - "$id": "174", + "$id": "180", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "175", + "$id": "181", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1951,7 +1999,7 @@ ] }, { - "$id": "176", + "$id": "182", "kind": "model", "name": "is", "namespace": "SpecialWords.Models", @@ -1965,12 +2013,12 @@ }, "properties": [ { - "$id": "177", + "$id": "183", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "178", + "$id": "184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1992,7 +2040,7 @@ ] }, { - "$id": "179", + "$id": "185", "kind": "model", "name": "lambda", "namespace": "SpecialWords.Models", @@ -2006,12 +2054,12 @@ }, "properties": [ { - "$id": "180", + "$id": "186", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "181", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2033,7 +2081,7 @@ ] }, { - "$id": "182", + "$id": "188", "kind": "model", "name": "not", "namespace": "SpecialWords.Models", @@ -2047,12 +2095,12 @@ }, "properties": [ { - "$id": "183", + "$id": "189", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "184", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2074,7 +2122,7 @@ ] }, { - "$id": "185", + "$id": "191", "kind": "model", "name": "or", "namespace": "SpecialWords.Models", @@ -2088,12 +2136,12 @@ }, "properties": [ { - "$id": "186", + "$id": "192", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "187", + "$id": "193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2115,7 +2163,7 @@ ] }, { - "$id": "188", + "$id": "194", "kind": "model", "name": "pass", "namespace": "SpecialWords.Models", @@ -2129,12 +2177,12 @@ }, "properties": [ { - "$id": "189", + "$id": "195", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "190", + "$id": "196", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2156,7 +2204,7 @@ ] }, { - "$id": "191", + "$id": "197", "kind": "model", "name": "raise", "namespace": "SpecialWords.Models", @@ -2170,12 +2218,12 @@ }, "properties": [ { - "$id": "192", + "$id": "198", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "193", + "$id": "199", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2197,7 +2245,7 @@ ] }, { - "$id": "194", + "$id": "200", "kind": "model", "name": "return", "namespace": "SpecialWords.Models", @@ -2211,12 +2259,12 @@ }, "properties": [ { - "$id": "195", + "$id": "201", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "196", + "$id": "202", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2238,7 +2286,7 @@ ] }, { - "$id": "197", + "$id": "203", "kind": "model", "name": "try", "namespace": "SpecialWords.Models", @@ -2252,12 +2300,12 @@ }, "properties": [ { - "$id": "198", + "$id": "204", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "199", + "$id": "205", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2279,7 +2327,7 @@ ] }, { - "$id": "200", + "$id": "206", "kind": "model", "name": "while", "namespace": "SpecialWords.Models", @@ -2293,12 +2341,12 @@ }, "properties": [ { - "$id": "201", + "$id": "207", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "202", + "$id": "208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2320,7 +2368,7 @@ ] }, { - "$id": "203", + "$id": "209", "kind": "model", "name": "with", "namespace": "SpecialWords.Models", @@ -2334,12 +2382,12 @@ }, "properties": [ { - "$id": "204", + "$id": "210", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "205", + "$id": "211", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2361,7 +2409,7 @@ ] }, { - "$id": "206", + "$id": "212", "kind": "model", "name": "yield", "namespace": "SpecialWords.Models", @@ -2375,12 +2423,12 @@ }, "properties": [ { - "$id": "207", + "$id": "213", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "208", + "$id": "214", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2402,7 +2450,7 @@ ] }, { - "$id": "209", + "$id": "215", "kind": "model", "name": "SameAsModel", "namespace": "SpecialWords.ModelProperties", @@ -2416,12 +2464,12 @@ }, "properties": [ { - "$id": "210", + "$id": "216", "kind": "property", "name": "SameAsModel", "serializedName": "SameAsModel", "type": { - "$id": "211", + "$id": "217", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2443,7 +2491,7 @@ ] }, { - "$id": "212", + "$id": "218", "kind": "model", "name": "DictMethods", "namespace": "SpecialWords.ModelProperties", @@ -2457,12 +2505,12 @@ }, "properties": [ { - "$id": "213", + "$id": "219", "kind": "property", "name": "keys", "serializedName": "keys", "type": { - "$id": "214", + "$id": "220", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2482,12 +2530,12 @@ "isHttpMetadata": false }, { - "$id": "215", + "$id": "221", "kind": "property", "name": "items", "serializedName": "items", "type": { - "$id": "216", + "$id": "222", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2507,12 +2555,12 @@ "isHttpMetadata": false }, { - "$id": "217", + "$id": "223", "kind": "property", "name": "values", "serializedName": "values", "type": { - "$id": "218", + "$id": "224", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2532,12 +2580,12 @@ "isHttpMetadata": false }, { - "$id": "219", + "$id": "225", "kind": "property", "name": "popitem", "serializedName": "popitem", "type": { - "$id": "220", + "$id": "226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2557,12 +2605,12 @@ "isHttpMetadata": false }, { - "$id": "221", + "$id": "227", "kind": "property", "name": "clear", "serializedName": "clear", "type": { - "$id": "222", + "$id": "228", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2582,12 +2630,12 @@ "isHttpMetadata": false }, { - "$id": "223", + "$id": "229", "kind": "property", "name": "update", "serializedName": "update", "type": { - "$id": "224", + "$id": "230", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2607,12 +2655,12 @@ "isHttpMetadata": false }, { - "$id": "225", + "$id": "231", "kind": "property", "name": "setdefault", "serializedName": "setdefault", "type": { - "$id": "226", + "$id": "232", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2632,12 +2680,12 @@ "isHttpMetadata": false }, { - "$id": "227", + "$id": "233", "kind": "property", "name": "pop", "serializedName": "pop", "type": { - "$id": "228", + "$id": "234", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2657,12 +2705,12 @@ "isHttpMetadata": false }, { - "$id": "229", + "$id": "235", "kind": "property", "name": "get", "serializedName": "get", "type": { - "$id": "230", + "$id": "236", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2682,12 +2730,12 @@ "isHttpMetadata": false }, { - "$id": "231", + "$id": "237", "kind": "property", "name": "copy", "serializedName": "copy", "type": { - "$id": "232", + "$id": "238", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2709,7 +2757,7 @@ ] }, { - "$id": "233", + "$id": "239", "kind": "model", "name": "ModelWithList", "namespace": "SpecialWords.ModelProperties", @@ -2723,12 +2771,12 @@ }, "properties": [ { - "$id": "234", + "$id": "240", "kind": "property", "name": "list", "serializedName": "list", "type": { - "$id": "235", + "$id": "241", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2752,7 +2800,7 @@ ], "clients": [ { - "$id": "236", + "$id": "242", "kind": "client", "name": "SpecialWordsClient", "namespace": "SpecialWords", @@ -2760,13 +2808,13 @@ "methods": [], "parameters": [ { - "$id": "237", + "$id": "243", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "238", + "$id": "244", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2777,7 +2825,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "239", + "$id": "245", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2796,26 +2844,26 @@ "apiVersions": [], "children": [ { - "$id": "240", + "$id": "246", "kind": "client", "name": "Models", "namespace": "SpecialWords.Models", "doc": "Verify model names", "methods": [ { - "$id": "241", + "$id": "247", "kind": "basic", "name": "withAnd", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "242", + "$id": "248", "name": "withAnd", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "243", + "$id": "249", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2832,7 +2880,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.contentType", "methodParameterSegments": [ { - "$id": "244", + "$id": "250", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2852,12 +2900,12 @@ ] }, { - "$id": "245", + "$id": "251", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "110" + "$ref": "116" }, "isApiVersion": false, "contentTypes": [ @@ -2871,12 +2919,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.body", "methodParameterSegments": [ { - "$id": "246", + "$id": "252", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "110" + "$ref": "116" }, "location": "Body", "isApiVersion": false, @@ -2914,10 +2962,10 @@ }, "parameters": [ { - "$ref": "246" + "$ref": "252" }, { - "$ref": "244" + "$ref": "250" } ], "response": {}, @@ -2927,19 +2975,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAnd" }, { - "$id": "247", + "$id": "253", "kind": "basic", "name": "withAs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "248", + "$id": "254", "name": "withAs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "249", + "$id": "255", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2956,7 +3004,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAs.contentType", "methodParameterSegments": [ { - "$id": "250", + "$id": "256", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -2976,12 +3024,12 @@ ] }, { - "$id": "251", + "$id": "257", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "113" + "$ref": "119" }, "isApiVersion": false, "contentTypes": [ @@ -2995,12 +3043,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAs.body", "methodParameterSegments": [ { - "$id": "252", + "$id": "258", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "113" + "$ref": "119" }, "location": "Body", "isApiVersion": false, @@ -3038,10 +3086,10 @@ }, "parameters": [ { - "$ref": "252" + "$ref": "258" }, { - "$ref": "250" + "$ref": "256" } ], "response": {}, @@ -3051,19 +3099,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAs" }, { - "$id": "253", + "$id": "259", "kind": "basic", "name": "withAssert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "254", + "$id": "260", "name": "withAssert", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "255", + "$id": "261", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3080,7 +3128,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.contentType", "methodParameterSegments": [ { - "$id": "256", + "$id": "262", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3100,12 +3148,12 @@ ] }, { - "$id": "257", + "$id": "263", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "116" + "$ref": "122" }, "isApiVersion": false, "contentTypes": [ @@ -3119,12 +3167,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.body", "methodParameterSegments": [ { - "$id": "258", + "$id": "264", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "116" + "$ref": "122" }, "location": "Body", "isApiVersion": false, @@ -3162,10 +3210,10 @@ }, "parameters": [ { - "$ref": "258" + "$ref": "264" }, { - "$ref": "256" + "$ref": "262" } ], "response": {}, @@ -3175,19 +3223,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAssert" }, { - "$id": "259", + "$id": "265", "kind": "basic", "name": "withAsync", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "260", + "$id": "266", "name": "withAsync", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "261", + "$id": "267", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3204,7 +3252,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.contentType", "methodParameterSegments": [ { - "$id": "262", + "$id": "268", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3224,12 +3272,12 @@ ] }, { - "$id": "263", + "$id": "269", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "119" + "$ref": "125" }, "isApiVersion": false, "contentTypes": [ @@ -3243,12 +3291,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.body", "methodParameterSegments": [ { - "$id": "264", + "$id": "270", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "119" + "$ref": "125" }, "location": "Body", "isApiVersion": false, @@ -3286,10 +3334,10 @@ }, "parameters": [ { - "$ref": "264" + "$ref": "270" }, { - "$ref": "262" + "$ref": "268" } ], "response": {}, @@ -3299,19 +3347,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAsync" }, { - "$id": "265", + "$id": "271", "kind": "basic", "name": "withAwait", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "266", + "$id": "272", "name": "withAwait", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "267", + "$id": "273", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3328,7 +3376,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.contentType", "methodParameterSegments": [ { - "$id": "268", + "$id": "274", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3348,12 +3396,12 @@ ] }, { - "$id": "269", + "$id": "275", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "122" + "$ref": "128" }, "isApiVersion": false, "contentTypes": [ @@ -3367,12 +3415,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.body", "methodParameterSegments": [ { - "$id": "270", + "$id": "276", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "122" + "$ref": "128" }, "location": "Body", "isApiVersion": false, @@ -3410,10 +3458,10 @@ }, "parameters": [ { - "$ref": "270" + "$ref": "276" }, { - "$ref": "268" + "$ref": "274" } ], "response": {}, @@ -3423,19 +3471,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withAwait" }, { - "$id": "271", + "$id": "277", "kind": "basic", "name": "withBreak", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "272", + "$id": "278", "name": "withBreak", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "273", + "$id": "279", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3452,7 +3500,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.contentType", "methodParameterSegments": [ { - "$id": "274", + "$id": "280", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3472,12 +3520,12 @@ ] }, { - "$id": "275", + "$id": "281", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "125" + "$ref": "131" }, "isApiVersion": false, "contentTypes": [ @@ -3491,12 +3539,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.body", "methodParameterSegments": [ { - "$id": "276", + "$id": "282", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "125" + "$ref": "131" }, "location": "Body", "isApiVersion": false, @@ -3534,10 +3582,10 @@ }, "parameters": [ { - "$ref": "276" + "$ref": "282" }, { - "$ref": "274" + "$ref": "280" } ], "response": {}, @@ -3547,19 +3595,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withBreak" }, { - "$id": "277", + "$id": "283", "kind": "basic", "name": "withClass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "278", + "$id": "284", "name": "withClass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "279", + "$id": "285", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3576,7 +3624,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withClass.contentType", "methodParameterSegments": [ { - "$id": "280", + "$id": "286", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3596,12 +3644,12 @@ ] }, { - "$id": "281", + "$id": "287", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "128" + "$ref": "134" }, "isApiVersion": false, "contentTypes": [ @@ -3615,12 +3663,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withClass.body", "methodParameterSegments": [ { - "$id": "282", + "$id": "288", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "128" + "$ref": "134" }, "location": "Body", "isApiVersion": false, @@ -3658,10 +3706,10 @@ }, "parameters": [ { - "$ref": "282" + "$ref": "288" }, { - "$ref": "280" + "$ref": "286" } ], "response": {}, @@ -3671,19 +3719,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withClass" }, { - "$id": "283", + "$id": "289", "kind": "basic", "name": "withConstructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "284", + "$id": "290", "name": "withConstructor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "285", + "$id": "291", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3700,7 +3748,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.contentType", "methodParameterSegments": [ { - "$id": "286", + "$id": "292", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3720,12 +3768,12 @@ ] }, { - "$id": "287", + "$id": "293", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "131" + "$ref": "137" }, "isApiVersion": false, "contentTypes": [ @@ -3739,12 +3787,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.body", "methodParameterSegments": [ { - "$id": "288", + "$id": "294", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "131" + "$ref": "137" }, "location": "Body", "isApiVersion": false, @@ -3782,10 +3830,10 @@ }, "parameters": [ { - "$ref": "288" + "$ref": "294" }, { - "$ref": "286" + "$ref": "292" } ], "response": {}, @@ -3795,19 +3843,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor" }, { - "$id": "289", + "$id": "295", "kind": "basic", "name": "withContinue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "290", + "$id": "296", "name": "withContinue", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "291", + "$id": "297", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3824,7 +3872,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.contentType", "methodParameterSegments": [ { - "$id": "292", + "$id": "298", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3844,12 +3892,12 @@ ] }, { - "$id": "293", + "$id": "299", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "134" + "$ref": "140" }, "isApiVersion": false, "contentTypes": [ @@ -3863,12 +3911,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.body", "methodParameterSegments": [ { - "$id": "294", + "$id": "300", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "134" + "$ref": "140" }, "location": "Body", "isApiVersion": false, @@ -3906,10 +3954,10 @@ }, "parameters": [ { - "$ref": "294" + "$ref": "300" }, { - "$ref": "292" + "$ref": "298" } ], "response": {}, @@ -3919,19 +3967,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withContinue" }, { - "$id": "295", + "$id": "301", "kind": "basic", "name": "withDef", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "296", + "$id": "302", "name": "withDef", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "297", + "$id": "303", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -3948,7 +3996,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDef.contentType", "methodParameterSegments": [ { - "$id": "298", + "$id": "304", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -3968,12 +4016,12 @@ ] }, { - "$id": "299", + "$id": "305", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "137" + "$ref": "143" }, "isApiVersion": false, "contentTypes": [ @@ -3987,12 +4035,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDef.body", "methodParameterSegments": [ { - "$id": "300", + "$id": "306", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "137" + "$ref": "143" }, "location": "Body", "isApiVersion": false, @@ -4030,10 +4078,10 @@ }, "parameters": [ { - "$ref": "300" + "$ref": "306" }, { - "$ref": "298" + "$ref": "304" } ], "response": {}, @@ -4043,19 +4091,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDef" }, { - "$id": "301", + "$id": "307", "kind": "basic", "name": "withDel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "302", + "$id": "308", "name": "withDel", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "303", + "$id": "309", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4072,7 +4120,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDel.contentType", "methodParameterSegments": [ { - "$id": "304", + "$id": "310", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4092,12 +4140,12 @@ ] }, { - "$id": "305", + "$id": "311", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "140" + "$ref": "146" }, "isApiVersion": false, "contentTypes": [ @@ -4111,12 +4159,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDel.body", "methodParameterSegments": [ { - "$id": "306", + "$id": "312", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "140" + "$ref": "146" }, "location": "Body", "isApiVersion": false, @@ -4154,10 +4202,10 @@ }, "parameters": [ { - "$ref": "306" + "$ref": "312" }, { - "$ref": "304" + "$ref": "310" } ], "response": {}, @@ -4167,19 +4215,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withDel" }, { - "$id": "307", + "$id": "313", "kind": "basic", "name": "withElif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "308", + "$id": "314", "name": "withElif", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "309", + "$id": "315", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4196,7 +4244,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElif.contentType", "methodParameterSegments": [ { - "$id": "310", + "$id": "316", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4216,12 +4264,12 @@ ] }, { - "$id": "311", + "$id": "317", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "143" + "$ref": "149" }, "isApiVersion": false, "contentTypes": [ @@ -4235,12 +4283,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElif.body", "methodParameterSegments": [ { - "$id": "312", + "$id": "318", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "143" + "$ref": "149" }, "location": "Body", "isApiVersion": false, @@ -4278,10 +4326,10 @@ }, "parameters": [ { - "$ref": "312" + "$ref": "318" }, { - "$ref": "310" + "$ref": "316" } ], "response": {}, @@ -4291,19 +4339,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElif" }, { - "$id": "313", + "$id": "319", "kind": "basic", "name": "withElse", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "314", + "$id": "320", "name": "withElse", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "315", + "$id": "321", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4320,7 +4368,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElse.contentType", "methodParameterSegments": [ { - "$id": "316", + "$id": "322", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4340,12 +4388,12 @@ ] }, { - "$id": "317", + "$id": "323", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "146" + "$ref": "152" }, "isApiVersion": false, "contentTypes": [ @@ -4359,12 +4407,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElse.body", "methodParameterSegments": [ { - "$id": "318", + "$id": "324", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "146" + "$ref": "152" }, "location": "Body", "isApiVersion": false, @@ -4402,10 +4450,10 @@ }, "parameters": [ { - "$ref": "318" + "$ref": "324" }, { - "$ref": "316" + "$ref": "322" } ], "response": {}, @@ -4415,19 +4463,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withElse" }, { - "$id": "319", + "$id": "325", "kind": "basic", "name": "withExcept", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "320", + "$id": "326", "name": "withExcept", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "321", + "$id": "327", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4444,7 +4492,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.contentType", "methodParameterSegments": [ { - "$id": "322", + "$id": "328", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4464,12 +4512,12 @@ ] }, { - "$id": "323", + "$id": "329", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "149" + "$ref": "155" }, "isApiVersion": false, "contentTypes": [ @@ -4483,12 +4531,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.body", "methodParameterSegments": [ { - "$id": "324", + "$id": "330", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "149" + "$ref": "155" }, "location": "Body", "isApiVersion": false, @@ -4526,10 +4574,10 @@ }, "parameters": [ { - "$ref": "324" + "$ref": "330" }, { - "$ref": "322" + "$ref": "328" } ], "response": {}, @@ -4539,19 +4587,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExcept" }, { - "$id": "325", + "$id": "331", "kind": "basic", "name": "withExec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "326", + "$id": "332", "name": "withExec", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "327", + "$id": "333", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4568,7 +4616,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExec.contentType", "methodParameterSegments": [ { - "$id": "328", + "$id": "334", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4588,12 +4636,12 @@ ] }, { - "$id": "329", + "$id": "335", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "152" + "$ref": "158" }, "isApiVersion": false, "contentTypes": [ @@ -4607,12 +4655,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExec.body", "methodParameterSegments": [ { - "$id": "330", + "$id": "336", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "152" + "$ref": "158" }, "location": "Body", "isApiVersion": false, @@ -4650,10 +4698,10 @@ }, "parameters": [ { - "$ref": "330" + "$ref": "336" }, { - "$ref": "328" + "$ref": "334" } ], "response": {}, @@ -4663,19 +4711,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withExec" }, { - "$id": "331", + "$id": "337", "kind": "basic", "name": "withFinally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "332", + "$id": "338", "name": "withFinally", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "333", + "$id": "339", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4692,7 +4740,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.contentType", "methodParameterSegments": [ { - "$id": "334", + "$id": "340", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4712,12 +4760,12 @@ ] }, { - "$id": "335", + "$id": "341", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "155" + "$ref": "161" }, "isApiVersion": false, "contentTypes": [ @@ -4731,12 +4779,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.body", "methodParameterSegments": [ { - "$id": "336", + "$id": "342", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "155" + "$ref": "161" }, "location": "Body", "isApiVersion": false, @@ -4774,10 +4822,10 @@ }, "parameters": [ { - "$ref": "336" + "$ref": "342" }, { - "$ref": "334" + "$ref": "340" } ], "response": {}, @@ -4787,19 +4835,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFinally" }, { - "$id": "337", + "$id": "343", "kind": "basic", "name": "withFor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "338", + "$id": "344", "name": "withFor", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "339", + "$id": "345", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4816,7 +4864,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFor.contentType", "methodParameterSegments": [ { - "$id": "340", + "$id": "346", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4836,12 +4884,12 @@ ] }, { - "$id": "341", + "$id": "347", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "158" + "$ref": "164" }, "isApiVersion": false, "contentTypes": [ @@ -4855,12 +4903,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFor.body", "methodParameterSegments": [ { - "$id": "342", + "$id": "348", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "158" + "$ref": "164" }, "location": "Body", "isApiVersion": false, @@ -4898,10 +4946,10 @@ }, "parameters": [ { - "$ref": "342" + "$ref": "348" }, { - "$ref": "340" + "$ref": "346" } ], "response": {}, @@ -4911,19 +4959,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFor" }, { - "$id": "343", + "$id": "349", "kind": "basic", "name": "withFrom", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "344", + "$id": "350", "name": "withFrom", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "345", + "$id": "351", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -4940,7 +4988,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.contentType", "methodParameterSegments": [ { - "$id": "346", + "$id": "352", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -4960,12 +5008,12 @@ ] }, { - "$id": "347", + "$id": "353", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "161" + "$ref": "167" }, "isApiVersion": false, "contentTypes": [ @@ -4979,12 +5027,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.body", "methodParameterSegments": [ { - "$id": "348", + "$id": "354", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "161" + "$ref": "167" }, "location": "Body", "isApiVersion": false, @@ -5022,10 +5070,10 @@ }, "parameters": [ { - "$ref": "348" + "$ref": "354" }, { - "$ref": "346" + "$ref": "352" } ], "response": {}, @@ -5035,19 +5083,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withFrom" }, { - "$id": "349", + "$id": "355", "kind": "basic", "name": "withGlobal", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "350", + "$id": "356", "name": "withGlobal", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "351", + "$id": "357", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5064,7 +5112,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.contentType", "methodParameterSegments": [ { - "$id": "352", + "$id": "358", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5084,12 +5132,12 @@ ] }, { - "$id": "353", + "$id": "359", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "164" + "$ref": "170" }, "isApiVersion": false, "contentTypes": [ @@ -5103,12 +5151,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.body", "methodParameterSegments": [ { - "$id": "354", + "$id": "360", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "164" + "$ref": "170" }, "location": "Body", "isApiVersion": false, @@ -5146,10 +5194,10 @@ }, "parameters": [ { - "$ref": "354" + "$ref": "360" }, { - "$ref": "352" + "$ref": "358" } ], "response": {}, @@ -5159,19 +5207,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal" }, { - "$id": "355", + "$id": "361", "kind": "basic", "name": "withIf", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "356", + "$id": "362", "name": "withIf", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "357", + "$id": "363", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5188,7 +5236,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIf.contentType", "methodParameterSegments": [ { - "$id": "358", + "$id": "364", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5208,12 +5256,12 @@ ] }, { - "$id": "359", + "$id": "365", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "167" + "$ref": "173" }, "isApiVersion": false, "contentTypes": [ @@ -5227,12 +5275,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIf.body", "methodParameterSegments": [ { - "$id": "360", + "$id": "366", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "167" + "$ref": "173" }, "location": "Body", "isApiVersion": false, @@ -5270,10 +5318,10 @@ }, "parameters": [ { - "$ref": "360" + "$ref": "366" }, { - "$ref": "358" + "$ref": "364" } ], "response": {}, @@ -5283,19 +5331,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIf" }, { - "$id": "361", + "$id": "367", "kind": "basic", "name": "withImport", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "362", + "$id": "368", "name": "withImport", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "363", + "$id": "369", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5312,7 +5360,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withImport.contentType", "methodParameterSegments": [ { - "$id": "364", + "$id": "370", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5332,12 +5380,12 @@ ] }, { - "$id": "365", + "$id": "371", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "170" + "$ref": "176" }, "isApiVersion": false, "contentTypes": [ @@ -5351,12 +5399,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withImport.body", "methodParameterSegments": [ { - "$id": "366", + "$id": "372", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "170" + "$ref": "176" }, "location": "Body", "isApiVersion": false, @@ -5394,10 +5442,10 @@ }, "parameters": [ { - "$ref": "366" + "$ref": "372" }, { - "$ref": "364" + "$ref": "370" } ], "response": {}, @@ -5407,19 +5455,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withImport" }, { - "$id": "367", + "$id": "373", "kind": "basic", "name": "withIn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "368", + "$id": "374", "name": "withIn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "369", + "$id": "375", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5436,7 +5484,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIn.contentType", "methodParameterSegments": [ { - "$id": "370", + "$id": "376", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5456,12 +5504,12 @@ ] }, { - "$id": "371", + "$id": "377", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "173" + "$ref": "179" }, "isApiVersion": false, "contentTypes": [ @@ -5475,12 +5523,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIn.body", "methodParameterSegments": [ { - "$id": "372", + "$id": "378", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "173" + "$ref": "179" }, "location": "Body", "isApiVersion": false, @@ -5518,10 +5566,10 @@ }, "parameters": [ { - "$ref": "372" + "$ref": "378" }, { - "$ref": "370" + "$ref": "376" } ], "response": {}, @@ -5531,19 +5579,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIn" }, { - "$id": "373", + "$id": "379", "kind": "basic", "name": "withIs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "374", + "$id": "380", "name": "withIs", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "375", + "$id": "381", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5560,7 +5608,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIs.contentType", "methodParameterSegments": [ { - "$id": "376", + "$id": "382", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5580,12 +5628,12 @@ ] }, { - "$id": "377", + "$id": "383", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "176" + "$ref": "182" }, "isApiVersion": false, "contentTypes": [ @@ -5599,12 +5647,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIs.body", "methodParameterSegments": [ { - "$id": "378", + "$id": "384", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "176" + "$ref": "182" }, "location": "Body", "isApiVersion": false, @@ -5642,10 +5690,10 @@ }, "parameters": [ { - "$ref": "378" + "$ref": "384" }, { - "$ref": "376" + "$ref": "382" } ], "response": {}, @@ -5655,19 +5703,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withIs" }, { - "$id": "379", + "$id": "385", "kind": "basic", "name": "withLambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "380", + "$id": "386", "name": "withLambda", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "381", + "$id": "387", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5684,7 +5732,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.contentType", "methodParameterSegments": [ { - "$id": "382", + "$id": "388", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5704,12 +5752,12 @@ ] }, { - "$id": "383", + "$id": "389", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "179" + "$ref": "185" }, "isApiVersion": false, "contentTypes": [ @@ -5723,12 +5771,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.body", "methodParameterSegments": [ { - "$id": "384", + "$id": "390", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "179" + "$ref": "185" }, "location": "Body", "isApiVersion": false, @@ -5766,10 +5814,10 @@ }, "parameters": [ { - "$ref": "384" + "$ref": "390" }, { - "$ref": "382" + "$ref": "388" } ], "response": {}, @@ -5779,19 +5827,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withLambda" }, { - "$id": "385", + "$id": "391", "kind": "basic", "name": "withNot", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "386", + "$id": "392", "name": "withNot", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "387", + "$id": "393", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5808,7 +5856,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withNot.contentType", "methodParameterSegments": [ { - "$id": "388", + "$id": "394", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5828,12 +5876,12 @@ ] }, { - "$id": "389", + "$id": "395", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "182" + "$ref": "188" }, "isApiVersion": false, "contentTypes": [ @@ -5847,12 +5895,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withNot.body", "methodParameterSegments": [ { - "$id": "390", + "$id": "396", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "182" + "$ref": "188" }, "location": "Body", "isApiVersion": false, @@ -5890,10 +5938,10 @@ }, "parameters": [ { - "$ref": "390" + "$ref": "396" }, { - "$ref": "388" + "$ref": "394" } ], "response": {}, @@ -5903,19 +5951,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withNot" }, { - "$id": "391", + "$id": "397", "kind": "basic", "name": "withOr", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "392", + "$id": "398", "name": "withOr", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "393", + "$id": "399", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -5932,7 +5980,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withOr.contentType", "methodParameterSegments": [ { - "$id": "394", + "$id": "400", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -5952,12 +6000,12 @@ ] }, { - "$id": "395", + "$id": "401", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "185" + "$ref": "191" }, "isApiVersion": false, "contentTypes": [ @@ -5971,12 +6019,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withOr.body", "methodParameterSegments": [ { - "$id": "396", + "$id": "402", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "185" + "$ref": "191" }, "location": "Body", "isApiVersion": false, @@ -6014,10 +6062,10 @@ }, "parameters": [ { - "$ref": "396" + "$ref": "402" }, { - "$ref": "394" + "$ref": "400" } ], "response": {}, @@ -6027,19 +6075,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withOr" }, { - "$id": "397", + "$id": "403", "kind": "basic", "name": "withPass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "398", + "$id": "404", "name": "withPass", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "399", + "$id": "405", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6056,7 +6104,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withPass.contentType", "methodParameterSegments": [ { - "$id": "400", + "$id": "406", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6076,12 +6124,12 @@ ] }, { - "$id": "401", + "$id": "407", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "188" + "$ref": "194" }, "isApiVersion": false, "contentTypes": [ @@ -6095,12 +6143,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withPass.body", "methodParameterSegments": [ { - "$id": "402", + "$id": "408", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "188" + "$ref": "194" }, "location": "Body", "isApiVersion": false, @@ -6138,10 +6186,10 @@ }, "parameters": [ { - "$ref": "402" + "$ref": "408" }, { - "$ref": "400" + "$ref": "406" } ], "response": {}, @@ -6151,19 +6199,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withPass" }, { - "$id": "403", + "$id": "409", "kind": "basic", "name": "withRaise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "404", + "$id": "410", "name": "withRaise", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "405", + "$id": "411", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6180,7 +6228,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.contentType", "methodParameterSegments": [ { - "$id": "406", + "$id": "412", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6200,12 +6248,12 @@ ] }, { - "$id": "407", + "$id": "413", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "191" + "$ref": "197" }, "isApiVersion": false, "contentTypes": [ @@ -6219,12 +6267,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.body", "methodParameterSegments": [ { - "$id": "408", + "$id": "414", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "191" + "$ref": "197" }, "location": "Body", "isApiVersion": false, @@ -6262,10 +6310,10 @@ }, "parameters": [ { - "$ref": "408" + "$ref": "414" }, { - "$ref": "406" + "$ref": "412" } ], "response": {}, @@ -6275,19 +6323,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withRaise" }, { - "$id": "409", + "$id": "415", "kind": "basic", "name": "withReturn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "410", + "$id": "416", "name": "withReturn", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "411", + "$id": "417", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6304,7 +6352,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.contentType", "methodParameterSegments": [ { - "$id": "412", + "$id": "418", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6324,12 +6372,12 @@ ] }, { - "$id": "413", + "$id": "419", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "194" + "$ref": "200" }, "isApiVersion": false, "contentTypes": [ @@ -6343,12 +6391,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.body", "methodParameterSegments": [ { - "$id": "414", + "$id": "420", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "194" + "$ref": "200" }, "location": "Body", "isApiVersion": false, @@ -6386,10 +6434,10 @@ }, "parameters": [ { - "$ref": "414" + "$ref": "420" }, { - "$ref": "412" + "$ref": "418" } ], "response": {}, @@ -6399,19 +6447,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withReturn" }, { - "$id": "415", + "$id": "421", "kind": "basic", "name": "withTry", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "416", + "$id": "422", "name": "withTry", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "417", + "$id": "423", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6428,7 +6476,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withTry.contentType", "methodParameterSegments": [ { - "$id": "418", + "$id": "424", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6448,12 +6496,12 @@ ] }, { - "$id": "419", + "$id": "425", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "197" + "$ref": "203" }, "isApiVersion": false, "contentTypes": [ @@ -6467,12 +6515,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withTry.body", "methodParameterSegments": [ { - "$id": "420", + "$id": "426", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "197" + "$ref": "203" }, "location": "Body", "isApiVersion": false, @@ -6510,10 +6558,10 @@ }, "parameters": [ { - "$ref": "420" + "$ref": "426" }, { - "$ref": "418" + "$ref": "424" } ], "response": {}, @@ -6523,19 +6571,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withTry" }, { - "$id": "421", + "$id": "427", "kind": "basic", "name": "withWhile", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "422", + "$id": "428", "name": "withWhile", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "423", + "$id": "429", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6552,7 +6600,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.contentType", "methodParameterSegments": [ { - "$id": "424", + "$id": "430", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6572,12 +6620,12 @@ ] }, { - "$id": "425", + "$id": "431", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "200" + "$ref": "206" }, "isApiVersion": false, "contentTypes": [ @@ -6591,12 +6639,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.body", "methodParameterSegments": [ { - "$id": "426", + "$id": "432", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "200" + "$ref": "206" }, "location": "Body", "isApiVersion": false, @@ -6634,10 +6682,10 @@ }, "parameters": [ { - "$ref": "426" + "$ref": "432" }, { - "$ref": "424" + "$ref": "430" } ], "response": {}, @@ -6647,19 +6695,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWhile" }, { - "$id": "427", + "$id": "433", "kind": "basic", "name": "withWith", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "428", + "$id": "434", "name": "withWith", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "429", + "$id": "435", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6676,7 +6724,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWith.contentType", "methodParameterSegments": [ { - "$id": "430", + "$id": "436", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6696,12 +6744,12 @@ ] }, { - "$id": "431", + "$id": "437", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "203" + "$ref": "209" }, "isApiVersion": false, "contentTypes": [ @@ -6715,12 +6763,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWith.body", "methodParameterSegments": [ { - "$id": "432", + "$id": "438", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "203" + "$ref": "209" }, "location": "Body", "isApiVersion": false, @@ -6758,10 +6806,10 @@ }, "parameters": [ { - "$ref": "432" + "$ref": "438" }, { - "$ref": "430" + "$ref": "436" } ], "response": {}, @@ -6771,19 +6819,19 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withWith" }, { - "$id": "433", + "$id": "439", "kind": "basic", "name": "withYield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "434", + "$id": "440", "name": "withYield", "resourceName": "Models", "accessibility": "public", "parameters": [ { - "$id": "435", + "$id": "441", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6800,7 +6848,7 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withYield.contentType", "methodParameterSegments": [ { - "$id": "436", + "$id": "442", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6820,12 +6868,12 @@ ] }, { - "$id": "437", + "$id": "443", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "212" }, "isApiVersion": false, "contentTypes": [ @@ -6839,12 +6887,12 @@ "crossLanguageDefinitionId": "SpecialWords.Models.withYield.body", "methodParameterSegments": [ { - "$id": "438", + "$id": "444", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "212" }, "location": "Body", "isApiVersion": false, @@ -6882,10 +6930,10 @@ }, "parameters": [ { - "$ref": "438" + "$ref": "444" }, { - "$ref": "436" + "$ref": "442" } ], "response": {}, @@ -6897,13 +6945,13 @@ ], "parameters": [ { - "$id": "439", + "$id": "445", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "440", + "$id": "446", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6914,7 +6962,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "441", + "$id": "447", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6932,31 +6980,31 @@ "crossLanguageDefinitionId": "SpecialWords.Models", "apiVersions": [], "parent": { - "$ref": "236" + "$ref": "242" }, "isMultiServiceClient": false }, { - "$id": "442", + "$id": "448", "kind": "client", "name": "ModelProperties", "namespace": "SpecialWords.ModelProperties", "doc": "Verify model names", "methods": [ { - "$id": "443", + "$id": "449", "kind": "basic", "name": "sameAsModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "444", + "$id": "450", "name": "sameAsModel", "resourceName": "ModelProperties", "accessibility": "public", "parameters": [ { - "$id": "445", + "$id": "451", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6973,7 +7021,7 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.contentType", "methodParameterSegments": [ { - "$id": "446", + "$id": "452", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -6993,12 +7041,12 @@ ] }, { - "$id": "447", + "$id": "453", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "209" + "$ref": "215" }, "isApiVersion": false, "contentTypes": [ @@ -7012,12 +7060,12 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.body", "methodParameterSegments": [ { - "$id": "448", + "$id": "454", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "209" + "$ref": "215" }, "location": "Body", "isApiVersion": false, @@ -7055,10 +7103,10 @@ }, "parameters": [ { - "$ref": "448" + "$ref": "454" }, { - "$ref": "446" + "$ref": "452" } ], "response": {}, @@ -7068,19 +7116,19 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel" }, { - "$id": "449", + "$id": "455", "kind": "basic", "name": "dictMethods", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "450", + "$id": "456", "name": "dictMethods", "resourceName": "ModelProperties", "accessibility": "public", "parameters": [ { - "$id": "451", + "$id": "457", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -7097,7 +7145,7 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.contentType", "methodParameterSegments": [ { - "$id": "452", + "$id": "458", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -7117,12 +7165,12 @@ ] }, { - "$id": "453", + "$id": "459", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "212" + "$ref": "218" }, "isApiVersion": false, "contentTypes": [ @@ -7136,12 +7184,12 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.body", "methodParameterSegments": [ { - "$id": "454", + "$id": "460", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "212" + "$ref": "218" }, "location": "Body", "isApiVersion": false, @@ -7179,10 +7227,10 @@ }, "parameters": [ { - "$ref": "454" + "$ref": "460" }, { - "$ref": "452" + "$ref": "458" } ], "response": {}, @@ -7192,19 +7240,19 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods" }, { - "$id": "455", + "$id": "461", "kind": "basic", "name": "withList", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "456", + "$id": "462", "name": "withList", "resourceName": "ModelProperties", "accessibility": "public", "parameters": [ { - "$id": "457", + "$id": "463", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -7221,7 +7269,7 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.withList.contentType", "methodParameterSegments": [ { - "$id": "458", + "$id": "464", "kind": "method", "name": "contentType", "serializedName": "Content-Type", @@ -7241,12 +7289,12 @@ ] }, { - "$id": "459", + "$id": "465", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "233" + "$ref": "239" }, "isApiVersion": false, "contentTypes": [ @@ -7260,12 +7308,12 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties.withList.body", "methodParameterSegments": [ { - "$id": "460", + "$id": "466", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "233" + "$ref": "239" }, "location": "Body", "isApiVersion": false, @@ -7303,10 +7351,10 @@ }, "parameters": [ { - "$ref": "460" + "$ref": "466" }, { - "$ref": "458" + "$ref": "464" } ], "response": {}, @@ -7318,13 +7366,13 @@ ], "parameters": [ { - "$id": "461", + "$id": "467", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "462", + "$id": "468", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7335,7 +7383,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "463", + "$id": "469", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7353,76 +7401,303 @@ "crossLanguageDefinitionId": "SpecialWords.ModelProperties", "apiVersions": [], "parent": { - "$ref": "236" + "$ref": "242" }, "isMultiServiceClient": false }, { - "$id": "464", + "$id": "470", "kind": "client", - "name": "Operations", - "namespace": "SpecialWords", - "doc": "Test reserved words as operation name.", + "name": "ExtensibleStrings", + "namespace": "SpecialWords.ExtensibleStrings", + "doc": "Verify enum member names that are special words.", "methods": [ { - "$id": "465", - "kind": "basic", - "name": "and", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "466", - "name": "and", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/and", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.and", - "decorators": [], - "namespace": "SpecialWords" - }, - "parameters": [], - "response": {}, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.and" - }, - { - "$id": "467", + "$id": "471", "kind": "basic", - "name": "as", + "name": "putExtensibleStringValue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "468", - "name": "as", - "resourceName": "Operations", + "$id": "472", + "name": "putExtensibleStringValue", + "resourceName": "ExtensibleStrings", "accessibility": "public", - "parameters": [], - "responses": [ + "parameters": [ { - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], + "$id": "473", + "kind": "header", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "108" + }, + "isApiVersion": false, + "optional": false, + "isContentType": true, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.contentType", + "methodParameterSegments": [ + { + "$id": "474", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "108" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "475", + "kind": "header", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "112" + }, + "isApiVersion": false, + "optional": false, + "isContentType": false, + "scope": "Constant", + "readOnly": false, + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.accept", + "methodParameterSegments": [ + { + "$id": "476", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "112" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "477", + "kind": "body", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "1" + }, + "isApiVersion": false, + "contentTypes": [ + "application/json" + ], + "defaultContentType": "application/json", + "optional": false, + "scope": "Method", + "decorators": [], + "readOnly": false, + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.body", + "methodParameterSegments": [ + { + "$id": "478", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + } + ], + "responses": [ + { + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "1" + }, + "headers": [ + { + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$ref": "114" + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/special-words/extensible-strings/string", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue", + "decorators": [], + "namespace": "SpecialWords.ExtensibleStrings" + }, + "parameters": [ + { + "$ref": "474" + }, + { + "$ref": "478" + }, + { + "$ref": "476" + } + ], + "response": { + "type": { + "$ref": "1" + } + }, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue" + } + ], + "parameters": [ + { + "$id": "479", + "kind": "endpoint", + "name": "endpoint", + "serializedName": "endpoint", + "doc": "Service host", + "type": { + "$id": "480", + "kind": "url", + "name": "endpoint", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "isApiVersion": false, + "optional": false, + "scope": "Client", + "isEndpoint": true, + "defaultValue": { + "type": { + "$id": "481", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + }, + "serverUrlTemplate": "{endpoint}", + "skipUrlEncoding": false, + "readOnly": false, + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.endpoint" + } + ], + "initializedBy": 0, + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings", + "apiVersions": [], + "parent": { + "$ref": "242" + }, + "isMultiServiceClient": false + }, + { + "$id": "482", + "kind": "client", + "name": "Operations", + "namespace": "SpecialWords", + "doc": "Test reserved words as operation name.", + "methods": [ + { + "$id": "483", + "kind": "basic", + "name": "and", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "484", + "name": "and", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/and", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.and", + "decorators": [], + "namespace": "SpecialWords" + }, + "parameters": [], + "response": {}, + "isOverride": false, + "generateConvenient": true, + "generateProtocol": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.and" + }, + { + "$id": "485", + "kind": "basic", + "name": "as", + "accessibility": "public", + "apiVersions": [], + "operation": { + "$id": "486", + "name": "as", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], "httpMethod": "GET", "uri": "{endpoint}", "path": "/special-words/operations/as", @@ -7441,13 +7716,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.as" }, { - "$id": "469", + "$id": "487", "kind": "basic", "name": "assert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "470", + "$id": "488", "name": "assert", "resourceName": "Operations", "accessibility": "public", @@ -7479,13 +7754,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.assert" }, { - "$id": "471", + "$id": "489", "kind": "basic", "name": "async", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "472", + "$id": "490", "name": "async", "resourceName": "Operations", "accessibility": "public", @@ -7517,13 +7792,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.async" }, { - "$id": "473", + "$id": "491", "kind": "basic", "name": "await", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "474", + "$id": "492", "name": "await", "resourceName": "Operations", "accessibility": "public", @@ -7555,13 +7830,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.await" }, { - "$id": "475", + "$id": "493", "kind": "basic", "name": "break", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "476", + "$id": "494", "name": "break", "resourceName": "Operations", "accessibility": "public", @@ -7593,13 +7868,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.break" }, { - "$id": "477", + "$id": "495", "kind": "basic", "name": "class", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "478", + "$id": "496", "name": "class", "resourceName": "Operations", "accessibility": "public", @@ -7631,13 +7906,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.class" }, { - "$id": "479", + "$id": "497", "kind": "basic", "name": "constructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "480", + "$id": "498", "name": "constructor", "resourceName": "Operations", "accessibility": "public", @@ -7669,13 +7944,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.constructor" }, { - "$id": "481", + "$id": "499", "kind": "basic", "name": "continue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "482", + "$id": "500", "name": "continue", "resourceName": "Operations", "accessibility": "public", @@ -7707,13 +7982,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.continue" }, { - "$id": "483", + "$id": "501", "kind": "basic", "name": "def", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "484", + "$id": "502", "name": "def", "resourceName": "Operations", "accessibility": "public", @@ -7745,13 +8020,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.def" }, { - "$id": "485", + "$id": "503", "kind": "basic", "name": "del", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "486", + "$id": "504", "name": "del", "resourceName": "Operations", "accessibility": "public", @@ -7783,13 +8058,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.del" }, { - "$id": "487", + "$id": "505", "kind": "basic", "name": "elif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "488", + "$id": "506", "name": "elif", "resourceName": "Operations", "accessibility": "public", @@ -7821,13 +8096,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.elif" }, { - "$id": "489", + "$id": "507", "kind": "basic", "name": "else", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "490", + "$id": "508", "name": "else", "resourceName": "Operations", "accessibility": "public", @@ -7859,13 +8134,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.else" }, { - "$id": "491", + "$id": "509", "kind": "basic", "name": "except", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "492", + "$id": "510", "name": "except", "resourceName": "Operations", "accessibility": "public", @@ -7897,13 +8172,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.except" }, { - "$id": "493", + "$id": "511", "kind": "basic", "name": "exec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "494", + "$id": "512", "name": "exec", "resourceName": "Operations", "accessibility": "public", @@ -7935,13 +8210,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.exec" }, { - "$id": "495", + "$id": "513", "kind": "basic", "name": "finally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "496", + "$id": "514", "name": "finally", "resourceName": "Operations", "accessibility": "public", @@ -7973,13 +8248,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.finally" }, { - "$id": "497", + "$id": "515", "kind": "basic", "name": "for", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "498", + "$id": "516", "name": "for", "resourceName": "Operations", "accessibility": "public", @@ -8011,13 +8286,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.for" }, { - "$id": "499", + "$id": "517", "kind": "basic", "name": "from", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "500", + "$id": "518", "name": "from", "resourceName": "Operations", "accessibility": "public", @@ -8049,13 +8324,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.from" }, { - "$id": "501", + "$id": "519", "kind": "basic", "name": "global", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "502", + "$id": "520", "name": "global", "resourceName": "Operations", "accessibility": "public", @@ -8087,13 +8362,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.global" }, { - "$id": "503", + "$id": "521", "kind": "basic", "name": "if", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "504", + "$id": "522", "name": "if", "resourceName": "Operations", "accessibility": "public", @@ -8125,13 +8400,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.if" }, { - "$id": "505", + "$id": "523", "kind": "basic", "name": "import", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "506", + "$id": "524", "name": "import", "resourceName": "Operations", "accessibility": "public", @@ -8163,13 +8438,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.import" }, { - "$id": "507", + "$id": "525", "kind": "basic", "name": "in", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "508", + "$id": "526", "name": "in", "resourceName": "Operations", "accessibility": "public", @@ -8201,13 +8476,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.in" }, { - "$id": "509", + "$id": "527", "kind": "basic", "name": "is", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "510", + "$id": "528", "name": "is", "resourceName": "Operations", "accessibility": "public", @@ -8239,13 +8514,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.is" }, { - "$id": "511", + "$id": "529", "kind": "basic", "name": "lambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "512", + "$id": "530", "name": "lambda", "resourceName": "Operations", "accessibility": "public", @@ -8277,13 +8552,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.lambda" }, { - "$id": "513", + "$id": "531", "kind": "basic", "name": "not", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "514", + "$id": "532", "name": "not", "resourceName": "Operations", "accessibility": "public", @@ -8315,13 +8590,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.not" }, { - "$id": "515", + "$id": "533", "kind": "basic", "name": "or", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "516", + "$id": "534", "name": "or", "resourceName": "Operations", "accessibility": "public", @@ -8353,13 +8628,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.or" }, { - "$id": "517", + "$id": "535", "kind": "basic", "name": "pass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "518", + "$id": "536", "name": "pass", "resourceName": "Operations", "accessibility": "public", @@ -8391,13 +8666,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.pass" }, { - "$id": "519", + "$id": "537", "kind": "basic", "name": "raise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "520", + "$id": "538", "name": "raise", "resourceName": "Operations", "accessibility": "public", @@ -8429,13 +8704,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.raise" }, { - "$id": "521", + "$id": "539", "kind": "basic", "name": "return", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "522", + "$id": "540", "name": "return", "resourceName": "Operations", "accessibility": "public", @@ -8467,13 +8742,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.return" }, { - "$id": "523", + "$id": "541", "kind": "basic", "name": "try", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "524", + "$id": "542", "name": "try", "resourceName": "Operations", "accessibility": "public", @@ -8505,13 +8780,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.try" }, { - "$id": "525", + "$id": "543", "kind": "basic", "name": "while", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "526", + "$id": "544", "name": "while", "resourceName": "Operations", "accessibility": "public", @@ -8543,13 +8818,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.while" }, { - "$id": "527", + "$id": "545", "kind": "basic", "name": "with", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "528", + "$id": "546", "name": "with", "resourceName": "Operations", "accessibility": "public", @@ -8581,13 +8856,13 @@ "crossLanguageDefinitionId": "SpecialWords.Operations.with" }, { - "$id": "529", + "$id": "547", "kind": "basic", "name": "yield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "530", + "$id": "548", "name": "yield", "resourceName": "Operations", "accessibility": "public", @@ -8621,13 +8896,13 @@ ], "parameters": [ { - "$id": "531", + "$id": "549", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "532", + "$id": "550", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8638,7 +8913,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "533", + "$id": "551", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8656,36 +8931,36 @@ "crossLanguageDefinitionId": "SpecialWords.Operations", "apiVersions": [], "parent": { - "$ref": "236" + "$ref": "242" }, "isMultiServiceClient": false }, { - "$id": "534", + "$id": "552", "kind": "client", "name": "Parameters", "namespace": "SpecialWords", "doc": "Verify reserved words as parameter name.", "methods": [ { - "$id": "535", + "$id": "553", "kind": "basic", "name": "withAnd", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "536", + "$id": "554", "name": "withAnd", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "537", + "$id": "555", "kind": "query", "name": "and", "serializedName": "and", "type": { - "$id": "538", + "$id": "556", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8700,12 +8975,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "539", + "$id": "557", "kind": "method", "name": "and", "serializedName": "and", "type": { - "$id": "540", + "$id": "558", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8744,7 +9019,7 @@ }, "parameters": [ { - "$ref": "539" + "$ref": "557" } ], "response": {}, @@ -8754,24 +9029,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd" }, { - "$id": "541", + "$id": "559", "kind": "basic", "name": "withAs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "542", + "$id": "560", "name": "withAs", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "543", + "$id": "561", "kind": "query", "name": "as", "serializedName": "as", "type": { - "$id": "544", + "$id": "562", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8786,12 +9061,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "545", + "$id": "563", "kind": "method", "name": "as", "serializedName": "as", "type": { - "$id": "546", + "$id": "564", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8830,7 +9105,7 @@ }, "parameters": [ { - "$ref": "545" + "$ref": "563" } ], "response": {}, @@ -8840,24 +9115,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs" }, { - "$id": "547", + "$id": "565", "kind": "basic", "name": "withAssert", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "548", + "$id": "566", "name": "withAssert", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "549", + "$id": "567", "kind": "query", "name": "assert", "serializedName": "assert", "type": { - "$id": "550", + "$id": "568", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8872,12 +9147,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "551", + "$id": "569", "kind": "method", "name": "assert", "serializedName": "assert", "type": { - "$id": "552", + "$id": "570", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8916,7 +9191,7 @@ }, "parameters": [ { - "$ref": "551" + "$ref": "569" } ], "response": {}, @@ -8926,24 +9201,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert" }, { - "$id": "553", + "$id": "571", "kind": "basic", "name": "withAsync", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "554", + "$id": "572", "name": "withAsync", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "555", + "$id": "573", "kind": "query", "name": "async", "serializedName": "async", "type": { - "$id": "556", + "$id": "574", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8958,12 +9233,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "557", + "$id": "575", "kind": "method", "name": "async", "serializedName": "async", "type": { - "$id": "558", + "$id": "576", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9002,7 +9277,7 @@ }, "parameters": [ { - "$ref": "557" + "$ref": "575" } ], "response": {}, @@ -9012,24 +9287,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync" }, { - "$id": "559", + "$id": "577", "kind": "basic", "name": "withAwait", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "560", + "$id": "578", "name": "withAwait", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "561", + "$id": "579", "kind": "query", "name": "await", "serializedName": "await", "type": { - "$id": "562", + "$id": "580", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9044,12 +9319,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "563", + "$id": "581", "kind": "method", "name": "await", "serializedName": "await", "type": { - "$id": "564", + "$id": "582", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9088,7 +9363,7 @@ }, "parameters": [ { - "$ref": "563" + "$ref": "581" } ], "response": {}, @@ -9098,24 +9373,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait" }, { - "$id": "565", + "$id": "583", "kind": "basic", "name": "withBreak", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "566", + "$id": "584", "name": "withBreak", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "567", + "$id": "585", "kind": "query", "name": "break", "serializedName": "break", "type": { - "$id": "568", + "$id": "586", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9130,12 +9405,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "569", + "$id": "587", "kind": "method", "name": "break", "serializedName": "break", "type": { - "$id": "570", + "$id": "588", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9174,7 +9449,7 @@ }, "parameters": [ { - "$ref": "569" + "$ref": "587" } ], "response": {}, @@ -9184,24 +9459,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak" }, { - "$id": "571", + "$id": "589", "kind": "basic", "name": "withClass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "572", + "$id": "590", "name": "withClass", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "573", + "$id": "591", "kind": "query", "name": "class", "serializedName": "class", "type": { - "$id": "574", + "$id": "592", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9216,12 +9491,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "575", + "$id": "593", "kind": "method", "name": "class", "serializedName": "class", "type": { - "$id": "576", + "$id": "594", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9260,7 +9535,7 @@ }, "parameters": [ { - "$ref": "575" + "$ref": "593" } ], "response": {}, @@ -9270,24 +9545,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass" }, { - "$id": "577", + "$id": "595", "kind": "basic", "name": "withConstructor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "578", + "$id": "596", "name": "withConstructor", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "579", + "$id": "597", "kind": "query", "name": "constructor", "serializedName": "constructor", "type": { - "$id": "580", + "$id": "598", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9302,12 +9577,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "581", + "$id": "599", "kind": "method", "name": "constructor", "serializedName": "constructor", "type": { - "$id": "582", + "$id": "600", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9346,7 +9621,7 @@ }, "parameters": [ { - "$ref": "581" + "$ref": "599" } ], "response": {}, @@ -9356,24 +9631,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor" }, { - "$id": "583", + "$id": "601", "kind": "basic", "name": "withContinue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "584", + "$id": "602", "name": "withContinue", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "585", + "$id": "603", "kind": "query", "name": "continue", "serializedName": "continue", "type": { - "$id": "586", + "$id": "604", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9388,12 +9663,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "587", + "$id": "605", "kind": "method", "name": "continue", "serializedName": "continue", "type": { - "$id": "588", + "$id": "606", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9432,7 +9707,7 @@ }, "parameters": [ { - "$ref": "587" + "$ref": "605" } ], "response": {}, @@ -9442,24 +9717,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue" }, { - "$id": "589", + "$id": "607", "kind": "basic", "name": "withDef", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "590", + "$id": "608", "name": "withDef", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "591", + "$id": "609", "kind": "query", "name": "def", "serializedName": "def", "type": { - "$id": "592", + "$id": "610", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9474,12 +9749,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "593", + "$id": "611", "kind": "method", "name": "def", "serializedName": "def", "type": { - "$id": "594", + "$id": "612", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9518,7 +9793,7 @@ }, "parameters": [ { - "$ref": "593" + "$ref": "611" } ], "response": {}, @@ -9528,24 +9803,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef" }, { - "$id": "595", + "$id": "613", "kind": "basic", "name": "withDel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "596", + "$id": "614", "name": "withDel", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "597", + "$id": "615", "kind": "query", "name": "del", "serializedName": "del", "type": { - "$id": "598", + "$id": "616", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9560,12 +9835,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "599", + "$id": "617", "kind": "method", "name": "del", "serializedName": "del", "type": { - "$id": "600", + "$id": "618", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9604,7 +9879,7 @@ }, "parameters": [ { - "$ref": "599" + "$ref": "617" } ], "response": {}, @@ -9614,24 +9889,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel" }, { - "$id": "601", + "$id": "619", "kind": "basic", "name": "withElif", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "602", + "$id": "620", "name": "withElif", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "603", + "$id": "621", "kind": "query", "name": "elif", "serializedName": "elif", "type": { - "$id": "604", + "$id": "622", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9646,12 +9921,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "605", + "$id": "623", "kind": "method", "name": "elif", "serializedName": "elif", "type": { - "$id": "606", + "$id": "624", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9690,7 +9965,7 @@ }, "parameters": [ { - "$ref": "605" + "$ref": "623" } ], "response": {}, @@ -9700,24 +9975,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif" }, { - "$id": "607", + "$id": "625", "kind": "basic", "name": "withElse", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "608", + "$id": "626", "name": "withElse", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "609", + "$id": "627", "kind": "query", "name": "else", "serializedName": "else", "type": { - "$id": "610", + "$id": "628", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9732,12 +10007,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "611", + "$id": "629", "kind": "method", "name": "else", "serializedName": "else", "type": { - "$id": "612", + "$id": "630", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9776,7 +10051,7 @@ }, "parameters": [ { - "$ref": "611" + "$ref": "629" } ], "response": {}, @@ -9786,24 +10061,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse" }, { - "$id": "613", + "$id": "631", "kind": "basic", "name": "withExcept", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "614", + "$id": "632", "name": "withExcept", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "615", + "$id": "633", "kind": "query", "name": "except", "serializedName": "except", "type": { - "$id": "616", + "$id": "634", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9818,12 +10093,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "617", + "$id": "635", "kind": "method", "name": "except", "serializedName": "except", "type": { - "$id": "618", + "$id": "636", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9862,7 +10137,7 @@ }, "parameters": [ { - "$ref": "617" + "$ref": "635" } ], "response": {}, @@ -9872,24 +10147,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept" }, { - "$id": "619", + "$id": "637", "kind": "basic", "name": "withExec", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "620", + "$id": "638", "name": "withExec", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "621", + "$id": "639", "kind": "query", "name": "exec", "serializedName": "exec", "type": { - "$id": "622", + "$id": "640", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9904,12 +10179,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "623", + "$id": "641", "kind": "method", "name": "exec", "serializedName": "exec", "type": { - "$id": "624", + "$id": "642", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9948,7 +10223,7 @@ }, "parameters": [ { - "$ref": "623" + "$ref": "641" } ], "response": {}, @@ -9958,24 +10233,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec" }, { - "$id": "625", + "$id": "643", "kind": "basic", "name": "withFinally", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "626", + "$id": "644", "name": "withFinally", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "627", + "$id": "645", "kind": "query", "name": "finally", "serializedName": "finally", "type": { - "$id": "628", + "$id": "646", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9990,12 +10265,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "629", + "$id": "647", "kind": "method", "name": "finally", "serializedName": "finally", "type": { - "$id": "630", + "$id": "648", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10034,7 +10309,7 @@ }, "parameters": [ { - "$ref": "629" + "$ref": "647" } ], "response": {}, @@ -10044,24 +10319,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally" }, { - "$id": "631", + "$id": "649", "kind": "basic", "name": "withFor", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "632", + "$id": "650", "name": "withFor", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "633", + "$id": "651", "kind": "query", "name": "for", "serializedName": "for", "type": { - "$id": "634", + "$id": "652", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10076,12 +10351,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "635", + "$id": "653", "kind": "method", "name": "for", "serializedName": "for", "type": { - "$id": "636", + "$id": "654", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10120,7 +10395,7 @@ }, "parameters": [ { - "$ref": "635" + "$ref": "653" } ], "response": {}, @@ -10130,24 +10405,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor" }, { - "$id": "637", + "$id": "655", "kind": "basic", "name": "withFrom", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "638", + "$id": "656", "name": "withFrom", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "639", + "$id": "657", "kind": "query", "name": "from", "serializedName": "from", "type": { - "$id": "640", + "$id": "658", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10162,12 +10437,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "641", + "$id": "659", "kind": "method", "name": "from", "serializedName": "from", "type": { - "$id": "642", + "$id": "660", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10206,7 +10481,7 @@ }, "parameters": [ { - "$ref": "641" + "$ref": "659" } ], "response": {}, @@ -10216,24 +10491,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom" }, { - "$id": "643", + "$id": "661", "kind": "basic", "name": "withGlobal", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "644", + "$id": "662", "name": "withGlobal", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "645", + "$id": "663", "kind": "query", "name": "global", "serializedName": "global", "type": { - "$id": "646", + "$id": "664", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10248,12 +10523,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "647", + "$id": "665", "kind": "method", "name": "global", "serializedName": "global", "type": { - "$id": "648", + "$id": "666", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10292,7 +10567,7 @@ }, "parameters": [ { - "$ref": "647" + "$ref": "665" } ], "response": {}, @@ -10302,24 +10577,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal" }, { - "$id": "649", + "$id": "667", "kind": "basic", "name": "withIf", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "650", + "$id": "668", "name": "withIf", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "651", + "$id": "669", "kind": "query", "name": "if", "serializedName": "if", "type": { - "$id": "652", + "$id": "670", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10334,12 +10609,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "653", + "$id": "671", "kind": "method", "name": "if", "serializedName": "if", "type": { - "$id": "654", + "$id": "672", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10378,7 +10653,7 @@ }, "parameters": [ { - "$ref": "653" + "$ref": "671" } ], "response": {}, @@ -10388,24 +10663,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf" }, { - "$id": "655", + "$id": "673", "kind": "basic", "name": "withImport", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "656", + "$id": "674", "name": "withImport", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "657", + "$id": "675", "kind": "query", "name": "import", "serializedName": "import", "type": { - "$id": "658", + "$id": "676", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10420,12 +10695,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "659", + "$id": "677", "kind": "method", "name": "import", "serializedName": "import", "type": { - "$id": "660", + "$id": "678", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10464,7 +10739,7 @@ }, "parameters": [ { - "$ref": "659" + "$ref": "677" } ], "response": {}, @@ -10474,24 +10749,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport" }, { - "$id": "661", + "$id": "679", "kind": "basic", "name": "withIn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "662", + "$id": "680", "name": "withIn", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "663", + "$id": "681", "kind": "query", "name": "in", "serializedName": "in", "type": { - "$id": "664", + "$id": "682", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10506,12 +10781,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "665", + "$id": "683", "kind": "method", "name": "in", "serializedName": "in", "type": { - "$id": "666", + "$id": "684", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10550,7 +10825,7 @@ }, "parameters": [ { - "$ref": "665" + "$ref": "683" } ], "response": {}, @@ -10560,24 +10835,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn" }, { - "$id": "667", + "$id": "685", "kind": "basic", "name": "withIs", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "668", + "$id": "686", "name": "withIs", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "669", + "$id": "687", "kind": "query", "name": "is", "serializedName": "is", "type": { - "$id": "670", + "$id": "688", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10592,12 +10867,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "671", + "$id": "689", "kind": "method", "name": "is", "serializedName": "is", "type": { - "$id": "672", + "$id": "690", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10636,7 +10911,7 @@ }, "parameters": [ { - "$ref": "671" + "$ref": "689" } ], "response": {}, @@ -10646,24 +10921,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs" }, { - "$id": "673", + "$id": "691", "kind": "basic", "name": "withLambda", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "674", + "$id": "692", "name": "withLambda", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "675", + "$id": "693", "kind": "query", "name": "lambda", "serializedName": "lambda", "type": { - "$id": "676", + "$id": "694", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10678,12 +10953,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "677", + "$id": "695", "kind": "method", "name": "lambda", "serializedName": "lambda", "type": { - "$id": "678", + "$id": "696", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10722,7 +10997,7 @@ }, "parameters": [ { - "$ref": "677" + "$ref": "695" } ], "response": {}, @@ -10732,24 +11007,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda" }, { - "$id": "679", + "$id": "697", "kind": "basic", "name": "withNot", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "680", + "$id": "698", "name": "withNot", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "681", + "$id": "699", "kind": "query", "name": "not", "serializedName": "not", "type": { - "$id": "682", + "$id": "700", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10764,12 +11039,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "683", + "$id": "701", "kind": "method", "name": "not", "serializedName": "not", "type": { - "$id": "684", + "$id": "702", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10808,7 +11083,7 @@ }, "parameters": [ { - "$ref": "683" + "$ref": "701" } ], "response": {}, @@ -10818,24 +11093,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot" }, { - "$id": "685", + "$id": "703", "kind": "basic", "name": "withOr", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "686", + "$id": "704", "name": "withOr", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "687", + "$id": "705", "kind": "query", "name": "or", "serializedName": "or", "type": { - "$id": "688", + "$id": "706", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10850,12 +11125,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "689", + "$id": "707", "kind": "method", "name": "or", "serializedName": "or", "type": { - "$id": "690", + "$id": "708", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10894,7 +11169,7 @@ }, "parameters": [ { - "$ref": "689" + "$ref": "707" } ], "response": {}, @@ -10904,24 +11179,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr" }, { - "$id": "691", + "$id": "709", "kind": "basic", "name": "withPass", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "692", + "$id": "710", "name": "withPass", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "693", + "$id": "711", "kind": "query", "name": "pass", "serializedName": "pass", "type": { - "$id": "694", + "$id": "712", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10936,12 +11211,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "695", + "$id": "713", "kind": "method", "name": "pass", "serializedName": "pass", "type": { - "$id": "696", + "$id": "714", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -10980,7 +11255,7 @@ }, "parameters": [ { - "$ref": "695" + "$ref": "713" } ], "response": {}, @@ -10990,24 +11265,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass" }, { - "$id": "697", + "$id": "715", "kind": "basic", "name": "withRaise", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "698", + "$id": "716", "name": "withRaise", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "699", + "$id": "717", "kind": "query", "name": "raise", "serializedName": "raise", "type": { - "$id": "700", + "$id": "718", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11022,12 +11297,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "701", + "$id": "719", "kind": "method", "name": "raise", "serializedName": "raise", "type": { - "$id": "702", + "$id": "720", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11066,7 +11341,7 @@ }, "parameters": [ { - "$ref": "701" + "$ref": "719" } ], "response": {}, @@ -11076,24 +11351,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise" }, { - "$id": "703", + "$id": "721", "kind": "basic", "name": "withReturn", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "704", + "$id": "722", "name": "withReturn", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "705", + "$id": "723", "kind": "query", "name": "return", "serializedName": "return", "type": { - "$id": "706", + "$id": "724", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11108,12 +11383,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "707", + "$id": "725", "kind": "method", "name": "return", "serializedName": "return", "type": { - "$id": "708", + "$id": "726", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11152,7 +11427,7 @@ }, "parameters": [ { - "$ref": "707" + "$ref": "725" } ], "response": {}, @@ -11162,24 +11437,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn" }, { - "$id": "709", + "$id": "727", "kind": "basic", "name": "withTry", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "710", + "$id": "728", "name": "withTry", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "711", + "$id": "729", "kind": "query", "name": "try", "serializedName": "try", "type": { - "$id": "712", + "$id": "730", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11194,12 +11469,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "713", + "$id": "731", "kind": "method", "name": "try", "serializedName": "try", "type": { - "$id": "714", + "$id": "732", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11238,7 +11513,7 @@ }, "parameters": [ { - "$ref": "713" + "$ref": "731" } ], "response": {}, @@ -11248,24 +11523,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry" }, { - "$id": "715", + "$id": "733", "kind": "basic", "name": "withWhile", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "716", + "$id": "734", "name": "withWhile", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "717", + "$id": "735", "kind": "query", "name": "while", "serializedName": "while", "type": { - "$id": "718", + "$id": "736", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11280,12 +11555,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "719", + "$id": "737", "kind": "method", "name": "while", "serializedName": "while", "type": { - "$id": "720", + "$id": "738", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11324,7 +11599,7 @@ }, "parameters": [ { - "$ref": "719" + "$ref": "737" } ], "response": {}, @@ -11334,24 +11609,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile" }, { - "$id": "721", + "$id": "739", "kind": "basic", "name": "withWith", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "722", + "$id": "740", "name": "withWith", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "723", + "$id": "741", "kind": "query", "name": "with", "serializedName": "with", "type": { - "$id": "724", + "$id": "742", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11366,12 +11641,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "725", + "$id": "743", "kind": "method", "name": "with", "serializedName": "with", "type": { - "$id": "726", + "$id": "744", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11410,7 +11685,7 @@ }, "parameters": [ { - "$ref": "725" + "$ref": "743" } ], "response": {}, @@ -11420,24 +11695,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith" }, { - "$id": "727", + "$id": "745", "kind": "basic", "name": "withYield", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "728", + "$id": "746", "name": "withYield", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "729", + "$id": "747", "kind": "query", "name": "yield", "serializedName": "yield", "type": { - "$id": "730", + "$id": "748", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11452,12 +11727,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "731", + "$id": "749", "kind": "method", "name": "yield", "serializedName": "yield", "type": { - "$id": "732", + "$id": "750", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11496,7 +11771,7 @@ }, "parameters": [ { - "$ref": "731" + "$ref": "749" } ], "response": {}, @@ -11506,24 +11781,24 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield" }, { - "$id": "733", + "$id": "751", "kind": "basic", "name": "withCancellationToken", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "734", + "$id": "752", "name": "withCancellationToken", "resourceName": "Parameters", "accessibility": "public", "parameters": [ { - "$id": "735", + "$id": "753", "kind": "query", "name": "cancellationToken", "serializedName": "cancellationToken", "type": { - "$id": "736", + "$id": "754", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11538,12 +11813,12 @@ "readOnly": false, "methodParameterSegments": [ { - "$id": "737", + "$id": "755", "kind": "method", "name": "cancellationToken", "serializedName": "cancellationToken", "type": { - "$id": "738", + "$id": "756", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -11582,7 +11857,7 @@ }, "parameters": [ { - "$ref": "737" + "$ref": "755" } ], "response": {}, @@ -11594,13 +11869,13 @@ ], "parameters": [ { - "$id": "739", + "$id": "757", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "740", + "$id": "758", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11611,7 +11886,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "741", + "$id": "759", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -11629,269 +11904,7 @@ "crossLanguageDefinitionId": "SpecialWords.Parameters", "apiVersions": [], "parent": { - "$ref": "236" - }, - "isMultiServiceClient": false - }, - { - "$id": "742", - "kind": "client", - "name": "ExtensibleStrings", - "namespace": "SpecialWords", - "doc": "Verify enum member names that are special words.", - "methods": [ - { - "$id": "743", - "kind": "basic", - "name": "putExtensibleStringValue", - "accessibility": "public", - "apiVersions": [], - "operation": { - "$id": "744", - "name": "putExtensibleStringValue", - "resourceName": "ExtensibleStrings", - "accessibility": "public", - "parameters": [ - { - "$id": "745", - "kind": "header", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are text/plain", - "type": { - "$ref": "108" - }, - "isApiVersion": false, - "optional": false, - "isContentType": true, - "scope": "Constant", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.contentType", - "methodParameterSegments": [ - { - "$id": "746", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are text/plain", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.contentType", - "readOnly": false, - "access": "public", - "decorators": [] - } - ] - }, - { - "$id": "747", - "kind": "header", - "name": "accept", - "serializedName": "Accept", - "type": { - "$id": "748", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "isApiVersion": false, - "optional": false, - "isContentType": false, - "scope": "Method", - "readOnly": false, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.accept", - "methodParameterSegments": [ - { - "$id": "749", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "748" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.accept", - "readOnly": false, - "access": "public", - "decorators": [] - } - ] - }, - { - "$id": "750", - "kind": "body", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "1" - }, - "isApiVersion": false, - "contentTypes": [ - "text/plain" - ], - "defaultContentType": "text/plain", - "optional": false, - "scope": "Method", - "decorators": [], - "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.body", - "methodParameterSegments": [ - { - "$id": "751", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "1" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue.body", - "readOnly": false, - "access": "public", - "decorators": [] - } - ] - } - ], - "responses": [ - { - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "752", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain", - "text/plain" - ] - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/special-words/extensible-strings/string", - "requestMediaTypes": [ - "text/plain" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue", - "decorators": [], - "namespace": "SpecialWords" - }, - "parameters": [ - { - "$ref": "751" - }, - { - "$ref": "746" - }, - { - "$ref": "749" - } - ], - "response": { - "type": { - "$ref": "752" - } - }, - "isOverride": false, - "generateConvenient": true, - "generateProtocol": true, - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.putExtensibleStringValue" - } - ], - "parameters": [ - { - "$id": "753", - "kind": "endpoint", - "name": "endpoint", - "serializedName": "endpoint", - "doc": "Service host", - "type": { - "$id": "754", - "kind": "url", - "name": "endpoint", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "isApiVersion": false, - "optional": false, - "scope": "Client", - "isEndpoint": true, - "defaultValue": { - "type": { - "$id": "755", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - }, - "serverUrlTemplate": "{endpoint}", - "skipUrlEncoding": false, - "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings.endpoint" - } - ], - "initializedBy": 0, - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.ExtensibleStrings", - "apiVersions": [], - "parent": { - "$ref": "236" + "$ref": "242" }, "isMultiServiceClient": false } diff --git a/packages/http-client-csharp/package-lock.json b/packages/http-client-csharp/package-lock.json index 39ec8e72e06..6fbffca5b8e 100644 --- a/packages/http-client-csharp/package-lock.json +++ b/packages/http-client-csharp/package-lock.json @@ -16,7 +16,7 @@ "@types/node": "~22.12.0", "@typespec/compiler": "1.10.0", "@typespec/http": "1.10.0", - "@typespec/http-specs": "0.1.0-alpha.33", + "@typespec/http-specs": "0.1.0-alpha.35", "@typespec/json-schema": "1.10.0", "@typespec/library-linter": "0.80.0", "@typespec/openapi": "1.10.0", @@ -2184,15 +2184,15 @@ } }, "node_modules/@typespec/http-specs": { - "version": "0.1.0-alpha.33", - "resolved": "https://registry.npmjs.org/@typespec/http-specs/-/http-specs-0.1.0-alpha.33.tgz", - "integrity": "sha512-O3kYubDHi8wo1ZjTWKPBiz0OrBPHsWexN03zFHE91JnHv4SnfXXN+O2oxeTjqQh/ycKbVTb1k8LBImDiFW5Wnw==", + "version": "0.1.0-alpha.35", + "resolved": "https://registry.npmjs.org/@typespec/http-specs/-/http-specs-0.1.0-alpha.35.tgz", + "integrity": "sha512-xLQUmldKvO0TTOf/wpYLbj2dIuXiQfw3gGKN0ZblD3Q3VGHOXEYEALdQ7lQWn3l2lV33cKgEfC3fX/q/p9N/ug==", "dev": true, "license": "MIT", "dependencies": { "@typespec/spec-api": "^0.1.0-alpha.13", "@typespec/spector": "^0.1.0-alpha.24", - "deep-equal": "^2.2.0" + "deep-equal": "^2.2.3" }, "engines": { "node": ">=16.0.0" diff --git a/packages/http-client-csharp/package.json b/packages/http-client-csharp/package.json index 67c32b5ad8f..e0bbfda7540 100644 --- a/packages/http-client-csharp/package.json +++ b/packages/http-client-csharp/package.json @@ -69,7 +69,7 @@ "@types/node": "~22.12.0", "@typespec/compiler": "1.10.0", "@typespec/http": "1.10.0", - "@typespec/http-specs": "0.1.0-alpha.33", + "@typespec/http-specs": "0.1.0-alpha.35", "@typespec/json-schema": "1.10.0", "@typespec/library-linter": "0.80.0", "@typespec/openapi": "1.10.0",